]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran - fix handling of optional allocatable DT arguments with INTENT(OUT)
authorHarald Anlauf <anlauf@gmx.de>
Thu, 16 Sep 2021 18:12:21 +0000 (20:12 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Thu, 16 Sep 2021 18:12:21 +0000 (20:12 +0200)
commitcfea7b86f2430b9cb8018379b071f4004233119c
treecf0f208ec70d6b3318eaf216e2097968ba249308
parentdb1a65d9364fe72c2fff65fb2dec051728b6f3fa
Fortran - fix handling of optional allocatable DT arguments with INTENT(OUT)

gcc/fortran/ChangeLog:

PR fortran/102287
* trans-expr.c (gfc_conv_procedure_call): Wrap deallocation of
allocatable components of optional allocatable derived type
procedure arguments with INTENT(OUT) into a presence check.

gcc/testsuite/ChangeLog:

PR fortran/102287
* gfortran.dg/intent_out_14.f90: New test.
gcc/fortran/trans-expr.c
gcc/testsuite/gfortran.dg/intent_out_14.f90 [new file with mode: 0644]