[Bug c/64470] “floating constant exceeds range” warning for constants that should fit
joseph at codesourcery dot com
gcc-bugzilla@gcc.gnu.org
Fri Jan 2 17:36:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64470
--- Comment #2 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
The definition of DBL_MAX_EXP (and thereby GCC's __DBL_MAX_EXP__) in C11
is "maximum integer such that FLT_RADIX raised to one less than that power
is a representable finite floating-point number, e_max". Note the "one
less than".
More information about the Gcc-bugs
mailing list