On 8/5/19 3:00 AM, Richard Sandiford wrote:
> For:
>
> enum a { A };
> enum a { B };
>
> we emit a bogus error about nested definitions before the real error:
>
> foo.c:2:6: error: nested redefinition of ‘enum a’
> 2 | enum a { B };
> | ^
> foo.c:2:6: error: redeclaration
For:
enum a { A };
enum a { B };
we emit a bogus error about nested definitions before the real error:
foo.c:2:6: error: nested redefinition of ‘enum a’
2 | enum a { B };
| ^
foo.c:2:6: error: redeclaration of ‘enum a’
foo.c:1:6: note: originally defined here
1 | enum