(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
template/
incomplete2.C
// PR c++/27427
// { dg-do compile }

struct A;

template<A&> void foo();	// { dg-message "note" }

A a;  // { dg-error "incomplete type" }

void bar()
{
  foo<a>();  // { dg-error "(no matching function|could not convert)" }
}