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  <pa...@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  <pa...@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

Reply via email to