public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19564] New: -Wparentheses and other warnings: g++ is less sensitive than gcc
@ 2005-01-21 13:40 fm3 at os dot inf dot tu-dresden dot de
  2005-01-21 14:11 ` [Bug c++/19564] -Wparentheses does not work with the C++ front-end pinskia at gcc dot gnu dot org
  2005-01-21 14:12 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 10+ messages in thread
From: fm3 at os dot inf dot tu-dresden dot de @ 2005-01-21 13:40 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-06-10  8:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-19564-9973@http.gcc.gnu.org/bugzilla/>
2006-02-08 17:56 ` [Bug c++/19564] -Wparentheses does not work with the C++ front-end ian at airs dot com
2006-11-30 23:15 ` mueller at gcc dot gnu dot org
2006-12-01  6:18 ` ian at airs dot com
2006-12-12 18:00 ` ian at airs dot com
2006-12-12 18:01 ` patchapp at dberlin dot org
2006-12-14  5:49 ` ian at gcc dot gnu dot org
2006-12-14  6:03 ` ian at airs dot com
2007-06-10  8:39 ` pinskia at gcc dot gnu dot org
2005-01-21 13:40 [Bug c++/19564] New: -Wparentheses and other warnings: g++ is less sensitive than gcc fm3 at os dot inf dot tu-dresden dot de
2005-01-21 14:11 ` [Bug c++/19564] -Wparentheses does not work with the C++ front-end pinskia at gcc dot gnu dot org
2005-01-21 14:12 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).