This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
__LDBL_MAX__ exceeds range of 'long double'
- From: Jonathan Wakely <cow at compsoc dot man dot ac dot uk>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 17 Feb 2005 13:22:30 +0000
- Subject: __LDBL_MAX__ exceeds range of 'long double'
I'm hoping someone knows what this is due to, can't see anything in bugzilla.
$ cat bug.c
long double f = __LDBL_MAX__;
$ gcc4x -c bug.c
$ gcc4x -c bug.c -pedantic -save-temps
bug.c: In function 'main':
bug.c:1: error: floating constant exceeds range of 'long double'
I only get the error with -pedantic /and/ -save-temps, compiles fine if
only one of those options is used.
This is with mainline on i386-unknown-freebsd4.8, also seen with a week
old mainline build.
gcc4x -E -dM gives:
#define __LDBL_MAX__ 1.18973149535723176502e+4932L
Which is the same as for a 3.4.4 20050118 build I have which compiles
the code above fine.
Any ideas?
jon
--
"The tools we use have a profound (and devious!) influence on our
thinking habits, and, therefore, on our thinking abilities."
- Edsger Dijkstra