From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CCB843858C60; Thu, 2 Feb 2023 12:03:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CCB843858C60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675339420; bh=pxAHpGyJU28wUHQH6szRHgMMlKATL/xg9trCsTIawDg=; h=From:To:Subject:Date:From; b=WgzqMVWFhc6vRTL3p0eyEB+O3+tJUFGg+lqXsAPlqBU92uVLevZC0lpQSeSZxKCTb rstsNU/kkHTVu/LVXdMwociilj5dLTx64UniA/5GyPkNauwzJBjx3oxrpv3MI5A0dr 4Z8O5r3V4TapaTlRAMxkFxx9BWgwqG3BGlt3k4Vs= From: "hnc at singularity dot fr" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjKysvMTA4NjM2XSBOZXc6IEMrKzIwIHRvIHVuZGVmaW5l?= =?UTF-8?B?ZCByZWZlcmVuY2UgdG8gYHN0ZDo6ZmlsZXN5c3RlbTo6X19jeHgxMTo6cGF0?= =?UTF-8?B?aDo6X0xpc3Q6OnR5cGUoc3RkOjpmaWxlc3lzdGVtOjpfX2N4eDExOjpwYXRo?= =?UTF-8?B?OjpfVHlwZSknIHdpdGggLWZrZWVwLWlubGluZS1mdW5jdGlvbnM=?= Date: Thu, 02 Feb 2023 12:03:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hnc at singularity dot fr 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 Bug ID: 108636 Summary: C++20 to undefined reference to `std::filesystem::__cxx11::path::_List::type(std::file system::__cxx11::path::_Type)' with -fkeep-inline-functions Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hnc at singularity dot fr Target Milestone: --- Hi Compilers: GCC 10.1 to 12.2 Code: ``` #include int main() { return 0; } ``` Flags: `-std=3Dc++20 -pedantic -fkeep-inline-functions` (adding `-lstdc++fs` does not help) The compilation fails with this link error: ``` in function `std::filesystem::__cxx11::path::path(std::basic_string_view >, std::filesystem::__cxx11::path::_Type)': /usr/include/c++/12/bits/fs_path.h:606: undefined reference to `std::filesystem::__cxx11::path::_List::type(std::filesystem::__cxx11::path= ::_Type)' ``` It compiles without `-fkeep-inline-functions` flag. Thanks=