This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15050] Compiled templated code crashes on delete []
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Apr 2004 18:33:14 -0000
- Subject: [Bug c++/15050] Compiled templated code crashes on delete []
- References: <20040421181232.15050.bracken@ansoft.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-04-21 18:33 -------
This code is invalid. 5.3.5/2 states that the argument to delete[] shall
be a pointer that resulted from a previous array-new expression. You
violate this here.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15050