https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96818
Bug ID: 96818 Summary: [11 Regression] ICE: in decompose, at wide-int.h:984 at -O Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Created attachment 49139 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49139&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-g++ -O testcase.C during GIMPLE pass: dom testcase.C: In function 'void p()': testcase.C:22:1: internal compiler error: in decompose, at wide-int.h:984 22 | p () | ^ 0x8343ce wi::int_traits<generic_wide_int<wide_int_ref_storage<false, false> > >::decompose(long*, unsigned int, generic_wide_int<wide_int_ref_storage<false, false> > const&) /repo/gcc-trunk/gcc/wide-int.h:984 0x1508d8d wi::int_traits<generic_wide_int<wide_int_ref_storage<false, false> > >::decompose(long*, unsigned int, generic_wide_int<wide_int_ref_storage<false, false> > const&) /repo/gcc-trunk/gcc/wide-int.h:1931 0x1508d8d wide_int_ref_storage<false, false>::wide_int_ref_storage<generic_wide_int<wide_int_ref_storage<false, false> > >(generic_wide_int<wide_int_ref_storage<false, false> > const&, unsigned int) /repo/gcc-trunk/gcc/wide-int.h:1034 0x1508d8d generic_wide_int<wide_int_ref_storage<false, false> >::generic_wide_int<generic_wide_int<wide_int_ref_storage<false, false> > >(generic_wide_int<wide_int_ref_storage<false, false> > const&, unsigned int) /repo/gcc-trunk/gcc/wide-int.h:790 0x1508d8d bool wi::ltu_p<generic_wide_int<wide_int_ref_storage<false, false> >, generic_wide_int<wide_int_ref_storage<false, false> > >(generic_wide_int<wide_int_ref_storage<false, false> > const&, generic_wide_int<wide_int_ref_storage<false, false> > const&) /repo/gcc-trunk/gcc/wide-int.h:1935 0x15071d4 bool wi::lt_p<generic_wide_int<wide_int_ref_storage<false, false> >, generic_wide_int<wide_int_ref_storage<false, false> > >(generic_wide_int<wide_int_ref_storage<false, false> > const&, generic_wide_int<wide_int_ref_storage<false, false> > const&, signop) /repo/gcc-trunk/gcc/wide-int.h:1961 0x15071d4 irange::irange_intersect(irange const&) /repo/gcc-trunk/gcc/value-range.cc:1701 0x1507441 irange::intersect(irange const*) /repo/gcc-trunk/gcc/value-range.cc:1539 0x14c35e1 find_case_label_range(gswitch*, irange const*) /repo/gcc-trunk/gcc/tree-vrp.c:3853 0x1424cd3 simplify_control_stmt_condition /repo/gcc-trunk/gcc/tree-ssa-threadedge.c:554 0x1425a30 thread_through_normal_block /repo/gcc-trunk/gcc/tree-ssa-threadedge.c:1101 0x142730c thread_through_normal_block /repo/gcc-trunk/gcc/vec.h:1010 0x142730c thread_across_edge /repo/gcc-trunk/gcc/tree-ssa-threadedge.c:1372 0x133f745 dom_opt_dom_walker::after_dom_children(basic_block_def*) /repo/gcc-trunk/gcc/tree-ssa-dom.c:1504 0x1c498c7 dom_walker::walk(basic_block_def*) /repo/gcc-trunk/gcc/domwalk.c:352 0x134162c execute /repo/gcc-trunk/gcc/tree-ssa-dom.c:724 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. $ x86_64-pc-linux-gnu-g++ -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest/bin/x86_64-pc-linux-gnu-g++ COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r11-2899-20200827080734-g989bc4ca2f2-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/11.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-r11-2899-20200827080734-g989bc4ca2f2-checking-yes-rtl-df-extra-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 11.0.0 20200827 (experimental) (GCC)