2018-01-01 Paul Thomas <pault@gcc.gnu.org>
commit4ca63efae1a1e7a39b04827c790d642db179ae81
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Jan 2018 17:36:41 +0000 (1 17:36 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Jan 2018 17:36:41 +0000 (1 17:36 +0000)
tree458601ba76bd1b82c6cbf785c4a8da76fd5f1cb3
parent11260a75446305aab9fced13892b7eedf266608e
2018-01-01  Paul Thomas  <pault@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-01-01  Paul Thomas  <pault@gcc.gnu.org>

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

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256065 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/gfortran.h
gcc/fortran/resolve.c
gcc/fortran/trans-types.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/coarray_45.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/coarray_46.f90 [new file with mode: 0644]