> On Feb 23, 2023, at 7:56 PM, Joseph Myers wrote:
>
> On Thu, 23 Feb 2023, Qing Zhao via Gcc-patches wrote:
>
>> But the following:
>>
>> struct flex1 { int length1; char data1[]; };
>> struct flex2 { int length2; char data2[]; };
>> union union_flex { struct flex1 f1; struct flex2 f2;
On Thu, 23 Feb 2023, Qing Zhao via Gcc-patches wrote:
> But the following:
>
> struct flex1 { int length1; char data1[]; };
> struct flex2 { int length2; char data2[]; };
> union union_flex { struct flex1 f1; struct flex2 f2; }; /* this is C
> standard. */
>
> struct out_flex { int n;
> On Feb 23, 2023, at 5:04 PM, Qing Zhao via Gcc-patches
> wrote:
>
>
>
>> On Feb 23, 2023, at 4:24 PM, Joseph Myers wrote:
>>
>> On Thu, 23 Feb 2023, Qing Zhao via Gcc-patches wrote:
>>
>>> +@item
>>> +The structure with a C99 flexible array member is the field of
>>> +another union,
> On Feb 23, 2023, at 4:24 PM, Joseph Myers wrote:
>
> On Thu, 23 Feb 2023, Qing Zhao via Gcc-patches wrote:
>
>> +@item
>> +The structure with a C99 flexible array member is the field of
>> +another union, for example:
>> +
>> +@smallexample
>> +struct flex1 @{ int length1; char data1[]; @}
On Thu, 23 Feb 2023, Qing Zhao via Gcc-patches wrote:
> +@item
> +The structure with a C99 flexible array member is the field of
> +another union, for example:
> +
> +@smallexample
> +struct flex1 @{ int length1; char data1[]; @}
> +struct flex2 @{ int length2; char data2[]; @}
> +
> +union
Ping * 2.
Hi, Joseph and Richard,
Could you please review this patch and let me know whether it’s ready for
committing into GCC13?
thanks.
Qing
Begin forwarded message:
From: Qing Zhao mailto:qing.z...@oracle.com>>
Subject: [v3][PATCH 2/2] Update documentation to clarify a GCC ext
Ping…
Qing
> On Feb 10, 2023, at 7:50 PM, Qing Zhao wrote:
>
> on structure with C99 flexible array member being nested in another structure.
>
> This is also fixed PR77650.
>
> " GCC extension accepts a structure containing a ISO C99 "flexible array
> member", or a union containing such a
on structure with C99 flexible array member being nested in another structure.
This is also fixed PR77650.
" GCC extension accepts a structure containing a ISO C99 "flexible array
member", or a union containing such a structure (possibly recursively)
to be a member of a structure.
There are