[Bug c++/47340] New: [trans-mem] problem with declaration of new operator

patrick.marlier at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Jan 18 11:33:00 GMT 2011


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

           Summary: [trans-mem] problem with declaration of new operator
           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


It seems that there is a problem with the declaration of new operator and
related to PR46941.
Attached the testcase.

$ g++ -I . -save-temps -fgnu-tm -c -o incomplete3.o incomplete3.cpp
...
incomplete3.cpp:31:67: error: call to function ‘void* operator new(long
unsigned int)’ which throws incomplete type ‘struct std::bad_alloc’

Patrick Marlier.



More information about the Gcc-bugs mailing list