From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27407 invoked by alias); 28 Jan 2013 15:43:27 -0000 Received: (qmail 26234 invoked by uid 48); 28 Jan 2013 15:42:59 -0000 From: "jason at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/54314] [4.8 Regression] undefined references to 'construction vtable for std::ostream-in-std::basic_ostringstream, std::allocator >' Date: Mon, 28 Jan 2013 15:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Keywords: link-failure X-Bugzilla-Severity: major X-Bugzilla-Who: jason at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 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 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: 2013-01/txt/msg02589.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54314 --- Comment #27 from Jason Merrill 2013-01-28 15:42:57 UTC --- (In reply to comment #26) > 1) Just add the check. We will then miss all devirtualization oppurtunities > through the construction vtable. The front end does devirtualization itself for calls within constructors, so the impact of this isn't likely to be too bad. > what happens on targets not supporting visibility? I think that setting DECL_VISIBILITY should do the trick even if it isn't reflected in the assembly output. I added the DECL_ARTIFICIAL check to default_assemble_visibility so that this wouldn't cause warnings. > 3) Perhaps we can use DECL_VALUE_EXPR or somethin similar to keep track of > the canonical way to reffer into tthe construction vtable? (i.e. by > reference > to vtable) We can then lower all direct references to the indirect > references late, i.e. in expansion? Hmm, that makes sense.