]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Add missing feature-test macro in <memory>
authorDhruv Chawla <dhruvc@nvidia.com>
Tue, 8 Apr 2025 08:01:24 +0000 (01:01 -0700)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 6 May 2025 11:53:54 +0000 (12:53 +0100)
commit0d46cee2fe38b9a1aa576c8031ed22d298d88954
tree9d335dc7e9f546b4151b2474918dbb865d553443
parentebc9606540171f33bf974d3f81e547affc052753
libstdc++: Add missing feature-test macro in <memory>

Per version.syn#2, <memory> is required to define
__cpp_lib_addressof_constexpr as 201603L.

Bootstrapped and tested on aarch64-linux-gnu.

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
libstdc++-v3/ChangeLog:
* include/std/memory: Define __glibcxx_want_addressof_constexpr.
* testsuite/20_util/headers/memory/version.cc: Test for macro
value.

(cherry picked from commit 0e65fef8717f404cf9c85bff51bf87d534f87828)
libstdc++-v3/include/std/memory
libstdc++-v3/testsuite/20_util/headers/memory/version.cc