Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.jason/tredecl3.C

raw
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 }