This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/4210] should not warning with dead code
- From: "mattias at virtutech dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Sep 2003 18:56:42 -0000
- Subject: [Bug c/4210] should not warning with dead code
- References: <20010903113600.4210.gustav@virtutech.se>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210
------- Additional Comments From mattias at virtutech dot se 2003-09-02 18:56 -------
In gcc 3.3, warning in dead code also occurs in another case. Testcase:
unsigned f(unsigned x)
{
if (sizeof x > 4)
return x >= 1ull << 32 ? 1 : 0;
return 0;
}
yields:
foo.c:4: warning: comparison is always false due to limited range of data type
This is a regression from 3.2.2. [Should I open a new bug for it?]