From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4331A3858D33; Thu, 4 May 2023 22:17:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4331A3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683238678; bh=4viCXkz+QM0AdY63QDMd7JqvRM4v1sUcvspsFj7+YmE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Y7SNnmNWwVfihQmxsq6WJ5pANohJ3ya5tCrDS2dz8M37NYDEAmTsCeLUONnm2480E FJAJWf4+TPvzWyWqfZE5NTdmxR12AIE97ctqDpo4xhJ3QELAFrO+avuC3JhOHilF6E 8VKW3xCeLwdqjE5/m37Hxuk4/vCzoZa20e9jYG4w= From: "ian_harvey at bigpond dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/97122] Spurious FINAL ... must be in the specification part of a MODULE Date: Thu, 04 May 2023 22:17:58 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: ian_harvey at bigpond dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97122 --- Comment #6 from Ian Harvey --- A module procedure is defined by a module subprogram (F2018 15.2.2.2p3). A module subprogram (or any subprogram) is a syntax element (a piece of source code), equivalent to /module-subprogram/ (see the first sentence of F2018 4.1.5p1). The things that appear after the CONTAINS in a submodule are mod= ule subprograms (see the definitions of /submodule/ and /module-subprogram-part= /).=