summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/incomplete2.C
blob: d86ea06bcd07f4c4d40002f71f073dccf9833792 (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" }
  // { dg-message "candidate" "candidate note" { target *-*-* } 12 }
}