[patch, fortran] Fix PR 81116, missing dependency handling for allocatable character
Thomas Koenig
tkoenig@netcologne.de
Mon Aug 7 19:59:00 GMT 2017
Hello world,
the attached patch fixes the PR by adding a dependency check
for the case of concatenation operators.
Regression-tested. OK for trunk?
Regards
Thomas
2017-08-07 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/81116
* frontend-passes.c (realloc_string_callback): If expression is
a concatenation, also check for dependency.
(constant_string_length): Check for presence of symtree.
2017-08-07 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/81116
* gfortran.dg/realloc_on_assignment_29.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1.diff
Type: text/x-patch
Size: 1405 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20170807/c05166ee/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: realloc_on_assign_29.f90
Type: text/x-fortran
Size: 321 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20170807/c05166ee/attachment-0001.bin>
More information about the Fortran
mailing list