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

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>:

https://gcc.gnu.org/g:9927059bb88e966e0a45f09e4fd1193f93df708f

commit r15-284-g9927059bb88e966e0a45f09e4fd1193f93df708f
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Thu May 2 12:14:52 2024 +0100

    libstdc++: Fix <memory> for -std=c++23 -ffreestanding [PR114866]

    std::shared_ptr isn't declared for freestanding, so guard uses of it
    with #if _GLIBCXX_HOSTED in <bits/out_ptr.h>.

    libstdc++-v3/ChangeLog:

            PR libstdc++/114866
            * include/bits/out_ptr.h [!_GLIBCXX_HOSTED]: Don't refer to
            shared_ptr, __shared_ptr or __is_shred_ptr.
            * testsuite/20_util/headers/memory/114866.cc: New test.

Reply via email to