// { dg-do compile { target c++20 } } template concept Eq = requires(T t) { t == t; }; // { dg-message "in requirements" } template struct Foo { }; template struct S { // { dg-error "constraint failure" } template friend class Bar; friend class Foo; }; struct X { }; int main() { S si; // OK S sx; }