This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/13816] access to local array in while loop is optimized away
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jan 2004 18:14:37 -0000
- Subject: [Bug optimization/13816] access to local array in while loop is optimized away
- References: <20040122173740.13816.a.simon@kent.ac.uk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-22 18:14 -------
This is invalid as this line:
localArray[current]=localArray[++current];
you modified current twice which violates squence points.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
Summary|access to local array in |access to local array in
|while loop is optimized away|while loop is optimized away
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13816