[Bug c/77292] Spurious warning: logical not is only applied to the left hand side of comparison
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Aug 19 12:40:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77292
--- Comment #12 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Segher Boessenkool from comment #11)
> Both of these suggestions are not so good. "!(a == b)" is better written
> as "a != b", and "!(a) == b" is just horrible.
Agreed for the former, but the latter is suggesting (!a) == b, which is IMHO
clearer than ! a == b.
More information about the Gcc-bugs
mailing list