> On Feb 23, 2023, at 7:56 PM, Joseph Myers <jos...@codesourcery.com> 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; }; /* this is C >> standard. */ >> >> struct out_flex { int n; union union_flex flex_data1;}; /* this is GNU >> extension. */ >> >> Should add this item into the documentation? > > "union that contains a structure with a flexible array member" is just > like "structure with a flexible array member". I suppose the > documentation should try to make that clear, without repeating it too much > for every separate case. Okay, thanks. Qing > > -- > Joseph S. Myers > jos...@codesourcery.com
- [v3][PATCH 1/2] Handle component_ref to a struct... Qing Zhao via Gcc-patches
- Re: [v3][PATCH 1/2] Handle component_ref to... Qing Zhao via Gcc-patches
- Fwd: [v3][PATCH 1/2] Handle component_ref t... Qing Zhao via Gcc-patches
- [v3][PATCH 2/2] Update documentation to clarify ... Qing Zhao via Gcc-patches
- Re: [v3][PATCH 2/2] Update documentation to... Qing Zhao via Gcc-patches
- Fwd: [v3][PATCH 2/2] Update documentation t... Qing Zhao via Gcc-patches
- Re: Fwd: [v3][PATCH 2/2] Update documen... Joseph Myers
- Re: [v3][PATCH 2/2] Update document... Qing Zhao via Gcc-patches
- Re: [v3][PATCH 2/2] Update docu... Qing Zhao via Gcc-patches
- Re: [v3][PATCH 2/2] Update... Joseph Myers
- Re: [v3][PATCH 2/2] Up... Qing Zhao via Gcc-patches
- Re: [v3][PATCH 0/2] Handle component_ref to a st... Qing Zhao via Gcc-patches