This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12238] placement delete not called on incomplete object construction if in try-block!
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Oct 2003 17:51:21 -0000
- Subject: [Bug c++/12238] placement delete not called on incomplete object construction if in try-block!
- References: <20030910154242.12238.noways@aliceposta.it>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12238
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
Keywords| |wrong-code
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-19 17:51 -------
Some Quotes from the standard (I do not quite understand it):
15.2?2:
If the object or the array was allocated in a new-expression and the new-expression
contains a new-placement, the storage occupied by the object is deallocated only if an
appropriate placement operator delete is found, as specified in 5.3.4.