diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2020-09-24 11:52:30 +0100 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2020-09-24 11:52:30 +0100 |
commit | e86a02f87d8a11480c1421ef2dd71b8b5f43d938 (patch) | |
tree | 87dd382f6a75e535a9fc6570dc85b3dc74b2d83a /gcc/tree-ssa-loop-im.c | |
parent | fe28d34079aad7d3bf8d9bfd78d0ba43110b7906 (diff) | |
download | gcc-e86a02f87d8a11480c1421ef2dd71b8b5f43d938.zip gcc-e86a02f87d8a11480c1421ef2dd71b8b5f43d938.tar.gz gcc-e86a02f87d8a11480c1421ef2dd71b8b5f43d938.tar.bz2 |
This patch fixes PR96495 - frees result components outside loop.
2020-24-09 Paul Thomas <pault@gcc.gnu.org>
gcc/fortran
PR fortran/96495
* trans-expr.c (gfc_conv_procedure_call): Take the deallocation
of allocatable result components of a scalar result outside the
scalarization loop. Find and use the stored result.
gcc/testsuite/
PR fortran/96495
* gfortran.dg/alloc_comp_result_2.f90 : New test.
Diffstat (limited to 'gcc/tree-ssa-loop-im.c')
0 files changed, 0 insertions, 0 deletions