// { dg-do assemble } template void f (T); // { dg-message "note" } void g (); void g (int); int main () { f (g); // { dg-error "" } ambiguous unification // { dg-message "(candidate|deduce template parameter)" "candidate note" { target *-*-* } 10 } return 0; }