From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 281DF3858D35; Sun, 26 Jul 2020 04:47:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 281DF3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1595738876; bh=rbMcEO2ZfjImWZV8XpyuW01ZF3+wsJ6Agas0DGPBWl0=; h=From:To:Subject:Date:From; b=F+6aK4kq5pR1db5S/Xo6haxKuImm/FxYjjcQVn0zUjpzPheL4OGygIICznd8FdAut MItKHbgHANlGi256t2ZOBRShdqp2GntBe9jNtW/cwTXjPMZ2tVvzafdS0TIhwstYWu hly7xWCHTGk5V+BwhQMI7e/7A9eMRa2FErUGcUdM= From: "damian at sourceryinstitute dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/96320] New: gfortran 8-10 shape mismatch in assumed-length dummy argument character array Date: Sun, 26 Jul 2020 04:47:55 +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: 10.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: damian at sourceryinstitute dot org 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: Sun, 26 Jul 2020 04:47:56 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96320 Bug ID: 96320 Summary: gfortran 8-10 shape mismatch in assumed-length dummy argument character array Product: gcc Version: 10.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: damian at sourceryinstitute dot org Target Milestone: --- The code below compiles cleanly with the NAG Fortran compiler. I believe the error message is incorrect. Gfotran 8, 9 and 10 give the same message. =C2=B1 cat shape-mismatch.f90=20 module foobar type foo contains procedure, nopass :: bar end type interface module subroutine bar(arg) character(len=3D*) arg(:) end subroutine end interface contains module procedure bar end procedure end module =C2=B1 gfortran -c shape-mismatch.f90=20 shape-mismatch.f90:12:22: 12 | module procedure bar | 1 Error: Shape mismatch in argument 'arg' at (1) =C2=B1 gfortran --version GNU Fortran (GCC) 10.1.0=