[patch, Fortran] Fix PR fortran/68147, temporaries for allocatable strings
Thomas Koenig
tkoenig@netcologne.de
Fri Feb 19 18:51:00 GMT 2016
Hello world,
in the fix for PR 47674, there was a piece of unnecessary
code which meant that allocatable string assignments did
not get their temporary within IF statements (and others).
This patch is really simple and obvious. If we weren't in
tstage 4, I would simply commit it.
Because allocatable strings are a major convenience for
users, I would still like to commit this to trunk and
to the affected branches.
So, OK for these branches?
Regards
Thomas
2016-02-18 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/68147
PR fortran/47674
* frontend-passes.c (realloc_string_callbac): Don't set
walk_subtrees.
2016-02-18 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/68147
PR fortran/47674
* gfortran.dg/realloc_on_assign_26.f90: New test case.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p2.diff
Type: text/x-patch
Size: 587 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20160219/d6c459e9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: realloc_on_assign_26.f90
Type: text/x-fortran
Size: 304 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20160219/d6c459e9/attachment-0001.bin>
More information about the Fortran
mailing list