tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] typedef bug in version 0.9.22


From: Julian Brown
Subject: Re: [Tinycc-devel] typedef bug in version 0.9.22
Date: Wed, 5 Jan 2005 13:48:07 +0000
User-agent: Mutt/1.5.6+20040722i

On Wed, Jan 05, 2005 at 02:29:17PM +0100, Enno Rehling wrote:
> In the code below, it looks like tinycc interprets line 3 as int int;
> 
> There was a similar bug (which is fixed now) mentioned in 
> http://lists.gnu.org/archive/html/tinycc-devel/2003-07/msg00004.html
> 
> typedef int a;
> typedef int b;
> b a;
> 
> test.c:3: identifier expected

Whereas gcc says:

address@hidden:~$ cat > f.c
typedef int a;
typedef int b;
b a;
address@hidden:~$ gcc f.c
f.c:3: error: `a' redeclared as different kind of symbol
f.c:1: error: previous declaration of `a'

I think this is expected behaviour, isn't it?

Julian




reply via email to

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