// PR c++/27665 template struct A { struct B { struct C {}; }; }; template void foo() { class A::B::C X; } void bar() { foo<0>(); }