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