https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113983
Bug ID: 113983 Summary: [14 Regression] ICE: tree check: expected integer_cst, have vector_cst in maybe_undo_optimize_bit_field_compare, at analyzer/region-model-manager.cc:606 with -fanalyzer Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm 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 57457 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57457&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -fanalyzer testcase.c during IPA pass: analyzer testcase.c: In function 'foo': testcase.c:8:22: internal compiler error: tree check: expected integer_cst, have vector_cst in maybe_undo_optimize_bit_field_compare, at analyzer/region-model-manager.cc:606 8 | return (0, 0) * (i & v); | ~~~^~~~ 0x88ddd5 tree_check_failed(tree_node const*, char const*, int, char const*, ...) /repo/gcc-trunk/gcc/tree.cc:8955 testcase.c:8:22: internal compiler error: Segmentation fault 0x151aef2 crash_signal /repo/gcc-trunk/gcc/toplev.cc:317 0x2aec460 x86_64_fallback_frame_state ./md-unwind-support.h:63 0x2aec460 uw_frame_state_for /repo/gcc-trunk/libgcc/unwind-dw2.c:1013 0x2aed79d _Unwind_Backtrace /repo/gcc-trunk/libgcc/unwind.inc:303 0x2a97f89 backtrace_full /repo/gcc-trunk/libbacktrace/backtrace.c:127 0x29ff2a6 diagnostic_context::action_after_output(diagnostic_t) /repo/gcc-trunk/gcc/diagnostic.cc:781 0x29ff4bb diagnostic_action_after_output(diagnostic_context*, diagnostic_t) /repo/gcc-trunk/gcc/diagnostic.h:1002 0x29ff4bb diagnostic_context::report_diagnostic(diagnostic_info*) /repo/gcc-trunk/gcc/diagnostic.cc:1633 0x29ff838 diagnostic_impl /repo/gcc-trunk/gcc/diagnostic.cc:1767 0x29fff06 internal_error(char const*, ...) /repo/gcc-trunk/gcc/diagnostic.cc:2225 0x88ddd5 tree_check_failed(tree_node const*, char const*, int, char const*, ...) /repo/gcc-trunk/gcc/tree.cc:8955 x86_64-pc-linux-gnu-gcc: internal compiler error: Segmentation fault signal terminated program cc1 Please submit a full bug report, with preprocessed source (by using -freport-bug). 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-9043-20240217001708-gd70f155b074-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/14.0.1/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-9043-20240217001708-gd70f155b074-checking-yes-rtl-df-extra-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.1 20240217 (experimental) (GCC)