[Bug c++/46941] New: [trans-mem] new/delete operator are unsafe
patrick.marlier at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Dec 14 15:40:00 GMT 2010
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: unassigned@gcc.gnu.org
ReportedBy: patrick.marlier@gmail.com
CC: rth@gcc.gnu.org, aldyh@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
More information about the Gcc-bugs
mailing list