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
/
explicit15.C
blob
e3d598b0ee364c574641e3fe33d5f569a4f75dd9
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
enum {
18
rank = ArraySectionInfo<T1>::rank
19
};
20
21
typedef Array<rank> T_slice;
22
};
23
24
template<class T2>
25
typename SliceInfo<T2>::T_slice
26
foo(T2 r2)
27
{
28
return SliceInfo<T2>::T_slice();
29
}
30