https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124188

            Bug ID: 124188
           Summary: [15/16 Regression] ICE: in get_or_create_int_cst, at
                    analyzer/region-model-manager.cc:245 with -fanalyzer
                    and vector arithmetics
           Product: gcc
           Version: 16.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 63738
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63738&action=edit
reduced testcase

Compiler output:
$ x86_64-pc-linux-gnu-gcc -fanalyzer testcase.c -Wno-psabi
during IPA pass: analyzer
testcase.c: In function 'foo':
testcase.c:9:5: internal compiler error: in get_or_create_int_cst, at
analyzer/region-model-manager.cc:245
    9 |   a + v + g;
      |   ~~^~~
0x2ca14bd internal_error(char const*, ...)
        /repo/gcc-trunk/gcc/diagnostic-global-context.cc:787
0xe2d99d fancy_abort(char const*, int, char const*)
        /repo/gcc-trunk/gcc/diagnostics/context.cc:1812
0x965203 ana::region_model_manager::get_or_create_int_cst(tree_node*,
poly_int<1u, generic_wide_int<wide_int_ref_storage<false, true> > > const&)
        /repo/gcc-trunk/gcc/analyzer/region-model-manager.cc:245
0x965203 ana::region_model_manager::get_or_create_int_cst(tree_node*,
poly_int<1u, generic_wide_int<wide_int_ref_storage<false, true> > > const&)
        /repo/gcc-trunk/gcc/analyzer/region-model-manager.cc:239
0x1b46a60 ana::region_model_manager::maybe_fold_binop(tree_node*, tree_code,
ana::svalue const*, ana::svalue const*)
        /repo/gcc-trunk/gcc/analyzer/region-model-manager.cc:761
0x1b45332 ana::region_model_manager::get_or_create_binop(tree_node*, tree_code,
ana::svalue const*, ana::svalue const*)
        /repo/gcc-trunk/gcc/analyzer/region-model-manager.cc:926
0x1b219dc ana::region_model::on_assignment(gassign const*,
ana::region_model_context*)
        /repo/gcc-trunk/gcc/analyzer/region-model.cc:1642
0x1afe50e ana::gimple_stmt_op::execute_on_state(ana::operation_context&,
ana::program_state) const
        /repo/gcc-trunk/gcc/analyzer/ops.cc:378
0x1afe8f5 ana::gimple_stmt_op::execute(ana::operation_context&) const
        /repo/gcc-trunk/gcc/analyzer/ops.cc:349
0x1ae064b ana::exploded_graph::process_node(ana::exploded_node*)
        /repo/gcc-trunk/gcc/analyzer/engine.cc:3783
0x1ae0cda ana::exploded_graph::process_worklist()
        /repo/gcc-trunk/gcc/analyzer/engine.cc:3412
0x1ae373b ana::impl_run_checkers(ana::logger*)
        /repo/gcc-trunk/gcc/analyzer/engine.cc:5272
0x1ae4566 ana::run_checkers()
        /repo/gcc-trunk/gcc/analyzer/engine.cc:5363
0x1ad4ed8 execute
        /repo/gcc-trunk/gcc/analyzer/analyzer-pass.cc:81
/repo/gcc-trunk/binary-trunk-20260219093342-r16-7585-g120d00d6528ca2-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/16.0.1/cc1
-quiet -iprefix
/repo/gcc-trunk/binary-trunk-20260219093342-r16-7585-g120d00d6528ca2-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../lib/gcc/x86_64-pc-linux-gnu/16.0.1/
testcase.c -quiet -dumpdir a- -dumpbase testcase.c -dumpbase-ext .c
-mtune=generic -march=x86-64 -Wno-psabi -fanalyzer -o /tmp/ccILpS61.s
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-20260219093342-r16-7585-g120d00d6528ca2-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/16.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
--disable-bootstrap --enable-libsanitizer --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-20260219093342-r16-7585-g120d00d6528ca2-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.1 20260218 (experimental) (GCC)

Reply via email to