On Sat, 26 Aug 2023, Martin Uecker via Gcc-patches wrote:
> Allow redefinition of enum types and enumerators.
>
> gcc/c:
> * c-decl.cc (start_num): Allow redefinition.
start_enum not start_num.
> @@ -9606,9 +9624,15 @@ start_enum (location_t loc, struct c_enum_contents
> *the_enum, tree
Allow redefinition of enum types and enumerators.
gcc/c:
* c-decl.cc (start_num): Allow redefinition.
(finish_enum): Diagnose conflicts.
(build_enumerator): Set context.
(diagnose_mismatched_decls): Diagnose conflicting enumerators.
(push_decl): Preserve