// { dg-options "-std=c++0x" } template void f() // { dg-message "note" } { f(); // { dg-error "no matching" } // { dg-message "candidate" "candidate note" { target *-*-* } 6 } } template<> void f() { } // { dg-error "template-id" } int main() { f(); }