https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118207
Bug ID: 118207 Summary: [15 regression] ICE when building dosbox-staging-0.82.0 (in fold_convert_loc, at fold-const.cc:2779) Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org Target Milestone: --- Created attachment 59980 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59980&action=edit imfc.cpp.ii.xz ``` $ g++ -c ./src/hardware/libhardware.a.p/imfc.cpp.ii -std=c++20 -O3 during GIMPLE pass: fre ../dosbox-staging-0.82.0/src/hardware/imfc.cpp: In member function ‘void MusicFeatureCard::initConfigurationMemory()’: ../dosbox-staging-0.82.0/src/hardware/imfc.cpp:5833:14: internal compiler error: in fold_convert_loc, at fold-const.cc:2779 5833 | void initConfigurationMemory() | ^~~~~~~~~~~~~~~~~~~~~~~ 0x5ab6729f940c internal_error(char const*, ...) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic-global-context.cc:517 0x5ab6729f95a7 fancy_abort(char const*, int, char const*) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic.cc:1722 0x5ab670e925ba fold_convert_loc(unsigned long, tree_node*, tree_node*) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/fold-const.cc:2779 0x5ab67100c03e fold_stmt_1 /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/gimple-fold.cc:6714 0x5ab672e9ef55 fold_stmt(gimple_stmt_iterator*, tree_node* (*)(tree_node*), bitmap_head*) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/gimple-fold.cc:6815 0x5ab672e9ef55 eliminate_dom_walker::eliminate_stmt(basic_block_def*, gimple_stmt_iterator*) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/tree-ssa-sccvn.cc:7240 0x5ab672e68ac5 process_bb /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/tree-ssa-sccvn.cc:8322 0x5ab672e5ce00 do_rpo_vn_1 /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/tree-ssa-sccvn.cc:8774 0x5ab672e96d92 execute /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/tree-ssa-sccvn.cc:8935 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. ``` --- ``` Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/15/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/15 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15 --disable-silent-rules --disable-dependency-tracking --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/15/python --enable-objc-gc --enable-languages=c,c++,d,go,objc,obj-c++,fortran,ada,m2,rust --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=yes,extra,rtl --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo Hardened 15.0.9999 p, commit 01d33f6be28d09edb2e9aaa66feab7a1b359aa60' --with-gcc-major-version-only --enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point --enable-targets=all --enable-offload-defaulted --enable-offload-targets=nvptx-none --enable-libgomp --disable-libssp --enable-libada --disable-cet --disable-systemtap --enable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --with-isl --disable-isl-version-check --enable-default-pie --enable-host-pie --enable-host-bind-now --enable-default-ssp --disable-fixincludes --with-build-config='bootstrap-O3 bootstrap-lto' Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20241222 (experimental) cf59bf844037ae952f5058d0fd49e1f4f0cf907e (Gentoo Hardened 15.0.9999 p, commit 01d33f6be28d09edb2e9aaa66feab7a1b359aa60) ```