Use the local name instead of the original name in the check for name conflicts
authormikael <mikael@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 8 Feb 2015 14:18:16 +0000 (14:18 +0000)
committermikael <mikael@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 8 Feb 2015 14:18:16 +0000 (14:18 +0000)
commit135f23d5d08f2ce5ceb7129d74a256942ac5ac35
treef3bddb2a80d9a83b808717fa412d39ff35b939d5
parent8ae2b3a81ff0341462eb1f4c1f94e6406cb448ec
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220515 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/module.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/use_rename_8.f90 [new file with mode: 0644]