tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Problem with struct initialization.


From: fabrice . bellard
Subject: Re: [Tinycc-devel] Problem with struct initialization.
Date: Thu, 12 Dec 2002 10:51:59 +0100 (MET)
User-agent: IMP/PHP IMAP webmail program 2.2.6

Quoting Karel Gardas <address@hidden>:

> I have following code, which is perfectly compilable by gcc, but which
> fails with tcc:
> 
> 
> struct __X { struct __X *next;};
> 
> static struct __X __link;
> static struct __X __link = {((struct __X *)0),};
> 
> tcc error is:
> 
> tcc-test3.c:5: redefinition of '__link'
> 
> Is it a known bug?

It was not known. I was just unaware that it was perfectly legal to redefine
several times the same variable in a translation unit ! It will be fixed in next
release.

Fabrice.



reply via email to

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