[Bug c++/47747] New: [trans-mem] unsafe virtual function not properly displayed

patrick.marlier at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Feb 15 08:03:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47747

           Summary: [trans-mem] unsafe virtual function not properly
                    displayed
           Product: gcc
           Version: trans-mem
            Status: UNCONFIRMED
          Severity: minor
          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 23348
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23348
testcase that shows the error

If a virtual function is not annotated as transaction safe and called in a
transaction safe function, gcc raises an unsafe function error but it doesn't
print correctly the function name.

$ g++ -fgnu-tm -S -O0 unsafe_virtual.i 
unsafe_virtual.i: In constructor ‘Building::Building(InputStream*)’:
unsafe_virtual.i:17:30: error: unsafe function call ‘#‘obj_type_ref’ not
supported by dump_decl#<declaration error>’ within ‘transaction_safe’ function

Attached a testcase.

Patrick Marlier.



More information about the Gcc-bugs mailing list