https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117897
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Paul Thomas <pa...@gcc.gnu.org>: https://gcc.gnu.org/g:3b6ed0c74139faed62b7d60804521aed67e40b2b commit r14-11098-g3b6ed0c74139faed62b7d60804521aed67e40b2b 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)