Sign in
gnu
/
gcc
/
refs/tags/prereleases/egcs-1.1.1-pre
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
template3.C
blob: e03b8a9ab35beeb050d78a5c49eee72b0b64ff36 [
file
] [
log
] [
blame
]
// 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
;
};
main
()
{
if
(
a
)
a
->
t
=
1
;
// gets bogus error
}