This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

__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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]