Merged r158704 through r158906 into branch.
[official-gcc.git] / gcc / testsuite / g++.dg / template / typename4.C
blob18cdd1aba01594235296fb7fc746da0a0d1ce718
1 struct B { template <typename U> struct C; };
2 template <typename T> struct A { typedef typename T::C V; }; // { dg-error "not a type" }
3 void f () { A<B>::V p; } // { dg-message "instantiated" }