[Bug c/4210] should not warning with dead code
mattias at virtutech dot se
gcc-bugzilla@gcc.gnu.org
Tue Sep 2 18:56:00 GMT 2003
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?]
More information about the Gcc-bugs
mailing list