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

--- Comment #10 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:bb05ddea976a7a8b3f02175050a5d53356ccab9d

commit r9-9932-gbb05ddea976a7a8b3f02175050a5d53356ccab9d
Author: Harald Anlauf <anl...@gmx.de>
Date:   Thu Jan 20 22:36:50 2022 +0100

    Fortran: fix simplification of TRANSFER for zero-sized character array
result

    gcc/fortran/ChangeLog:

            PR fortran/104127
            * simplify.c (gfc_simplify_transfer): Ensure that the result
            typespec is set up for TRANSFER with MOLD of type CHARACTER
            including character length even if the result is a zero-sized
            array.

    gcc/testsuite/ChangeLog:

            PR fortran/104127
            * gfortran.dg/transfer_simplify_11.f90: Fix logic.
            * gfortran.dg/transfer_simplify_13.f90: New test.

    (cherry picked from commit 6c1a93102b41a558f3ad49a7c66015257535c747)

Reply via email to