From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4786 invoked by alias); 1 May 2010 00:24:01 -0000 Received: (qmail 4709 invoked by uid 48); 1 May 2010 00:23:43 -0000 Date: Sat, 01 May 2010 00:24:00 -0000 Message-ID: <20100501002343.4708.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/43951] [4.6 Regression] Revsion 158918 miscompiled 483.xalancbmk in SPEC CPU 2006 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "hjl dot tools at gmail dot com" 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: 2010-05/txt/msg00002.txt.bz2 ------- Comment #4 from hjl dot tools at gmail dot com 2010-05-01 00:23 ------- This patch: --- Index: cp/init.c =================================================================== --- cp/init.c (revision 158918) +++ cp/init.c (working copy) @@ -1911,7 +1911,7 @@ build_new_1 (VEC(tree,gc) **placement, t is_initialized = (TYPE_NEEDS_CONSTRUCTING (elt_type) || *init != NULL); - if (*init == NULL) + if (*init == NULL && !type_has_user_provided_constructor (elt_type)) { bool maybe_uninitialized_error = false; /* A program that calls for default-initialization [...] of an --- fixed the problem. Jason, does it make any senses? -- hjl dot tools at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at redhat dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43951