https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111754
Bug ID: 111754 Summary: [14 Regression] ICE: in decompose, at rtl.h:2313 at -O Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 56088 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56088&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -O testcase.c during RTL pass: expand testcase.c: In function 'foo': testcase.c:14:10: internal compiler error: in decompose, at rtl.h:2313 14 | return bar ((F){9}, (F){}); | ^~~~~~~~~~~~~~~~~~~ 0x7ea1ba wi::int_traits<std::pair<rtx_def*, machine_mode> >::decompose(long*, unsigned int, std::pair<rtx_def*, machine_mode> const&) /repo/gcc-trunk/gcc/rtl.h:2313 0x7ea1ba wide_int_ref_storage<false, false>::wide_int_ref_storage<std::pair<rtx_def*, machine_mode> >(std::pair<rtx_def*, machine_mode> const&) /repo/gcc-trunk/gcc/wide-int.h:1030 0x7ea1ba generic_wide_int<wide_int_ref_storage<false, false> >::generic_wide_int<std::pair<rtx_def*, machine_mode> >(std::pair<rtx_def*, machine_mode> const&) /repo/gcc-trunk/gcc/wide-int.h:788 0x7ea1ba poly_int<1u, generic_wide_int<wide_int_ref_storage<false, false> > >::poly_int<std::pair<rtx_def*, machine_mode> >(poly_int_full, std::pair<rtx_def*, machine_mode> const&) /repo/gcc-trunk/gcc/poly-int.h:453 0x7ea1ba poly_int<1u, generic_wide_int<wide_int_ref_storage<false, false> > >::poly_int<std::pair<rtx_def*, machine_mode> >(std::pair<rtx_def*, machine_mode> const&) /repo/gcc-trunk/gcc/poly-int.h:439 0x7ea1ba wi::to_poly_wide(rtx_def const*, machine_mode) /repo/gcc-trunk/gcc/rtl.h:2382 0x7ea1ba rtx_vector_builder::step(rtx_def*, rtx_def*) const /repo/gcc-trunk/gcc/rtx-vector-builder.h:122 0x143d95b vector_builder<rtx_def*, machine_mode, rtx_vector_builder>::elt(unsigned int) const /repo/gcc-trunk/gcc/vector-builder.h:254 0x143d841 rtx_vector_builder::build() /repo/gcc-trunk/gcc/rtx-vector-builder.cc:73 0x107c7a1 const_vector_from_tree /repo/gcc-trunk/gcc/expr.cc:13494 0x10856ce expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /repo/gcc-trunk/gcc/expr.cc:11066 0xf50792 expand_expr(tree_node*, rtx_def*, machine_mode, expand_modifier) /repo/gcc-trunk/gcc/expr.h:310 0xf50792 expand_return /repo/gcc-trunk/gcc/cfgexpand.cc:3809 0xf50792 expand_gimple_stmt_1 /repo/gcc-trunk/gcc/cfgexpand.cc:3918 0xf50792 expand_gimple_stmt /repo/gcc-trunk/gcc/cfgexpand.cc:4044 0xf51106 expand_gimple_basic_block /repo/gcc-trunk/gcc/cfgexpand.cc:6100 0xf5378e execute /repo/gcc-trunk/gcc/cfgexpand.cc:6835 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r14-4521-20231009151152-g08d0f840dc7-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/14.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra --with-cloog --with-ppl --with-isl --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld --with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r14-4521-20231009151152-g08d0f840dc7-checking-yes-rtl-df-extra-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20231009 (experimental) (GCC)