This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32270] warning for potential undesired operator& and operator== evaluation order
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jun 2007 08:34:41 -0000
- Subject: [Bug c++/32270] warning for potential undesired operator& and operator== evaluation order
- References: <bug-32270-8698@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-06-10 08:34 -------
The warning works on the trunk:
[pinskia-laptop:gcc/mips/gcc] pinskia% ./cc1plus t.c -W -Wall
int f(int, int)
t.c:3: warning: suggest parentheses around comparison in operand of &
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
GCC build triplet|(GCC) 4.0.1 (Apple Computer,|
|Inc. build 5367) |
GCC host triplet|powerpc-apple-darwin8-g++- |
|4.0.1 |
Keywords| |diagnostic
Summary|warning for potential |warning for potential
|undesired operator& and |undesired operator& and
|operator== evaluation order |operator== evaluation order
Version|4.3.0 |4.0.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32270