[Bug c/65891] [9/10/11/12 Regression] -Wlogical-op now warns about logical ‘and’ of equal expressions even when different types/sizeofs are involved

jlegg at feralinteractive dot com gcc-bugzilla@gcc.gnu.org
Wed Mar 23 13:16:15 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65891

James Legg <jlegg at feralinteractive dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jlegg at feralinteractive dot com

--- Comment #7 from James Legg <jlegg at feralinteractive dot com> ---
(In reply to Kai Tietz from comment #3)
> For C++ delayed folding this issue won't be warned anymore, as for it sizeof
> isn't folded early.

With -fsanitize=integer-divide-by-zero, the spurious warning is still issued in
C++.


More information about the Gcc-bugs mailing list