blob: c8407cdf7cdbc498d2c0e0b8d38d6fa0bf8ff5cb [file] [log] [blame]
// PR c++/98394
// { dg-do compile { target c++20 } }
template<int...>
concept C = true;
template<int, int>
concept D = true;
int main() {
if (C<1>); // { dg-bogus "does not constrain a type" }
if (D<1>); // { dg-error "wrong number of template arguments" }
// { dg-bogus "does not constrain a type" "" { target *-*-* } .-1 }
}