Clang ignores a constraint in a partial specialization of a class template #58534
Labels
accepts-invalid
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
concepts
C++20 concepts
I'm trying to create a specialization of the
Foo
class template that only accepts specializations of theBar
class template as a template argument. However, clang ignores myIsBar<T>
constraint and acceptsint
as a template argument.static_assert
'ing!IsBar<int>
seems to make it correctly rejectint
The text was updated successfully, but these errors were encountered: