public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hnc at singularity dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/108636] New: C++20 to undefined reference to `std::filesystem::__cxx11::path::_List::type(std::filesystem::__cxx11::path::_Type)' with -fkeep-inline-functions
Date: Thu, 02 Feb 2023 12:03:40 +0000	[thread overview]
Message-ID: <bug-108636-4@http.gcc.gnu.org/bugzilla/> (raw)

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108636

            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 <filesystem>
int main() { return 0; }
```

Flags:
`-std=c++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<char,
std::char_traits<char> >, 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

             reply	other threads:[~2023-02-02 12:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-02 12:03 hnc at singularity dot fr [this message]
2023-02-02 12:11 ` [Bug libstdc++/108636] " redi at gcc dot gnu.org
2023-02-02 13:25 ` [Bug libstdc++/108636] C++20 " redi at gcc dot gnu.org
2023-02-02 13:46 ` redi at gcc dot gnu.org
2023-02-02 16:47 ` cvs-commit at gcc dot gnu.org
2023-02-02 17:12 ` [Bug libstdc++/108636] [10/11/12 Regression] " redi at gcc dot gnu.org
2023-02-21  0:48 ` cvs-commit at gcc dot gnu.org
2023-03-16 16:51 ` [Bug libstdc++/108636] [10/11 " cvs-commit at gcc dot gnu.org
2023-03-16 17:53 ` [Bug libstdc++/108636] [10 " cvs-commit at gcc dot gnu.org
2023-03-16 17:54 ` redi at gcc dot gnu.org
2024-01-31 22:23 ` Mark_B53 at yahoo dot com
2024-02-01 18:36 ` redi at gcc dot gnu.org
2024-02-02 10:35 ` cvs-commit at gcc dot gnu.org
2024-02-02 10:40 ` redi at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-108636-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).