[Bug c++/62153] warn for bool expression compared with integer different from 0/1

2014-08-19 Thread sirl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62153 --- Comment #8 from Franz Sirl --- Hmm, what about the assignment part of the merged bug 44077: _Bool var = 3; Does the fix warn about this? Should I create a new bug report for this part?

[Bug c++/62153] warn for bool expression compared with integer different from 0/1

2014-08-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62153 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/62153] warn for bool expression compared with integer different from 0/1

2014-08-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62153 --- Comment #6 from Marek Polacek --- Author: mpolacek Date: Tue Aug 19 18:50:00 2014 New Revision: 214183 URL: https://gcc.gnu.org/viewcvs?rev=214183&root=gcc&view=rev Log: PR c++/62153 * doc/invoke.texi: Document -Wbool-compare. c-fami

[Bug c++/62153] warn for bool expression compared with integer different from 0/1

2014-08-15 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62153 Manuel López-Ibáñez changed: What|Removed |Added CC||sirl at gcc dot gnu.org --- Commen

[Bug c++/62153] warn for bool expression compared with integer different from 0/1

2014-08-15 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62153 --- Comment #4 from Marek Polacek --- Sure, both FEs should have it.

[Bug c++/62153] warn for bool expression compared with integer different from 0/1

2014-08-15 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62153 --- Comment #3 from Manuel López-Ibáñez --- (In reply to Marek Polacek from comment #2) > Sounds good. I'll look at it, so mine for now. But the > -Wtautological-constant-out-of-range-compare name is too long - can't we > name it just e.g. -Wbo

[Bug c++/62153] warn for bool expression compared with integer different from 0/1

2014-08-15 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62153 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug c++/62153] warn for bool expression compared with integer different from 0/1

2014-08-15 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62153 --- Comment #1 from Manuel López-Ibáñez --- This should be enabled in GCC bootstrap: https://gcc.gnu.org/ml/gcc-patches/2014-08/msg01555.html