From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B65203858D38; Sun, 26 Jul 2020 21:35:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B65203858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1595799356; bh=H6abajxsQ0sPbxOMB9Gs5YlOz2w2C8Iyeuimkj6oz6w=; h=From:To:Subject:Date:In-Reply-To:References:From; b=f3PjTs8oOxd2mNO+0YAmf7vCmCFVDIQ1Jleo3P/phOD0njFRqWPkr597LMYFe5ach k/XEuQbq+Sh6AnQ0mj5+aE5z/2QKHNuLlFugkAHcAIC5rJL162ARUH8mh1ZoJvqoEp DjvOjvz+eQUp4TSHKL36z0bUoyi0Zbx+RGUfkfo0= From: "jvdelisle at charter dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/96320] gfortran 8-10 shape mismatch in assumed-length dummy argument character array Date: Sun, 26 Jul 2020 21:35:56 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at charter dot net 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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: Sun, 26 Jul 2020 21:35:56 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96320 jvdelisle at charter dot net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jvdelisle at charter dot n= et --- Comment #6 from jvdelisle at charter dot net --- I my too simple terms, when you define the interface and then use module procedure in the contains, all of the declarations in the interface exist a= s if you had them in the declaration of the subroutine or function in the contai= ns.=20 This includes all arguments and whether or not the procedure is a subroutin= e or a function. I was not aware of this either untill I saw some other code Damian was doing earlier this week that does actually compile fine like this with gfortran. = It is a modern feature and if you think about it, very useful in that it saves= a lot of typing. One can choose do do it either way, but this way shown truly uses the interface to define everything.=