http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46140
Summary: [4.4/4.5/4.6 Regression] Include not found - but exit status code is zero Product: gcc Version: 4.6.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: bur...@gcc.gnu.org Reported by Thomas Jahns by email and at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=561245 Compiling the following program gives Error: Can't open included file 'notthere.inc' However, using GCC 4.4, 4.5 and 4.6 the exit status code is zero: $ gfortran-4.3 test.f90; echo $? Error: Can't open included file 'notthere.inc' 1 $ gfortran-4.4 test.f90; echo $? test.f90:2: Error: Can't open included file 'notthere.inc' 0 program testinc include 'notthere.inc' print *, 'I''m running although I shouldn''t even compile.' end program