2018-02-11 Paul Thomas <pault@gcc.gnu.org>
commitc3fa28c38b8ee6f1970a4df439141c1681265079
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Feb 2018 18:22:24 +0000 (11 18:22 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Feb 2018 18:22:24 +0000 (11 18:22 +0000)
treebcd2076be4ee7e218ac1d59b0804b3e1d8ccbbac
parentdb63096add1e03f0a21cdcd66e89a35358a9a91f
2018-02-11  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/84074
* trans-expr.c (gfc_conv_derived_to_class): Set the use_offset
flag. If the is a vector subscript or the expression is not a
variable, make the descriptor one-based.

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

PR fortran/84074
* gfortran.dg/type_to_class_5.f03: New test.

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