https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87127
--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Paul Thomas <pa...@gcc.gnu.org>: https://gcc.gnu.org/g:9ccf471f8cc7341984f6613247f01d8ecfcb7ad5 commit r12-9295-g9ccf471f8cc7341984f6613247f01d8ecfcb7ad5 Author: Paul Thomas <pa...@gcc.gnu.org> Date: Mon Mar 20 06:23:29 2023 +0000 Fortran: Allow external function from in an associate block [PR87127] 2023-03-20 Paul Thomas <pa...@gcc.gnu.org> gcc/fortran PR fortran/87127 * resolve.cc (check_host_association): If an external function is typed but not declared explicitly to be external, change the old symbol from a variable to an external function. gcc/testsuite/ PR fortran/87127 * gfortran.dg/external_procedures_4.f90: New test.