https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96713
Bug ID: 96713 Summary: [11 Regression] ICE: in fold_relational_const, at fold-const.c:14921 with -fanalyzer Product: gcc Version: 11.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 Created attachment 49083 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49083&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:6:5: internal compiler error: in fold_relational_const, at fold-const.c:14921 6 | d <= e; | ~~^~~~ 0x66d990 fold_relational_const /repo/gcc-trunk/gcc/fold-const.c:14921 0xd51bfe const_binop(tree_code, tree_node*, tree_node*, tree_node*) /repo/gcc-trunk/gcc/fold-const.c:1599 0xd44841 fold_binary_loc(unsigned int, tree_code, tree_node*, tree_node*, tree_node*) /repo/gcc-trunk/gcc/fold-const.c:10274 0x1478486 ana::constant_svalue::eval_condition(ana::constant_svalue const*, tree_code, ana::constant_svalue const*) /repo/gcc-trunk/gcc/analyzer/svalue.cc:403 0x143d597 ana::region_model::eval_condition(ana::svalue const*, tree_code, ana::svalue const*) const /repo/gcc-trunk/gcc/analyzer/region-model.cc:1500 0x143f5ee ana::region_model::get_gassign_result(gassign const*, ana::region_model_context*) /repo/gcc-trunk/gcc/analyzer/region-model.cc:469 0x143f747 ana::region_model::on_assignment(gassign const*, ana::region_model_context*) /repo/gcc-trunk/gcc/analyzer/region-model.cc:563 0x1423070 ana::exploded_node::on_stmt(ana::exploded_graph&, ana::supernode const*, gimple const*, ana::program_state*) const /repo/gcc-trunk/gcc/analyzer/engine.cc:1029 0x14241af ana::exploded_graph::process_node(ana::exploded_node*) /repo/gcc-trunk/gcc/analyzer/engine.cc:2526 0x1424aa2 ana::exploded_graph::process_worklist() /repo/gcc-trunk/gcc/analyzer/engine.cc:2341 0x1426b19 ana::impl_run_checkers(ana::logger*) /repo/gcc-trunk/gcc/analyzer/engine.cc:4107 0x14284ac ana::run_checkers() /repo/gcc-trunk/gcc/analyzer/engine.cc:4175 0x141c5e8 execute /repo/gcc-trunk/gcc/analyzer/analyzer-pass.cc:84 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-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-r11-2773-20200819203610-ge6e01618e83-checking-yes-rtl-df-extra-nobootstrap-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 --disable-bootstrap --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-2773-20200819203610-ge6e01618e83-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 11.0.0 20200819 (experimental) (GCC)