https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107928
Bug ID: 107928
Summary: ICE in on_bind, at analyzer/sm-fd.cc:1869
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 20221127 snapshot (g:4ac789789ea866ced24613e4778725d8ec6b0ecf) ICEs
when compiling the following testcase w/ -fanalyzer:
struct sa {
};
int
bind (int, struct sa *, int);
int
foo (struct sa sa)
{
return bind (1, &sa, sizeof sa);
}
% gcc-13 -fanalyzer -c bnfjd9ey.c
during IPA pass: analyzer
bnfjd9ey.c: In function 'foo':
bnfjd9ey.c:10:10: internal compiler error: in on_bind, at
analyzer/sm-fd.cc:1869
10 | return bind (1, &sa, sizeof sa);
| ^~~~~~~~~~~~~~~~~~~~~~~~
0x12f73b5 on_bind
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221127/work/gcc-13-20221127/gcc/analyzer/sm-fd.cc:1869
0x12f73b5 ana::kf_bind::outcome_of_bind::update_model(ana::region_model*,
ana::exploded_edge const*, ana::region_model_context*) const
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221127/work/gcc-13-20221127/gcc/analyzer/sm-fd.cc:2328
0x1293dbe ana::exploded_graph::process_node(ana::exploded_node*)
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221127/work/gcc-13-20221127/gcc/analyzer/engine.cc:4169
0x129491a ana::exploded_graph::process_worklist()
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221127/work/gcc-13-20221127/gcc/analyzer/engine.cc:3456
0x12970a4 ana::impl_run_checkers(ana::logger*)
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221127/work/gcc-13-20221127/gcc/analyzer/engine.cc:6107
0x12980a6 ana::run_checkers()
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221127/work/gcc-13-20221127/gcc/analyzer/engine.cc:6195
0x12869b8 execute
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221127/work/gcc-13-20221127/gcc/analyzer/analyzer-pass.cc:87