This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Variable-sized types vs. templates
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: Richard dot Earnshaw at arm dot com, Neil Booth <neil at daikokuya dot co dot uk>, nathan at cs dot bris dot ac dot uk, Mark Mitchell <mark at codesourcery dot com>, gcc at gcc dot gnu dot org, nathan at codesourcery dot com, gdr at codesourcery dot com
- Date: Tue, 08 Oct 2002 15:29:19 +0100
- Subject: Re: Variable-sized types vs. templates
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> On Tue, 08 Oct 2002 14:03:36 +0100, Richard Earnshaw <rearnsha@arm.com> wrote:
>
> > Except, of course, that c99 says that only an "ordinary indentifier" may
> > be a VLA.
>
> I don't see that. It says that only an ordinary identifier can have a VM
> type, but seems to specifically avoid saying the same thing about VLAs.
>
> Jason
But 6.7.5 para 3 says that a VLA has VM type. And in example 4 in 6.7.5.2
para 10 shows that z[n] is not valid as a struct member.
R.