re PR fortran/31732 (Assignment to array slice affects whole array)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Tue, 1 May 2007 13:11:36 +0000 (13:11 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Tue, 1 May 2007 13:11:36 +0000 (13:11 +0000)
commit3e94065c619b935e1d9e6881a84aadc6ff8b759b
tree8f9ca6c80481c38590f0340e4ff70275e32c2d6e
parent617428e9f67b900a68a948163d4ec06b0cb477ed
re PR fortran/31732 (Assignment to array slice affects whole array)

2007-05-01  Thomas Koenig  <tkoenig@gcc.gnu.org>

        PR fortran/31732
* dependency.c (gfc_full_array_ref_p):  If the reference is
to a single element, check that the array has a single
element and that the correct element is referenced.

2007-05-01  Thomas Koenig  <tkoenig@gcc.gnu.org>

        PR fortran/31732
* gfortran.dg/array_memset_2:  New test case.

From-SVN: r124326
gcc/fortran/ChangeLog
gcc/fortran/dependency.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/array_memset_2.f90 [new file with mode: 0644]