klarich@d.cs.okstate.edu (KLARICH TERRY JAME) (08/17/90)
I am running xenix 2.3.2 for 386. I have installed the lng085 update.
Consider this program. Why does cc dump core?
#include <stdio.h>
#include <values.h>
main()
{
double d;
d = MAXDOUBLE;
}
I am not sure of the "values.h" it might be "value.h" and the MAXDOUBLE
might be something else like MAXDBL. I am typing this in from memory.
But, you get the idea.
Terry Klarich <terry@unx.ucc.okstate.edu>
daveh@marob.masa.com (Dave Hammond) (08/18/90)
klarich@d.cs.okstate.edu (KLARICH TERRY JAME) writes: >I am running xenix 2.3.2 for 386. I have installed the lng085 update. >Consider this program. Why does cc dump core? > >#include <stdio.h> >#include <values.h> > >main() >{ >double d; > d = MAXDOUBLE; >} I tried this on 2.3.1, 2.3.2, and 2.3.3; 2.3.1 and 2.3.2 both have the lng085 patch. None of them dump core. Here's the script from 2.3.2: Script started [typescript] at Sat Aug 18 10:05:03 1990 daveh$ cat >c.c #include <stdio.h> #include <values.h> main() { double d; d = MAXDOUBLE; } daveh$ cc c.c c.c daveh$ a.out daveh$ Script ended [typescript] at Sat Aug 18 10:05:28 1990 -- Dave Hammond daveh@marob.masa.com uunet!masa.com!marob!daveh