// { dg-options "-std=gnu++0x" } template void foo(); // { dg-message "note" } void bar() { foo(); // { dg-error "no matching function" } // { dg-message "(candidate|deduce template parameter)" "candidate note" { target *-*-* } 6 } }