https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99206
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <[email protected]>: https://gcc.gnu.org/g:a6c7e0fcffc857e67dffdd7609be663cc3aac7d2 commit r11-7348-ga6c7e0fcffc857e67dffdd7609be663cc3aac7d2 Author: Harald Anlauf <[email protected]> Date: Tue Feb 23 19:09:14 2021 +0100 PR fortran/99206 - ICE in add_init_expr_to_sym, at fortran/decl.c:1980 Make sure that the string length is properly set during simplification even when the resulting array is zero-sized. gcc/fortran/ChangeLog: PR fortran/99206 * simplify.c (gfc_simplify_reshape): Set string length for character arguments. gcc/testsuite/ChangeLog: PR fortran/99206 * gfortran.dg/reshape_zerosize_4.f90: New test.
