public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/103691] New: [12 Regression] ICE in get_array_ctor_element_at_index, at fold-const.c:13314
@ 2021-12-13 19:51 gscfq@t-online.de
  2021-12-14 10:05 ` [Bug fortran/103691] [12 Regression] ICE in get_array_ctor_element_at_index, at fold-const.c:13314 since r12-4694-gcb153222404e2e14 marxin at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: gscfq@t-online.de @ 2021-12-13 19:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103691
           Summary: [12 Regression] ICE in
                    get_array_ctor_element_at_index, at fold-const.c:13314
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Changed between 20211024 and 20211031 at -O2+ :
(gcc configured with --enable-checking=yes)


$ cat z1.f90
program p
   real, parameter :: a(0) = 2.0
   real, allocatable :: b(:)
   allocate (b, mold=a)
end


$ gfortran-12-20211024 -c z1.f90 -g -O2
$
$ gfortran-12-20211212 -c z1.f90 -g -O2
during GIMPLE pass: evrp
z1.f90:5:3:

    5 | end
      |   ^
internal compiler error: in get_array_ctor_element_at_index, at
fold-const.c:13314
0xb27c33 get_array_ctor_element_at_index(tree_node*,
generic_wide_int<fixed_wide_int_storage<128> >, unsigned int*)
        ../../gcc/fold-const.c:13314
0xb9ee55 fold_array_ctor_reference
        ../../gcc/gimple-fold.c:7862
0xb9ee55 fold_ctor_reference(tree_node*, tree_node*, poly_int<1u, unsigned
long> const&, poly_int<1u, unsigned long> const&, tree_node*, unsigned long*)
        ../../gcc/gimple-fold.c:8061
0xba1e18 fold_const_aggregate_ref_1(tree_node*, tree_node* (*)(tree_node*))
        ../../gcc/gimple-fold.c:8186
0xba39f8 fold_const_aggregate_ref(tree_node*)
        ../../gcc/gimple-fold.c:8265
0xba39f8 maybe_fold_reference
        ../../gcc/gimple-fold.c:337
0xbaaa68 fold_stmt_1
        ../../gcc/gimple-fold.c:6301
0x1bbc20c gimple_ranger::fold_stmt(gimple_stmt_iterator*, tree_node*
(*)(tree_node*))
        ../../gcc/gimple-range.cc:434
0x11138c6 substitute_and_fold_dom_walker::before_dom_children(basic_block_def*)
        ../../gcc/tree-ssa-propagate.c:870
0x1b82907 dom_walker::walk(basic_block_def*)
        ../../gcc/domwalk.c:309
0x1112945 substitute_and_fold_engine::substitute_and_fold(basic_block_def*)
        ../../gcc/tree-ssa-propagate.c:987
0x12217bd execute_ranger_vrp(function*, bool)
        ../../gcc/tree-vrp.c:4337
0x1bd658d execute_early_vrp
        ../../gcc/gimple-ssa-evrp.c:316

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-03-25 10:23 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-13 19:51 [Bug fortran/103691] New: [12 Regression] ICE in get_array_ctor_element_at_index, at fold-const.c:13314 gscfq@t-online.de
2021-12-14 10:05 ` [Bug fortran/103691] [12 Regression] ICE in get_array_ctor_element_at_index, at fold-const.c:13314 since r12-4694-gcb153222404e2e14 marxin at gcc dot gnu.org
2021-12-14 15:43 ` amacleod at redhat dot com
2022-01-04 11:07 ` rguenth at gcc dot gnu.org
2022-01-04 11:32 ` jakub at gcc dot gnu.org
2022-01-04 12:26 ` rguenth at gcc dot gnu.org
2022-01-04 12:28 ` jakub at gcc dot gnu.org
2022-01-05  9:46 ` cvs-commit at gcc dot gnu.org
2022-01-05  9:49 ` jakub at gcc dot gnu.org
2022-03-24 15:23 ` jakub at gcc dot gnu.org
2022-03-25 10:23 ` cvs-commit at gcc dot gnu.org
2022-03-25 10:23 ` jakub 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).