https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107486
Bug ID: 107486 Summary: [13 Regression] ICE in deref_rvalue, at analyzer/region-model.cc:3317 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: --- gcc 13.0.0 20221030 snapshot (g:f36bba013361d8d4f9c7237c3307630de0cc0416) ICEs when compiling the following testcase, reduced from test/CodeGen/2008-07-31-asm-labels.c from the clang 14 test suite, w/ -fanalyzer: void pipe(int) asm("_thisIsNotAPipe"); void f1(void) { pipe(1); } % gcc-13 -fanalyzer -c sdgrfguh.c during IPA pass: analyzer sdgrfguh.c: In function 'f1': sdgrfguh.c:4:3: internal compiler error: in deref_rvalue, at analyzer/region-model.cc:3317 4 | pipe(1); | ^~~~~~~ 0x7d4fd0 ana::region_model::deref_rvalue(ana::svalue const*, tree_node*, ana::region_model_context*) const /var/tmp/portage/sys-devel/gcc-13.0.0_p20221030/work/gcc-13-20221030/gcc/analyzer/region-model.cc:3317 0x13151ea update_model /var/tmp/portage/sys-devel/gcc-13.0.0_p20221030/work/gcc-13-20221030/gcc/analyzer/region-model-impl-calls.cc:608 0x12d9d4d ana::exploded_graph::process_node(ana::exploded_node*) /var/tmp/portage/sys-devel/gcc-13.0.0_p20221030/work/gcc-13-20221030/gcc/analyzer/engine.cc:4133 0x12da7aa ana::exploded_graph::process_worklist() /var/tmp/portage/sys-devel/gcc-13.0.0_p20221030/work/gcc-13-20221030/gcc/analyzer/engine.cc:3422 0x12dce9c ana::impl_run_checkers(ana::logger*) /var/tmp/portage/sys-devel/gcc-13.0.0_p20221030/work/gcc-13-20221030/gcc/analyzer/engine.cc:6070 0x12ddeee ana::run_checkers() /var/tmp/portage/sys-devel/gcc-13.0.0_p20221030/work/gcc-13-20221030/gcc/analyzer/engine.cc:6144 0x12cc848 execute /var/tmp/portage/sys-devel/gcc-13.0.0_p20221030/work/gcc-13-20221030/gcc/analyzer/analyzer-pass.cc:86