This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47340] New: [trans-mem] problem with declaration of new operator
- From: "patrick.marlier at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 18 Jan 2011 10:46:31 +0000
- Subject: [Bug c++/47340] New: [trans-mem] problem with declaration of new operator
- Auto-submitted: auto-generated
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.