summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp59.C
blob: 4ac85f5eec03d237019f03a42623262e9f971c4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-do assemble  }
// GROUPS passed templates membertemplates
template <int N>
struct IndexPlaceholder {};

template <int N1, int N2, int N3>
struct ArrayIndexMapping {};

template <class T_numtype, int N_rank>
struct Array
{
  template<int N0, int N1>
  ArrayIndexMapping<N_rank, N0, N1> 
  f(IndexPlaceholder<N0>, IndexPlaceholder<N1>);
};


template <class T_numtype>
void foo(T_numtype)
{
  Array<T_numtype, 1> t;
}