trans-array.h (gfc_deallocate_alloc_comp_no_caf, [...]): New prototype.
authorTobias Burnus <burnus@net-b.de>
Mon, 15 Jul 2013 08:25:48 +0000 (10:25 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Mon, 15 Jul 2013 08:25:48 +0000 (10:25 +0200)
commitabc2d8074ae190486e3f620075e25498c1b2791c
treeaf43e59575bb2a233dfe1487ef6186279511baed
parent895a0c2df3542769fb381f0792cb543da01229ec
trans-array.h (gfc_deallocate_alloc_comp_no_caf, [...]): New prototype.

2013-07-15  Tobias Burnus  <burnus@net-b.de>

        * trans-array.h (gfc_deallocate_alloc_comp_no_caf,
        gfc_reassign_alloc_comp_caf): New prototype.
        * trans-array.c (enum): Add DEALLOCATE_ALLOC_COMP_NO_CAF
        and COPY_ALLOC_COMP_CAF.
        (structure_alloc_comps): Handle it.
        (gfc_reassign_alloc_comp_caf,
        gfc_deallocate_alloc_comp_no_caf): New function.
        (gfc_alloc_allocatable_for_assignment): Call it.
        * trans-expr.c (gfc_trans_scalar_assign,
        gfc_trans_arrayfunc_assign, gfc_trans_assignment_1): Ditto.
        * parse.c (parse_derived): Correctly set coarray_comp.
        * resolve.c (resolve_symbol): Improve error wording.

2013-07-15  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/coarray_lib_realloc_1.f90: New.
        * gfortran.dg/coarray/lib_realloc_1.f90: New.
        * gfortran.dg/coarray_6.f90: Add dg-error.

From-SVN: r200955
gcc/fortran/ChangeLog
gcc/fortran/parse.c
gcc/fortran/resolve.c
gcc/fortran/trans-array.c
gcc/fortran/trans-array.h
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/coarray/lib_realloc_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/coarray_6.f90
gcc/testsuite/gfortran.dg/coarray_lib_realloc_1.f90 [new file with mode: 0644]