From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15217 invoked by alias); 3 Oct 2006 21:40:43 -0000 Received: (qmail 15138 invoked by alias); 3 Oct 2006 21:40:33 -0000 Date: Tue, 03 Oct 2006 21:40:00 -0000 Message-ID: <20061003214033.15137.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/20779] ALLOCATEing the STAT variable not detected In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pault at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-10/txt/msg00285.txt.bz2 List-Id: ------- 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 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 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