Sign in
gnu
/
gcc
/
e8cbc2e256b3e9568288594d9f90a2015d31b55a
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
template3.C
blob: 1cd65531757735e3a4743dc9df99137d7beab82c [
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
;
};
int
main
()
{
if
(
a
)
a
->
t
=
1
;
// gets bogus error
}