This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: c: Fix PR 3467
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 26 Jan 2002 20:09:39 +0000 (GMT)
- Subject: 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