Re: [C] Fix bogus nested enum error message

2019-08-08 Thread Jeff Law
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

[C] Fix bogus nested enum error message

2019-08-05 Thread Richard Sandiford
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