re PR fortran/84074 (Incorrect indexing of array when actual argument is an array...
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 11 Feb 2018 18:22:24 +0000 (18:22 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 11 Feb 2018 18:22:24 +0000 (18:22 +0000)
commite519d2e8199746e9d2b6ef70de55f7331df5bc47
treebcd2076be4ee7e218ac1d59b0804b3e1d8ccbbac
parente094c0bfe982c21cd39741efde87591b59af8a55
re PR fortran/84074 (Incorrect indexing of array when actual argument is an array expression and dummy is polymorphic)

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.

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