re PR fortran/77972 (ICE on broken character continuation with -Wall etc.)
commit523ee218bbdc17a0cd1137e20671d73da990d329
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 15 Oct 2016 18:38:54 +0000 (15 18:38 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 15 Oct 2016 18:38:54 +0000 (15 18:38 +0000)
tree7434e20fe63a2bbbb5e5ea9fc6f02a76d59feac4
parente2a02db7690190247c42bf233384530ef65d8881
re PR fortran/77972 (ICE on broken character continuation with -Wall etc.)

2016-10-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/77972
* scanner.c (gfc_next_char_literal): If nextc is null do not
decrement the pointer and call the diagnostics.

PR fortran/77972
* gfortran.dg/unexpected_eof_4.f90: New test.

From-SVN: r241201
gcc/fortran/ChangeLog
gcc/fortran/scanner.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/unexpected_eof_4.f90 [new file with mode: 0644]