https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78619
--- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Thu Nov 9 19:12:41 2017 New Revision: 254605 URL: https://gcc.gnu.org/viewcvs?rev=254605&root=gcc&view=rev Log: 2017-11-09 Paul Thomas <pa...@gcc.gnu.org> PR fortran/78619 * check.c (same_type_check): Introduce a new argument 'assoc' with default value false. If this is true, use the symbol type spec of BT_PROCEDURE expressions. (gfc_check_associated): Set 'assoc' true in the call to 'same_type_check'. 2017-11-09 Paul Thomas <pa...@gcc.gnu.org> PR fortran/78619 * gfortran.dg/pr78619.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/pr78619.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/check.c trunk/gcc/testsuite/ChangeLog