blob: b855569088fb14463c4979ed70df5b3f91858bc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// 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)" }
// { dg-message "candidate" "candidate note" { target *-*-* } 12 }
}
|