https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81116
--- Comment #6 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Author: tkoenig Date: Thu Feb 22 18:52:21 2018 New Revision: 257912 URL: https://gcc.gnu.org/viewcvs?rev=257912&root=gcc&view=rev Log: 2018-02-22 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/81116 PR fortran/84495 Backport from trunk * frontend-passes.c (realloc_string_callback): If expression is a concatenation, also check for dependency. (constant_string_length): Check for presence of symtree. 2018-02-22 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/81116 PR fortran/84495 * gfortran.dg/realloc_on_assignment_29.f90: New test. Added: branches/gcc-7-branch/gcc/testsuite/gfortran.dg/realloc_on_assign_29.f90 Modified: branches/gcc-7-branch/gcc/fortran/ChangeLog branches/gcc-7-branch/gcc/fortran/frontend-passes.c branches/gcc-7-branch/gcc/testsuite/ChangeLog