From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13583 invoked by alias); 26 Mar 2013 06:14:03 -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 Received: (qmail 13478 invoked by uid 48); 26 Mar 2013 06:13:56 -0000 From: "bernd.edlinger at hotmail dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/56712] [4.6 Regression] constructor function is called twice Date: Tue, 26 Mar 2013 06:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: bernd.edlinger at hotmail dot de X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.4 X-Bugzilla-Changed-Fields: Message-ID: 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 X-SW-Source: 2013-03/txt/msg01854.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56712 --- Comment #4 from Bernd Edlinger 2013-03-26 06:13:55 UTC --- (In reply to comment #2) > Works for me with 4.7/4.8/4.9, and 4.5 and older, but fails with 4.6. > The bug was fixed for 4.7.0 by r180700; that change has no BZ PR entry, but the > patch submission (http://gcc.gnu.org/ml/gcc-patches/2011-10/msg02486.html) > described a scenario involving cloned constructor functions much like this one. OK, confirmed. with this fix the bug went away in the test example and in the original more complex context.