[Bug c/17896] The expression (a>0 & b>0) should give clearer warning message (-Wparentheses)

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 28 10:20:59 GMT 2021


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
           Keywords|patch                       |

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The patch no longer applies as the code has moved to c-family/c-warn.c in the
function warn_about_parentheses.

I do think we should be able to do a fixit type though.


More information about the Gcc-bugs mailing list