From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7978 invoked by alias); 13 Feb 2015 19:34:05 -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 7900 invoked by uid 55); 13 Feb 2015 19:33:59 -0000 From: "mikael at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/63744] [4.8/4.9/5 Regression] Duplicate use-statement causes error Date: Fri, 13 Feb 2015 19:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.1 X-Bugzilla-Keywords: patch X-Bugzilla-Severity: normal X-Bugzilla-Who: mikael at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: mikael at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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/msg01538.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63744 --- Comment #11 from Mikael Morin --- Author: mikael Date: Fri Feb 13 19:33:27 2015 New Revision: 220692 URL: https://gcc.gnu.org/viewcvs?rev=220692&root=gcc&view=rev Log: Use the local name instead of the original name in the check for name conflicts between a hosting program unit and use-associated symbols in that program unit. fortran/ PR fortran/63744 * module.c (check_for_ambiguous): Change argument type from gfc_symbol to gfc_symtree. Check local (symtree) name instead of original (symbol) name. (read_module): Update caller. testsuite/ PR fortran/63744 gfortran.dg/use_rename_8.f90: New. Added: branches/gcc-4_8-branch/gcc/testsuite/gfortran.dg/use_rename_8.f90 Modified: branches/gcc-4_8-branch/gcc/fortran/ChangeLog branches/gcc-4_8-branch/gcc/fortran/module.c branches/gcc-4_8-branch/gcc/testsuite/ChangeLog