From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31120 invoked by alias); 6 Sep 2006 15:37:03 -0000 Received: (qmail 31082 invoked by uid 48); 6 Sep 2006 15:36:55 -0000 Date: Wed, 06 Sep 2006 15:37:00 -0000 Message-ID: <20060906153655.31081.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/28915] [4.2 regression] ICE: tree check: expected class 'constant', have 'declaration' (var_decl) in build_vector, at tree.c:973 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "roger at eyesopen dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-09/txt/msg00441.txt.bz2 List-Id: ------- Comment #12 from roger at eyesopen dot com 2006-09-06 15:36 ------- Here's the .102t.final_cleanup ;; Function f (f) f () { int D.1524; int D.1522; int D.1520; int t.0; : t.0 = (int) &t; D.1520 = (int) &t[1]; D.1522 = (int) &t[2]; D.1524 = (int) &t[3]; return {t.0, D.1520, D.1522, D.1524}; } The CONSTRUCTOR in the return incorrectly has the TREE_CONSTANT flag set. So the problem is somewhere in tree-ssa. One workaround/improvement might be for out-of-ssa to reconstitute the constructor back to a constant. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28915