// PR c++/53164 // PR c++/105848 // { dg-do link } template void f(T) { } template struct A { static void wrap() { P(0); } }; template void wrap() { P(0); } template void g() { A::wrap(); wrap(); } int main() { g<0>(); }