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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
ttp14.C
blob
04877d65b75ce69ea89d303200fbb5ac52b30fc7
1
template<class T> class D
2
{
3
T a;
4
public:
5
int f();
6
};
7
8
template<class T> int D<T>::f()
9
{
10
return sizeof(T);
11
}
12
13
template<class E,template<class> class DD = D> class C
14
{
15
DD<E> d;
16
public:
17
int f();
18
};
19
20
template<class E,template<class> class DD> int C<E,DD>::f()
21
{
22
DD<E> d2;
23
return d2.f();
24
}
25
26
int main()
27
{
28
C<int> c;
29
c.f();
30
}