// PR c++/111890 // { dg-do compile { target c++20 } } template struct A { template struct B { }; template requires T::value struct B { }; template requires (sizeof(T) == sizeof(int)) struct B { friend void operator+(B&, int) { } }; }; void f(A::B b) { b + 0; }