[Bug analyzer/96777] New: [11 Regression] ICE in bind_compound_sval, at analyzer/store.cc:618
asolokha at gmx dot com
gcc-bugzilla@gcc.gnu.org
Tue Aug 25 01:50:28 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96777
Bug ID: 96777
Summary: [11 Regression] ICE in bind_compound_sval, at
analyzer/store.cc:618
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: analyzer
Assignee: dmalcolm at gcc dot gnu.org
Reporter: asolokha at gmx dot com
Target Milestone: ---
gcc-11.0.0-alpha20200823 snapshot (g:87c753ac241f25d222d46ba1ac66ceba89d6a200)
ICEs when compiling the following testcase, reduced from
gcc/testsuite/gcc.c-torture/execute/20010924-1.c, w/ -fanalyzer:
struct ge {
char au;
char pz[];
};
struct ge tr = { 'X', 'X', };
int
main (void)
{
return tr.pz[0] == 'X';
}
% gcc-11.0.0 -fanalyzer -c zlhfknsu.c
during IPA pass: analyzer
zlhfknsu.c: In function 'main':
zlhfknsu.c:11:15: internal compiler error: in bind_compound_sval, at
analyzer/store.cc:618
11 | return tr.pz[0] == 'X';
| ~~~~~^~~
0x72405f ana::binding_cluster::bind_compound_sval(ana::store_manager*,
ana::region const*, ana::compound_svalue const*)
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200823/work/gcc-11-20200823/gcc/analyzer/store.cc:618
0x110f518 ana::region_model::get_initial_value_for_global(ana::region const*)
const
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200823/work/gcc-11-20200823/gcc/analyzer/region-model.cc:1258
0x11114ca ana::region_model::get_rvalue(tree_node*, ana::region_model_context*)
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200823/work/gcc-11-20200823/gcc/analyzer/region-model.cc:1190
0x1113f87 ana::region_model::on_assignment(gassign const*,
ana::region_model_context*)
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200823/work/gcc-11-20200823/gcc/analyzer/region-model.cc:562
0x10f4d92 ana::exploded_node::on_stmt(ana::exploded_graph&, ana::supernode
const*, gimple const*, ana::program_state*) const
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200823/work/gcc-11-20200823/gcc/analyzer/engine.cc:1029
0x10f5fdd ana::exploded_graph::process_node(ana::exploded_node*)
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200823/work/gcc-11-20200823/gcc/analyzer/engine.cc:2526
0x10f6aca ana::exploded_graph::process_worklist()
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200823/work/gcc-11-20200823/gcc/analyzer/engine.cc:2341
0x10f8bff ana::impl_run_checkers(ana::logger*)
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200823/work/gcc-11-20200823/gcc/analyzer/engine.cc:4107
0x10f981c ana::run_checkers()
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200823/work/gcc-11-20200823/gcc/analyzer/engine.cc:4175
0x10ee1d8 execute
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200823/work/gcc-11-20200823/gcc/analyzer/analyzer-pass.cc:84
More information about the Gcc-bugs
mailing list