From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B7D08398B89D; Sat, 12 Sep 2020 21:01:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B7D08398B89D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1599944486; bh=wGgU1HbXN0nxuHSntWzPiFBIm3nRsRPlkX8AXw1NvIw=; h=From:To:Subject:Date:From; b=QyxoMxvVmdJiij0i7Tnzc2IroHmc6B+8UYg4p0PSHKix4CZi70ePX99tYq7bTnLoR wT6MRKSK7KdItLnkvs48fhqhz06JSBvA0ZK27vl4n4LvmR/jWj9Z86e89gRYCe6nrJ lNg9Nl2v/6VluWAQ/sfqnpBClvYtZZavMWdyVX24= From: "ian_harvey at bigpond dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/97036] New: [F2018] ELEMENTAL RECURSIVE subprogram prefix combination rejected Date: Sat, 12 Sep 2020 21:01:26 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ian_harvey at bigpond dot com 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: Sat, 12 Sep 2020 21:01:26 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97036 Bug ID: 97036 Summary: [F2018] ELEMENTAL RECURSIVE subprogram prefix combination rejected Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: ian_harvey at bigpond dot com Target Milestone: --- F2018 removed the previous syntax restriction (F2008 C1245) on a subprogram definition with both ELEMENTAL and RECURSIVE. MODULE m IMPLICIT NONE CONTAINS ELEMENTAL RECURSIVE SUBROUTINE foo END SUBROUTINE foo END MODULE m $ gfortran --version GNU Fortran (GCC) 11.0.0 20200905 (experimental) $ gfortran -c 2020-09-13\ elemental-recursive.f90 -std=3Df2018 2020-09-13 elemental-recursive.f90:4:22: 4 | ELEMENTAL RECURSIVE SUBROUTINE foo | 1 Error: ELEMENTAL attribute conflicts with RECURSIVE attribute at (1) 2020-09-13 elemental-recursive.f90:5:5: 5 | END SUBROUTINE foo | 1 Error: Expecting END MODULE statement at (1)=