[Patch, fortran] PR82923 - Automatic allocation of deferred length character using function result
Paul Richard Thomas
paul.richard.thomas@gmail.com
Thu May 17 12:17:00 GMT 2018
The ChangeLog and the comments in the patch tell all.
Bootstrapped and regtested on FC27/x86_64.
OK for 7-branch through to trunk?
Paul
2018-05-17 Paul Thomas <pault@gcc.gnu.org>
PR fortran/82923
* trans-array.c (gfc_alloc_allocatable_for_assignment): Set the
charlen backend_decl of the rhs expr to ss->info->string_length
so that the value in the current scope is used.
2018-05-17 Paul Thomas <pault@gcc.gnu.org>
PR fortran/82923
* gfortran.dg/allocate_assumed_charlen_4.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submit.diff
Type: text/x-patch
Size: 2185 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20180517/23ca4edd/attachment.bin>
More information about the Fortran
mailing list