This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/66329] If condition evaluated wrongly for "y&1 == 0" condition
- From: "shimple0 at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 28 May 2015 21:34:22 +0000
- Subject: [Bug c++/66329] If condition evaluated wrongly for "y&1 == 0" condition
- Auto-submitted: auto-generated
- References: <bug-66329-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66329
--- Comment #2 from sandeep <shimple0 at yahoo dot com> ---
(In reply to Markus Trippelsdorf from comment #1)
> & has lower precedence than ==.
Thanks Markus. It never occurred to me when hit by a bug in some other code.
I myself was wondering how could this kind of bug stay undiscovered for so
long, if it was.
I shall be more careful when reporting bug/issue in future.