// PR c++/27102 template void T::X::foo() {} // { dg-error "invalid|not a type" }