blob: 1cd65531757735e3a4743dc9df99137d7beab82c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// PRMS Id: 4679
// Bug: g++ doesn't re-instantiate templates after definition is seen.
template <class T> struct A;
A<int> *a;
template <class T> struct A { T t; };
int main()
{
if (a)
a->t = 1; // gets bogus error
}
|