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