repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
template3.C
blob
1cd65531757735e3a4743dc9df99137d7beab82c
1
// PRMS Id: 4679
2
// Bug: g++ doesn't re-instantiate templates after definition is seen.
3
4
template <class T> struct A;
5
6
A<int> *a;
7
8
template <class T> struct A { T t; };
9
10
int main()
11
{
12
if (a)
13
a->t = 1; // gets bogus error
14
}