From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9AB563858D39; Mon, 13 Dec 2021 19:51:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9AB563858D39 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/103691] New: [12 Regression] ICE in get_array_ctor_element_at_index, at fold-const.c:13314 Date: Mon, 13 Dec 2021 19:51:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2021 19:51:45 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103691 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=3Dyes) $ cat z1.f90 program p real, parameter :: a(0) =3D 2.0 real, allocatable :: b(:) allocate (b, mold=3Da) 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 >, 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_d= ef*) ../../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=