From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AFEF1385783A; Tue, 8 Sep 2020 19:22:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AFEF1385783A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1599592966; bh=gJ8mKTwo7qEtQhobODgmRsy9B47mWmEtdl0ZBTKGAAE=; h=From:To:Subject:Date:From; b=lVNNZpz2nlX0I6DPuB9eGpHC0Qqu60xVPzxrLbUhGpbHFEq/1pF76vrAllfUxJy/3 haI34DpMCk19NbTsv2yWGvMajabGEhyYeXFxNTf3tQE07ikq1RRrFwLkHLjs1jOkFM RAz0HOjMmWTkXlTRWM4GqHQqR8FesueVdMALn0Es= From: "foreese at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/96986] New: [8 Regression] Explicit interface required: volatile argument for ENTRY subroutine Date: Tue, 08 Sep 2020 19:22:46 +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: 8.3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: foreese at gcc dot gnu.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 attachments.created 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: Tue, 08 Sep 2020 19:22:46 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96986 Bug ID: 96986 Summary: [8 Regression] Explicit interface required: volatile argument for ENTRY subroutine Product: gcc Version: 8.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: foreese at gcc dot gnu.org Target Milestone: --- Created attachment 49200 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D49200&action=3Dedit Testcase which exhibits the regression GCC 8.3.1 does not accept the following program, but all versions 4.x throu= gh 7.x and <=3D 8.3.0 do: $ cat volatile.for subroutine volatile_test () implicit none integer(4), volatile :: va entry fun_a() return entry fun_b(va) call fun_c() return end subroutine fun_c () implicit none call fun_a() return end $ gfortran -std=3Dlegacy -c volatile.for volatile.for:15:18: call fun_a() 1 Error: Explicit interface required for =E2=80=98fun_a=E2=80=99 at (1): vola= tile argument It seems that because fun_b() has a volatile argument, the subroutine volatile_test() is marked as such. Subsequently the call to fun_a() from fun_c() within the same procedure trips the error. The regression appears to have been introduced in r269895 on gcc-9 which fi= xed PR 78865. The fix was backported to gcc-8 by r270032 and released as part of 8.3.1.=