https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53863
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2021-07-16 --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Current trunk says this: 53863.C:2:12: error: 'a' conflicts with a previous declaration 2 | enum { a = 1 }; | ^ 53863.C:1:8: note: previous declaration '<unnamed enum> a' 1 | enum { a = 1 }; | ^ The caret on the error seems wrong, as it points to the initializer not the enumerator. The note is correct.