https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123820
Bug ID: 123820
Summary: [16 Regression] ICE during GIMPLE pass: slsr since
r16-7003-gc01ad7a27af
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: kostadinshishmanov at protonmail dot com
Target Milestone: ---
Created attachment 63487
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63487&action=edit
reduced testcase
g++ -O3 -flto -shared test2.cpp
test2.cpp: In function ‘EmbedPositionDetectionPattern’:
test2.cpp:18:6: error: type mismatch in binary expression
18 | void EmbedPositionDetectionPattern(Matrix& m) {
| ^
unsigned int
unsigned int
int
slsr_203 = _202 + _309;
test2.cpp:18:6: error: type mismatch in binary expression
unsigned int
unsigned int
int
slsr_204 = _202 + _309;
during GIMPLE pass: slsr
test2.cpp:18:6: internal compiler error: verify_gimple failed
0x55afe5e510a3 diagnostics::context::diagnostic_impl(rich_location*,
diagnostics::metadata const*, diagnostics::option_id, char const*,
__va_list_tag (*) [1], diagnostics::kind)
???:0
0x55afe5e41de9 internal_error(char const*, ...)
???:0
0x55afe4400a0a verify_gimple_in_cfg(function*, bool, bool)
???:0
/usr/libexec/gcc/x86_64-pc-linux-gnu/16/lto1 -quiet -dumpbase
./a.ltrans0.ltrans -mtls-dialect=gnu2 -mtune=generic -march=x86-64
-mtls-dialect=gnu2 -O3 -O3 -fno-openmp -fno-openacc -fPIE -fcf-protection=none
-foffload-options=-l_GCC_stdc++ -foffload-options=-l_GCC_m -fltrans
-foffload-options=-fno-stack-protector @/tmp/ccWuLO2L -o /tmp/ccbxVhlh.s
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
lto-wrapper: fatal error: g++ returned 1 exit status
compilation terminated.
/usr/lib/gcc/x86_64-pc-linux-gnu/16/../../../../x86_64-pc-linux-gnu/bin/ld:
error: lto-wrapper failed
collect2: error: ld returned 1 exit status
Using built-in specs.
COLLECT_GCC=/home/kostadin/gcc-installed/bin/g++
COLLECT_LTO_WRAPPER=/home/kostadin/gcc-installed/bin/../libexec/gcc/x86_64-pc-linux-gnu/16.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc/configure --enable-languages=c,c++ --disable-bootstrap
--prefix=/home/kostadin/gcc-build/../gcc-installed --disable-nls CFLAGS='-O1
-ggdb' CXXFLAGS='-O1 -ggdb' --enable-checking=yes,extra,rtl
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.1 20260123 (experimental) (GCC)