1 // PR c++/34486 2 3 template<typename> struct A 4 { 5 typedef A* X; 6 }; 7 8 template<typename T> struct B 9 { 10 using A<T>::X::Y; // { dg-error "not a base type" } 11 }; 12 13 B<int> b; 14