-
- Downloads
re PR fortran/56008 ([F03] wrong code with lhs-realloc on assignment with...
re PR fortran/56008 ([F03] wrong code with lhs-realloc on assignment with derived types having allocatable components) 2013-02-04 Paul Thomas <pault@gcc.gnu.org> PR fortran/56008 PR fortran/47517 * trans-array.c (gfc_alloc_allocatable_for_assignment): Save the lhs descriptor before it is modified for reallocation. Use it to deallocate allocatable components in the reallocation block. Nullify allocatable components for newly (re)allocated arrays. 2013-02-04 Paul Thomas <pault@gcc.gnu.org> PR fortran/56008 * gfortran.dg/realloc_on _assign_16.f90 : New test. PR fortran/47517 * gfortran.dg/realloc_on _assign_17.f90 : New test. From-SVN: r195741
Showing
- gcc/fortran/ChangeLog 10 additions, 0 deletionsgcc/fortran/ChangeLog
- gcc/fortran/trans-array.c 33 additions, 0 deletionsgcc/fortran/trans-array.c
- gcc/testsuite/ChangeLog 8 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gfortran.dg/realloc_on_assign_16.f90 28 additions, 0 deletionsgcc/testsuite/gfortran.dg/realloc_on_assign_16.f90
- gcc/testsuite/gfortran.dg/realloc_on_assign_17.f90 47 additions, 0 deletionsgcc/testsuite/gfortran.dg/realloc_on_assign_17.f90
Loading
Please register or sign in to comment