This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/9944] gcc does not warn for always-false "if (!a & 0x4)" bitwise and on boolean value
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Apr 2004 03:53:54 -0000
- Subject: [Bug c/9944] gcc does not warn for always-false "if (!a & 0x4)" bitwise and on boolean value
- References: <20030304194601.9944.levon@movementarian.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-19 03:53 -------
Reconfirmed, I really thing this should be done in fold-const where all the other warnings
are like this because it does the fold into 0.
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|0000-00-00 00:00:00 |2004-04-19 03:53:54
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9944