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

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

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
unary operator vs binary operator.

You are just confused really.

that is if used as an unary operator, it will taken as the address of the
lable. While used as a binary operator it will be used as you expect.

Also the warning already happens with -Waddress (which is enabled with -Wall)"
<source>: In function 'f':
<source>:3:9: warning: the address of 'a' will always evaluate as 'true'
[-Waddress]
     if (&&a) return 1;

Reply via email to