Bug in cpp (4.1BSD, 2.9BSD)

Maarten Litmaath maart at cs.vu.nl
Sat May 7 08:32:11 AEST 1988


In article <10699 at steinmetz.ge.com> davidsen at crdos1.UUCP (bill davidsen) writes:
\In article <1241 at ark.cs.vu.nl> maart at 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 at cs.vu.nl, mcvax!botter!ark!maart



More information about the Comp.unix.questions mailing list