https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78661
--- Comment #21 from janus at gcc dot gnu.org --- Created attachment 40953 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40953&action=edit rebased patch Here is the rebased patch. There was one conflict in libgfortran/io/write.c. The testcase seems to be working properly by now, but unfortunately the patch breaks dtio_25.f90 (execution test), i.e. the test case from PR 78854.