https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117524
Bug ID: 117524
Summary: Segmentation fault with -fipa-cp-clone
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Created attachment 59574
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59574&action=edit
C source code
For the attached C code with -O2 -fipa-cp-clone
foundBugs $ /home/dcb40b/gcc/results.20241105.asan.ubsan/bin/gcc -O2 -w
-fipa-cp-clone -Werror=uninitialized -Werror=aggressive-loop-optimizations
-Werror=sequence-point bug1064.c && ./a.out
checksum = 62CA1B9B
foundBugs $ /home/dcb40b/gcc/results.20241107.asan.ubsan/bin/gcc -O2 -w
-fipa-cp-clone -Werror=uninitialized -Werror=aggressive-loop-optimizations
-Werror=sequence-point bug1064.c && ./a.out
Segmentation fault (core dumped)
foundBugs $ /home/dcb40b/gcc/results.20241105.asan.ubsan/bin/gcc -v 2>&1 | grep
exp
gcc version 15.0.0 20241105 (experimental) (e152a734337a06ed)
foundBugs $ /home/dcb40b/gcc/results.20241107.asan.ubsan/bin/gcc -v 2>&1 | grep
exp
gcc version 15.0.0 20241107 (experimental) (4473cf8409f4db19)
I have a reduction running.