From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AF620385E022; Wed, 25 Mar 2020 13:44:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AF620385E022 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585143857; bh=0LNU0+HYzAkAmqvMDVLurPMVqSMG3kcRvMyETQPrPTg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fjrAfu7qvR5ULrkywuB8K0QeP9fO1/PUu4NjrqUUblDLiSN49tgFWiCB3LEimemQA hOHAKZuFg8LxY2zKqYUy/i+Y9JTyQdT0uQwLCjFUaW/Ne2jZzhISJqb2UIhClkaKeO 09adovIyJ/Jh6oAWmWMrSMv9J9kgjcHSeVJIHg0w= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/93484] [8/9/10 Regression] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1120 since r7-4028-g87c9fca50cbe7ca9 Date: Wed, 25 Mar 2020 13:44:17 +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: 10.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.5 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, 25 Mar 2020 13:44:17 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D93484 --- Comment #5 from CVS Commits --- The releases/gcc-9 branch has been updated by Mark Eggleston : https://gcc.gnu.org/g:dff885cdc00bbdccb5bb6277e4711093e3bbad1e commit r9-8416-gdff885cdc00bbdccb5bb6277e4711093e3bbad1e Author: Mark Eggleston Date: Wed Mar 25 13:43:23 2020 +0000 fortran: ICE using undeclared symbol in array constructor PR93484 Using undeclared symbol k in an expression in the following array constructor results in an ICE: print *, [real(x(k))] If the call to the intrinsic is not in a constructor a no IMPLICIT type error is reported and the ICE does not occur. Matching on an expression instead of an initialisation express an and not converting a MATCH_ERROR return value into MATCH_NO results in the no IMPLICIT error and no ICE. Note: Steven G. Kargl is the author of the changes except for the test cases. gcc/fortran/ChangeLog: Backport from master 2020-03-25 Mark Eggleston PR fortran/93484 * match.c (gfc_match_type_spec): Replace gfc_match_init_expr wi= th gfc_match_expr. Return m if m is MATCH_NO or MATCH_ERROR. gcc/testsuite Backport from master 2020-03-25 Mark Eggleston PR fortran/93484 * gfortran.dg/pr93484_1.f90: New test. * gfortran.dg/pr93484_2.f90: New test.=