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
/
ttp30.C
blob
c47b15758ada1a0c0d392babe9ef83873e8976e2
1
template<class T> class D
2
{
3
public:
4
int f();
5
};
6
7
template<class T> int D<T>::f()
8
{
9
return sizeof(T);
10
}
11
12
extern "C" void abort();
13
14
template<template<class> class D,class E> class C
15
{
16
D<E> d;
17
public:
18
int f() { abort(); return 0; }
19
};
20
21
template<class E> class C<D,E>
22
{
23
D<E> d;
24
public:
25
int f();
26
};
27
28
template<class E> int C<D,E>::f()
29
{
30
return d.f();
31
}
32
33
int main()
34
{
35
C<D,int> c;
36
c.f();
37
}