Re: [C PATCH 4/6] c23: tag compatibility rules for enums

2023-11-07 Thread Joseph Myers
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

[C PATCH 4/6] c23: tag compatibility rules for enums

2023-08-26 Thread Martin Uecker via Gcc-patches
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