aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/crash98.C
blob: 9d7d2ece1458a7b22cf5652852bc11fc24e13431 (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 deducible|template\\-parameter|declaration" }
{
  int i;
  int f ();
};

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