]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR fortran/99169 - Do not clobber allocatable intent(out) dummy argument
authorHarald Anlauf <anlauf@gmx.de>
Sun, 21 Feb 2021 20:44:24 +0000 (21:44 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Tue, 23 Feb 2021 18:25:52 +0000 (19:25 +0100)
commitbaf4c27c8754c1f7bbad3f577a4bd890528c0e75
treee04926ede9584460d7ec291eece97af6a02f2565
parente7040a384f9fdec955e21644f65e39a37c4deed1
PR fortran/99169 - Do not clobber allocatable intent(out) dummy argument

gcc/fortran/ChangeLog:

* trans-expr.c (gfc_conv_procedure_call): Do not add clobber to
allocatable intent(out) argument.

gcc/testsuite/ChangeLog:

* gfortran.dg/intent_optimize_3.f90: New test.

(cherry picked from commit 2df374b337a5f6cf5528e91718e4e12e4006b7ae)
gcc/fortran/trans-expr.c
gcc/testsuite/gfortran.dg/intent_optimize_3.f90 [new file with mode: 0644]