Committed as r16-329-g0abc77da9d704bba55a376bb5c162a54826ab94a following OK
by Jerry on PR.
I am ready to backport in a few weeks time if that is wanted.
Regards
Paul
Fortran: Source allocation of pure function result rejected [PR119948]
2025-05-01 Paul Thomas <[email protected]>
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.