This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __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 14:17:05 +0000
- Subject: Re: __LDBL_MAX__ exceeds range of 'long double'
- References: <20050217132230.GA29486@compsoc.man.ac.uk>
On Thu, Feb 17, 2005 at 01:22:30PM +0000, Jonathan Wakely wrote:
>
> 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.
Actually, I get a warning with -pedantic -save-temps, error with
-pedantic-errors -save-temps (or with g++ -pedantic -save-temps)
Sorry for any confusion
jon
--
"The easy confidence with which I know another man's religion is Folly
leads me to suspect that my own is also."
- Mark Twain