SDCC : TD- 4.5.0 #15242 (MINGW32)
typedef enum {a, b, c, d} Foo_t;
void main(void)
{
for (Foo_t i = a; i < d; i++) // error 177: previously defined here
{
// .....
}
int x = 0;
for (Foo_t i = a; i < d; i++) // error 0: Duplicate symbol 'i', symbol IGNORED
{ // error 20: Undefined identifier 'i'
x++;
}
}
I can reproduce this issue using SDCC 4.6.0 RC1 on Debian GNU/Linux.