re PR fortran/46140 (Include not found - but exit status code is zero)

2010-10-25  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/46140
	* fortran/scanner.c (include_line): Check return value of load_file.

From-SVN: r165924
This commit is contained in:
Steven G. Kargl 2010-10-25 16:11:54 +00:00
parent 14d14c28f5
commit a7d0ea52ab
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-10-25 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/46140
* fortran/scanner.c (include_line): Check return value of load_file.
2010-10-01 Release Manager
* GCC 4.4.5 released.

View File

@ -1770,7 +1770,9 @@ include_line (gfc_char_t *line)
read by anything else. */
filename = gfc_widechar_to_char (begin, -1);
load_file (filename, NULL, false);
if (load_file (filename, NULL, false) == FAILURE)
exit (1);
gfc_free (filename);
return true;
}