// { dg-do run } template struct A { template struct B { template void f (V) { } void g () { } }; template struct B { void h () { } }; }; int main () { A::B b; b.f (42); b.g (); A::B b2; b2.h (); }