aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/crash9.C
blob: 297b8accaad8c9e9a4c299fba38ba71a7a641a8d (plain)
1
2
3
4
5
6
7
8
9
10
11
// Build don't link:

template <class T>
void f(T) {} // ERROR - parameter has incomplete type

class C;

void g(const C& c)
{
  f(c); // ERROR - invalid use of undefined type
}