From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13961 invoked by alias); 24 Jan 2012 09:48:50 -0000 Received: (qmail 13950 invoked by uid 22791); 24 Jan 2012 09:48:50 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 24 Jan 2012 09:48:34 +0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/51966] [4.6/4.7 Regression] ICE in gfc_conv_array_constructor_expr Date: Tue, 24 Jan 2012 10:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.3 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-01/txt/msg02762.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51966 --- Comment #5 from Tobias Burnus 2012-01-24 09:48:28 UTC --- (In reply to comment #4) > type(Deriv), save :: DepEcoSystem = Deriv(DEF_ECOSYSTEMS(1)) Here, the problem is that in #0 gfc_conv_string_init (length=0x2aaaacf3b720, expr=0x16c1170) expr->type == EXPR_ARRAY. Hence, the following fails: gcc_assert (expr->expr_type == EXPR_CONSTANT); #1 in gfc_conv_initializer at fortran/trans-expr.c:4940 #2 in gfc_conv_structure at fortran/trans-expr.c:5396 #3 in gfc_conv_initializer at fortran/trans-expr.c:4933 #4 in gfc_get_symbol_decl at fortran/trans-decl.c:1476 Also that version works with GCC 4.5. (In reply to comment #3) > [2009-07-23] Revision 162456 is OK, > [2010-09-29] revision 164728 gives the ICE. Also 2010-08-28-r163612 fails. I wonder whether the patch for PR 44857 (2010-08-04, Rev. 162863) is the culprit: http://gcc.gnu.org/ml/fortran/2010-08/msg00034.html