[Bug fortran/96101] [9/10/11 Regression] ICE in fold_convert_loc, at fold-const.c:2398
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Dec 28 15:16:59 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96101
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Paul Thomas <pault@gcc.gnu.org>:
https://gcc.gnu.org/g:9db58db5b3986531475968dd383f13a3f925d7ae
commit r9-9136-g9db58db5b3986531475968dd383f13a3f925d7ae
Author: Paul Thomas <pault@gcc.gnu.org>
Date: Thu Aug 20 18:17:59 2020 +0100
This patch fixes PRs 96100 and 96101.
2020-08-20 Paul Thomas <pault@gcc.gnu.org>
gcc/fortran
PR fortran/96100
PR fortran/96101
* trans-array.c (get_array_charlen): Tidy up the evaluation of
the string length for array constructors. Avoid trailing array
references. Ensure string lengths of deferred length components
are set. For parentheses operator apply string length to both
the primary expression and the enclosed expression.
gcc/testsuite/
PR fortran/96100
PR fortran/96101
* gfortran.dg/char_length_23.f90: New test.
(cherry picked from commit 300ef2fcc10e98359d14654be23bbb84a5d141e1)
More information about the Gcc-bugs
mailing list