struct X { template void foo(B); }; template void bar() { X().foo(1); } template void bar ();