https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63744
--- Comment #9 from Mikael Morin <mikael at gcc dot gnu.org> --- Author: mikael Date: Sun Feb 8 14:18:16 2015 New Revision: 220515 URL: https://gcc.gnu.org/viewcvs?rev=220515&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: trunk/gcc/testsuite/gfortran.dg/use_rename_8.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/module.c trunk/gcc/testsuite/ChangeLog