//PR c++/27670 template void foo(); // { dg-error "before|non-function|template" } void bar() { foo(); // { dg-error "no matching function" } // { dg-message "candidate" "candidate note" { target *-*-* } 7 } }