libstdc++: Remove garbage collection support for C++23 [P2186R2]
authorJonathan Wakely <jwakely@redhat.com>
Wed, 2 Jun 2021 15:41:26 +0000 (16:41 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 22 Jun 2021 19:58:43 +0000 (20:58 +0100)
commitb5a29741db11007e37d8d4ff977b89a8314abfda
tree62f3297a5c305970130462b823e36967c681dd32
parent6c63cb231e4cf99552bb7904ebe402f7adcafda4
libstdc++: Remove garbage collection support for C++23 [P2186R2]

This removes the non-functional garbage colection support from <memory>,
as proposed for C++23 by P2186R2.

Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:

* include/std/memory (declare_reachable, undeclare_reachable)
(declare_no_pointers, undeclare_no_pointers, get_pointer_safety)
(pointer_safety): Only define for C++11 to C++20 inclusive.
* testsuite/20_util/pointer_safety/1.cc: Do not run for C++23.
libstdc++-v3/include/std/memory
libstdc++-v3/testsuite/20_util/pointer_safety/1.cc