This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Fortran,4.9/5/6 Regression]ICE for Fortran files when specifying a file instead of an include directory
- From: Jerry DeLisle <jvdelisle at charter dot net>
- To: gfortran <fortran at gcc dot gnu dot org>
- Cc: gcc patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 22 Feb 2016 14:26:11 -0800
- Subject: [Fortran,4.9/5/6 Regression]ICE for Fortran files when specifying a file instead of an include directory
- Authentication-results: sourceware.org; auth=none
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;
}