re PR fortran/65795 (Segfault (invalid write) for ALLOCATE statement involving COARRAYS)
authorAndre Vehreschild <vehre@gcc.gnu.org>
Mon, 4 Apr 2016 09:32:28 +0000 (11:32 +0200)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Mon, 4 Apr 2016 09:32:28 +0000 (11:32 +0200)
commitde517e644a374f7df40bf0b43254684dab717ac0
tree0359da9c7ee2fde9145b6988e87491fb19e9ceb8
parent43b9f499103ccebb9ce00e7c62e11da54334e63a
re PR fortran/65795 (Segfault (invalid write) for ALLOCATE statement involving COARRAYS)

gcc/fortran/ChangeLog:

2016-04-04  Andre Vehreschild  <vehre@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  <vehre@gcc.gnu.org>

PR fortran/65795
* gfortran.dg/coarray_allocate_6.f08: New test.

From-SVN: r234710
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/coarray_allocate_6.f08 [new file with mode: 0644]