https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69418
--- Comment #6 from vehre at gcc dot gnu.org --- Author: vehre Date: Wed Feb 3 10:39:09 2016 New Revision: 233101 URL: https://gcc.gnu.org/viewcvs?rev=233101&root=gcc&view=rev Log: gcc/testsuite/ChangeLog: 2016-02-03 Andre Vehreschild <ve...@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 <ve...@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. Added: trunk/gcc/testsuite/gfortran.dg/coarray_allocate_2.f08 trunk/gcc/testsuite/gfortran.dg/coarray_allocate_3.f08 trunk/gcc/testsuite/gfortran.dg/coarray_allocate_4.f08 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-expr.c trunk/gcc/fortran/trans-stmt.c trunk/gcc/testsuite/ChangeLog