re PR fortran/52012 (Wrong-code with realloc on assignment and RESHAPE w/ ORDER=)
authorPaul Thomas <pault@gcc.gnu.org>
Thu, 2 Feb 2012 21:20:14 +0000 (21:20 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Thu, 2 Feb 2012 21:20:14 +0000 (21:20 +0000)
commit7de7ae1841e599746f1974ac507bb1d51483c47c
tree8e91a276399af07e83fb1ee3b97ea7773e7533d3
parent1b3f07c72adadbffcfb035b986414e0a18fdd6a2
re PR fortran/52012 (Wrong-code with realloc on assignment and RESHAPE w/ ORDER=)

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.

From-SVN: r183849
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]