// PR c++/121351 // { dg-do compile { target c++20 } } template concept C = true; template struct A; template struct A { template void f(U) requires C; // #1 }; template struct B : A { using A::f; template void f(U) requires C; // #2 }; int main() { B b; b.f(42); // OK, #2 corresponds to and therefore hides #1 }