public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46941] New: [trans-mem] new/delete operator are unsafe
@ 2010-12-14 15:40 patrick.marlier at gmail dot com
  2010-12-22 10:12 ` [Bug c++/46941] " patrick.marlier at gmail dot com
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: patrick.marlier at gmail dot com @ 2010-12-14 15:40 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2011-02-04 20:30 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-14 15:40 [Bug c++/46941] New: [trans-mem] new/delete operator are unsafe patrick.marlier at gmail dot com
2010-12-22 10:12 ` [Bug c++/46941] " patrick.marlier at gmail dot com
2010-12-22 13:51 ` aldyh at gcc dot gnu.org
2010-12-23 15:45 ` patrick.marlier at gmail dot com
2010-12-23 16:19 ` aldyh at gcc dot gnu.org
2010-12-23 16:28 ` patrick.marlier at gmail dot com
2011-01-12 19:43 ` aldyh at gcc dot gnu.org
2011-02-02 14:17 ` patrick.marlier at gmail dot com
2011-02-03 16:24 ` aldyh at gcc dot gnu.org
2011-02-03 16:41 ` aldyh at gcc dot gnu.org
2011-02-04 13:54 ` patrick.marlier at gmail dot com
2011-02-04 15:31 ` aldyh at gcc dot gnu.org
2011-02-04 18:40 ` aldyh at gcc dot gnu.org
2011-02-04 20:13 ` patrick.marlier at gmail dot com
2011-02-04 20:16 ` aldyh at gcc dot gnu.org
2011-02-04 20:30 ` patrick.marlier at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).