[Bug c++/19564] -Wparentheses does not work with the C++ front-end

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Jan 21 14:11:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-21 14:11 -------
(In reply to comment #0)
> g++ generates less warnings when using -Wparentheses than gcc. For instance  
> gcc warns about  
>   
>   if (a>0 & b>0)  
>     ...  

This because this warning is only in the C front-end.

Please file the "overflow in implicit constant conversion" warning into a different bug.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |diagnostic
   Last reconfirmed|0000-00-00 00:00:00         |2005-01-21 14:11:16
               date|                            |
            Summary|-Wparentheses and other     |-Wparentheses does not work
                   |warnings: g++ is less       |with the C++ front-end
                   |sensitive than gcc          |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19564



More information about the Gcc-bugs mailing list