This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51137] New: [C++0x] [4.7 Regression] ICE with -std=c++0x
- From: "reichelt at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 15 Nov 2011 06:50:59 +0000
- Subject: [Bug c++/51137] New: [C++0x] [4.7 Regression] ICE with -std=c++0x
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51137
Bug #: 51137
Summary: [C++0x] [4.7 Regression] ICE with -std=c++0x
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: reichelt@gcc.gnu.org
Compiling the following valid code snippet with "-std=c++0x" triggers a
segfault on trunk (it works without the flag):
========================
struct A {};
template<int> struct B : virtual A
{
void foo()
{
(new A(*this))->A::~A();
}
};
========================
bug.cc: In member function 'void B<<anonymous> >::foo()':
bug.cc:7:28: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]