Re: [C PATCH 3/6] c23: tag compatibility rules for struct and unions

2023-11-07 Thread Joseph Myers
On Sat, 26 Aug 2023, Martin Uecker via Gcc-patches wrote: > types (convert_for_assignment): Ingore qualifiers. "Ignore". > @@ -1993,6 +1993,24 @@ locate_old_decl (tree decl) > decl, TREE_TYPE (decl)); > } > > +static tree > +previous_tag (tree type) This function needs a

[C PATCH 3/6] c23: tag compatibility rules for struct and unions

2023-08-26 Thread Martin Uecker via Gcc-patches
Implement redeclaration and compatibility rules for structures and unions in C23. gcc/c/: * c-decl.cc (previous_tag): New function. (get_parm_info): Turn off warning for C2X. (start_struct): Allow redefinitons. (finish_struct): Diagnose conflicts. *