// { dg-options "-std=gnu++0x" } template void foo(); // { dg-message "candidate" } void bar() { foo(); // { dg-error "no matching function" } }