[Bug c++/69686] Useless -Wparentheses for A && B || !A && C
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 5 15:52:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69686
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to wipedout from comment #5)
> Here the compiler just enforces people to add parentheses so that they
> accidentally put them wrong and then the compiler is happy and the code is
> buggy.
Yes, the compiler forces people to put them in the wrong place. That's right.
That's not a ridiculous assertion at all. Thanks for your bug report.
More information about the Gcc-bugs
mailing list