[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 mpolacek at gcc dot gnu.org --- Author: mpolacek Date: Tue Aug 19 18:50:00 2014 New Revision: 214183 URL: https://gcc.gnu.org/viewcvs?rev=214183root=gccview=rev Log: PR c++/62153 * doc/invoke.texi:

[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 mpolacek at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[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 sirl at gcc dot gnu.org --- 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-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 manu at gcc dot gnu.org --- This should be enabled in GCC bootstrap: https://gcc.gnu.org/ml/gcc-patches/2014-08/msg01555.html

[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 mpolacek at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED

[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 manu at gcc dot gnu.org --- (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

[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 mpolacek at gcc dot gnu.org --- 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 Manuel López-Ibáñez manu at gcc dot gnu.org changed: What|Removed |Added CC||sirl at gcc