https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113757
Bug ID: 113757 Summary: [14 regression] ICE when building legion-23.03.0 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org Target Milestone: --- Created attachment 57319 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57319&action=edit legion_tasks.cc.ii.xz Originally reported downstream in Gentoo at https://bugs.gentoo.org/923797 by Toralf Förster. ``` $ /var/tmp/portage/sys-cluster/legion-23.03.0/temp/clang-wrappers/x86_64-pc-linux-gnu-g++ -DLegionRuntime_EXPORTS -I/var/tmp/portage/sys-cluster/legion-23.03.0/work/legion-legion-23.03.0/runtime -I/var/tmp/portage/sys-cluster/legion-23.03.0/work/legion-legion-23.03.0_build/runtime -O2 -march=znver2 -march=native -O2 -g -fPIC -fdiagnostics-color=always -MD -MT runtime/CMakeFiles/LegionRuntime.dir/legion/legion_tasks.cc.o -MF runtime/CMakeFiles/LegionRuntime.dir/legion/legion_tasks.cc.o.d -o runtime/CMakeFiles/LegionRuntime.dir/legion/legion_tasks.cc.o -c /var/tmp/portage/sys-cluster/legion-23.03.0/work/legion-legion-23.03.0/runtime/legion/legion_tasks.cc during IPA pass: inline /var/tmp/portage/sys-cluster/legion-23.03.0/work/legion-legion-23.03.0/runtime/legion/legion_tasks.cc: In member function ‘virtual const Legion::Internal::VersionInfo& Legion::Internal::PointTask::get_version_info(unsigned int) const’: /var/tmp/portage/sys-cluster/legion-23.03.0/work/legion-legion-23.03.0/runtime/legion/legion_tasks.cc:7033:24: internal compiler error: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in useless_type_conversion_p, at gimple-expr.cc:85 7033 | const VersionInfo& PointTask::get_version_info(unsigned idx) const | ^~~~~~~~~ 0x5611c9270657 tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*) /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/tree.cc:9002 0x5611c81c7150 tree_class_check(tree_node*, tree_code_class, char const*, int, char const*) /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/tree.h:3767 0x5611c81c7150 useless_type_conversion_p(tree_node*, tree_node*) /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/gimple-expr.cc:85 0x5611c9dc377f may_propagate_copy(tree_node*, tree_node*, bool) /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/tree-ssa-propagate.cc:1068 0x5611c9ceafbc gimple_merge_blocks /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/tree-cfg.cc:2130 0x5611c9ce61dd merge_blocks(basic_block_def*, basic_block_def*) /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cfghooks.cc:820 0x5611c9c46209 cleanup_tree_cfg_bb /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/tree-cfgcleanup.cc:791 0x5611c9c46209 cleanup_tree_cfg_noloop /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/tree-cfgcleanup.cc:1141 0x5611c9c46209 cleanup_tree_cfg(unsigned int) /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/tree-cfgcleanup.cc:1205 0x5611c9ae1bf4 execute_function_todo /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/passes.cc:2057 0x5611c9ae1bf4 do_per_function /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/passes.cc:1687 0x5611c9ae1bf4 execute_todo /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/passes.cc:2142 0x5611c9cbcfca execute_one_ipa_transform_pass /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/passes.cc:2336 0x5611c9cbcfca execute_all_ipa_transforms(bool) /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/passes.cc:2396 0x5611c9b20cb3 cgraph_node::expand() /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cgraphunit.cc:1836 0x5611c9adacd0 expand_all_functions /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cgraphunit.cc:2026 0x5611c9adacd0 symbol_table::compile() /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cgraphunit.cc:2400 0x5611ca40f9c8 symbol_table::finalize_compilation_unit() /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cgraphunit.cc:2585 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/14/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-14.0.9999/work/gcc-14.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/14 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/14/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14 --disable-silent-rules --disable-dependency-tracking --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/14/python --enable-languages=c,c++,fortran,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 14.0.9999 p, commit 3ab6b70bf9ee185da7e092e1df20753cdc35d710' --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-libgomp --disable-libssp --disable-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 --with-build-config='bootstrap-O3 bootstrap-lto' Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.1 20240203 (experimental) fa96099957c1cdcf73cb8c83e4f694a38a3d8530 (Gentoo Hardened 14.0.9999 p, commit 3ab6b70bf9ee185da7e092e1df20753cdc35d710) ```