re PR fortran/84141 (Internal error: type_name(): Bad type)
authorPaul Thomas <pault@gcc.gnu.org>
Sat, 10 Feb 2018 18:16:14 +0000 (18:16 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sat, 10 Feb 2018 18:16:14 +0000 (18:16 +0000)
commit950ab3f1419619d6e4bec7d2f029b9aff00813e9
tree531e08057236b9dcd8588408505cd0d56269cc6c
parentcb2e8560f9d446c60610934b8d28b810f8396189
re PR fortran/84141 (Internal error: type_name(): Bad type)

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.

From-SVN: r257550
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]