Possible C Compiler Bug?

Andrew Koenig ark at alice.UucP
Tue Jun 10 01:31:11 AEST 1986


> This compiles:

> main()
> {
>	A lot of code here;
>	goto here;
>		
>	More code here;
>
> here:
> 	;
> }
>
> This will not:
> main()
> {
>	A lot of code here;
>	goto here;
>		
>	More code here;
>
> here:
> }
>	Is this a compiler bug?

No it isn't.  A label must come before a statement.  } isn't a statement.



More information about the Comp.lang.c mailing list