[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 08:01:06 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68155
--- Comment #13 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Paul Thomas <pault@gcc.gnu.org>:
https://gcc.gnu.org/g:c23ce23e9ce162c49bca8900c8a20079b49501c9
commit r14-4242-gc23ce23e9ce162c49bca8900c8a20079b49501c9
Author: Paul Thomas <pault@gcc.gnu.org>
Date: Sun Sep 24 09:00:52 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.
PR fortran/111271
* trans-expr.cc (gfc_conv_intrinsic_to_class): Remove repeated
condition.
gcc/testsuite/
PR fortran/68155
* gfortran.dg/pr68155.f90: New test.
More information about the Gcc-bugs
mailing list