From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6E6BB3858D32; Sun, 4 Sep 2022 16:38:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6E6BB3858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662309521; bh=FD/+nqrQZqu5wzj+D3WxYVQQ07pepyWhXScqvo0C90A=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XU00WvrSATh3iVCW3pbou3Mw4urdzxJaEdBaqeTPjuSxIpv5rnUyOzjiC3DOU4Z0q VYRBRDoKfA37EmBHTkFQt8cTOAoV9h3G09v0HgfMp36MBQfEGW3HJwM1cQ+yA3ocLQ NP1pXq20EjTXoN1WQ7Nd0rlQKVeV8J73Bm02unKA= From: "markmigm at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106825] header unit based std::shared_ptr<...>(...) use gets: undefined reference to `std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release()', aarch64 example Date: Sun, 04 Sep 2022 16:38:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: markmigm at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106825 --- Comment #1 from Mark Millard --- (In reply to Mark Millard from comment #0) FYI: I also see this on FreeBSD via the lang/gcc12 port (that, in my installed context, is at 12.2.0), using the default library: libstdc++ . I do not see any failure on FreeBSD when I use -stdlib=3Dlibc++ on the two command lines: # g++12 -std=3Dc++20 -stdlib=3Dlibc++ -pedantic -Wall -Wextra -fmodules-ts = -fPIC -xc++-system-header memory # g++12 -std=3Dc++20 -stdlib=3Dlibc++ -pedantic -Wall -Wextra -fmodules-ts = -fPIC -omodule_shared_ptr_failure module_shared_ptr_failure.cpp #=