2018-05-13 Paul Thomas <pault@gcc.gnu.org>
commit8bed63c9312650b76db45329ee8b8e0c9c235bae
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 13 May 2018 17:01:16 +0000 (13 17:01 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 13 May 2018 17:01:16 +0000 (13 17:01 +0000)
tree9da4b0c241f1ee86401dc99456230cdcccf0a722
parentcf0015084857f6fcbaa9e03804b7f006317b6d15
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@260211 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/trans-types.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/assumed_type_9.f90 [new file with mode: 0644]