From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9554 invoked by alias); 7 Oct 2010 16:17:02 -0000 Received: (qmail 9543 invoked by uid 22791); 7 Oct 2010 16:17:01 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID 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; Thu, 07 Oct 2010 16:16:58 +0000 From: "jason at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/45934] [4.6 Regression] g++.old-deja/g++.other/dtor5.C FAILs with -finline-small-functions X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jason at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.0 X-Bugzilla-Changed-Fields: 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 Date: Thu, 07 Oct 2010 16:17:00 -0000 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-10/txt/msg00678.txt.bz2 Message-ID: <20101007161700.wL9ZHn7Cx9r-fABh1jzbh7uwgARLb5gH29szxL-kV_U@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45934 --- Comment #4 from Jason Merrill 2010-10-07 16:16:42 UTC --- This testcase is valid. The effective type of an object for virtual dispatch changes during the construction/destruction process; see 12.7 in the standard. So in addition to the static type of the object, the devirtualizer needs to know when a subobject is under construction or destruction.