[Bug c/81402] unhelpful -Wparentheses suggestion for assignment from non-zero constant

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jul 11 22:23:00 GMT 2017


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |WONTFIX

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I disagree.   In fact this warning has saved me many times.

I had accidentally wrote:
if (a = f())

and I was like why I was getting incorrect results.


More information about the Gcc-bugs mailing list