This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/32270] warning for potential undesired operator& and operator== evaluation order



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]