This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/65918] Optimized code (> -O0) on 2-dim array iteration incorrect
- From: "trippels at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 28 Apr 2015 14:35:19 +0000
- Subject: [Bug tree-optimization/65918] Optimized code (> -O0) on 2-dim array iteration incorrect
- Auto-submitted: auto-generated
- References: <bug-65918-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65918
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |trippels at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
while ((value > limits[type][retval]) && (retval < 3))
well, the index gets out of bound. Check (retval < 3) first.