https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119948
--- Comment #10 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:0abc77da9d704bba55a376bb5c162a54826ab94a commit r16-329-g0abc77da9d704bba55a376bb5c162a54826ab94a Author: Paul Thomas <pa...@gcc.gnu.org> Date: Thu May 1 15:22:54 2025 +0100 Fortran: Source allocation of pure function result rejected [PR119948] 2025-05-01 Paul Thomas <pa...@gcc.gnu.org> gcc/fortran PR fortran/119948 * resolve.cc (gfc_impure_variable): The result of a module procedure with an interface declaration is not impure even if the current namespace is not the same as the symbol's. gcc/testsuite/ PR fortran/119948 * gfortran.dg/pr119948.f90: New test.