//PR c++/28051 template struct A {}; template struct B : A { using A::operator typename A::X; // { dg-error "no type named" } }; B<0> b;