This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: -Wparentheses is less sensitive in g++
- From: lrtaylor at micron dot com
- To: <fm3 at os dot inf dot tu-dresden dot de>, <gcc-help at gcc dot gnu dot org>
- Date: Wed, 19 Jan 2005 10:38:48 -0700
- Subject: RE: -Wparentheses is less sensitive in g++
Dunno about the parentheses, but you should have two ampersands in there
instead of one...
if (a>0 && b>0)
Thanks,
Lyle
-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of Frank Mehnert
Sent: Wednesday, January 19, 2005 10:37 AM
To: gcc-help@gcc.gnu.org
Subject: -Wparentheses is less sensitive in g++
Hi,
is there any reason for g++ to be less sensitive when using the
-Wparentheses option than gcc? For example gcc warns about the
following line
if (a>0 & b>0)
...
but g++ does not. Why?
I've checked this with g++2.95, g++-3.2, g++-3.3 and g++-3.4.
Frank
--
## Dept. of Computer Science, Dresden University of Technology, Germany
##
## http://os.inf.tu-dresden.de/~fm3
##