C99 parsing error?

Jamie Lokier jamie@shareable.org
Sun May 18 08:52:00 GMT 2003


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.

-- Jamie



More information about the Gcc mailing list