https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119948
--- Comment #19 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Paul Thomas <pa...@gcc.gnu.org>: https://gcc.gnu.org/g:625b805544101ae90fbe789a5eeba44cd14e89fb commit r16-434-g625b805544101ae90fbe789a5eeba44cd14e89fb Author: Paul Thomas <pa...@gcc.gnu.org> Date: Wed May 7 08:52:52 2025 +0100 Fortran: Source allocation of pure module function rejected [PR119948] 2025-05-07 Paul Thomas <pa...@gcc.gnu.org> and Steven G. Kargl <ka...@gcc.gnu.org> gcc/fortran PR fortran/119948 * primary.cc (match_variable): Module procedures with sym the same as result can be treated as variables, although marked external. gcc/testsuite/ PR fortran/119948 * gfortran.dg/pr119948.f90: Update to incorporate failing test, where module procedure is the result. Test submodule cases.