From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A232B3858D35; Fri, 17 Dec 2021 10:11:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A232B3858D35 From: "b.j.braams at cwi dot nl" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/103757] New: compiler rejects import, {none,all,only}, does not recognize the keyword Date: Fri, 17 Dec 2021 10:11:56 +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.3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: b.j.braams at cwi dot nl 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: Fri, 17 Dec 2021 10:11:56 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103757 Bug ID: 103757 Summary: compiler rejects import, {none,all,only}, does not recognize the keyword Product: gcc Version: 10.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: b.j.braams at cwi dot nl Target Milestone: --- The following code is rejected by gfortran 10.3.1 with an error message "Ca= nnot IMPORT =E2=80=98only=E2=80=99 from host scoping unit at (1) - does not exis= t." Same kind of message if "import, all" or "import, none" is used. It seems that the compi= ler is interpreting "all", "none" or "only" as objects to be imported rather th= an as keywords. module moo use iso_fortran_env, only : wp =3D> real64 implicit none ; private public :: foo contains subroutine foo (fun) interface subroutine fun (x) import, only :: wp real (kind=3Dwp) :: x end subroutine fun end interface return end subroutine foo end module moo=