trans-array.c (gfc_array_allocate): Use the token from coarray's .token member.
authorAndre Vehreschild <vehre@gcc.gnu.org>
Fri, 30 Sep 2016 10:20:59 +0000 (12:20 +0200)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Fri, 30 Sep 2016 10:20:59 +0000 (12:20 +0200)
commit26f391e8067e96e4fba7b531eda9fb80023f2fd2
tree2a9fff47c877e59328ae314ee6f4aa5be68ce12a
parentfa16a27195c8862806f1483026fa1fbba8315afb
trans-array.c (gfc_array_allocate): Use the token from coarray's .token member.

gcc/fortran/ChangeLog:

2016-09-30  Andre Vehreschild  <vehre@gcc.gnu.org>

* trans-array.c (gfc_array_allocate): Use the token from coarray's
.token member.
* trans-intrinsic.c (conv_expr_ref_to_caf_ref): Only generate
caf-reference chains from the first coarray references on.
* trans-types.c (gfc_get_derived_type): Switch on mandatory .token
member generation for allocatable arrays in coarrays in derived types.

gcc/testsuite/ChangeLog:

2016-09-30  Andre Vehreschild  <vehre@gcc.gnu.org>

* gfortran.dg/coarray_allocate_10.f08: New test.
* gfortran.dg/coindexed_1.f90: Above fixes allow execution.

From-SVN: r240650
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans-intrinsic.c
gcc/fortran/trans-types.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/coarray_allocate_10.f08 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/coindexed_1.f90