]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/81116 (Last character of allocatable-length string reset to blank in...
authorThomas Koenig <tkoenig@gcc.gnu.org>
Wed, 16 Aug 2017 17:21:22 +0000 (17:21 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Wed, 16 Aug 2017 17:21:22 +0000 (17:21 +0000)
commitb68a9f34f170f48a08c737d1cbfdc147dc42f275
treef665cf8546e9da726bb55ae84e899e0ff69146e1
parentadb5b54b28383885b4a34b95698cc302af8e0415
re PR fortran/81116 (Last character of allocatable-length string reset to blank in an assigment)

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.

From-SVN: r251125
gcc/fortran/ChangeLog
gcc/fortran/frontend-passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/realloc_on_assign_29.f90 [new file with mode: 0644]