This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: c: Fix PR 3467


On Sat, 26 Jan 2002, Neil Booth wrote:

> This is an obvious fix for PR 3467.  OK to commit?

No.  It's not the correct fix.  The warning (without checking for C99
mode) is deliberate until there's proper C99 VLA constraint checking and
semantics have been checked carefully against C99.  The correct fix
involves a full implementation of the C99 semantics and constraints for
VLAs.  Until then what we have is a GNU extension conflicting with C99
syntax and it's misleading to pretend we have C99 VLAs and not warn about
the use of the extension.

-- 
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]