OSDN Git Service

/cp
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / incomplete2.C
1 // PR c++/27427
2 // { dg-do compile }
3
4 struct A;
5
6 template<A&> void foo();        // { dg-message "note" }
7
8 A a;  // { dg-error "incomplete type" }
9
10 void bar()
11 {
12   foo<a>();  // { dg-error "no matching function" }
13   // { dg-message "candidate" "candidate note" { target *-*-* } 12 }
14 }