2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / explicit16.C
blob6ae273a1410f94ff39833ec94f6e4debf8d4d77c
1 // { dg-do assemble  }
2 // GROUPS passed templates
3 template<int N_rank>
4 class Array;
7 template<class T>
8 class ArraySectionInfo {
9 public:
10     enum { rank = 0 };
14 template<class T1>
15 class SliceInfo {
16 public:
17   static const int rank = ArraySectionInfo<T1>::rank;
19   typedef Array<rank> T_slice;
22 template<class T2>
23 typename  SliceInfo<T2>::T_slice
24 foo(T2 r2)
26   return SliceInfo<T2>::T_slice();