c++: checking ICE with diagnosed constraint recursion [PR100288]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / concepts-recursive-sat5.C
blobba564873a2042b70aaffc28f4eb7c04efc008ecd
1 // PR c++/100288
2 // { dg-do compile { target c++20 } }
4 struct A { };
6 template<typename T> concept pipeable = requires(A a, T t) { a | t; }; // { dg-error "depends on itself" }
8 template<pipeable T> void operator|(A, T);
10 void f(A tab) {
11   tab | 1; // { dg-error "no match" }
12   tab | 1; // { dg-error "no match" }