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: Ron Rechenmacher <ron at fnal dot gov>
- To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Cc: "Martin v. Loewis" <martin at v dot loewis dot de>, 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: Mon, 17 Dec 2001 13:15:37 -0600
- Subject: Re: c/5106: Internal compiler error when passing structure
- Reply-to: ron at fnal dot gov
On Sat, 15 Dec 2001 18:12:35 +0000 (GMT), jsm28@cam.ac.uk wrote:
> On Sat, 15 Dec 2001, Martin v. Loewis 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
>
> In http://gcc.gnu.org/ml/gcc-bugs/2001-06/msg00169.html noting that it
> isn't documented.
>
> > available in C", "if used in C++, only allowed in POD structs"?
> >
> > What is the rationale for having that extension?
>
> That it has already existed. Do people want it to die when implementing
> C99 semantics for VLAs?
I have been using this extension for several years.
Currently, I have a Redhat 6.2 system with egcs-2.91.66 install and it works
with that. I've also installed gcc 2.95.3 and it works with that version also.
Both when using the -Wall -ansi options (but not -pedantic).
Please, allow it to continue to work.
Thanks,
Ron
>
> --
> Joseph S. Myers
> jsm28@cam.ac.uk