]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: fix issue with I/O of array pointer [PR107968]
authorHarald Anlauf <anlauf@gmx.de>
Fri, 3 Oct 2025 19:16:19 +0000 (21:16 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Sat, 4 Oct 2025 16:59:50 +0000 (18:59 +0200)
commite3431c6fd4691d5a0c48ee78869e5f9a79f217c3
tree189d828e4bb728de7f8caa858e0cbb3cb2cff930
parent7609f37f07e13970f69914afdba79cbd4de8cd5b
Fortran: fix issue with I/O of array pointer [PR107968]

PR fortran/107968

gcc/fortran/ChangeLog:

* trans-io.cc (gfc_trans_transfer): Also scalarize I/O of section
of an array pointer.

gcc/testsuite/ChangeLog:

* gfortran.dg/implied_do_io_9.f90: New test.
gcc/fortran/trans-io.cc
gcc/testsuite/gfortran.dg/implied_do_io_9.f90 [new file with mode: 0644]