OSDN Git Service

2006-10-03 Paul Thomas <pault@gcc.gnu.org>
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Oct 2006 21:40:24 +0000 (21:40 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Oct 2006 21:40:24 +0000 (21:40 +0000)
commitf277dc2c617fe848da84d3c27c18dd5c9c1d123c
tree170cb5f42ffd2e03a7edfb74364a54ce4ef30ee3
parentabef3b71862f96da10c32e1ec8301862e10984f7
2006-10-03  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/20779
PR fortran/20891
* resolve.c (find_sym_in_expr): New function that returns true
if a symbol is found in an expression.
(resolve_allocate_expr): Check whether the STAT variable is
itself allocated in the same statement.  Use the call above to
check whether any of the allocated arrays are used in array
specifications in the same statement.

2006-10-03  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/20779
PR fortran/20891
* gfortran.dg/alloc_alloc_expr_1.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117415 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/alloc_alloc_expr_1.f90 [new file with mode: 0644]