🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #2118

Re: numeric_limits<float>::max

#2118
From: Gabriel Zachmann
Date: Fri, 10 May 2002 23:19
24 lines
2329 bytes
>  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)            |
|                                                                     |
| zach@cs.uni-bonn.de                 __@/'  Gabriel.Zachmann@gmx.net |
| web.informatik.uni-bonn.de/~zach    __@/'   www.gabrielzachmann.org |
\---------------------------------------------------------------------/
Technical Details
Message-ID: <slrnadolbd.8bo.zach@fuji.informatik.uni-bonn.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!howland.erols.net!nntp.abs.net!news-out.visi.com!hermes.visi.com!uunet!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!not-for-mail
References: <slrnadnki9.6qe.zach@fuji.informatik.uni-bonn.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,928e9af52e3d56e8
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 2002-05-10 16:19:12 PST
x-uunet-gateway: mr0.ash.ops.us.uu.net from bug-gdb to gnu.gdb.bug; Fri, 10 May 2002 23:19:11 GMT
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!howland.erols.net!nntp.abs.net!news-out.visi.com!hermes.visi.com!uunet!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!not-for-mail
From: zach@cs.uni-bonn.de (Gabriel Zachmann)
Subject: Re: numeric_limits<float>::max
Date: 10 May 2002 23:19:08 GMT
Organization: University Bonn, Germany
Message-ID: <slrnadolbd.8bo.zach@fuji.informatik.uni-bonn.de>
References: <slrnadnki9.6qe.zach@fuji.informatik.uni-bonn.de>
Reply-To: zach@cs.uni-bonn.de
NNTP-Posting-Host: fuji.informatik.uni-bonn.de
X-Trace: f1node01.rhrz.uni-bonn.de 1021072748 36546 131.220.3.143 (10 May 2002 23:19:08 GMT)
X-Complaints-To: usenet@f1node01.rhrz.uni-bonn.de
NNTP-Posting-Date: 10 May 2002 23:19:08 GMT
X-realname: Gabriel Zachmann
User-Agent: slrn/0.9.7.3 (Linux)
Approved: bug-gdb-request@mail.gnu.org
Newsgroups: gnu.gdb.bug
Sender: bug-gdb-request@mail.gnu.org
Lines: 24