[Bug c++/17440] double->int cast error (on overflow)

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Sep 12 19:14:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-12 19:14 -------
UINT_MAX/2 does not fix into int so this is invalid and invokes undefined behaviour.

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


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



More information about the Gcc-bugs mailing list