summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash98.C
blob: e3c224df1d9c7ad8eb944382adfc40777ce021f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/43630

template < typename > struct A; // { dg-error "declaration" }

template < typename > struct A < int > // { dg-error "not used|template\\-parameter" }
{
  int i;
  int f ();
};

int A < int >::f () // { dg-error "incomplete type" }
{
  return i;
}