From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A62CD3858C1F; Tue, 21 Feb 2023 00:48:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A62CD3858C1F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676940503; bh=zXd2h7LcTwDlWo+ZUOhWfRHhwmjhMhpRTX2AI/w+Cz0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=G7w3XXEYzX6AwT2MMQVlDfdxll0/nmcTd5qrjj5E1g64nsnSO69l/lQIEGKZqWgwr KPdq5ZN2Wv4rUUX4inCBoBrYh7/dxQBPMYjFZ9Ac7MHxVUANqLQKOozyMi9tpF2Dre d2c0CJB+lC5NtQM68De5C4k0QcUfu1l4g1uZpAZc= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBsaWJzdGRjKysvMTA4NjM2XSBbMTAvMTEvMTIgUmVncmVz?= =?UTF-8?B?c2lvbl0gQysrMjAgdW5kZWZpbmVkIHJlZmVyZW5jZSB0byBgc3RkOjpmaWxl?= =?UTF-8?B?c3lzdGVtOjpfX2N4eDExOjpwYXRoOjpfTGlzdDo6dHlwZShzdGQ6OmZpbGVz?= =?UTF-8?B?eXN0ZW06Ol9fY3h4MTE6OnBhdGg6Ol9UeXBlKScgd2l0aCAtZmtlZXAtaW5s?= =?UTF-8?B?aW5lLWZ1bmN0aW9ucw==?= Date: Tue, 21 Feb 2023 00:48:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: link-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 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=3D108636 --- Comment #5 from CVS Commits --- The releases/gcc-12 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:0a2597477e482df4d67db6696431286df1ff4428 commit r12-9193-g0a2597477e482df4d67db6696431286df1ff4428 Author: Jonathan Wakely Date: Thu Feb 2 14:06:40 2023 +0000 libstdc++: Fix std::filesystem errors with -fkeep-inline-functions [PR108636] With -fkeep-inline-functions there are linker errors when including . This happens because there are some filesystem::path constructors defined inline which call non-exported functions defined in the library. That's usually not a problem, because those constructors are only called by code that's also inside the library. But when the header is compiled with -fkeep-inline-functions those inline functions are emitted even though they aren't called. That then creates an undefined reference to the other library internsl. The fix is to just move the private constructors into the library where they are called. That way they are never even seen by users, and so not compiled even if -fkeep-inline-functions is used. libstdc++-v3/ChangeLog: PR libstdc++/108636 * include/bits/fs_path.h (path::path(string_view, _Type)) (path::_Cmpt::_Cmpt(string_view, _Type, size_t)): Move inline definitions to ... * src/c++17/fs_path.cc: ... here. * testsuite/27_io/filesystem/path/108636.cc: New test. (cherry picked from commit db8d6fc572ec316ccfcf70b1dffe3be0b1b37212)=