This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/21781] New: real.c incorrectly values zero with a large exponent
- From: "neil at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 May 2005 12:00:36 -0000
- Subject: [Bug c/21781] New: real.c incorrectly values zero with a large exponent
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following snippet, if compiled with -Wall, complains about a missing return
statement, indicating GCC is erroneously folding the comparison to false.
int foo(void) { if (.0e200000000 == 0 ) return 1; }
--
Summary: real.c incorrectly values zero with a large exponent
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: neil at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21781