[Bug c/14470] x86 optimizer error (?)
zack at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Mar 8 03:12:00 GMT 2004
------- Additional Comments From zack at gcc dot gnu dot org 2004-03-08 03:12 -------
In the line
d = t[d]++;
the postincrement is applied to t[d], not d. This code is valid; it should
print 1024 and set t[0] to 1025.
The very similar
d = t[d++];
is indeed invalid.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14470
More information about the Gcc-bugs
mailing list