[Bug fortran/59252] [F03] wrong code generation for allocatable character component
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 7 20:43:13 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59252
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <anlauf@gcc.gnu.org>:
https://gcc.gnu.org/g:818c36a85e3faec5442eb26799bfa3bba7764b36
commit r15-7433-g818c36a85e3faec5442eb26799bfa3bba7764b36
Author: Harald Anlauf <anlauf@gmx.de>
Date: Fri Feb 7 21:21:10 2025 +0100
Fortran: fix initialization of allocatable non-deferred character [PR59252]
PR fortran/59252
gcc/fortran/ChangeLog:
* trans-expr.cc (gfc_trans_subcomponent_assign): Initialize
allocatable non-deferred character with NULL properly.
gcc/testsuite/ChangeLog:
* gfortran.dg/allocatable_char_1.f90: New test.
More information about the Gcc-bugs
mailing list