https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61420
--- Comment #13 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Mon Oct 24 12:14:52 2016 New Revision: 241474 URL: https://gcc.gnu.org/viewcvs?rev=241474&root=gcc&view=rev Log: 2016-10-24 Paul Thomas <pa...@gcc.gnu.org> PR fortran/61420 PR fortran/78013 * resolve.c (resolve_variable): Obtain the typespec for a variable expression, when the variable is a function result that is a procedure pointer. 2016-10-24 Paul Thomas <pa...@gcc.gnu.org> PR fortran/61420 PR fortran/78013 * gfortran.dg/proc_ptr_49.f90: New test. Added: branches/gcc-5-branch/gcc/testsuite/gfortran.dg/proc_ptr_49.f90 Modified: branches/gcc-5-branch/gcc/fortran/ChangeLog branches/gcc-5-branch/gcc/fortran/resolve.c branches/gcc-5-branch/gcc/testsuite/ChangeLog