Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.jason / template3.C
blobc26d58584d9414e23d79d9f7258b00bf017de2a7
1 // { dg-do run  }
2 // PRMS Id: 4679
3 // Bug: g++ doesn't re-instantiate templates after definition is seen.
5 template <class T> struct A;
7 A<int> *a;
9 template <class T> struct A { T t; };
11 int main()
13   if (a)
14     a->t = 1;                   // { dg-bogus "" }