]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/20779 (ALLOCATEing the STAT variable not detected)
authorPaul Thomas <pault@gcc.gnu.org>
Tue, 3 Oct 2006 21:40:24 +0000 (21:40 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Tue, 3 Oct 2006 21:40:24 +0000 (21:40 +0000)
commit777265710ddd4da7ce7955357d19f2ffbaaa1bb6
tree170cb5f42ffd2e03a7edfb74364a54ce4ef30ee3
parent77b558e2d393bac5f180f4bb77f054bf15a1acf8
re PR fortran/20779 (ALLOCATEing the STAT variable not detected)

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.

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