This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/5106: Internal compiler error when passing structure
- From: "Martin v. Loewis" <martin at v dot loewis dot de>
- To: jsm28 at cam dot ac dot uk
- Cc: wellner at fnal dot gov, gcc-bugs at gcc dot gnu dot org, ron at fnal dot gov, rodrigc at gcc dot gnu dot org
- Date: Sat, 15 Dec 2001 18:22:23 +0100
- Subject: Re: c/5106: Internal compiler error when passing structure
- References: <Pine.LNX.4.33.0112151118450.16880-100000@kern.srcf.societies.cam.ac.uk>
> On Sat, 15 Dec 2001, Martin von [ISO-8859-1] Löwis wrote:
>
> > I don't think this is a GCC extension. Variable Length Arrays are not
> > allowed as struct members.
>
> As a GNU extension beyond C99, they are.
Where is that documented? Are there any restrictions, like "only
available in C", "if used in C++, only allowed in POD structs"?
What is the rationale for having that extension?
Regards,
Martin