re PR fortran/82372 (Rejects valid parenthesis)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 15 Oct 2017 12:00:29 +0000 (12:00 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 15 Oct 2017 12:00:29 +0000 (12:00 +0000)
commit31677224bcb5aad17f84bf717efc5f302923e47b
treebc1ba55127b7327927af6f9e4b3087236221be06
parent5fe8ac6bfb3a6fc93c03484deaf290451152b182
re PR fortran/82372 (Rejects valid parenthesis)

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.

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