[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] confusion between typedef and label

From: Jay Foad
Subject: [Tinycc-devel] confusion between typedef and label
Date: Tue, 17 May 2011 15:28:27 +0100

I get:

$ cat t.c
typedef int x;
int f(void) { x: return 0; }
$ tcc t.c
t.c:2: error: identifier expected

I think tcc is wrong to report an error here, because typedefs and
labels are in separate name spaces (see C99 6.2.3 Name spaces of

I'm using tcc built from the git repository a few minutes ago, on
Ubuntu 11.04 x86_64.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]