From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BDABD3857C65; Wed, 9 Sep 2020 06:34:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BDABD3857C65 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1599633284; bh=lxjEuDxmjewYgVEqXLiEqVspRi1PHZKi/OuwxMhnmXA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ThqRTgO+ffwcCLI3qbTNl0hqnd0fK5ZOGW/bWOtplmdcQztpsV0AIUZ8abJgs9AqN BVjirw2/4IGPCkv9ewl3f3M2r2GAiI877grE66XpzPIiWJAiyA1HNW7gVRaEh6sXqc PlRwK1EIiWORIkxPxQelCp1BP81r/qQIrTZZr0II= From: "markeggleston at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/53298] ICE in gfc_conv_scalarized_array_ref for ARRAY + substring Date: Wed, 09 Sep 2020 06:34:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: markeggleston at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: markeggleston at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: Wed, 09 Sep 2020 06:34:44 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D53298 --- Comment #13 from markeggleston at gcc dot gnu.org --- The test case in comment 0 is fixed by: trans-array.c @ -3638,8 +3638,11 @@ gfc_conv_array_ref (gfc_se * se, gfc_array_ref * ar, gfc_expr *expr, /* Handle scalarized references separately. */ if (ar->type !=3D AR_ELEMENT) { - gfc_conv_scalarized_array_ref (se, ar); - gfc_advance_se_ss_chain (se); + if (se->ss) + { + gfc_conv_scalarized_array_ref (se, ar); + gfc_advance_se_ss_chain (se); + } return; } make -j 8 check-fortran does not produce any additional test case failures = on x86_64. The test case in comment 7 still produces the same ICE.=