------- Comment #5 from pault at gcc dot gnu dot org 2006-10-03 21:40 ------- Subject: Bug 20779
Author: pault Date: Tue Oct 3 21:40:24 2006 New Revision: 117415 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117415 Log: 2006-10-03 Paul Thomas <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> PR fortran/20779 PR fortran/20891 * gfortran.dg/alloc_alloc_expr_1.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/alloc_alloc_expr_1.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/resolve.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20779