[Bug fortran/99169] [9/10/11 Regression] Segfault when passing allocatable scalar into intent(out) dummy argument

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 23 18:14:46 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99169

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:

https://gcc.gnu.org/g:e111925dbddb63ca1ee9e43412c7e896ba5c1105

commit r10-9385-ge111925dbddb63ca1ee9e43412c7e896ba5c1105
Author: Harald Anlauf <anlauf@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)


More information about the Gcc-bugs mailing list