From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22957 invoked by alias); 8 Feb 2015 15:38:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 22936 invoked by uid 48); 8 Feb 2015 15:38:26 -0000 From: "mikael at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/64973] New: Duplicate use-statements could be diagnosed Date: Sun, 08 Feb 2015 15:38:00 -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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mikael at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-02/txt/msg00700.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64973 Bug ID: 64973 Summary: Duplicate use-statements could be diagnosed Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mikael at gcc dot gnu.org This is a followup to PR63744 and was suggested in: https://gcc.gnu.org/ml/fortran/2015-02/msg00036.htm We accept duplicate use-rename statements like: use m, only: A => X use m, only: A => X But it doesn't make sense for someone to type them twice, so they may actually be a typo. The compiler could diagnose it, probably under some flag (Dominique suggested -Wall). There is also: use m, only: A => X, A => X and also: use m use m