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
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
ttp16.C
blob
07ed77aab77606a3e65d2ae4a608c5972ace530f
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<template<class> class D,class E> class C
15
{
16
D<E> d;
17
public:
18
int f();
19
};
20
21
template<template<class> class D,class E> int C<D,E>::f()
22
{
23
D<E> d2;
24
return d2.f();
25
}
26
27
int main()
28
{
29
C<D,int> c;
30
c.f();
31
}