blob: 0fd5a6665b1f9ad11fa7bfffeb8b088cc857af90 [file] [log] [blame]
// PR c++/113800
// { dg-do compile { target c++26 } }
// From LLVM's temp_arg_nontype_cxx2c.cpp.
template<class... T>
concept C = sizeof(T...[1]) == 1;
struct A {};
template<class T, C<T> auto = A{}> struct Set {};
template<class T>
void
foo ()
{
Set<T> u;
}
Set<bool> sb;
Set<float> sf; // { dg-error "constraint failure" }