This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]