|
From: | Thomas Preudhomme |
Subject: | Re: [Tinycc-devel] tcc should allow redefinition of enumerator in inner scope |
Date: | Mon, 31 Mar 2014 22:58:58 +0800 |
User-agent: | Roundcube Webmail/0.7.2 |
Le 2014-03-31 19:25, Jay Foad a écrit : Hi Jay,
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. Best regards, Thomas
[Prev in Thread] | Current Thread | [Next in Thread] |