1 // PR c++/86171 2 // { dg-do compile { target c++11 } } 3 4 template <class> struct A; 5 template <class T> using B = typename A<T>::X; 6 template <class T> struct A { 7 typedef int X; 8 typedef B<T> U; 9 }; 10 B<short> b; 11