re PR fortran/78662 ([F03] Incorrect parsing of quotes in the char-literal-constant...
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Fri, 16 Dec 2016 20:27:51 +0000 (20:27 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Fri, 16 Dec 2016 20:27:51 +0000 (20:27 +0000)
commit5cdc4b0ef0381439be6cebd6ba8925f69e4d51d6
tree1c1292043826432403d69b5a9ecd00fa24a8f2f8
parentc2d42d16195d87ad6fb063a0db0287ad197a972b
re PR fortran/78662 ([F03] Incorrect parsing of quotes in the char-literal-constant of the DT data descriptor)

2016-12-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/78622
* io.c (format_lex): Continue of string delimiter seen.

* io/transfer.c (get_dt_format): New static function to alloc
and set the DT iotype string, handling doubled quotes.
(formatted_transfer_scalar_read,
formatted_transfer_scalar_write): Use new function.

* gfortran.dg/dtio_20.f03: New test.

From-SVN: r243765
gcc/fortran/ChangeLog
gcc/fortran/io.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/dtio_20.f03 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/io/transfer.c