1 2 3 4 5 6
// { dg-do assemble } template <class T> void foo(); // { dg-error "" } candidate void (*bar)() = foo<void>; void (*baz)() = foo; // { dg-error "" } can't deduce T