// PR c++/121351 // { dg-do compile { target c++20 } } // A version of concepts-using5a.C where B instead of A is a template. template concept C = true; struct A { template void f(U) requires C = delete; // #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 }