This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
C99 parsing error?
- From: Jamie Lokier <jamie at shareable dot org>
- To: gcc at gcc dot gnu dot org
- Date: Sun, 18 May 2003 09:27:23 +0100
- Subject: C99 parsing error?
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