https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57284

--- Comment #10 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Sun Jun  9 18:26:33 2019
New Revision: 272093

URL: https://gcc.gnu.org/viewcvs?rev=272093&root=gcc&view=rev
Log:
2019-06-09  Paul Thomas  <pa...@gcc.gnu.org>

        Backport from trunk
        PR fortran/57284
        * resolve.c (find_array_spec): If this is a class expression
        and the symbol and component array specs are the same, this is
        not an error.
        *trans-intrinsic.c (gfc_conv_intrinsic_size): If a class symbol
        argument, has no namespace, it has come from the interface
        mapping and the _data component must be accessed directly.
        * trans-array.c (gfc_trans_create_temp_array): Compute elemsize
        in all cases and use to set span field.
        (gfc_is_reallocatable_lhs): Pick up class allocatable exprs
        that do not have a _data component ref before the array ref.

2019-06-09  Paul Thomas  <pa...@gcc.gnu.org>

        Backport from trunk
        PR fortran/57284
        * gfortran.dg/class_70.f03

Added:
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/class_70.f03
Modified:
    branches/gcc-8-branch/gcc/fortran/ChangeLog
    branches/gcc-8-branch/gcc/fortran/resolve.c
    branches/gcc-8-branch/gcc/fortran/trans-array.c
    branches/gcc-8-branch/gcc/fortran/trans-intrinsic.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog

Reply via email to