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

--- Comment #6 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Sun Mar  4 13:56:09 2018
New Revision: 258233

URL: https://gcc.gnu.org/viewcvs?rev=258233&root=gcc&view=rev
Log:
2018-03-04  Paul Thomas  <pa...@gcc.gnu.org>

        PR fortran/83076
        * resolve.c (resolve_fl_derived0): Add caf_token fields for
        allocatable and pointer scalars, when -fcoarray selected.
        * trans-types.c (gfc_copy_dt_decls_ifequal): Copy the token
        field as well as the backend_decl.
        (gfc_get_derived_type): Flag GFC_FCOARRAY_LIB for module
        derived types that are not vtypes. Components with caf_token
        attribute are pvoid types. For a component requiring it, find
        the caf_token field and have the component token field point to
        its backend_decl.

        PR fortran/83319
        *trans-types.c (gfc_get_array_descriptor_base): Add the token
        field to the descriptor even when codimen not set.


2018-03-04  Paul Thomas  <pa...@gcc.gnu.org>

        PR fortran/83076
        * gfortran.dg/coarray_45.f90 : New test.

        PR fortran/83319
        * gfortran.dg/coarray_46.f90 : New test.


Added:
    branches/gcc-7-branch/gcc/testsuite/gfortran.dg/coarray_45.f90
    branches/gcc-7-branch/gcc/testsuite/gfortran.dg/coarray_46.f90
Modified:
    branches/gcc-7-branch/gcc/fortran/ChangeLog
    branches/gcc-7-branch/gcc/fortran/gfortran.h
    branches/gcc-7-branch/gcc/fortran/resolve.c
    branches/gcc-7-branch/gcc/fortran/trans-types.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog

Reply via email to