]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/53389 (-frealloc-lhs: memory leak when assigning array function result...
authorTobias Burnus <burnus@gcc.gnu.org>
Tue, 22 May 2012 10:10:47 +0000 (12:10 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Tue, 22 May 2012 10:10:47 +0000 (12:10 +0200)
commitf391a855826aaa21043f0f492bb2eb4dde130cf6
tree8b77b254e5bea16cdf800e07c9c06e2bdfa682f3
parent633d9236a135cbeff21d9f51781fa12c88928f8a
re PR fortran/53389 (-frealloc-lhs: memory leak when assigning array function result to allocatable array, where one of its supplied arguments is itself an array function result)

2012-05-22  Tobias Burnus  <burnus@net-b.de>

        PR fortran/53389
        * trans-array.c (gfc_add_loop_ss_code): Don't evaluate
        * expression, if
        ss->is_alloc_lhs is set.

2012-05-22  Tobias Burnus  <burnus@net-b.de>

        PR fortran/53389
        * gfortran.dg/realloc_on_assign_15.f90: New.

From-SVN: r187769
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/realloc_on_assign_15.f90 [new file with mode: 0644]