This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/81116] Last character of allocatable-length string reset to blank in an assigment


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]