[Bug libgcc/70800] libgcc/config/libbid/bid_binarydecimal.c: suspicious comparison ?
dcb314 at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Jul 6 16:40:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70800
--- Comment #3 from David Binderman <dcb314 at hotmail dot com> ---
I just discovered that clang++ can be made to find this bug by
adding flag -Wtautological-compare.
jan22a.cc:6:17: warning: bitwise comparison always
evaluates to false [-Wtautological-compare]
if ((n & 0x30) == 1)
~~~~~~~~~~~^~~~
More information about the Gcc-bugs
mailing list