public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/114866] New: <memory> & out_ptr in freestanding
@ 2024-04-26 18:05 weidmann at acm dot org
  2024-04-28  9:09 ` [Bug libstdc++/114866] " de34 at live dot cn
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: weidmann at acm dot org @ 2024-04-26 18:05 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114866
           Summary: <memory> & out_ptr in freestanding
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: weidmann at acm dot org
  Target Milestone: ---

With gcc version 14.0.1 20240411 (Red Hat 14.0.1-0) (GCC) on x86_64 GNU/Linux.

Using the following command options:

g++ -std=c++23 -fno-rtti -fno-exceptions -fno-non-call-exceptions
-fno-unwind-tables -fno-use-cxa-atexit -fno-enforce-eh-specs -faligned-new
-fsized-deallocation -fpermissive   -m32 -ffreestanding -fomit-frame-pointer
-Os -fno-asynchronous-unwind-tables -fno-builtin -Wall -fanalyzer

I get the following error:

In file included from /usr/include/c++/14/memory:95,
...
/usr/include/c++/14/bits/out_ptr.h:57:22: error: ‘__is_shared_ptr’ was not
declared in this scope
   57 |       static_assert(!__is_shared_ptr<_Smart> || sizeof...(_Args) != 0,

Is #if _GLIBCXX_HOSTED missing around 

#if __cplusplus > 202002L
#  include <bits/out_ptr.h>
#endif

> As a quick workaround for building my project, I define #define _GLIBCXX_OUT_PTR_H before including <memory>

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-05-14  9:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-26 18:05 [Bug libstdc++/114866] New: <memory> & out_ptr in freestanding weidmann at acm dot org
2024-04-28  9:09 ` [Bug libstdc++/114866] " de34 at live dot cn
2024-04-28 12:13 ` arsen at gcc dot gnu.org
2024-04-28 16:19 ` [Bug libstdc++/114866] [14/15 Regression] " redi at gcc dot gnu.org
2024-04-30  9:30 ` rguenth at gcc dot gnu.org
2024-05-02 11:32 ` redi at gcc dot gnu.org
2024-05-07  7:45 ` rguenth at gcc dot gnu.org
2024-05-07 13:48 ` cvs-commit at gcc dot gnu.org
2024-05-14  9:50 ` [Bug libstdc++/114866] [14 " cvs-commit at gcc dot gnu.org
2024-05-14  9:54 ` redi at gcc dot gnu.org

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).