re PR fortran/46017 (Reject ALLOCATE(a, a%b) as "a%b" depends on the allocation...
commit75fee9f255425ea84d63dd63dbf6f07af7c036d7
authorThomas Koenig <tkoenig@gcc.gnu.org>
Wed, 5 Jan 2011 10:03:15 +0000 (5 10:03 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Wed, 5 Jan 2011 10:03:15 +0000 (5 10:03 +0000)
tree1b1cee91282a19f4cf5deee1b0c3b082f33ca93a
parent8c077737e2eaa0f0b17970d60ee88afb7be4fbc0
re PR fortran/46017 (Reject  ALLOCATE(a, a%b) as  "a%b" depends on the allocation status of "a")

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

PR fortran/46017
* resolve.c (resolve_allocate_deallocate): Follow references to
check for duplicate occurence of allocation/deallocation objects.

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

PR fortran/46017
* gfortran.dg/allocate_error_2.f90:  New test.

From-SVN: r168506
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocate_error_2.f90 [new file with mode: 0644]