// { dg-do run } //Check instantiation of templates outside their namespace namespace A{ template void g(){} template struct B { B(){ f(); } void f() { g(); } }; } template class A::B; A::B s; int main() { return 0; }