1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// { dg-do assemble } // Gosh, this works! template<class T> struct A { struct B { void bar(); }; struct C { }; }; template<class T> void A<T>::B::bar() { } template class A<int>;