This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/14470] x86 optimizer error (?)
- From: "zack at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Mar 2004 03:12:22 -0000
- Subject: [Bug c/14470] x86 optimizer error (?)
- References: <20040307221314.14470.lvoge@cs.vu.nl>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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