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.
Showing
- gcc/testsuite/g++.dg/cpp0x/initlist-opt1.C 1 addition, 0 deletionsgcc/testsuite/g++.dg/cpp0x/initlist-opt1.C
- libstdc++-v3/include/bits/stl_construct.h 17 additions, 3 deletionslibstdc++-v3/include/bits/stl_construct.h
- libstdc++-v3/testsuite/20_util/specialized_algorithms/construct_at/array.cc 41 additions, 0 deletions...uite/20_util/specialized_algorithms/construct_at/array.cc
- libstdc++-v3/testsuite/20_util/specialized_algorithms/construct_at/array_neg.cc 19 additions, 0 deletions.../20_util/specialized_algorithms/construct_at/array_neg.cc
Loading
Please register or sign in to comment