bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: numeric_limits<float>::max


From: Gabriel Zachmann
Subject: Re: numeric_limits<float>::max
Date: 10 May 2002 23:19:08 GMT
User-agent: slrn/0.9.7.3 (Linux)

>  In a C++ program I have the following two lines:
>  
>      float v = -numeric_limits<float>::max();
>      fprintf(stderr,"v=%f\n", v );

Sorry I forgot to mention that this happened under RedHat 7.2
with the gdb version that comes with RedHat 7.2.

The good news is that it seems to have gone away with gdb 5.2 -
I compiled gdb5.2 myself, and so far I have not been able to reproduce the
bug - gdb always prints $5 = -3.40282347e+38, just as expected.

Thanks a lot for your quick responses!
Gab.

-- 
/---------------------------------------------------------------------\
| The mind -- what is it?                                             |
| It is the sound of the breeze                                       |
| Blowing through the pines in the picture.        (Ikkyu)            |
|                                                                     |
| address@hidden                 __@/'  address@hidden |
| web.informatik.uni-bonn.de/~zach    __@/'   www.gabrielzachmann.org |
\---------------------------------------------------------------------/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]