Hello all, Attached patch fixes this and adds a test case. The "$" edit descriptor was being completely ignored when next_record_w is processed. Fixed by adding a simple check. OK for trunk and backport to 10 since it is simple enough? Regards, Jerry libgfortran: Do not emit end-of-record if seen_dollar. 2021-02-07  Jerry DeLisle  libgfortran/ChangeLog:     PR libgfortran/98825     * io/transfer.c (next_record_w): Insert check for seen_dollar and if     so, skip issueing next record. gcc/testsuite/ChangeLog:     * gfortran.dg/dollar_edit_descriptor_4.f: New test.