From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 406CF3858C60; Fri, 26 Apr 2024 18:05:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 406CF3858C60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714154706; bh=7CSNK/0fQ7FT4BY+o7TK9P97sjM9HEXAGQ51JpN+W5I=; h=From:To:Subject:Date:From; b=OpCf1OEGF5RhssyN9LZJfwFAbgcrRNuSlN/uY+EYeSjutwWW+cYJeatE7uD363auL QddtIgta0zqtF+UHLflk80ePdemhqdnp1GilB9nWFR5EMNwnSmJYWdZOABLSGVOUih mnj6aRd8ohQIAI2I3xs4jYR39FFaPF/q4+ekWStY= From: "weidmann at acm dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/114866] New: & out_ptr in freestanding Date: Fri, 26 Apr 2024 18:05:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: weidmann at acm dot org 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=3D114866 Bug ID: 114866 Summary: & 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/Lin= ux. Using the following command options: g++ -std=3Dc++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: =E2=80=98__is_shared_ptr= =E2=80=99 was not declared in this scope 57 | static_assert(!__is_shared_ptr<_Smart> || sizeof...(_Args) != =3D 0, Is #if _GLIBCXX_HOSTED missing around=20 #if __cplusplus > 202002L # include #endif > As a quick workaround for building my project, I define #define _GLIBCXX_= OUT_PTR_H before including =