OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/20669
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
ttp20.C
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 : D<E>
14
{
15
public:
16
int g();
17
};
18
19
template<template<class> class D,class E> int C<D,E>::g()
20
{
21
return this->f();
22
}
23
24
int main()
25
{
26
C<D,int> c;
27
c.g();
28
}