aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/recursion2.C
blob: 8cb3a2b30c7a3d9452d04abfbdd45ee84aca9d87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
template< int i > struct T :
public T< i-1 >
{
};

template<> struct T< 0 >
{
};

template< class F > struct T1 :
public T< F::dim >
{
};

template< int i > struct S
{
  enum { dim = i } ;
};

int main()
{
  T1< S< 4 > > t ;
  return( 0 ) ;
}