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

template < typename > struct A;

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

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