Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
template3.C
blob: c26d58584d9414e23d79d9f7258b00bf017de2a7 [
file
] [
log
] [
blame
]
// { dg-do run }
// 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
;
// { dg-bogus "" }
}