]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix fancy pointer test for std::set
authorJonathan Wakely <jwakely@redhat.com>
Wed, 15 Jan 2025 21:24:15 +0000 (21:24 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 15 Jan 2025 23:34:28 +0000 (23:34 +0000)
commitf079feecab1dda0ea8c7fe632c41dbb3ee1892b8
treeb0fd5fc2243c1fe4ea56354a4357975fa0ae9609
parent903ab914dd48c3131ded0cf427da50c23168024c
libstdc++: Fix fancy pointer test for std::set

The alloc_ptr.cc test for std::set tries to use C++17 features
unconditionally, and tries to use the C++23 range members which haven't
been implemented for std::set yet.

Some of the range checks are left in place but commented out, so they
can be added after the ranges members are implemented. Others (such as
prepend_range) are not valid for std::set at all.

Also fix uses of internal feature test macros in two other tests, which
should use the standard __cpp_lib_xxx macros.

libstdc++-v3/ChangeLog:

* testsuite/23_containers/set/requirements/explicit_instantiation/alloc_ptr.cc:
Guard node extraction checks with feature test macro. Remove
calls to non-existent range members.
* testsuite/23_containers/forward_list/requirements/explicit_instantiation/alloc_ptr.cc:
Use standard macro not internal one.
* testsuite/23_containers/list/requirements/explicit_instantiation/alloc_ptr.cc:
Likewise.
libstdc++-v3/testsuite/23_containers/forward_list/requirements/explicit_instantiation/alloc_ptr.cc
libstdc++-v3/testsuite/23_containers/list/requirements/explicit_instantiation/alloc_ptr.cc
libstdc++-v3/testsuite/23_containers/set/requirements/explicit_instantiation/alloc_ptr.cc