https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98017
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:bb67ad5cff58a707aaae645d4f45a913d8511c86 commit r11-5526-gbb67ad5cff58a707aaae645d4f45a913d8511c86 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.