// PR c++/33209 template void foo(int, T::x); // { dg-error "T::x" } template class T> void foo2(int, T::x); // { dg-error "T::x" }