1 // { dg-options "-std=c++17 -fconcepts" }
4 concept bool Eq() { return requires(T t) { t == t; }; }
7 template<Eq T> friend void f(T) { }
10 template<typename T> struct S;
17 friend bool operator==(S, S) requires Eq<T>() { return true; }
19 friend void proc<>(S*); // { dg-error "does not match any template declaration" }
26 f(nt); // { dg-error "cannot call" }
27 f(x); // { dg-error "3:'f' was not declared" }
33 sx == sx; // { dg-error "no match" }