[Bug fortran/108581] wrong assignment on two-rank array with deferred-length characters
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Sep 21 08:43:43 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108581
--- Comment #7 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:749af11149623dbf9ba026fd98bd7f31409fdaed
commit r16-4006-g749af11149623dbf9ba026fd98bd7f31409fdaed
Author: Harald Anlauf <anlauf@gmx.de>
Date: Sat Sep 20 22:20:25 2025 +0200
Fortran: fix issues with rank-2 deferred-length character arrays [PR108581]
PR fortran/108581
gcc/fortran/ChangeLog:
* trans-array.cc (gfc_conv_expr_descriptor): Take the dynamic
string length into account when deriving the dataptr offset for
a deferred-length character array.
gcc/testsuite/ChangeLog:
* gfortran.dg/deferred_character_39.f90: New test.
More information about the Gcc-bugs
mailing list