2017-10-15 Thomas Koenig <tkoenig@gcc.gnu.org>
commit067517fea792ec69b945361a9c0bf7546abb14d1
authortkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 15 Oct 2017 12:00:29 +0000 (15 12:00 +0000)
committertkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 15 Oct 2017 12:00:29 +0000 (15 12:00 +0000)
treebc1ba55127b7327927af6f9e4b3087236221be06
parent5d09c88ce0ac417e8f0f49d4fbfcf8adc00318c4
2017-10-15  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/82372
* fortran/scanner.c (last_error_char):  New global variable.
(gfc_scanner_init_1): Set last_error_char to NULL.
(gfc_gobble_whitespace): If a character not printable or
not newline, issue an error.

2017-10-15  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/82372
* gfortran.dg/illegal_char.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253768 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/scanner.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/illegal_char.f90 [new file with mode: 0644]