https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66461
--- Comment #27 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- Author: jvdelisle Date: Fri May 27 04:47:11 2016 New Revision: 236808 URL: https://gcc.gnu.org/viewcvs?rev=236808&root=gcc&view=rev Log: 2016-05-26 Jerry DeLisle <jvdeli...@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 Added: branches/gcc-4_9-branch/gcc/testsuite/gfortran.dg/unexpected_eof.f Modified: branches/gcc-4_9-branch/gcc/fortran/ChangeLog branches/gcc-4_9-branch/gcc/fortran/scanner.c branches/gcc-4_9-branch/gcc/testsuite/ChangeLog