FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / template3.C
blob1cd65531757735e3a4743dc9df99137d7beab82c
1 // PRMS Id: 4679
2 // Bug: g++ doesn't re-instantiate templates after definition is seen.
4 template <class T> struct A;
6 A<int> *a;
8 template <class T> struct A { T t; };
10 int main()
12   if (a)
13     a->t = 1;                   // gets bogus error