https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107952

--- Comment #20 from rguenther at suse dot de <rguenther at suse dot de> ---
On Thu, 26 Jan 2023, qinzhao at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107952
> 
> --- Comment #19 from qinzhao at gcc dot gnu.org ---
> (In reply to rguent...@suse.de from comment #11)
> 
> > > Agreed, usually where these extension should be documented?
> > 
> > They are usually documented in doc/extend.texi
> 
> there is one section on "Zero Length" (Arrays of Length Zero), which mentioned
> this a little bit:
> 
> "A structure containing a flexible array member, or a union containing
> such a structure (possibly recursively), may not be a member of a
> structure or an element of an array.  (However, these uses are
> permitted by GCC as extensions.)"
> 
> We might add one more sub-section inside this section to clarify how GCC
> handles the situation when a structure containing a flexible array member
> becomes a member of another structure. 
> 
> is that a good place to put the documentation?

Yes, I think so.

Reply via email to