Xref: utzoo comp.unix.questions:6904 comp.lang.c:10002 Path: utzoo!mnetor!uunet!mcvax!botter!ark!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.unix.questions,comp.lang.c Subject: Re: Bug in cpp (4.1BSD, 2.9BSD) Message-ID: <1247@ark.cs.vu.nl> Date: 6 May 88 22:32:11 GMT References: <1241@ark.cs.vu.nl> <10699@steinmetz.ge.com> Reply-To: maart@cs.vu.nl (Maarten Litmaath) Organization: VU Informatica, Amsterdam Lines: 22 In article <10699@steinmetz.ge.com> davidsen@crdos1.UUCP (bill davidsen) writes: \In article <1241@ark.cs.vu.nl> maart@cs.vu.nl (Maarten Litmaath) writes: \| We noticed that the following file will pass cpp \| without any error message: \| \~ #ifdef a --------+ \~ #ifdef b -----+ | \~ #ifdef a --+ | | \~ #endif ----+ | | \~ #endif -------+ | \~ #else -----------+ \ \?? looks okay to me. Mind you it a stupid way to do something, has tests \which are not needed, etc, but I see nothing illegal about it. \... That's not what we were pointing at! There's a missing "#endif", ain't that right? Regards. -- South-Africa: |Maarten Litmaath @ Free U Amsterdam: revival of the Third Reich |maart@cs.vu.nl, mcvax!botter!ark!maart