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

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

https://gcc.gnu.org/g:86c580ded1d58c4e06165d38a0f447d587152179

commit r10-9125-g86c580ded1d58c4e06165d38a0f447d587152179
Author: Harald Anlauf <anl...@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)

Reply via email to