[Bug c++/21603] C++ front-end accepts "new" with VLAs

jason at redhat dot com gcc-bugzilla@gcc.gnu.org
Mon May 16 20:28:00 GMT 2005


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



More information about the Gcc-bugs mailing list