[Bug c++/34158] Template delete doesn't call if exception thrown in constructor

2008-05-23 Thread steve_cheng at scotiacapital dot com
--- Comment #5 from steve_cheng at scotiacapital dot com 2008-05-23 13:44 --- Created an attachment (id=15677) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15677&action=view) -save-temps when compiling C++ testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34158

[Bug c++/34158] Template delete doesn't call if exception thrown in constructor

2008-05-23 Thread steve_cheng at scotiacapital dot com
--- Comment #4 from steve_cheng at scotiacapital dot com 2008-05-23 13:43 --- Created an attachment (id=15676) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15676&action=view) C++ test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34158

[Bug c++/34158] Template delete doesn't call if exception thrown in constructor

2008-05-23 Thread steve_cheng at scotiacapital dot com
--- Comment #3 from steve_cheng at scotiacapital dot com 2008-05-23 13:41 --- I have hit the same bug as the original reporter. Attached is a simplified test case. Run with: $ g++ -v -save-temps -o testPlacementDelete testPlacementDelete.C $ ./testPlacementDelete placement new