-- foo.cc -----------------------------
#include <string>
struct Foo { void f(); };
struct Bar { Foo& getFoo(); };
struct Qux {
~Qux();
Bar bar;
std::string s1, s2, s3, s4;
};
Qux::~Qux() { bar.getFoo().f(); }
---------------------------------------
> g++ -O2 foo.cc
foo.cc: In destructor 'Qux::~Qux()':
foo.cc:9: internal compiler error: in coalesce_abnormal_edges, at
tree-outof-ssa.c:621
Only happens with -O2 or -O3. I tested with SVN version of 2006/01/18.
--
Summary: ICE in coalesce_abnormal_edges, at tree-outof-ssa.c:621
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: wouter dot vermaelen at pi dot be
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25857