c/5106: Internal compiler error when passing structure

Martin v. Loewis martin@v.loewis.de
Sat Dec 15 09:53:00 GMT 2001


> 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



More information about the Gcc-bugs mailing list