re PR fortran/66578 ([F2008] Invalid free on allocate(...,source=a(:)) in block)
gcc/testsuite/ChangeLog:
2015-07-07 Andre Vehreschild <vehre@gcc.gnu.org>
PR fortran/66578
* gfortran.dg/allocate_with_source_9.f08: New test.
gcc/fortran/ChangeLog:
2015-07-07 Mikael Morin <mikael@gcc.gnu.org>
Andre Vehreschild <vehre@gcc.gnu.org>
PR fortran/66578
* trans-array.c (gfc_conv_expr_descriptor): Ensure array descriptor
is one-based for non-full array refs. Correct the offset when a
rank_remap occurs.
From-SVN: r225507