https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99169
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:baf4c27c8754c1f7bbad3f577a4bd890528c0e75 commit r9-9247-gbaf4c27c8754c1f7bbad3f577a4bd890528c0e75 Author: Harald Anlauf <anl...@gmx.de> Date: Sun Feb 21 21:44:24 2021 +0100 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)