Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
incomplete2.C
blob: bad16020baa4d16c4ac0ac29f2fa6bf3182dc6f1 [
file
] [
log
] [
blame
]
// 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)" }
}