// PR c++/27572 // { dg-do compile } template void foo(); // { dg-error "no type|typedef declaration|template" } void bar() { foo(); // { dg-error "matching" } // { dg-message "candidate" "candidate note" { target *-*-* } 8 } }