public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/96763] New: [11 Regression] ICE in get_subregion_within_ctor, at analyzer/store.cc:379
@ 2020-08-24 9:47 asolokha at gmx dot com
2020-08-24 11:46 ` [Bug analyzer/96763] [11 Regression] ICE in get_subregion_within_ctor, at analyzer/store.cc:379 on RANGE_EXPR index dmalcolm at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: asolokha at gmx dot com @ 2020-08-24 9:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96763
Bug ID: 96763
Summary: [11 Regression] ICE in get_subregion_within_ctor, at
analyzer/store.cc:379
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: ---
Target: powerpc-*-linux-gnu
g++-11.0.0-alpha20200823 snapshot (g:87c753ac241f25d222d46ba1ac66ceba89d6a200)
ICEs when compiling the following testcase, reduced from
gcc/testsuite/g++.dg/cpp2a/nontype-class16.C, w/ -fanalyzer:
struct c0;
struct md {
int c0::*jj[2];
};
void
n0 ()
{
md{};
}
% powerpc-e300c3-linux-gnu-g++-11.0.0 -fanalyzer -c a3ufwiij.C
during IPA pass: analyzer
a3ufwiij.C: In function 'void n0()':
a3ufwiij.C:10:3: internal compiler error: in get_subregion_within_ctor, at
analyzer/store.cc:379
10 | md{};
| ^~~~
0x7db089 get_subregion_within_ctor
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-11.0.0_alpha20200823/work/gcc-11-20200823/gcc/analyzer/store.cc:379
0x7db089 ana::binding_map::apply_ctor_to_region(ana::region const*, tree_node*,
ana::region_model_manager*)
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-11.0.0_alpha20200823/work/gcc-11-20200823/gcc/analyzer/store.cc:423
0x13f7bb5 ana::binding_map::apply_ctor_to_region(ana::region const*,
tree_node*, ana::region_model_manager*)
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-11.0.0_alpha20200823/work/gcc-11-20200823/gcc/analyzer/store.cc:425
0x13c4f7a ana::decl_region::get_svalue_for_constructor(tree_node*,
ana::region_model_manager*) const
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-11.0.0_alpha20200823/work/gcc-11-20200823/gcc/analyzer/region.cc:907
0x13c9f54 ana::region_model::get_store_value(ana::region const*) const
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-11.0.0_alpha20200823/work/gcc-11-20200823/gcc/analyzer/region-model.cc:1284
0x13cbca3 ana::region_model::get_rvalue(ana::path_var,
ana::region_model_context*)
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-11.0.0_alpha20200823/work/gcc-11-20200823/gcc/analyzer/region-model.cc:1190
0x13cc0a7 ana::region_model::on_assignment(gassign const*,
ana::region_model_context*)
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-11.0.0_alpha20200823/work/gcc-11-20200823/gcc/analyzer/region-model.cc:562
0x13af66a ana::exploded_node::on_stmt(ana::exploded_graph&, ana::supernode
const*, gimple const*, ana::program_state*) const
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-11.0.0_alpha20200823/work/gcc-11-20200823/gcc/analyzer/engine.cc:1029
0x13b08a5 ana::exploded_graph::process_node(ana::exploded_node*)
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-11.0.0_alpha20200823/work/gcc-11-20200823/gcc/analyzer/engine.cc:2526
0x13b1102 ana::exploded_graph::process_worklist()
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-11.0.0_alpha20200823/work/gcc-11-20200823/gcc/analyzer/engine.cc:2341
0x13b31e4 ana::impl_run_checkers(ana::logger*)
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-11.0.0_alpha20200823/work/gcc-11-20200823/gcc/analyzer/engine.cc:4107
0x13b3e91 ana::run_checkers()
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-11.0.0_alpha20200823/work/gcc-11-20200823/gcc/analyzer/engine.cc:4175
0x13a8a68 execute
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-11.0.0_alpha20200823/work/gcc-11-20200823/gcc/analyzer/analyzer-pass.cc:84
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug analyzer/96763] [11 Regression] ICE in get_subregion_within_ctor, at analyzer/store.cc:379 on RANGE_EXPR index
2020-08-24 9:47 [Bug analyzer/96763] New: [11 Regression] ICE in get_subregion_within_ctor, at analyzer/store.cc:379 asolokha at gmx dot com
@ 2020-08-24 11:46 ` dmalcolm at gcc dot gnu.org
2020-08-25 11:45 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2020-08-24 11:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96763
David Malcolm <dmalcolm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[11 Regression] ICE in |[11 Regression] ICE in
|get_subregion_within_ctor, |get_subregion_within_ctor,
|at analyzer/store.cc:379 |at analyzer/store.cc:379 on
| |RANGE_EXPR index
Ever confirmed|0 |1
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2020-08-24
--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Thanks for filing this; confirmed on powerpc64 and arm. index is a range_expr.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug analyzer/96763] [11 Regression] ICE in get_subregion_within_ctor, at analyzer/store.cc:379 on RANGE_EXPR index
2020-08-24 9:47 [Bug analyzer/96763] New: [11 Regression] ICE in get_subregion_within_ctor, at analyzer/store.cc:379 asolokha at gmx dot com
2020-08-24 11:46 ` [Bug analyzer/96763] [11 Regression] ICE in get_subregion_within_ctor, at analyzer/store.cc:379 on RANGE_EXPR index dmalcolm at gcc dot gnu.org
@ 2020-08-25 11:45 ` rguenth at gcc dot gnu.org
2020-08-31 20:08 ` cvs-commit at gcc dot gnu.org
2020-08-31 20:13 ` dmalcolm at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-08-25 11:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96763
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |11.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug analyzer/96763] [11 Regression] ICE in get_subregion_within_ctor, at analyzer/store.cc:379 on RANGE_EXPR index
2020-08-24 9:47 [Bug analyzer/96763] New: [11 Regression] ICE in get_subregion_within_ctor, at analyzer/store.cc:379 asolokha at gmx dot com
2020-08-24 11:46 ` [Bug analyzer/96763] [11 Regression] ICE in get_subregion_within_ctor, at analyzer/store.cc:379 on RANGE_EXPR index dmalcolm at gcc dot gnu.org
2020-08-25 11:45 ` rguenth at gcc dot gnu.org
@ 2020-08-31 20:08 ` cvs-commit at gcc dot gnu.org
2020-08-31 20:13 ` dmalcolm at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-08-31 20:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96763
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by David Malcolm <dmalcolm@gcc.gnu.org>:
https://gcc.gnu.org/g:0d1b4edc5fff834e8f924b20dd021ded7a21d2d2
commit r11-2953-g0d1b4edc5fff834e8f924b20dd021ded7a21d2d2
Author: David Malcolm <dmalcolm@redhat.com>
Date: Mon Aug 24 09:33:42 2020 -0400
analyzer: fix ICE on RANGE_EXPR in CONSTRUCTORs [PR96763]
gcc/analyzer/ChangeLog:
PR analyzer/96763
* store.cc (binding_map::apply_ctor_to_region): Handle RANGE_EXPR
by calling a new binding_map::apply_ctor_val_to_range subroutine.
Split out the existing non-CONSTRUCTOR-handling code to a new
apply_ctor_pair_to_child_region subroutine.
(binding_map::apply_ctor_val_to_range): New.
(binding_map::apply_ctor_pair_to_child_region): New, split out
from binding_map::apply_ctor_to_region as noted above.
* store.h (binding_map::apply_ctor_val_to_range): New decl.
(binding_map::apply_ctor_pair_to_child_region): New decl.
gcc/testsuite/ChangeLog:
PR analyzer/96763
* g++.dg/analyzer/pr96763.C: New test.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug analyzer/96763] [11 Regression] ICE in get_subregion_within_ctor, at analyzer/store.cc:379 on RANGE_EXPR index
2020-08-24 9:47 [Bug analyzer/96763] New: [11 Regression] ICE in get_subregion_within_ctor, at analyzer/store.cc:379 asolokha at gmx dot com
` (2 preceding siblings ...)
2020-08-31 20:08 ` cvs-commit at gcc dot gnu.org
@ 2020-08-31 20:13 ` dmalcolm at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2020-08-31 20:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96763
David Malcolm <dmalcolm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Should be fixed by above commit.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-08-31 20:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-24 9:47 [Bug analyzer/96763] New: [11 Regression] ICE in get_subregion_within_ctor, at analyzer/store.cc:379 asolokha at gmx dot com
2020-08-24 11:46 ` [Bug analyzer/96763] [11 Regression] ICE in get_subregion_within_ctor, at analyzer/store.cc:379 on RANGE_EXPR index dmalcolm at gcc dot gnu.org
2020-08-25 11:45 ` rguenth at gcc dot gnu.org
2020-08-31 20:08 ` cvs-commit at gcc dot gnu.org
2020-08-31 20:13 ` dmalcolm at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).