// PR c++/27102

template<typename T> void T::X::foo() {} // { dg-error "invalid" }


syntax highlighted by Code2HTML, v. 0.9.1