[patch, Fortran] Fix PR 82372
Thomas Koenig
tkoenig@netcologne.de
Tue Oct 10 17:42:00 GMT 2017
Hello world,
the attached patch displays an error for characters which are
outside the normal Fortran character set, and includes a hex
code when it is not printable.
gfortran 4.9 did display unprintable characters in the file,
so it might be argued that this bug is a regression.
Regression-tested. OK for trunk? What do people feel about backporting?
Regards
Thomas
2017-10-10 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/82372
* fortran/scanner.c (valid_chars): String with all characters
which could be valid in Fortran.
(valid_table): Boolean table to select valid characters.
(gfc_scanner_init_1): Set up valid_table from vaid_chars.
(gfc_gooble_whitespace): If a character not in the Fortran
character set appears, display error.
2017-10-10 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/82372
* gfortran.dg/illegal_char.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1.diff
Type: text/x-patch
Size: 3867 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20171010/adfbe9e1/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: illegal_char.f90
Type: text/x-fortran
Size: 170 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20171010/adfbe9e1/attachment-0001.bin>
More information about the Fortran
mailing list