[Fortran,4.9/5/6 Regression]ICE for Fortran files when specifying a file instead of an include directory
Jerry DeLisle
jvdelisle@charter.net
Mon Feb 22 22:26:00 GMT 2016
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.
Jerry
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);
return;
}
More information about the Gcc-patches
mailing list