[LLVMbugs] [Bug 6432] New: bogus error on huge float val
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Feb 26 07:48:59 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=6432
Summary: bogus error on huge float val
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: gohman at apple.com
CC: llvmbugs at cs.uiuc.edu
For this code:
double d = 99.e99999;
GCC emits a warning: floating constant exceeds range of ‘double’ and assumes a
value of infinity.
clang emits an error: magnitude of floating-point constant too small for
type 'double'; minimum is 4.940656458412465E-324
First, clang is considering an out-of-range floating-point value an error
instead of a warning. FWIW, this testcase is derived from real-world code.
Second, clang's message is bogus; the value is too great, not too small.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list