[Bug c/82272] RFE: request a warning for (<nonbool> == <bool>) etc.
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Nov 7 19:35:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82272
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-11-07
CC| |msebor at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
Let me confirm this request, in part because I agree that such a warning has
the potential to prevent bugs, and in part because C's lack of a first class
Boolean type has implications for C++: https://wg21.link/lwg3011 (prompted by
https://sourceware.org/bugzilla/show_bug.cgi?id=21972). In light of the latter
issue I also agree that it would be appropriate to bring it up with WG14 (the C
committee).
More information about the Gcc-bugs
mailing list