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

            Bug ID: 111353
           Summary: bits/new_allocator.h: No such file or directory in
                    freestanding C++ toolchain
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: unlvsur at live dot com
  Target Milestone: ---

D:/toolchains/gnu/x86_64-w64-mingw32/x86_64-elf/x86_64-elf/include/c++/14.0.0/x86_64-elf/bits/c++allocator.h:33:10:
fatal error: bits/new_allocator.h: No such file or directory
   33 | #include <bits/new_allocator.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~


As I reported to wg21 before, there is no way to allocate memory in constexpr
context for freestanding. clang provides __builtin_operator_new and
__builtin_operator_delete. Maybe gcc needs that too?

Reply via email to