diff mbox

[Fortran,4.9/5/6,Regression] ICE for Fortran files when specifying a file instead of an include directory

Message ID 56CB8B03.1020402@charter.net
State New
Headers show

Commit Message

Jerry DeLisle Feb. 22, 2016, 10:26 p.m. UTC
The ice on this one is actually in libcpp but I don't want to mess around in
that area.  Not sure why we were only doing a warning here.

I plan to commit the following to trunk with a ChangeLog entry under the simple
and obvious rule.

Let me no if any objections.

diff mbox


diff --git a/gcc/fortran/scanner.c b/gcc/fortran/scanner.c
index c1d79457..c4e7974e 100644
--- a/gcc/fortran/scanner.c
+++ b/gcc/fortran/scanner.c
@@ -336,7 +336,7 @@  add_path_to_list (gfc_directorylist **list, const char *path,
   else if (!S_ISDIR (st.st_mode))
-      gfc_warning_now (0, "%qs is not a directory", path);
+      gfc_fatal_error ("%qs is not a directory", path);