summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/tredecl3.C
blob: 35c34d7e8da28eed88fdf86cfc459d5860790c1a (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }
// PRMS Id: 4679
// Bug: redeclaration of templates erases the definition.

template <class T> class Foo { public: void h(); };
template <class T> class Foo;

void g()
{
  Foo<int> f;
}