https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65684
--- Comment #7 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > Fair enough... I have no experience in coding for GCC. Could you give me > a hint where (which file) to start? The content of the message is set by 'translate_error (int code)' (line 412 of libgfortran/runtime/error.c). > I would propose a message like > > > At line 5 of file test.F90 > > Fortran runtime error: End of record (number of characters to be written > > exceeds the length of the record) I did not looked further to the code (you can grep for LIBERROR_EOR libgfortran/runtime/* libgfortran/io/*, and gcc/fortran/* to find where it is set) but I am not sure that "End of record" cannot be emitted when reading or for unformatted files. If so your message will be misleading.