https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65795
--- Comment #5 from vehre at gcc dot gnu.org --- Author: vehre Date: Mon Apr 4 09:33:54 2016 New Revision: 234711 URL: https://gcc.gnu.org/viewcvs?rev=234711&root=gcc&view=rev Log: gcc/fortran/ChangeLog: 2016-04-04 Andre Vehreschild <ve...@gcc.gnu.org> PR fortran/65795 * trans-array.c (gfc_array_allocate): When the array is a coarray, do not nullyfing its allocatable components in array_allocate, because the nullify missed the array ref and nullifies the wrong component. Cosmetics. gcc/testsuite/ChangeLog: 2016-04-04 Andre Vehreschild <ve...@gcc.gnu.org> PR fortran/65795 * gfortran.dg/coarray_allocate_6.f08: New test. Added: branches/gcc-5-branch/gcc/testsuite/gfortran.dg/coarray_allocate_6.f08 Modified: branches/gcc-5-branch/gcc/fortran/ChangeLog branches/gcc-5-branch/gcc/fortran/trans-array.c branches/gcc-5-branch/gcc/testsuite/ChangeLog