https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91270
Bug ID: 91270
Summary: ice during GIMPLE pass: dce
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
For this C++ code:
class a {
public:
~a();
};
long b;
void c() {
a *d = new a[b];
delete[] d;
}
compiled with flag -O2 on recent gcc trunk, does this:
$ /home/dcb/gcc/results/bin/gcc -c -O2 bug538.cc
during GIMPLE pass: cddce
bug538.cc: In function ‘void c()’:
bug538.cc:9:1: internal compiler error: Segmentation fault
9 | }
| ^
0xfbaf6f crash_signal
../../trunk/gcc/toplev.c:326
0x11c9455 verify_use
../../trunk/gcc/tree-ssa.c:884
0x11cd940 verify_ssa(bool, bool)
../../trunk/gcc/tree-ssa.c:1161
0xee3b05 execute_function_todo
../../trunk/gcc/passes.c:1970
The problem seems to exist between revisions 273750
and 273800.