public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Patch, fortran] PR84109 - ICE in adjustl on allocatable array of strings
@ 2018-09-19 18:46 Paul Richard Thomas
  0 siblings, 0 replies; only message in thread
From: Paul Richard Thomas @ 2018-09-19 18:46 UTC (permalink / raw)
  To: fortran, gcc-patches

As Dominique pointed out (and I denied initially - sorry!) this PR is
essentially the same as PR87239 except that an intrinsic, rather than
an extrinsic, function is involved. I have treated it in the same way
but have added a slight improvement to keep scalar elemental calls
outside of the scalarization loop.

Committed to trunk as r264427. Like the patch for PR87239 I think that
it is worth applying to 8-branch as a quality of implementation issue.
I will wait a while before applying either patch to 8-branch.

Cheers

Paul

2018-09-19  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/84109
    * trans-expr.c (gfc_trans_assignment_1): The rse.pre for the
    assignment of deferred character intrinsic elemental function
    results to a realocatable lhs must not be added to the exterior
    block if they are array valued but must go to the loop body.

2018-09-19  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/84109
    * gfortran.dg/elemental_function_3.f90 : New test.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-09-19 18:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-19 18:46 [Patch, fortran] PR84109 - ICE in adjustl on allocatable array of strings Paul Richard Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).