// PR c++/34486 template struct A { typedef A* X; }; template struct B { using A::X::Y; // { dg-error "not a base type" } }; B b;