From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 63BC33857368; Fri, 13 May 2022 16:00:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 63BC33857368 From: "everythingfunctional at protonmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/105594] New: -Wuse-without-only issued for any submodule Date: Fri, 13 May 2022 16:00:31 +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: 11.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: everythingfunctional at protonmail dot com 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, 13 May 2022 16:00:31 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105594 Bug ID: 105594 Summary: -Wuse-without-only issued for any submodule Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: everythingfunctional at protonmail dot com Target Milestone: --- The -Wuse-without-only option issues a warning when compiling any submodule. This is incorrect as a submodule statement is not a use statement, and cann= ot contain an only qualifier. For example the source code module foo_m interface module subroutine foo end subroutine end interface end module submodule (foo_m) foo_s contains module procedure foo end procedure end submodule when compiled like $ gfortran -c -Wuse-without-only foo_m.f90 foo_m.f90:8:17: 8 | submodule (foo_m) foo_s | 1 Warning: USE statement at (1) has no ONLY qualifier [-Wuse-without-only]=