https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93775

            Bug ID: 93775
           Summary: ICE in cgraph_node::get(tree_node const*)
           Product: gcc
           Version: 10.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-10.0.1-alpha20200216 snapshot (g:6e37e49616d429c5d922324ebd72ae95f12a079f)
ICEs when compiling gcc/testsuite/gcc.c-torture/compile/20020129-1.c w/
-fanalyzer:

% gcc-10.0.1 -fanalyzer -c gcc/testsuite/gcc.c-torture/compile/20020129-1.c
during IPA pass: analyzer
gcc/testsuite/gcc.c-torture/compile/20020129-1.c: In function 'foo':
gcc/testsuite/gcc.c-torture/compile/20020129-1.c:17:3: internal compiler error:
Segmentation fault
   17 |   bar (&a);
      |   ^~~~~~~~
0xd8a51f crash_signal
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200216/work/gcc-10-20200216/gcc/toplev.c:328
0x110a317 cgraph_node::get(tree_node const*)
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200216/work/gcc-10-20200216/gcc/cgraph.h:1378
0x110a317 ana::region_model::get_fndecl_for_call(gcall const*,
ana::region_model_context*)
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200216/work/gcc-10-20200216/gcc/analyzer/region-model.cc:6680
0x110e58b ana::region_model::on_call_pre(gcall const*,
ana::region_model_context*)
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200216/work/gcc-10-20200216/gcc/analyzer/region-model.cc:4175
0x10e8298 ana::exploded_node::on_stmt(ana::exploded_graph&, ana::supernode
const*, gimple const*, ana::program_state*, ana::state_change*) const
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200216/work/gcc-10-20200216/gcc/analyzer/engine.cc:1035
0x10e87fb ana::exploded_graph::process_node(ana::exploded_node*)
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200216/work/gcc-10-20200216/gcc/analyzer/engine.cc:2449
0x10e8c92 ana::exploded_graph::process_worklist()
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200216/work/gcc-10-20200216/gcc/analyzer/engine.cc:2267
0x10e93b9 ana::impl_run_checkers(ana::logger*)
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200216/work/gcc-10-20200216/gcc/analyzer/engine.cc:3627
0x10e9e5c ana::run_checkers()
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200216/work/gcc-10-20200216/gcc/analyzer/engine.cc:3684
0x10df858 execute
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200216/work/gcc-10-20200216/gcc/analyzer/analyzer-pass.cc:84

Reply via email to