PATCH to build_new_1 for c++/5757
Jason Merrill
jason@redhat.com
Sun Mar 17 05:51:00 GMT 2002
Cleanup of the allocated pointer when a constructor throws wasn't working
properly, as we were passing the wrong pointer to op delete. Fixed thus.
Tested i686-pc-linux-gnu. Applied trunk and 3.1 branch. Test in
g++.dg/eh/new1.C.
2002-03-17 Jason Merrill <jason@redhat.com>
PR c++/5757
* init.c (build_new_1): Pass the right pointer to op delete.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 1453 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20020317/c14f04b4/attachment.bin>
More information about the Gcc-patches
mailing list