[Bug c++/66191] GCC optimizes away if clause checking similar but not same condition

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon May 18 12:13:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66191

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Yeah.  You should have used e.g.
  return -_int2double(-(unsigned)i);
instead.



More information about the Gcc-bugs mailing list