]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Pointer fcn results must not be finalized [PR117897]
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 15 Dec 2024 10:42:34 +0000 (10:42 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 15 Dec 2024 10:43:19 +0000 (10:43 +0000)
commita87bf1d20a37bb69c9fa6d2211ffd963aa69240d
tree436b07d5a34294dd76047e64a06a73f08096a010
parentc5609a755bab8a65b373b92b391fced67f511f73
Fortran: Pointer fcn results must not be finalized [PR117897]

2024-12-15  Paul Thomas  <pault@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.
gcc/fortran/trans-expr.cc
gcc/testsuite/gfortran.dg/finalize_59.f90 [new file with mode: 0644]