[Bug c/56600] loop goes indefinite when non-loop integer variable overflows

schwab@linux-m68k.org gcc-bugzilla@gcc.gnu.org
Tue Mar 12 09:10:00 GMT 2013


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

Andreas Schwab <schwab@linux-m68k.org> changed:

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

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> 2013-03-12 09:10:33 UTC ---
Integer overflow is causing undefined behaviour.  If you want wraparound
semantics either use unsigned int or -fwrapv.



More information about the Gcc-bugs mailing list