re PR fortran/66578 ([F2008] Invalid free on allocate(...,source=a(:)) in block)
authorAndre Vehreschild <vehre@gmx.de>
Tue, 7 Jul 2015 11:10:12 +0000 (13:10 +0200)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Tue, 7 Jul 2015 11:10:12 +0000 (13:10 +0200)
commit3244f4cd0413e0fc8a0e235f9bac22c030f8323d
tree0327748848b646295f057bfd409d185641444971
parent970bb2de656b95612d485b735481160c446500d2
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
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocate_with_source_9.f08 [new file with mode: 0644]