summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/crash9.C
blob: f2d811dda1a75c8261b55a289bc664eabff4b1d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }

template <class T>
void f(T) {}			// { dg-error "initializing" }

class C;    // { dg-error "forward declaration" }

void g(const C& c)
{
  f(c); // { dg-error "invalid use of incomplete type" }
}