[Bug c/37745] Segmentation Fault Exception with -O and signed array index

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Oct 6 16:00:00 GMT 2008



------- Comment #2 from rguenth at gcc dot gnu dot org  2008-10-06 15:59 -------
This will invoke

for (i=0; i<0; i++)

which invokes undefined behavior on signed integer overflow.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37745



More information about the Gcc-bugs mailing list