https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92178
--- Comment #17 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:b1079fc88f082d3c5b583c8822c08c5647810259 commit r14-2395-gb1079fc88f082d3c5b583c8822c08c5647810259 Author: Harald Anlauf <anl...@gmx.de> Date: Wed Jul 5 22:21:09 2023 +0200 Fortran: fixes for procedures with ALLOCATABLE,INTENT(OUT) arguments [PR92178] gcc/fortran/ChangeLog: PR fortran/92178 * trans-expr.cc (gfc_conv_procedure_call): Check procedures for allocatable dummy arguments with INTENT(OUT) and move deallocation of actual arguments after evaluation of argument expressions before the procedure is executed. gcc/testsuite/ChangeLog: PR fortran/92178 * gfortran.dg/intent_out_16.f90: New test. * gfortran.dg/intent_out_17.f90: New test. * gfortran.dg/intent_out_18.f90: New test. Co-authored-by: Steven G. Kargl <ka...@gcc.gnu.org>