From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23725 invoked by alias); 18 May 2009 04:46:41 -0000 Received: (qmail 23689 invoked by uid 48); 18 May 2009 04:46:30 -0000 Date: Mon, 18 May 2009 04:46:00 -0000 Message-ID: <20090518044630.23688.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/40167] wrong initialization of local variable in a recursive subroutine 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: 2009-05/txt/msg01486.txt.bz2 ------- Comment #1 from pault at gcc dot gnu dot org 2009-05-18 04:46 ------- (In reply to comment #0) > In the following program, env%n should be equal to zero when entering the > routine "titi" but one gets the output : > > 10 0 > 5 10 > > instead of > > 10 0 > 5 0 I get the correct output with: GNU Fortran (GCC) 4.5.0 20090516 (experimental), 4.4.1 20090510 (prerelease) and 4.3.4 20090404 (prerelease) This has evidently been fixed :-) Paul -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40167