This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19351] operator new[] can return heap blocks which are too small
- From: "fw at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 May 2010 11:04:36 -0000
- Subject: [Bug c++/19351] operator new[] can return heap blocks which are too small
- References: <bug-19351-192@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #21 from fw at gcc dot gnu dot org 2010-05-23 11:04 -------
It turns out that the C++ committee did address this in C++0X, after rejected a
previous DR. See section 18.6.2.2 in N3090. This seems to require an ABI
change because the size calculation can no longer happen at the call site
without much code bloat. See
<http://gcc.gnu.org/ml/gcc/2010-05/msg00437.html>.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19351