[Bug c/29868] Incorrect code generated for comparison

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Nov 16 11:42:00 GMT 2006



------- Comment #2 from rguenth at gcc dot gnu dot org  2006-11-16 11:42 -------
This is invalid.  Adding 0x10000001 to 7 * 0x10000001 invokes undefined
behavior
(so you get the wrapped result, which is negative and you abort).


-- 

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=29868



More information about the Gcc-bugs mailing list