From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25408 invoked by alias); 28 Sep 2008 19:34:47 -0000 Received: (qmail 23511 invoked by uid 48); 28 Sep 2008 19:33:26 -0000 Date: Sun, 28 Sep 2008 19:34:00 -0000 Message-ID: <20080928193326.23510.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/35680] [4.3/4.4 regression] ICE on invalid transfer in variable declaration 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-09/txt/msg02885.txt.bz2 ------- Comment #6 from pault at gcc dot gnu dot org 2008-09-28 19:33 ------- Created an attachment (id=16421) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16421&action=view) A tentative fix for this PR This allows the testcase to compile and run correctly. I am now not sure if x does need to be declared before foo, simply because it is not needed to determine the size of the transfer result. At very least, it is an obvious addition to resolve_transfer. We can worry about statement order some other time. I cannot regtest or commit because of a catastrophe with the Windows installer, followed by a rash decision to install FC9. Volunteers? Paul -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35680