Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!sol.ctr.columbia.edu!emory!mephisto!prism!gt0178a From: gt0178a@prism.gatech.EDU (BURNS,JIM) Newsgroups: comp.unix.xenix Subject: Re: cc really dumps core on this program. why? Message-ID: <13116@hydra.gatech.EDU> Date: 29 Aug 90 00:13:51 GMT References: <1990Aug28.041601.5515@d.cs.okstate.edu> Organization: Georgia Institute of Technology Lines: 25 in article <1990Aug28.041601.5515@d.cs.okstate.edu>, klarich@d.cs.okstate.edu (KLARICH TERRY JAME) says: < #include < #include < < 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@prism.gatech.edu