2012-02-02 Paul Thomas <pault@gcc.gnu.org>
commita79b122ae1b5a468f2c9db53985869ad71a842d8
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Feb 2012 21:20:14 +0000 (2 21:20 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Feb 2012 21:20:14 +0000 (2 21:20 +0000)
tree8e91a276399af07e83fb1ee3b97ea7773e7533d3
parentd0da7abbba2eaaf0d26a9a7915adbde950c6dace
2012-02-02  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/52012
* trans-expr.c (fcncall_realloc_result): If variable shape is
correct, retain the bounds, whatever they are.

2012-02-02  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/52012
* gfortran.dg/realloc_on_assign_11.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183849 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/realloc_on_assign_11.f90 [new file with mode: 0644]