🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1531

MINDOUBLE in gcc

#1531
From: Clark VERBRUGGE
Date: Fri, 11 Dec 1992 09:48
29 lines
1078 bytes
I thought that MINDOUBLE was the smallest value a double
could hold. Yet when i compile the following program:

#include <values.h>

#include <math.h>

main()
{
        double d1,d2;

        d1 = MINDOUBLE;
        d2 = MAXDOUBLE;

        printf("Min=%lf\nMax=%lf\n",d1,d2);
}

I get a 'constant-out-of-range' warning for the
statement assigning MINDOUBLE to d1, and it prints
out "Min=0.000000".

Actually, cc does this as well (but it doesn't even acknowledge
that MINDOUBLE is out of range), so i'm not certain that
this is really a bug.

This is gcc version 1.37.1, running on a Sparc.

Clark Verbrugge
clump@cs.mcgill.ca
Technical Details
Message-ID: <9212111948.AA00567@asparagus.cs.mcgill.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!asparagus.cs.mcgill.ca!clump

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!asparagus.cs.mcgill.ca!clump
From: clump@asparagus.cs.mcgill.ca (Clark VERBRUGGE)
Subject: MINDOUBLE in gcc
Message-ID: <9212111948.AA00567@asparagus.cs.mcgill.ca>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Fri, 11 Dec 1992 09:48:12 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 30