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

--- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Sun Sep 29 10:12:42 2019
New Revision: 276269

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

        PR fortran/91726
        * resolve.c (gfc_expr_to_initialize): Bail out with a copy of
        the original expression if the array ref is a scalar and the
        array_spec has corank.
        * trans-array.c (gfc_conv_array_ref): Such expressions are OK
        even if the array ref codimen is zero.
        * trans-expr.c (gfc_get_class_from_expr): New function taken
        from gfc_get_vptr_from_expr.
        (gfc_get_vptr_from_expr): Call new function.
        * trans-stmt.c (trans_associate_var): If one of these is a
        target expression, extract the class expression from the target
        and copy its fields to a new target variable.
        * trans.h : Add prototype for gfc_get_class_from_expr.

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

        PR fortran/91726
        * gfortran.dg/coarray_poly_9.f90 : New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/coarray_poly_9.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/resolve.c
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/fortran/trans-stmt.c
    trunk/gcc/fortran/trans.h
    trunk/gcc/testsuite/ChangeLog

Reply via email to