From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30739 invoked by alias); 14 Sep 2012 07:58:47 -0000 Received: (qmail 30725 invoked by uid 22791); 14 Sep 2012 07:58:46 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED 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; Fri, 14 Sep 2012 07:58:33 +0000 From: "joerg.richter@pdv-fs.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/52887] Bootstrap on AIX failure: Undefined symbol: .std::function::function(std::function const&) Date: Fri, 14 Sep 2012 07:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: joerg.richter@pdv-fs.de X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned 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" Content-Transfer-Encoding: quoted-printable 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: 2012-09/txt/msg01076.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52887 --- Comment #22 from J=C3=B6rg Richter 2012-09-14= 07:58:16 UTC --- I have reduced a real live case. But still using . $ cat t.cc #include struct ClassicUpdate { ClassicUpdate(); }; typedef std::vector ClassicUpdates; struct UpdateData { ClassicUpdates classicUpdates; UpdateData( ClassicUpdates const& classicUpdates ) : classicUpdates( classicUpdates ) {} }; int main() {} $ g++ -std=3Dgnu++0x -o mm t.cc -save-temps $ grep Construct.*ClassicUpdate *.s .weak _ZSt10_ConstructI13ClassicUpdateIRKS0_EEvPT_DpOT0_[DS] ... This should demostrate that GCC compiles a symbol referencing ClassicUpdate into the executable. When the AIX linker decides to use that symbol you get= =20 an undefined reference error. This is not the case here. But the unreduced= =20 source has the problem. GCC 4.6.3 doesn't do this. And removing -std=3Dgnu++0x works too. So it seems this is not regex-related but a deeper bug in GCC 4.7 that emit= s=20 functions that are never called.