https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55534
--- Comment #16 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Tobias Burnus <bur...@gcc.gnu.org>: https://gcc.gnu.org/g:204f56aa65d2496e9f7db86c4aa37d42a336fc5b commit r12-3877-g204f56aa65d2496e9f7db86c4aa37d42a336fc5b Author: Tobias Burnus <tob...@codesourcery.com> Date: Fri Sep 24 09:30:51 2021 +0200 Fortran: Improve file-reading error diagnostic [PR55534] PR fortran/55534 gcc/fortran/ChangeLog: * scanner.c (load_file): Return void, call (gfc_)fatal_error for all errors. (include_line, include_stmt, gfc_new_file): Remove exit call for failed load_file run. gcc/testsuite/ChangeLog: * gfortran.dg/include_9.f90: Add dg-prune-output. * gfortran.dg/include_23.f90: New test. * gfortran.dg/include_24.f90: New test.