$ cat test.f90 USE NONEXISTENT $ gfortran -c test.f90 Fatal Error: Can't open module file 'nonexistent.mod' for reading: No such file or directory It would be good if the "Fatal Error" message would include the file and line number where this error occurs.
Confirmed.
Patch here: http://gcc.gnu.org/ml/fortran/2004-07/msg00119.html
Subject: Bug 16455 CVSROOT: /cvs/gcc Module name: gcc Changes by: tobi@gcc.gnu.org 2004-07-11 13:06:26 Modified files: gcc/fortran : ChangeLog Log message: PR fortran/16455 Fix ChangeLog Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.118&r2=1.119
Fixed.