blob: 6ae273a1410f94ff39833ec94f6e4debf8d4d77c (
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
27
28
|
// { dg-do assemble }
// GROUPS passed templates
template<int N_rank>
class Array;
template<class T>
class ArraySectionInfo {
public:
enum { rank = 0 };
};
template<class T1>
class SliceInfo {
public:
static const int rank = ArraySectionInfo<T1>::rank;
typedef Array<rank> T_slice;
};
template<class T2>
typename SliceInfo<T2>::T_slice
foo(T2 r2)
{
return SliceInfo<T2>::T_slice();
}
|