From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27705 invoked by alias); 6 Sep 2006 15:27:40 -0000 Received: (qmail 27653 invoked by uid 48); 6 Sep 2006 15:27:32 -0000 Date: Wed, 06 Sep 2006 15:27:00 -0000 Message-ID: <20060906152732.27652.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/msg00440.txt.bz2 List-Id: ------- Comment #11 from roger at eyesopen dot com 2006-09-06 15:27 ------- Hmm, yep I guess it was caused my change, most probably this part of it: * tree.c (build_constructor_single): Mark a CONSTRUCTOR as constant, if all of its elements/components are constant. (build_constructor_from_list): Likewise. It looks like someplace is changing the contents of this CONSTRUCTOR to a VAR_DECL "t.0", but not reseting the TREE_CONSTANT flag. Hence on PPC we end up with a bogus constant constructor during RTL expansion!? Scalar replacement perhaps?? Grr. I'll investigate. Sorry for the inconvenience. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28915