This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Non-constant expression allowed to dimension array declarations


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]