[Bug c++/19564] New: -Wparentheses and other warnings: g++ is less sensitive than gcc

fm3 at os dot inf dot tu-dresden dot de gcc-bugzilla@gcc.gnu.org
Fri Jan 21 13:40:00 GMT 2005


g++ generates less warnings when using -Wparentheses than gcc. For instance  
gcc warns about  
  
  if (a>0 & b>0)  
    ...  
  
(warning: suggest parentheses around comparison in operand of &) but g++ does  
not. And gcc warns about  
  
  char a = 1024;  
  
(warning: overflow in implicit constant conversion) but g++ does not.

-- 
           Summary: -Wparentheses and other warnings: g++ is less sensitive
                    than gcc
           Product: gcc
           Version: 3.4.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fm3 at os dot inf dot tu-dresden dot de
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i486-linux


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



More information about the Gcc-bugs mailing list