[Bug fortran/68155] ICE on initializing character array in type (len_lhs <> len_rhs)
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Sep 24 14:26:14 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68155
--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Paul Thomas <pault@gcc.gnu.org>:
https://gcc.gnu.org/g:8c1925ece0193058120e94614e99360e9600777e
commit r13-7833-g8c1925ece0193058120e94614e99360e9600777e
Author: Paul Thomas <pault@gcc.gnu.org>
Date: Sun Sep 24 15:26:01 2023 +0100
Fortran: Pad mismatched charlens in component initializers [PR68155]
2023-09-24 Paul Thomas <pault@gcc.gnu.org>
gcc/fortran
PR fortran/68155
* decl.cc (fix_initializer_charlen): New function broken out of
add_init_expr_to_sym.
(add_init_expr_to_sym, build_struct): Call the new function.
gcc/testsuite/
PR fortran/68155
* gfortran.dg/pr68155.f90: New test.
More information about the Gcc-bugs
mailing list