[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] tcc should allow redefinition of enumerator in inner scop
From: |
Jay Foad |
Subject: |
[Tinycc-devel] tcc should allow redefinition of enumerator in inner scope |
Date: |
Mon, 31 Mar 2014 12:25:13 +0100 |
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'
Jay.
- [Tinycc-devel] tcc should allow redefinition of enumerator in inner scope,
Jay Foad <=