re PR fortran/38033 (Bounds of a pointer/allocatable array not stabilized)
authorPaul Thomas <pault@gcc.gnu.org>
Fri, 14 Nov 2008 18:03:05 +0000 (18:03 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Fri, 14 Nov 2008 18:03:05 +0000 (18:03 +0000)
commit993ac38b0fd488754dad42d4202447cabc9d3156
treee7f8e74d03abebca3cb39d01a54bc5396022ddb6
parent927425dffe021ce15ded980b28a8a5f649b83934
re PR fortran/38033 (Bounds of  a pointer/allocatable array not stabilized)

2008-10-14  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/38033
* trans-array.c (gfc_trans_create_temp_array): Stabilize the
'to' expression.
(gfc_conv_loop_setup): Use the end expression for the loop 'to'
if it is available.

2008-10-14  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/38033
* gfortran.dg/array_section_2.f90: New test.

From-SVN: r141861
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/array_section_2.f90 [new file with mode: 0644]