diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2013-02-04 22:33:15 +0000 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2013-02-04 22:33:15 +0000 |
commit | 16e247566db1df18a63965f8b3da7345459c6296 (patch) | |
tree | b050a17024c43f8e674ed0aa5a78ec65c9e5d061 /gcc/gcc.c | |
parent | 9ccd841a07944a30a4c17df1b0dd274b7e1c4431 (diff) | |
download | gcc-16e247566db1df18a63965f8b3da7345459c6296.zip gcc-16e247566db1df18a63965f8b3da7345459c6296.tar.gz gcc-16e247566db1df18a63965f8b3da7345459c6296.tar.bz2 |
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
Diffstat (limited to 'gcc/gcc.c')
0 files changed, 0 insertions, 0 deletions