Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!lll-crg!lll-lcc!unisoft!fnf From: fnf@unisoft.UUCP (Fred Fish) Newsgroups: net.unix Subject: Re: Possible C Compiler Bug? Message-ID: <76@unisoft.UUCP> Date: Mon, 9-Jun-86 17:00:08 EDT Article-I.D.: unisoft.76 Posted: Mon Jun 9 17:00:08 1986 Date-Received: Wed, 11-Jun-86 00:50:54 EDT References: <6200004@wvlpdp> Reply-To: fnf@unisoft.UUCP (Fred Fish) Organization: UniSoft Systems; Berkeley, CA Lines: 33 In article <6200004@wvlpdp> john@wvlpdp writes: >This compiles: [deleted] >here: > ; >} > >This will not: [deleted] >here: >} > Is this a compiler bug? No, though some broken compilers may accept it. From K&R page 204: Any *statement* may be preceded by label prefixes.. The null statement has the form ; A null statement is useful to carry a label just before the } of a compound statement... Bottom line is that you must "attach" the label to a statement, even if only the null statement. -Fred =========================================================================== Fred Fish UniSoft Systems Inc, 739 Allston Way, Berkeley, CA 94710 USA {ucbvax,lll-lcc}!unisoft!fnf (415) 644 1230 TWX 11 910 366-2145 ===========================================================================