From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29953 invoked by alias); 4 May 2007 17:14:13 -0000 Received: (qmail 29892 invoked by uid 48); 4 May 2007 17:14:01 -0000 Date: Fri, 04 May 2007 17:14:00 -0000 Message-ID: <20070504171401.29891.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/31720] [4.1/4.2 only] ICE for module function returning automatic array In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "kargl 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: 2007-05/txt/msg00391.txt.bz2 ------- Comment #5 from kargl at gcc dot gnu dot org 2007-05-04 18:14 ------- (In reply to comment #4) > (I guess I should qualify that. I don't have a copy of the standard laying > around to check, but it's legal according to the Ellis, Philips and Lahey > book.) > It is not valid code. The variable i is being used without it being set to some value, ie., i is undefined. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31720