[patch,fortran] PR78622 [F03] Incorrect parsing of quotes in the char-literal-constant of the DT data descriptor

Janne Blomqvist blomqvist.janne@gmail.com
Fri Dec 16 19:46:00 GMT 2016


On Fri, Dec 16, 2016 at 4:16 AM, Jerry DeLisle <jvdelisle@charter.net> wrote:
> Hi all,
>
> The attached patch regression tested on x86-64-linux.
>
> This adds a static function to allocate and extract the DT format string
> that may contain doubled quotes.
>
> OK for trunk, test case also attched.

Ok, thanks.

>
> Jerry
>
> 2016-12-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
>
>         PR fortran/78622
>         * io.c (format_lex): Continue of string delimiter seen.
>
> 2016-12-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
>
>         PR libgfortran/78622
>         * 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.



-- 
Janne Blomqvist



More information about the Fortran mailing list