template void f(int, T (*)() = 0); // { dg-message "note" } void g() { typedef int A[2]; f(0); // { dg-error "" } // { dg-message "candidate" "candidate note" { target *-*-* } 6 } typedef void F(); f(0); // { dg-error "" } // { dg-message "candidate" "candidate note" { target *-*-* } 9 } }