c++: P0847R7 (deducing this) - xobj lambdas. [PR102609]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / concepts-surrogate1.C
blobe8481a316568611be7b207b0e97e319e7c1515c7
1 // PR c++/110535
2 // { dg-do compile { target c++20 } }
4 using F = int(int);
6 template<bool B>
7 struct A {
8  operator F*() requires B;
9 };
11 int i = A<true>{}(0);  // OK
12 int j = A<false>{}(0); // { dg-error "no match" }