aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-05-02 12:14:52 +0100
committerJonathan Wakely <jwakely@redhat.com>2024-05-07 14:47:49 +0100
commit9927059bb88e966e0a45f09e4fd1193f93df708f (patch)
tree0324a3dc1e0cedb48cf4b547590e828e20aabcd1 /gcc/expr.cc
parent6709e35457a30b2184fa8337aa4abdd2c0edaeb3 (diff)
downloadgcc-9927059bb88e966e0a45f09e4fd1193f93df708f.zip
gcc-9927059bb88e966e0a45f09e4fd1193f93df708f.tar.gz
gcc-9927059bb88e966e0a45f09e4fd1193f93df708f.tar.bz2
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.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions