aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/crash105.C
blob: 8cfff6a367d245dfb02befccd078f875111237c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/44118

template < typename > struct S;
template < typename > struct S < int >; // { dg-error "template" }
template < typename > struct S < int >
{
  void f ();
};

void
f ()
{
  S < int >::f ();
}

// Don't be picky about error-recovery.
// { dg-prune-output "." }