From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16382 invoked by alias); 12 Jun 2007 18:16:57 -0000 Received: (qmail 16347 invoked by uid 48); 12 Jun 2007 18:16:45 -0000 Date: Tue, 12 Jun 2007 18:16:00 -0000 Message-ID: <20070612181645.16346.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/32304] [4.3 Regression] ICE in set_mem_attributes_minus_bitpos In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia 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: 2007-06/txt/msg00938.txt.bz2 ------- Comment #3 from pinskia at gcc dot gnu dot org 2007-06-12 18:16 ------- The patch which fixes the problem: Index: ipa-reference.c =================================================================== --- ipa-reference.c (revision 125637) +++ ipa-reference.c (working copy) @@ -269,6 +269,10 @@ if (DECL_EXTERNAL (t) || TREE_PUBLIC (t)) return false; + /* We cannot touch decl's whos types need constructing. */ + if (TYPE_NEEDS_CONSTRUCTING (TREE_TYPE (t))) + return false; + /* This is a variable we care about. Check if we have seen it before, and if not add it the set of variables we care about. */ if (!bitmap_bit_p (all_module_statics, DECL_UID (t))) -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32304