https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99169
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:2df374b337a5f6cf5528e91718e4e12e4006b7ae commit r11-7315-g2df374b337a5f6cf5528e91718e4e12e4006b7ae 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.