https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108171
Bug ID: 108171 Summary: [13 Regression] ICE in binding_key::make, at analyzer/store.cc:132 Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- Created attachment 54123 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54123&action=edit Testcase gcc 13.0.0 20221211 snapshot (g:fd69977febf399d1992bbf8d66ae9170e0a4dc9f) ICEs when compiling test/f90_correct/src/wa02.f90 from the flang test suite w/ -fanalyzer: % gfortran-13 -fanalyzer -c flang/test/f90_correct/src/wa02.f90 during IPA pass: analyzer flang/test/f90_correct/src/wa02.f90:17:23: 17 | s = (/ ( i, i=1,n ) /) | ^ internal compiler error: in make, at analyzer/store.cc:132 0x7c016f ana::binding_key::make(ana::store_manager*, ana::region const*) /var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/store.cc:132 0x1397f04 ana::binding_cluster::get_binding(ana::store_manager*, ana::region const*) const /var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/store.cc:1554 0x1398167 ana::binding_cluster::get_binding_recursive(ana::store_manager*, ana::region const*) const /var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/store.cc:1591 0x139a1b5 ana::binding_cluster::get_any_binding(ana::store_manager*, ana::region const*) const /var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/store.cc:1614 0x133ea16 ana::region_model::get_store_value(ana::region const*, ana::region_model_context*) const /var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/region-model.cc:2337 0x1340ddc ana::region_model::get_rvalue(ana::path_var, ana::region_model_context*) const /var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/region-model.cc:2227 0x1344b77 ana::region_model::on_assignment(gassign const*, ana::region_model_context*) /var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/region-model.cc:1101 0x1316bd4 ana::exploded_node::on_stmt(ana::exploded_graph&, ana::supernode const*, gimple const*, ana::program_state*, ana::uncertainty_t*, ana::path_context*) /var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/engine.cc:1452 0x1319cb5 ana::exploded_graph::process_node(ana::exploded_node*) /var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/engine.cc:4044 0x131ac6a ana::exploded_graph::process_worklist() /var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/engine.cc:3447 0x131d3e4 ana::impl_run_checkers(ana::logger*) /var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/engine.cc:6098 0x131e3e6 ana::run_checkers() /var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/engine.cc:6186 0x130cda8 execute /var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/analyzer-pass.cc:87