// PR c++/107853 // { dg-do compile { target c++20 } } template concept C = __is_same(T, U); template struct A { template requires (C && ...) friend void f(A, A) { } }; int main() { A x; f(x, x); A y; f(y, y); A z; f(x, z); // { dg-error "no match" } }