1 // PR c++/27102
2 
foo()3 template<typename T> void T::X::foo() {} // { dg-error "invalid|not a type" }
4