gcc/testsuite/g++.old-deja/g++.pt/unify4.C
raw| 1 | // { dg-do assemble } |
| 2 | template <class T> void f (T); // { dg-message "note" } |
| 3 | |
| 4 | void g (); |
| 5 | void g (int); |
| 6 | |
| 7 | int |
| 8 | main () |
| 9 | { |
| 10 | f (g); // { dg-error "" } ambiguous unification |
| 11 | // { dg-message "(candidate|deduce template parameter)" "candidate note" { target *-*-* } .-1 } |
| 12 | return 0; |
| 13 | } |