c++: P0847R7 (deducing this) - xobj lambdas. [PR102609]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / concepts-pr98394.C
blobc8407cdf7cdbc498d2c0e0b8d38d6fa0bf8ff5cb
1 // PR c++/98394
2 // { dg-do compile { target c++20 } }
4 template<int...>
5 concept C = true;
7 template<int, int>
8 concept D = true;
10 int main() {
11   if (C<1>); // { dg-bogus "does not constrain a type" }
12   if (D<1>); // { dg-error "wrong number of template arguments" }
13              // { dg-bogus "does not constrain a type" "" { target *-*-* } .-1 }