This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53356] New: ICE in verify_gimple_stmt, at tree-cfg.c:4258
- From: "foom at fuhm dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 15 May 2012 04:24:42 +0000
- Subject: [Bug c++/53356] New: ICE in verify_gimple_stmt, at tree-cfg.c:4258
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53356
Bug #: 53356
Summary: ICE in verify_gimple_stmt, at tree-cfg.c:4258
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: foom@fuhm.net
On the code:
test.cpp:
===============
class A {};
struct B {
operator const A &() const;
};
A* cause_ICE() {
return new A(B());
}
===============
Running: g++ -std=c++0x -c test.cpp
With gcc version: g++ (Debian 4.7.0-8) 4.7.0
(which says it's built from r187339 on the gcc 4.7 branch).
On architecture: x86-64
Crashes with error message:
test.cpp: In function âFoo* cause_ICE()â:
test.cpp:7:6: internal compiler error: in verify_gimple_stmt, at
tree-cfg.c:4258
Removing -std=c++0x makes it not crash. 4.6.3 does not crash.
This looks similar to bug 49996, (but obviously different, because that one is
still fixed).