// { dg-do compile { target concepts } } template requires T::value struct A { }; template requires T::value struct B { }; // { dg-error "private" } struct S { private: static constexpr bool value = true; template requires T::value friend struct A; }; A x; B y; // { dg-error "constraint" }