// PR c++/121351 // { dg-do compile { target c++20 } } template concept C = true; 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); // { dg-error "ambiguous" } #1 and #2 don't correspond }