Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!unmvax!uokmax!d.cs.okstate.edu!klarich From: klarich@d.cs.okstate.edu (KLARICH TERRY JAME) Newsgroups: comp.unix.xenix Subject: cc really does dump core? help Message-ID: <1990Aug24.052138.3732@d.cs.okstate.edu> Date: 24 Aug 90 05:21:38 GMT Organization: Oklahoma State University, Stillwater Lines: 37 Earlier this month, I posted an article asking why my c compiler dumps core on a certain program. At the time I typed in the program, I didn't get it right. I got some messages saying that the program ran fine. Here is the original program. -------------------------------------------------------------------------------- #include #include main() { double d; d = MAXDOUBLE; printf("%E\n",d); -------------------------------------------------------------------------------- This program does work as expected. However, the next one doesn't. -------------------------------------------------------------------------------- #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. If anyone can tell me how to fix this problem, I would sure appreciate the help. Terry Klarich or