OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
cp:
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
explicit15.C
1
// Build don't link:
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