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

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

https://gcc.gnu.org/g:56f83e64e179f2ff5bb4161db076d7e6ae1c0a3f

commit r8-10675-g56f83e64e179f2ff5bb4161db076d7e6ae1c0a3f
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