template class Vector; template class List { public: void push_back(T); struct node {}; node *head; unsigned size; }; extern List *instantiateListDoubleDeclaration; namespace A { class Y { template friend class WhereAmI; }; } template class A::WhereAmI { public: static void func() {} }; template struct Outer { struct Inner {}; }; template struct ExplicitInstantiation { void f() {} }; template struct DelayUpdates {}; template struct OutOfLineInline { void f(); void g(); void h(); }; template inline void OutOfLineInline::f() {} template inline void OutOfLineInline::g() {} template inline void OutOfLineInline::h() {}