diff options
author | Tobias Burnus <burnus@net-b.de> | 2010-10-26 08:49:43 +0200 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2010-10-26 08:49:43 +0200 |
commit | 6739e9ec6e06c73b2426e7a8bbcc6594eda40f7f (patch) | |
tree | d933685d1b7ebdc28c46d5067c940feaede7020a /gcc/fortran/trans-array.c | |
parent | 90ecaf87ff7b69272f0d5a1dd8cbe3a4ec7a9fd8 (diff) | |
download | gcc-6739e9ec6e06c73b2426e7a8bbcc6594eda40f7f.zip gcc-6739e9ec6e06c73b2426e7a8bbcc6594eda40f7f.tar.gz gcc-6739e9ec6e06c73b2426e7a8bbcc6594eda40f7f.tar.bz2 |
[multiple changes]
2010-10-26 Tobias Burnus <burnus@net-b.de>
PR fortran/45451
* trans-stmt.c (gfc_trans_allocate): Do a deep-copy for SOURCE=.
PR fortran/43018
* trans-array.c (duplicate_allocatable): Use size of type and not
the size of the pointer to the type.
2010-10-26 Tobias Burnus <burnus@net-b.de>
PR fortran/45451
* gfortran.dg/class_allocate_5.f90: New.
From-SVN: r165936
Diffstat (limited to 'gcc/fortran/trans-array.c')
-rw-r--r-- | gcc/fortran/trans-array.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/trans-array.c b/gcc/fortran/trans-array.c index 52ba831..db05734 100644 --- a/gcc/fortran/trans-array.c +++ b/gcc/fortran/trans-array.c @@ -6072,7 +6072,7 @@ duplicate_allocatable (tree dest, tree src, tree type, int rank, null_data = gfc_finish_block (&block); gfc_init_block (&block); - size = TYPE_SIZE_UNIT (type); + size = TYPE_SIZE_UNIT (TREE_TYPE (type)); if (!no_malloc) { tmp = gfc_call_malloc (&block, type, size); |