From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21645 invoked by alias); 10 Mar 2011 04:31:56 -0000 Received: (qmail 21636 invoked by uid 22791); 10 Mar 2011 04:31:55 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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, 10 Mar 2011 04:31:51 +0000 From: "patrick.marlier at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/47952] [trans-mem] undefined reference to transaction clone X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: patrick.marlier at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rth at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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 Date: Thu, 10 Mar 2011 04:31: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: 2011-03/txt/msg00966.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47952 --- Comment #11 from Patrick Marlier 2011-03-10 04:31:30 UTC --- This issue has been filled here: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48021 There is also a reduced testcase. (If I remember well the namespace std matters). Patrick. On Thu, Mar 10, 2011 at 12:01 AM, rth at gcc dot gnu.org < gcc-bugzilla@gcc.gnu.org> wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47952 > > --- Comment #10 from Richard Henderson 2011-03-09 > 23:01:38 UTC --- > The remaining problem in the full glob2 test is > > > src/Unit.o: In function `transaction clone for Unit::~Unit()': > Unit.cpp:(.text._ZGTtN4UnitD2Ev[transaction clone for Unit::~Unit()]+0x2c): > undefined reference to `transaction clone for std::basic_string std::char_traits, std::allocator >::~basic_string()' > collect2: ld returned 1 exit status > > > which really really doesn't exist. No amount of marking this > function weak is going to work. > > I suspect, but have not yet verified, that this is related to > > > // Inhibit implicit instantiations for required instantiations, > // which are defined via explicit instantiations elsewhere. > // NB: This syntax is a GNU extension. > #if _GLIBCXX_EXTERN_TEMPLATE > 0 > extern template class basic_string; > > > in that we're copying the "is extern" bit, which is not true for > the transactional clone. > > -- > Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email > ------- You are receiving this mail because: ------- > You reported the bug. >