1 // PR c++/58674 2 // { dg-do compile { target c++11 } } 3 4 template<int> struct A {}; 5 6 template<int N> using B = A<N>; 7 8 template<typename T> struct C 9 { 10 B<T::i> b; // { dg-error "not usable" } 11 }; 12 13 struct X 14 { 15 static const int i; 16 }; 17 18 C<X> c; 19