https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117897
--- Comment #5 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:a87bf1d20a37bb69c9fa6d2211ffd963aa69240d commit r15-6260-ga87bf1d20a37bb69c9fa6d2211ffd963aa69240d Author: Paul Thomas <pa...@gcc.gnu.org> Date: Sun Dec 15 10:42:34 2024 +0000 Fortran: Pointer fcn results must not be finalized [PR117897] 2024-12-15 Paul Thomas <pa...@gcc.gnu.org> gcc/fortran PR fortran/117897 * trans-expr.cc (gfc_trans_assignment_1): RHS pointer function results must not be finalized. gcc/testsuite/ PR fortran/117897 * gfortran.dg/finalize_59.f90: New test.