https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69141
Bug ID: 69141
Summary: [6 Regression] -O2 -fdump-tree-fre ICEs
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
While looking into PR66223, I found this.
Take this small undefined C++ code:
struct B {
B* self;
B();
virtual void f() = 0;
};
B::B() : self( this ) { self->f(); }
With -O2 -fdump-tree-fre we get the following ICE:
tt99.cc: In constructor ‘B::B()’:
tt99.cc:6:36: internal compiler error: Segmentation fault
B::B() : self( this ) { self->f(); }
^
0xcd2fc7 crash_signal
/home/apinski/src/local/gcc/gcc/toplev.c:334
0x90aef8 symtab_node::name() const
/home/apinski/src/local/gcc/gcc/symtab.c:516
0xe6658b eliminate_dom_walker::before_dom_children(basic_block_def*)
/home/apinski/src/local/gcc/gcc/tree-ssa-pre.c:4328
0x11c8b6b dom_walker::walk(basic_block_def*)
/home/apinski/src/local/gcc/gcc/domwalk.c:265
0xe64563 eliminate
/home/apinski/src/local/gcc/gcc/tree-ssa-pre.c:4464
0xe648af execute
/home/apinski/src/local/gcc/gcc/tree-ssa-pre.c:4900
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.