cc really dumps core on this program. why?

BURNS,JIM gt0178a at prism.gatech.EDU
Wed Aug 29 10:13:51 AEST 1990


in article <1990Aug28.041601.5515 at d.cs.okstate.edu>, klarich at d.cs.okstate.edu (KLARICH TERRY JAME) says:
< #include <stdio.h>
< #include <values.h>
< 
< struct {
<  double min,max;
< } range = {MINDOUBLE,MAXDOUBLE};
< 
< main()
< {
< printf("range.min = %E, range.max = %E\n",range.min,range.max);
< }
< --------------------------------------------------------------------------------
< This program causes the cc compiler to dump core.  I am using Xenix 2.3.2
< with the lng085 update.

Just as a point of interest, this compiles and executes fine on HP-UX 7.0,
SunOS 4.0.3, and Ultrix 2.2. However, it gets the compile error 'illegal
initialization' under A/UX 1.1, or the ATT universe on Dynix 2.0v2.

-- 
BURNS,JIM
Georgia Institute of Technology, Box 30178, Atlanta Georgia, 30332
uucp:	  ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt0178a
Internet: gt0178a at prism.gatech.edu



More information about the Comp.unix.xenix mailing list