re PR fortran/42736 (Wrong-code with allocatable or pointer components in elemental...
authorPaul Thomas <pault@gcc.gnu.org>
Thu, 21 Jan 2010 20:38:51 +0000 (20:38 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Thu, 21 Jan 2010 20:38:51 +0000 (20:38 +0000)
commit3c3b62d1a51a501f66f07e528bc852f455d2e05a
treec27ef460ab03c34c131ea5e04a2f4c542223707b
parent7744b697eb20d316840182e2439503920e4ecc1d
re PR fortran/42736 (Wrong-code with allocatable or pointer components in elemental functions)

2010-01-21  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/42736
* trans-stmt.c (gfc_conv_elemental_dependencies): If temporary
is required, turn any trailing array elements after a range
into ranges so that offsets can be calculated.

2010-01-21  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/42736
* gfortran.dg/dependency_25.f90 : New test.

From-SVN: r156161
gcc/fortran/ChangeLog
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/dependency_25.f90 [new file with mode: 0644]