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

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

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

commit r11-9516-gc3251374af4b82888b6be3eb9cfa6b0b3944907b
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)
  • [Bug fortran/104127] [9/10/11/1... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to