This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/63744] [4.8/4.9/5 Regression] Duplicate use-statement causes error
- From: "mikael at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 13 Feb 2015 18:49:07 +0000
- Subject: [Bug fortran/63744] [4.8/4.9/5 Regression] Duplicate use-statement causes error
- Auto-submitted: auto-generated
- References: <bug-63744-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63744
--- Comment #10 from Mikael Morin <mikael at gcc dot gnu.org> ---
Author: mikael
Date: Fri Feb 13 18:48:35 2015
New Revision: 220690
URL: https://gcc.gnu.org/viewcvs?rev=220690&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_9-branch/gcc/testsuite/gfortran.dg/use_rename_8.f90
Modified:
branches/gcc-4_9-branch/gcc/fortran/ChangeLog
branches/gcc-4_9-branch/gcc/fortran/module.c
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog