https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110887
Bug ID: 110887
Summary: ICE: gcc: internal compiler error: Segmentation fault
signal terminated program cc1 since
r14-2925-g2bae476b511
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: shaohua.li at inf dot ethz.ch
Target Milestone: ---
gcc at -O2 crashes on the test case.
Bisected to r14-2925-g2bae476b511
$ cat a.c
int printf(const char *, ...);
short a;
char b;
long c;
int d;
int main() {
int e = 0;
for (; e <= 9; e++) {
d &= 1;
if (a)
c = d ^= 1;
b ^= --d;
}
printf("%d\n", b);
}
$
$ gcc-2bae476b511dc441bf61da8a49cca655575e7dd6 -O2 a.c
gcc: internal compiler error: Segmentation fault signal terminated program cc1
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.
$