Use the local name instead of the original name in the check for name conflicts...
authorMikael Morin <mikael@gcc.gnu.org>
Sun, 8 Feb 2015 14:18:16 +0000 (14:18 +0000)
committerMikael Morin <mikael@gcc.gnu.org>
Sun, 8 Feb 2015 14:18:16 +0000 (14:18 +0000)
commit91480ff35011b73b2debcea1d88090d9165473aa
treef3bddb2a80d9a83b808717fa412d39ff35b939d5
parent57f4f0d5f662eec0aa38ac0f554262ce072a8eeb
Use the local name instead of the original name in the check for name conflicts...

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.

From-SVN: r220515
gcc/fortran/ChangeLog
gcc/fortran/module.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/use_rename_8.f90 [new file with mode: 0644]