https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60898
--- Comment #23 from Mikael Morin <mikael at gcc dot gnu.org> --- Author: mikael Date: Sun Mar 8 11:52:51 2015 New Revision: 221262 URL: https://gcc.gnu.org/viewcvs?rev=221262&root=gcc&view=rev Log: PR fortran/60898 fortran/ * resolve.c (resolve_symbol): Check that the symbol found by name lookup really is the current symbol being resolved. testsuite/ * gfortran.dg/entry_20.f90: New. Added: trunk/gcc/testsuite/gfortran.dg/entry_20.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/resolve.c trunk/gcc/testsuite/ChangeLog