From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18944 invoked by alias); 29 Mar 2009 19:20:57 -0000 Received: (qmail 18391 invoked by uid 48); 29 Mar 2009 19:20:46 -0000 Date: Sun, 29 Mar 2009 19:20:00 -0000 Message-ID: <20090329192046.18390.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/39577] False positive with -fcheck=recursion In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "burnus 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: 2009-03/txt/msg02111.txt.bz2 ------- Comment #2 from burnus at gcc dot gnu dot org 2009-03-29 19:20 ------- > the error seems to be due to the second call to test(): > usual suspect = unitialized variable? No - the problem is a missing "is_recursive = 0" (see dump in comment 0). The problem is that the variable needs to be set in trans-stmt.c's gfc_trans_return while the variable is created in gfc_generate_function_code. The question is now, how to make the TREE available to gfc_trans_return. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39577