// PR c++/27427 // { dg-do compile } struct A; template void foo(); A a; // { dg-error "incomplete type" } void bar() { foo(); // { dg-error "no matching function" } }