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

Reply via email to