From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9609 invoked by alias); 1 May 2008 17:41:04 -0000 Received: (qmail 9479 invoked by uid 48); 1 May 2008 17:40:18 -0000 Date: Thu, 01 May 2008 17:41:00 -0000 Message-ID: <20080501174018.9478.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/35820] internal compiler error with nested FORALL 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-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-05/txt/msg00042.txt.bz2 ------- Comment #5 from pault at gcc dot gnu dot org 2008-05-01 17:40 ------- Tobias, Does this do the job? Paul Index: gcc/fortran/resolve.c =================================================================== *** gcc/fortran/resolve.c (revision 134835) --- gcc/fortran/resolve.c (working copy) *************** gfc_resolve_forall (gfc_code *code, gfc_ *** 5910,5915 **** --- 5910,5918 ---- /* May call gfc_resolve_forall to resolve the inner FORALL loop. */ gfc_resolve_blocks (code->block, ns); + if (forall_save) + return; + /* Free VAR_EXPR after the whole FORALL construct resolved. */ for (i = 0; i < total_var; i++) gfc_free_expr (var_expr[i]); -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35820