]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Make std::construct_at support arrays (LWG 3436)
authorJonathan Wakely <jwakely@redhat.com>
Mon, 18 Mar 2024 16:59:50 +0000 (16:59 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 9 Oct 2024 12:39:15 +0000 (13:39 +0100)
commit993deb3a9a4eb78b05587f9b2f9d83a4ccc60c74
tree0fbd52f636751a2242cb282a0476b187c38036c3
parentce89d2f3170e0d6474cee2c5cb9d478426a5b2f6
libstdc++: Make std::construct_at support arrays (LWG 3436)

The issue was approved at the recent St. Louis meeting, requiring
support for bounded arrays, but only without arguments to initialize the
array elements.

libstdc++-v3/ChangeLog:

* include/bits/stl_construct.h (construct_at): Support array
types (LWG 3436).
* testsuite/20_util/specialized_algorithms/construct_at/array.cc:
New test.
* testsuite/20_util/specialized_algorithms/construct_at/array_neg.cc:
New test.

gcc/testsuite/ChangeLog:

* g++.dg/cpp0x/initlist-opt1.C: Adjust for different diagnostics
from std::construct_at by adding -fconcepts-diagnostics-depth=2.
gcc/testsuite/g++.dg/cpp0x/initlist-opt1.C
libstdc++-v3/include/bits/stl_construct.h
libstdc++-v3/testsuite/20_util/specialized_algorithms/construct_at/array.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/specialized_algorithms/construct_at/array_neg.cc [new file with mode: 0644]