[Bug c/7543] no warning for always-false "if (!a & 0x4)" bitwise and on boolean value

trt at acm dot org gcc-bugzilla@gcc.gnu.org
Fri Oct 1 14:14:00 GMT 2004


------- Additional Comments From trt at acm dot org  2004-10-01 14:14 -------
Can we just close this 'wonfix'?  There are so many simpler/effective warning
message improvements that are available to gcc.  (e.g. the special case
of boolean & non-boolean-constant can be caught with a three-line addition
to fold() in fold-const.c)  This elaborate patch would be way way down any list.
 Thanks.  (By the way, if there a gcc person interested in such a list, please
contact me.)

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7543



More information about the Gcc-bugs mailing list