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