// PR c++/27427 // { dg-do compile } struct A; template void foo(); // { dg-message "note" } A a; // { dg-error "incomplete type" } void bar() { foo(); // { dg-error "(no matching function|could not convert)" } // { dg-message "candidate" "candidate note" { target *-*-* } 12 } }