[Bug fortran/81116] Last character of allocatable-length string reset to blank in an assigment
tkoenig at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Aug 16 21:44:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81116
--- Comment #3 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Wed Aug 16 17:21:22 2017
New Revision: 251125
URL: https://gcc.gnu.org/viewcvs?rev=251125&root=gcc&view=rev
Log:
2017-08-16 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-16 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/81116
* gfortran.dg/realloc_on_assignment_29.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/realloc_on_assign_29.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/frontend-passes.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list