https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117897
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Paul Thomas <pa...@gcc.gnu.org>: https://gcc.gnu.org/g:9b720ef00339d44050ebdaa9ac69b0c49588c501 commit r13-9258-g9b720ef00339d44050ebdaa9ac69b0c49588c501 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. (cherry picked from commit a87bf1d20a37bb69c9fa6d2211ffd963aa69240d)