struct s {}; template void foo(U) {} namespace n { template void foo(U) {} void bar() { s a; foo(a); } }