re PR fortran/67451 ([F08] ICE with sourced allocation from coarray.)
authorAndre Vehreschild <vehre@gcc.gnu.org>
Wed, 3 Feb 2016 10:39:09 +0000 (11:39 +0100)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Wed, 3 Feb 2016 10:39:09 +0000 (11:39 +0100)
commit781d83d96d15ee03d845d6f2894d1d76ee24e79a
tree7c15a44a869671762c2f0e4969d988f28b52fb6f
parentd8208e6d4c172278488f7fbc0b4f58fd3c490bd9
re PR fortran/67451 ([F08] ICE with sourced allocation from coarray.)

gcc/testsuite/ChangeLog:

2016-02-03  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/67451
PR fortran/69418
* gfortran.dg/coarray_allocate_2.f08: New test.
* gfortran.dg/coarray_allocate_3.f08: New test.
* gfortran.dg/coarray_allocate_4.f08: New test.

gcc/fortran/ChangeLog:

2016-02-03  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/67451
PR fortran/69418
* trans-expr.c (gfc_copy_class_to_class): For coarrays just the
pointer is passed.  Take it as is without trying to deref the
_data component.
* trans-stmt.c (gfc_trans_allocate): Take care of coarrays as
argument to source=-expression.

From-SVN: r233101
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/coarray_allocate_2.f08 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/coarray_allocate_3.f08 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/coarray_allocate_4.f08 [new file with mode: 0644]