// { dg-do compile { target c++11 } } template void f() // { dg-message "note" } { f(); // { dg-error "no matching" } // { dg-message "(candidate|deduce template parameter)" "candidate note" { target *-*-* } 6 } } template<> void f() { } // { dg-error "template-id" } int main() { f(); }