This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21603] C++ front-end accepts "new" with VLAs
- From: "jason at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 May 2005 20:28:49 -0000
- Subject: [Bug c++/21603] C++ front-end accepts "new" with VLAs
- References: <20050516021648.21603.mmitchel@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jason at redhat dot com 2005-05-16 20:28 -------
Subject: Re: New: C++ front-end accepts "new" with VLAs
On 16 May 2005 02:16:51 -0000, "mmitchel at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> wrote:
> Steve Adamczyk has indicated that he feels that permitting dynamic allocation of
> VLAs is a mistake, in that, for example, you can't easily use the pointer
> outside the scope of the containing function, unless you somehow also pass/save
> the bounds.
Makes sense to me.
Jason
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21603