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