[Bug c/93878] -Wfloat-equal complains even in safe cases

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Feb 22 21:15:00 GMT 2020


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
-Wfloat-equal is not flow sensative.  So GCC does not know that rounded is
rounded to the nearest integer.

We are not going to improve this warning to be flow sensative as that would
produce too many false negaitves.  Yes there are some false positives but not
enough to make a difference in general.


More information about the Gcc-bugs mailing list