[Bug tree-optimization/65918] Optimized code ( -O0) on 2-dim array iteration incorrect

2015-04-28 Thread trippels at gcc dot gnu.org
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.


[Bug tree-optimization/65918] Optimized code ( -O0) on 2-dim array iteration incorrect

2015-04-28 Thread habanero_pizza at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65918

J. W. Mitchell habanero_pizza at yahoo dot com changed:

   What|Removed |Added

 CC||habanero_pizza at yahoo dot com

--- Comment #1 from J. W. Mitchell habanero_pizza at yahoo dot com ---
Created attachment 35414
  -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35414action=edit
Preprocessed test case.


[Bug tree-optimization/65918] Optimized code ( -O0) on 2-dim array iteration incorrect

2015-04-28 Thread habanero_pizza at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65918

--- Comment #3 from J. W. Mitchell habanero_pizza at yahoo dot com ---
Indeed.  Apologies for the submission