C99 parsing error?

Neil Booth neil@daikokuya.co.uk
Sun May 18 10:27:00 GMT 2003


Jamie Lokier wrote:-

> Is it really not permitted to write this in C99?:
> 
> 	while (--length >= 0)
> 	  {
> 	  loop:
> 	    int byte = *data++;
> 
> GCC 3.2.2 reports: parse error before "int"
> If I replace "loop:" with "loop:;", it's fine.
> Perhaps GCC is correct to reject this, but it is surprising.

No, your code is fine.

Neil.



More information about the Gcc mailing list