This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Non-constant expression allowed to dimension array declarations
- To: <rittle at labs dot mot dot com>
- Subject: Re: Non-constant expression allowed to dimension array declarations
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Thu, 28 Jun 2001 23:29:21 +0100 (BST)
- cc: <mrs at windriver dot com>, <gcc at gcc dot gnu dot org>, <rodney dot leadbeater at convergys dot com>
On Thu, 28 Jun 2001, Loren James Rittle wrote:
> It is somewhat ironic to note that gcc 3.0 reports the following when
> the exact example from the C99 standard is compiled with -std\=c99 -pedantic:
>
> l3.c: In function `tdef':
> l3.c:3: warning: ISO C89 forbids variable-size array `A'
This is entirely deliberate, since none of GCC's implementation of VLAs
has been checked against C99 or fixed to follow C99, so adjusting when the
pedwarn is given without fixing the implementation would give a thoroughly
misleading impression.
--
Joseph S. Myers
jsm28@cam.ac.uk