-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Closed
Labels
c++20clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"conceptsC++20 conceptsC++20 concepts
Description
Problem
The following program crashes Clang and can be replicated using clang++ -std=c++20
.
template<class T>
concept C = true;
template<class T>
class C<int> {};
Clang version
Confirmed on a4c8fb9.
Expected behaviour
Print an error message similar to the following.
/tmp/error.cpp:4:1: error: we attempted to specialise 'C' as a class template, but 'C' is a concept
class C<int>
^~~~~~
/tmp/error.cpp:1:1: note: first declared here
concept C = true;
^~~~~~~~
Metadata
Metadata
Assignees
Labels
c++20clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"conceptsC++20 conceptsC++20 concepts
Type
Projects
Status
Done