// { dg-do compile } void foo(void); int foo(int); template void bar(T f); void baz() { bar(foo); // { dg-error "" } }