struct B { template struct C; }; template struct A { typedef typename T::C V; }; // { dg-error "not a type" } void f () { A::V p; } // { dg-message "instantiated" }