From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 78A9E387086C; Thu, 28 May 2020 13:45:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 78A9E387086C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1590673517; bh=mPJL7MjBf8xN2x4I4VXZ5Hq/Vsgko44E5zSMh/7q85I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=BJxO5q2MvoaUzxRJLrLoFUZLfoxIPkKaNEYkWZgceB+6+mG09Uz5nJmxsmmDfPhjX fL0MTm3m36TYEKmRp2HeKL28GOxLEPZrhrJs1Fb1KAjx107y4mRe+eobWAAV4r86zd jfhp3t6xVEdK19NW3pz1xbMJFdug5/TGjwSkVFPA= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/94397] [9/10/11 Regression] the compiler consider "type is( real(kind(1.)) )" as a syntax error since r10-7369-gc38daa7976886a59 Date: Thu, 28 May 2020 13:45: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.1.0 X-Bugzilla-Keywords: rejects-valid 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: 10.2 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, 28 May 2020 13:45:17 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94397 --- Comment #11 from CVS Commits --- The releases/gcc-10 branch has been updated by Mark Eggleston : https://gcc.gnu.org/g:f2fe2ad8d379297dcf571b2b9c46200c5ae5391f commit r10-8200-gf2fe2ad8d379297dcf571b2b9c46200c5ae5391f Author: Mark Eggleston Date: Wed Apr 1 09:52:41 2020 +0100 Fortran : "type is( real(kind(1.)) )" spurious syntax error PR94397 Based on a patch in the comments of the PR. That patch fixed this problem but caused the test cases for PR93484 to fail. It has been changed to reduce initialisation expressions if the expression is not EXPR_VARIABLE and not EXPR_CONSTANT. 2020-05-28 Steven G. Kargl Mark Eggleston gcc/fortran/ PR fortran/94397 * match.c (gfc_match_type_spec): New variable ok initialised to true. Set ok with the return value of gfc_reduce_init_expr called only if the expression is not EXPR_CONSTANT and is not EXPR_VARIABLE. Add !ok to the check for type not being integer or the rank being greater than zero. 2020-05-28 Mark Eggleston gcc/testsuite/ PR fortran/94397 * gfortran.dg/pr94397.F90: New test. (cherry picked from commit 3ea6977d0f1813d982743a09660eec1760e981ec)=