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++.jason
/
tredecl3.C
blob
35c34d7e8da28eed88fdf86cfc459d5860790c1a
1
// { dg-do assemble }
2
// PRMS Id: 4679
3
// Bug: redeclaration of templates erases the definition.
4
5
template <class T> class Foo { public: void h(); };
6
template <class T> class Foo;
7
8
void g()
9
{
10
Foo<int> f;
11
}