https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67451
--- Comment #5 from vehre at gcc dot gnu.org --- Author: vehre Date: Wed Feb 3 09:44:18 2016 New Revision: 233099 URL: https://gcc.gnu.org/viewcvs?rev=233099&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: branches/gcc-5-branch/gcc/testsuite/gfortran.dg/coarray_allocate_2.f08 branches/gcc-5-branch/gcc/testsuite/gfortran.dg/coarray_allocate_3.f08 branches/gcc-5-branch/gcc/testsuite/gfortran.dg/coarray_allocate_4.f08 Modified: branches/gcc-5-branch/gcc/fortran/ChangeLog branches/gcc-5-branch/gcc/fortran/trans-expr.c branches/gcc-5-branch/gcc/fortran/trans-stmt.c branches/gcc-5-branch/gcc/testsuite/ChangeLog