From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2006 invoked by alias); 17 Sep 2008 08:56:33 -0000 Received: (qmail 1855 invoked by uid 48); 17 Sep 2008 08:55:13 -0000 Date: Wed, 17 Sep 2008 08:56:00 -0000 Message-ID: <20080917085513.1854.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/msg01996.txt.bz2 ------- Comment #5 from pault at gcc dot gnu dot org 2008-09-17 08:55 ------- (In reply to comment #4) > 4.3.2 is released, changing milestones to 4.3.3. > Although this passes Lahey with only a warning that the return value is not set, it manifestly is standard defying according to 7.1.6.2 A variable in a specification expression shall have its type and type parameters, if any, specified by a previous declaration in the same scoping unit, or by the implicit typing rules in effect for the scoping unit, or by host or use association. If a variable in a specification expression is typed by the implicit typing rules, its appearance in any subsequent type declaration statement shall confirm the implied type and type parameters. Inverting the order of the declarations should make the code legal. Paul -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35680