summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/recursion2.C
blob: 47dd5522d0ac98fe1e941c571cd720fd698f96f8 (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
26
// { dg-do run  }
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 ) ;
}