This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19564] New: -Wparentheses and other warnings: g++ is less sensitive than gcc
- From: "fm3 at os dot inf dot tu-dresden dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jan 2005 13:40:32 -0000
- Subject: [Bug c++/19564] New: -Wparentheses and other warnings: g++ is less sensitive than gcc
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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