From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2F3E6385558F; Thu, 16 Mar 2023 16:51:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2F3E6385558F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678985489; bh=L9wqksPqmZebaZBsKOZnZ3WqL+Q8JHoXr2tQYZ6GX1M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VkRHtOx3zlR/W8hGwQiwJjahKYXsuh/vIFWSoomDFVyRiYDBXW3y4JCSjbc7IAEJ/ XQh1q5BDOydA2jkaCdjv0tqd0AVc6qCX88uHK0oyQ4AxBOH/DXGgVfO+XvbXWBNh9f eAUDfVBZMqvc9rZtXj5+07FujrfuzVWl+cPtTPoo= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBsaWJzdGRjKysvMTA4NjM2XSBbMTAvMTEgUmVncmVzc2lv?= =?UTF-8?B?bl0gQysrMjAgdW5kZWZpbmVkIHJlZmVyZW5jZSB0byBgc3RkOjpmaWxlc3lz?= =?UTF-8?B?dGVtOjpfX2N4eDExOjpwYXRoOjpfTGlzdDo6dHlwZShzdGQ6OmZpbGVzeXN0?= =?UTF-8?B?ZW06Ol9fY3h4MTE6OnBhdGg6Ol9UeXBlKScgd2l0aCAtZmtlZXAtaW5saW5l?= =?UTF-8?B?LWZ1bmN0aW9ucw==?= Date: Thu, 16 Mar 2023 16:51:29 +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 #6 from CVS Commits --- The releases/gcc-11 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:05fa584bbb5534ec7a763a2d0e6d89cf251534f5 commit r11-10581-g05fa584bbb5534ec7a763a2d0e6d89cf251534f5 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 internals. 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)=