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
/
ttp40.C
blob
49d39e163a75c2b6ca9ea6f0f1a14e9c2c4906e8
1
// { dg-do run }
2
#include <vector>
3
4
template<class E,template<class> class DD = std::vector> class C
5
{
6
DD<E> d;
7
public:
8
int f();
9
};
10
11
template<class E,template<class> class DD> int C<E,DD>::f()
12
{
13
DD<E> d2;
14
return d2.size();
15
}
16
17
int main()
18
{
19
C<int> c;
20
c.f();
21
}