]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: fix issues with rank-2 deferred-length character arrays [PR108581]
authorHarald Anlauf <anlauf@gmx.de>
Sat, 20 Sep 2025 20:20:25 +0000 (22:20 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Sun, 21 Sep 2025 08:33:27 +0000 (10:33 +0200)
commit749af11149623dbf9ba026fd98bd7f31409fdaed
treea9dce9c5b6c0a122a4b2a00200e3c0c71fab4ab7
parentee4bbfe627507c70be76ad3a09a065db78357570
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.
gcc/fortran/trans-array.cc
gcc/testsuite/gfortran.dg/deferred_character_39.f90 [new file with mode: 0644]