[Bug fortran/84074] Incorrect indexing of array when actual argument is an array expression and dummy is polymorphic
pault at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Feb 11 18:28:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84074
--- Comment #5 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Sun Feb 11 18:22:24 2018
New Revision: 257564
URL: https://gcc.gnu.org/viewcvs?rev=257564&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gfortran.dg/type_to_class_5.f03
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-expr.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list