https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122497
Bug ID: 122497
Summary: ice during GIMPLE pass: sccp
Product: gcc
Version: 16.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 62675
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62675&action=edit
C source code
The attached C code, from csmith, does this with recent gcc trunk:
foundBugs $ ../results/bin/gcc -c -w bug1132.c
foundBugs $ ../results/bin/gcc -c -w -O1 bug1132.c
during GIMPLE pass: sccp
runData/keep/in.441.c: In function ‘main’:
runData/keep/in.441.c:3237:5: internal compiler error: Segmentation fault
0x1f96b47 internal_error
/home/dcb42/gcc/working/gcc/../../trunk/gcc/diagnostic-global-context.cc:787
0xc6bb79 ???
/home/dcb42/gcc/working/gcc/../../trunk/gcc/toplev.cc:323
0x829752 gimple_phi_arg_edge
../../trunk/gcc/gimple.h:4788
foundBugs $ ../results/bin/gcc -v
Using built-in specs.
COLLECT_GCC=../results/bin/gcc
COLLECT_LTO_WRAPPER=/home/dcb42/gcc/results.20251030.asan.ubsan/libexec/gcc/x86_64-pc-linux-gnu/16.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../trunk/configure
--prefix=/home/dcb42/gcc/results.20251030.asan.ubsan --disable-bootstrap
--disable-doc --disable-multilib --with-build-config='bootstrap-asan
bootstrap-ubsan' --with-pkgversion=3073ae7fa70b29a4 --with-isl
--enable-checking=df,extra,fold,rtl,yes --enable-languages=c,c++,fortran
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.0 20251030 (experimental) (3073ae7fa70b29a4)
foundBugs $
I will have a go at a reduction.