re PR fortran/47051 (Wrong reallocate)
authorPaul Thomas <pault@gcc.gnu.org>
Tue, 11 Jan 2011 05:19:20 +0000 (05:19 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Tue, 11 Jan 2011 05:19:20 +0000 (05:19 +0000)
commit93c3bf479df17e661b0e867696981565481701a0
tree1265f84e90249ed16e7a6a23ec9f38b2efbd5e94
parentb7e945c8e7c3e479458dda2b750d46f2024cf8d2
re PR fortran/47051 (Wrong reallocate)

2011-01-11  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/47051
* trans-array.c (gfc_alloc_allocatable_for_assignment): Change
to be standard compliant by testing for shape rather than size
before skipping reallocation. Improve comments.

2011-01-11  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/47051
* gfortran.dg/realloc_on_assign_2.f03 : Modify 'test1' to be
standard compliant and comment.

From-SVN: r168650
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/realloc_on_assign_2.f03