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