// { dg-do run } template struct A { template void f(U); }; template struct B { }; template template void A::f (U) { enum { foo }; B b; } int main () { A a; a.f (42); }