[Bug middle-end/84233] New: [7/8 Regression] ICE (segfault) in gimple_assign_rhs_code
doko at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 6 12:57:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84233
Bug ID: 84233
Summary: [7/8 Regression] ICE (segfault) in
gimple_assign_rhs_code
Product: gcc
Version: 7.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: doko at gcc dot gnu.org
Target Milestone: ---
seen building the tbb package with the gcc-7-branch (7.3.0 release) and the
trunk (r257194), worked around with -O0
$ cat test_eh_algorithms.ii
void a(const char *, int, const char *, const char *);
template <typename b> void c(b);
struct d {
long e;
template <typename> union f;
template <typename h> union f<h *> {
f(h *i) : j(i) {}
h *j;
long bits;
};
static int k(volatile long &i) { return *(int *)f<volatile long *>(&i).bits;
}
typedef long g;
operator g() volatile {
int l = k(e);
c(l);
}
};
struct : d {
} m, n;
bool o;
void p() { (o ? m : n) ? (void)0 : a("", 5, "", ""); }
$ gcc-8 -c -O1 test_eh_algorithms.ii
during GIMPLE pass: forwprop
../../src/test/test_eh_algorithms.cpp: In function 'void TestParallelLoopAux()
[with ParForBody = SimpleParForBody; Partitioner = const
tbb::simple_partitioner]':
../../src/test/test_eh_algorithms.cpp:162:6: internal compiler error:
Segmentation fault
0xb35e0f crash_signal
../../src/gcc/toplev.c:325
0xc2f4cf gimple_assign_rhs_code
../../src/gcc/gimple.h:2685
0xc2f4cf gimple_assign_rhs_code
../../src/gcc/gimple.h:2694
0xc2f4cf execute
../../src/gcc/tree-ssa-forwprop.c:2262
Please submit a full bug report,
More information about the Gcc-bugs
mailing list