[Bug c++/66329] If condition evaluated wrongly for y1 == 0 condition

2015-05-29 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66329 --- Comment #5 from Manuel López-Ibáñez manu at gcc dot gnu.org --- (In reply to Mikhail Maltsev from comment #4) Clang is more verbose: ./test.c:4:11: warning: has lower precedence than ==; == will be evaluated first [-Wparentheses] x

[Bug c++/66329] If condition evaluated wrongly for y1 == 0 condition

2015-05-28 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66329 Markus Trippelsdorf trippels at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/66329] If condition evaluated wrongly for y1 == 0 condition

2015-05-28 Thread shimple0 at yahoo dot com
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

[Bug c++/66329] If condition evaluated wrongly for y1 == 0 condition

2015-05-28 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66329 Manuel López-Ibáñez manu at gcc dot gnu.org changed: What|Removed |Added CC||manu at gcc

[Bug c++/66329] If condition evaluated wrongly for y1 == 0 condition

2015-05-28 Thread miyuki at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66329 Mikhail Maltsev miyuki at gcc dot gnu.org changed: What|Removed |Added CC||miyuki at gcc