2016-05-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
Backport from trunk.
PR fortran/66461
* scanner.c (gfc_next_char_literal): Clear end_flag when adjusting
current locus back to old_locus.
Backport from trunk.
PR fortran/66461
* gfortran.dg/unexpected_eof.f: New test
From-SVN: r236808
+2016-05-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ Backport from trunk.
+ PR fortran/66461
+ * scanner.c (gfc_next_char_literal): Clear end_flag when adjusting
+ current locus back to old_locus.
+
2016-02-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
Backported from mainline
not_continuation:
c = '\n';
gfc_current_locus = old_loc;
+ end_flag = 0;
done:
if (c == '\n')
+2016-05-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ Backport from trunk.
+ PR fortran/66461
+ * gfortran.dg/unexpected_eof.f: New test
+
2016-05-22 Iain Sandoe <iain@codesourcery.com>
Dominique d'Humieres <dominiq@lps.ens.fr>
--- /dev/null
+! { dg-do compile }
+! PR66461 ICE on missing end program in fixed source
+ program p
+ integer x(2)
+ x = -1
+ if ( x(1) < 0 .or.
+ & x(2) < 0 ) print *, x
+! { dg-error "Unexpected end of file" "" { target *-*-* } 0 }