This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch,fortran] PR78622 [F03] Incorrect parsing of quotes in the char-literal-constant of the DT data descriptor
- From: Janne Blomqvist <blomqvist dot janne at gmail dot com>
- To: Jerry DeLisle <jvdelisle at charter dot net>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 16 Dec 2016 21:46:41 +0200
- Subject: Re: [patch,fortran] PR78622 [F03] Incorrect parsing of quotes in the char-literal-constant of the DT data descriptor
- Authentication-results: sourceware.org; auth=none
- References: <e767a683-ee6f-2e75-b596-ddbe79077061@charter.net>
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