[Bug c++/70631] Warn about redundant comparisons with -Wlogical-op
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 17 17:00:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70631
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-03-17
CC| |msebor at gcc dot gnu.org
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=60759,
| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=69602,
| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=71472
Ever confirmed|0 |1
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed. For a user's point of view I'd be inclined to view it as a bug
rather than an enhancement, but a review of the implementation suggests this
case just isn't handled. I.e., the warning is working as intended and needs to
be enhanced to handle these expressions.
See also pr60759, pr69602, and pr71472 for other bugs/enhancements affecting
-Wlogical-op.
More information about the Gcc-bugs
mailing list