Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/explicit16.C

raw
1 // { dg-do assemble }
2 // GROUPS passed templates
3 template<int N_rank>
4 class Array;
5
6
7 template<class T>
8 class ArraySectionInfo {
9 public:
10 enum { rank = 0 };
11 };
12
13
14 template<class T1>
15 class SliceInfo {
16 public:
17 static const int rank = ArraySectionInfo<T1>::rank;
18
19 typedef Array<rank> T_slice;
20 };
21
22 template<class T2>
23 typename SliceInfo<T2>::T_slice
24 foo(T2 r2)
25 {
26 return SliceInfo<T2>::T_slice();
27 }
28