-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Closed
Labels
c++20clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"
Description
See https://godbolt.org/z/rTcabGbbh. This compiles with GCC 13.2, but with clang 18.1.0.
I’ve tried to reduce this to the smallest program that exhibits the bug, and AFAICT, it relates to a template friend function that has the same template arguments as its enclosing class, but the order of the template arguments are reversed. When instantiating the template function, the compiler seems to apply the wrong constraint checks (C++ concepts) on the template arguments.
Metadata
Metadata
Assignees
Labels
c++20clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"
Type
Projects
Status
Done