[Bug fortran/53389] [4.6/4.7/4.8 Regression] -frealloc-lhs: memory leak when assigning array function result to allocatable array, where one of its supplied arguments is itself an array function result
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 23 19:14:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53389
--- Comment #6 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-05-23 19:08:56 UTC ---
Author: burnus
Date: Wed May 23 19:08:52 2012
New Revision: 187808
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187808
Log:
2012-05-23 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-23 Tobias Burnus <burnus@net-b.de>
PR fortran/53389
* gfortran.dg/realloc_on_assign_15.f90: New.
Added:
branches/gcc-4_7-branch/gcc/testsuite/gfortran.dg/realloc_on_assign_15.f90
Modified:
branches/gcc-4_7-branch/gcc/fortran/ChangeLog
branches/gcc-4_7-branch/gcc/fortran/trans-array.c
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list