Re: [C PATCH 6/6] c23: construct composite type for tagged types

2023-11-07 Thread Joseph Myers
On Sat, 26 Aug 2023, Martin Uecker via Gcc-patches wrote: > @@ -501,9 +510,61 @@ composite_type (tree t1, tree t2) > return build_type_attribute_variant (t1, attributes); >} > > -case ENUMERAL_TYPE: > case RECORD_TYPE: > case UNION_TYPE: > + if (flag_isoc2x &&

[C PATCH 6/6] c23: construct composite type for tagged types

2023-08-26 Thread Martin Uecker via Gcc-patches
Support for constructing composite type for structs and unions in C23. gcc/c: * c-typeck.cc (composite_type_internal): Adapted from composite_type to support structs and unions. (composite_type): New wrapper function. (build_conditional_operator): Return