[Bug fortran/98017] [8/9/10/11 Regression] Suspected regression (relative to 7.5) using PACK in iolist since r8-4151-g6c6bde30706c29ff

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Dec 11 21:28:22 GMT 2020


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

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

https://gcc.gnu.org/g:342be4dce16630575e2de21dbeec4baaed7a143a

commit r9-9109-g342be4dce16630575e2de21dbeec4baaed7a143a
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Sun Nov 29 23:23:16 2020 +0100

    PR fortran/98017 - Suspected regression using PACK

    When substituting a parameter variable of type character, the character
    length was reset to 1.  Fix this by copying the length.

    gcc/fortran/ChangeLog:

            * expr.c (simplify_parameter_variable): Fix up character length
            after copying an array-valued expression.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/pr98017.f90: New test.

    (cherry picked from commit bb67ad5cff58a707aaae645d4f45a913d8511c86)


More information about the Gcc-bugs mailing list