tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] tcc should allow redefinition of enumerator in inner


From: Jay Foad
Subject: Re: [Tinycc-devel] tcc should allow redefinition of enumerator in inner scope
Date: Mon, 31 Mar 2014 21:29:28 +0100

On 31 March 2014 15:58, Thomas Preudhomme <address@hidden> wrote:
> Le 2014-03-31 19:25, Jay Foad a écrit :
>> tcc complains about the redefinition of FOO, but it should allow it
>> because the second definition is in an inner scope:
>>
>> $ cat e.c
>> enum { FOO = 1 };
>> void f() { enum { FOO = 2 }; }
>> $ ./tcc e.c
>> e.c:2: error: redefinition of enumerator 'FOO'
>
>
> Fixed. Thanks for reporting.

Thanks!
Jay.



reply via email to

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