re PR fortran/36091 (false positive in bounds checking with forall)
authorPaul Thomas <pault@gcc.gnu.org>
Mon, 6 Apr 2009 05:25:46 +0000 (05:25 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Mon, 6 Apr 2009 05:25:46 +0000 (05:25 +0000)
commit59e36b722194e1f49fe11f9bc670eb7cd2247f6d
tree5c4149762b06b86b82f6a93c8de2a1ff3013eb9c
parentecef6119cef58bc532fd4e326eb8c0afbd671dfc
re PR fortran/36091 (false positive in bounds checking with forall)

2009-04-06  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/36091
        * trans-array.c (gfc_conv_array_ref): If the symbol has the
temporary attribute use the array_spec for the bounds.
* gfortran.h : Add the temporary field to the structure
'symbol_attribute'.
* trans-stmt.c (forall_make_variable_temp): Set the symbol's
temporary attribute.

2009-04-06  Paul Thomas  <pault@gcc.gnu.org

        PR fortran/36091
        * gfortran.dg/forall_13.f90: Add -fbounds-check option.

From-SVN: r145581
gcc/fortran/ChangeLog
gcc/fortran/gfortran.h
gcc/fortran/trans-array.c
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/forall_13.f90