+2019-02-04 Martin Liska <mliska@suse.cz>
+
+ PR fortran/88912
+ * scanner.c (load_file): Report error for -fpre-include
+ file and do not ICE.
+
2019-02-02 Dominique d'Humieres <dominiq@gcc.gnu.org>
PR fortran/81344
input = gfc_open_included_file (realfilename, false, false);
if (input == NULL)
{
- fprintf (stderr, "%s:%d: Error: Can't open included file '%s'\n",
- current_file->filename, current_file->line, filename);
+ /* For -fpre-include file, current_file is NULL. */
+ if (current_file)
+ fprintf (stderr, "%s:%d: Error: Can't open included file '%s'\n",
+ current_file->filename, current_file->line, filename);
+ else
+ fprintf (stderr, "Error: Can't open pre-included file '%s'\n",
+ filename);
+
return false;
}
stat_result = stat (realfilename, &st);