http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46941
Summary: [trans-mem] new/delete operator are unsafe Product: gcc Version: trans-mem Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: patrick.marl...@gmail.com CC: r...@gcc.gnu.org, al...@gcc.gnu.org Created attachment 22754 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22754 testcase for new delete The new/delete are not considered safe even if GCC managed and replaced to transaction_safe ones. g++ -fgnu-tm -Wall -o newdelete newdelete.cpp newdelete.cpp:38:13: error: unsafe function call ‘void operator delete [](void*)’ within ‘transaction_safe’ function newdelete.cpp:32:19: error: unsafe function call ‘void* operator new [](long unsigned int)’ within ‘transaction_safe’ function newdelete.cpp:26:11: error: unsafe function call ‘void operator delete(void*)’ within ‘transaction_safe’ function newdelete.cpp:20:14: error: unsafe function call ‘void* operator new(long unsigned int)’ within ‘transaction_safe’ function