re PR fortran/77785 ([Coarray] ICE in gfc_get_caf_token_offset, at fortran/trans...
authorAndre Vehreschild <vehre@gcc.gnu.org>
Tue, 13 Dec 2016 16:47:48 +0000 (17:47 +0100)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Tue, 13 Dec 2016 16:47:48 +0000 (17:47 +0100)
commit6479f45b31c13f30f1de2ac4ff8d7a0e0084b864
treec790303060ae2a715c0ef52807f3705bb2b57d25
parentb37a5b979a275375322787973b7d6fb620a71ccf
re PR fortran/77785 ([Coarray] ICE in gfc_get_caf_token_offset, at fortran/trans-expr.c:1990)

gcc/fortran/ChangeLog:

2016-12-13  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/77785
* resolve.c (resolve_symbol): Correct attr lookup to the _data
component.
* trans-array.c (gfc_alloc_allocatable_for_assignment): Indirect ref
pointers and references before retrieving the caf-token.

gcc/testsuite/ChangeLog:

2016-12-13  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/77785
* gfortran.dg/coarray_38.f90: Added expecting error message.
* gfortran.dg/coarray_41.f90: New test.
* gfortran.dg/coarray_class_2.f90: New test.

From-SVN: r243614
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/coarray_38.f90
gcc/testsuite/gfortran.dg/coarray_41.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/coarray_class_2.f90 [new file with mode: 0644]