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++/66329] If condition evaluated wrongly for "y&1 == 0" condition


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.


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