Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site 3comvax.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!houxm!vax135!cornell!uw-beaver!tektronix!hplabs!oliveb!3comvax!mykes From: mykes@3comvax.UUCP (Mike Schwartz) Newsgroups: net.micro.amiga Subject: Re: Lattice C Problem Message-ID: <319@3comvax.UUCP> Date: Thu, 2-Jan-86 15:05:00 EST Article-I.D.: 3comvax.319 Posted: Thu Jan 2 15:05:00 1986 Date-Received: Sat, 4-Jan-86 05:00:32 EST References: <2440@ukma.UUCP> Reply-To: mykes@3comvax.UUCP (Mike Schwartz) Organization: 3Com Corp; Mountain View, CA Lines: 25 Keywords: C In article <2440@ukma.UUCP> ken@ukma.UUCP (Ken Kubota) writes: >The Lattice C compiler (version 1.0) for the Amiga seems to have >trouble handling complicated statements. As an extreme case, this >short rather questionable code causes a 'guru meditation' on a 512K >machine with 2 floppies under AmigaDOS 1.1. > >main(){ >int a,b,c,d,e,f,g,h,i,j; >if(a<0)if(b<0)if(c<0)if(d<0)if(e<0)if(f<0)if(g<0)if(h<0)if(i<0)if(j<0)a=0; >} > >cbosgd!ukma!ken >ken@ukma.bitnet Lattice apparently recursively parses your if statement until it overflows the stack and dies. I had a similar problem with: if (...) else if (...) else if (...) ... else (a whole bunch of them). mike schwartz