re PR libfortran/25139 ("Invalid argument" error on I/O)