[Bug fortran/65795] Segfault (invalid write) for ALLOCATE statement involving COARRAYS

vehre at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Apr 4 09:33:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65795

--- Comment #4 from vehre at gcc dot gnu.org ---
Author: vehre
Date: Mon Apr  4 09:32:28 2016
New Revision: 234710

URL: https://gcc.gnu.org/viewcvs?rev=234710&root=gcc&view=rev
Log:
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.



Added:
    trunk/gcc/testsuite/gfortran.dg/coarray_allocate_6.f08
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list