From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9286B38708B8; Thu, 20 Aug 2020 17:18:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9286B38708B8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1597943892; bh=3L8ZMqa5j1flt4UuWkuSlAhkv8PWlBydF3kb69IfP6w=; h=From:To:Subject:Date:In-Reply-To:References:From; b=J4Is70zr67nhVLjUc5QkWxASFuFqRy/DObDytlwhyvb+HPUckB067zoijs34DQjtO A75mxI8oHvr1ApU3QUngH/YSYpIsjg6NI+LIGU17Rzt/YYFOmrxnoS06mlUXWS2zvu Y9QF6Rq7fGfisuN20purDB7nEfkaSLbWZd5LenK8= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/96101] [9/10/11 Regression] ICE in fold_convert_loc, at fold-const.c:2398 Date: Thu, 20 Aug 2020 17:18:12 +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: 11.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.4 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: Thu, 20 Aug 2020 17:18:12 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96101 --- Comment #5 from CVS Commits --- The master branch has been updated by Paul Thomas : https://gcc.gnu.org/g:300ef2fcc10e98359d14654be23bbb84a5d141e1 commit r11-2785-g300ef2fcc10e98359d14654be23bbb84a5d141e1 Author: Paul Thomas Date: Thu Aug 20 18:17:59 2020 +0100 This patch fixes PRs 96100 and 96101. 2020-08-20 Paul Thomas gcc/fortran PR fortran/96100 PR fortran/96101 * trans-array.c (get_array_charlen): Tidy up the evaluation of the string length for array constructors. Avoid trailing array references. Ensure string lengths of deferred length components are set. For parentheses operator apply string length to both the primary expression and the enclosed expression. gcc/testsuite/ PR fortran/96100 PR fortran/96101 * gfortran.dg/char_length_23.f90: New test.=