[Bug c/18814] Incorrect reinitialization of compound literal
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Dec 3 18:51:00 GMT 2004
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-03 18:51 -------
Just for reference this is the example from the text:
struct s { int i; };
int f (void)
{
struct s *p = 0, *q;
int j = 0;
again:
q=p,p=&((struct s){ j++ });
if (j < 2) goto again;
return p == q && q->i == 1;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18814
More information about the Gcc-bugs
mailing list