gcc/testsuite/g++.old-deja/g++.pt/memtemp59.C
raw| 1 | // { dg-do assemble } |
| 2 | // GROUPS passed templates membertemplates |
| 3 | template <int N> |
| 4 | struct IndexPlaceholder {}; |
| 5 | |
| 6 | template <int N1, int N2, int N3> |
| 7 | struct ArrayIndexMapping {}; |
| 8 | |
| 9 | template <class T_numtype, int N_rank> |
| 10 | struct Array |
| 11 | { |
| 12 | template<int N0, int N1> |
| 13 | ArrayIndexMapping<N_rank, N0, N1> |
| 14 | f(IndexPlaceholder<N0>, IndexPlaceholder<N1>); |
| 15 | }; |
| 16 | |
| 17 | |
| 18 | template <class T_numtype> |
| 19 | void foo(T_numtype) |
| 20 | { |
| 21 | Array<T_numtype, 1> t; |
| 22 | } |