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: unassig...@gcc.gnu.org
        ReportedBy: f...@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).

Reply via email to