https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60898
--- Comment #24 from Mikael Morin <mikael at gcc dot gnu.org> --- Author: mikael Date: Thu Mar 12 16:08:48 2015 New Revision: 221395 URL: https://gcc.gnu.org/viewcvs?rev=221395&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: branches/gcc-4_9-branch/gcc/testsuite/gfortran.dg/entry_20.f90 Modified: branches/gcc-4_9-branch/gcc/fortran/ChangeLog branches/gcc-4_9-branch/gcc/fortran/resolve.c branches/gcc-4_9-branch/gcc/testsuite/ChangeLog