diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2018-05-13 17:01:16 +0000 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2018-05-13 17:01:16 +0000 |
commit | f094a21f31a0ada105b5c8e7fe85f05c225fd3f4 (patch) | |
tree | 9da4b0c241f1ee86401dc99456230cdcccf0a722 /gcc/config.gcc | |
parent | 798a67a4ce57b295d568a8548c0319258a805c23 (diff) | |
download | gcc-f094a21f31a0ada105b5c8e7fe85f05c225fd3f4.zip gcc-f094a21f31a0ada105b5c8e7fe85f05c225fd3f4.tar.gz gcc-f094a21f31a0ada105b5c8e7fe85f05c225fd3f4.tar.bz2 |
re PR fortran/85742 (sizeof allocatable arrays returning wrong value)
2018-05-13 Paul Thomas <pault@gcc.gnu.org>
PR fortran/85742
* trans-types.c (gfc_get_dtype_rank_type): Reorder evaluation
of 'size'. If the element type is a pointer use the size of the
TREE_TYPE of the type, unless it is VOID_TYPE. In this latter
case, set the size to zero.
2018-05-13 Paul Thomas <pault@gcc.gnu.org>
PR fortran/85742
* gfortran.dg/assumed_type_9.f90 : New test.
From-SVN: r260211
Diffstat (limited to 'gcc/config.gcc')
0 files changed, 0 insertions, 0 deletions