// { dg-do run } // Check that foo isn't resolved too early. template void foo(T*); template void foo(T*, U) { } template void bar(void (*)(T, U), U) { } int main() { bar(&foo, 1); bar(&foo, 1); bar(foo, 1); bar(foo, 1); }