2018-02-10 Paul Thomas <pault@gcc.gnu.org>
commit309d6bd50bd700bb155011e0b4c5c5a6ddf061a9
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 10 Feb 2018 18:16:14 +0000 (10 18:16 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 10 Feb 2018 18:16:14 +0000 (10 18:16 +0000)
tree531e08057236b9dcd8588408505cd0d56269cc6c
parent2b1575de1a866fb1df4ec83693102d27982c624a
2018-02-10  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/84141
PR fortran/84155
* trans-array.c (gfc_array_init_size): Revert the change made
in revision 257356 setting the dtype.
* trans-types.c (gfc_get_dtype): Do not use the cached dtype.
Call gfc_get_dtype_rank_type every time.

PR fortran/56691
* trans-array.c (gfc_conv_expr_descriptor): If the source array
is a descriptor type, use its offset, removing the condition
that is be a class expression.

2018-02-10  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/56691
* gfortran.dg/type_to_class_4.f03: New test.

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