trans-array.c (gfc_alloc_allocatable_for_assignment): Allocate at least one byte.
authorTobias Burnus <burnus@net-b.de>
Fri, 21 Jun 2013 21:24:59 +0000 (23:24 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Fri, 21 Jun 2013 21:24:59 +0000 (23:24 +0200)
commit6f556b07c95e830c322c1ba5ffaa2bbdaab51423
treede666856b53a7c1867fe9025f590cfc193062abc
parent2ce86d2eb54f42359291f388a833fa05b6f1bf19
trans-array.c (gfc_alloc_allocatable_for_assignment): Allocate at least one byte.

2013-06-21  Tobias Burnus  <burnus@net-b.de>

        * trans-array.c (gfc_alloc_allocatable_for_assignment): Allocate
        at least one byte.
        * trans-expr.c (alloc_scalar_allocatable_for_assignment): Ditto.

2013-06-21  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/realloc_on_assign_18.f90: New.

From-SVN: r200320
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/realloc_on_assign_18.f90 [new file with mode: 0644]