repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
explicit16.C
blob
6ae273a1410f94ff39833ec94f6e4debf8d4d77c
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