]>
Commit | Line | Data |
---|---|---|
7f0f1083 PP |
1 | 2020-02-25 Patrick Palka <ppalka@redhat.com> |
2 | ||
510bd1c1 PP |
3 | LWG 3301 transform_view::_Iterator has incorrect iterator_category |
4 | * include/std/ranges (transform_view::_Iterator::_S_iter_cat): Adjust | |
5 | determination of iterator_category as per LWG 3301. | |
6 | * testsuite/std/ranges/adaptors/transform.cc: Augment test. | |
7 | ||
7f0f1083 PP |
8 | LWG 3292 iota_view is under-constrained |
9 | * include/std/ranges (iota_view): Require that _Winc models semiregular | |
10 | as per LWG 3292. | |
11 | * testsuite/std/ranges/iota/lwg3292_neg.cc: New test. | |
12 | ||
dfb93d05 | 13 | 2020-02-25 Jonathan Wakely <jwakely@redhat.com> |
5b904f17 | 14 | |
490350a1 JW |
15 | * include/bits/ranges_algobase.h (__copy_or_move): Do not use memmove |
16 | during constant evaluation. Call __builtin_memmove directly instead of | |
17 | __memmove. | |
18 | (__copy_or_move_backward): Likewise. | |
19 | * include/bits/stl_algobase.h (__memmove): Remove. | |
20 | (__copy_move<M, true, random_access_iterator_tag>::__copy_m) | |
21 | (__copy_move_backward<M, true, random_access_iterator_tag>::__copy_m): | |
22 | Use __builtin_memmove directly instead of __memmove. | |
23 | (__copy_move_a2): Do not use memmove during constant evaluation. | |
24 | (__copy_move_backward_a2): Use _IsMove constant to select correct | |
25 | __copy_move_backward specialization. | |
26 | * testsuite/25_algorithms/copy_backward/constexpr.cc: Check for copies | |
27 | begin turned into moves during constant evaluation. | |
28 | ||
6de946e6 JW |
29 | * testsuite/25_algorithms/move_backward/93872.cc: Add test left out of |
30 | previous commit. | |
31 | ||
5b904f17 JW |
32 | PR libstdc++/93872 |
33 | * include/bits/stl_algobase.h (__memmove): Cast away const before | |
34 | doing move assignment. | |
35 | * testsuite/25_algorithms/move/93872.cc: New test. | |
36 | * testsuite/25_algorithms/move_backward/93872.cc: New test. | |
37 | ||
c5eab4ed PP |
38 | 2020-02-24 Patrick Palka <ppalka@redhat.com> |
39 | ||
85c143d0 PP |
40 | PR libstdc++/93884 |
41 | * include/bits/ranges_algobase.h (__copy_or_move, | |
42 | __copy_or_move_backward): Don't inspect the iter_value_t of the output | |
43 | iterator, instead inspect its iterator_traits directly. | |
44 | * include/bits/stl_iterator.h (back_insert_iterator::container): | |
45 | Conditionally initialize. | |
46 | (back_insert_iterator::difference_type): Conditionally define. | |
47 | (back_insert_iterator::back_insert_iterator): Conditionally define this | |
48 | default constructor. | |
49 | (front_insert_iterator::container): Conditionally initialize. | |
50 | (front_insert_iterator::difference_type): Conditionally define. | |
51 | (front_insert_iterator::front_insert_iterator): Conditionally define | |
52 | this default constructor. | |
53 | * 24_iterators/back_insert_iterator/pr93884.cc: New test. | |
54 | * 24_iterators/front_insert_iterator/pr93884.cc: New test. | |
55 | ||
c5eab4ed PP |
56 | P0769R2 Add shift to <algorithm> |
57 | * include/bits/ranges_algo.h (shift_left, shift_right): New. | |
58 | * testsuite/25_algorithms/shift_left/1.cc: New test. | |
59 | * testsuite/25_algorithms/shift_right/1.cc: New test. | |
60 | ||
3841739c JW |
61 | 2020-02-24 Jonathan Wakely <jwakely@redhat.com> |
62 | ||
8566286e JW |
63 | * include/bits/stream_iterator.h (istream_iterator(default_sentinel_t)): |
64 | Make noexcept-specifier conditional. | |
65 | * testsuite/24_iterators/istream_iterator/cons/sentinel.cc: Check | |
66 | noexcept-specifier. | |
67 | ||
120e8734 JW |
68 | * include/bits/stream_iterator.h (istream_iterator(default_sentinel_t)): |
69 | Add constructor. | |
70 | (operator==(istream_iterator, default_sentinel_t)): Add operator. | |
71 | (ostream_iterator::difference_type): Define to ptrdiff_t for C++20. | |
72 | * include/bits/streambuf_iterator.h | |
73 | (istreambuf_iterator(default_sentinel_t)): Add constructor. | |
74 | (operator==(istreambuf_iterator, default_sentinel_t)): Add operator. | |
75 | * testsuite/24_iterators/istream_iterator/cons/sentinel.cc: | |
76 | New test. | |
77 | * testsuite/24_iterators/istream_iterator/sentinel.cc: New test. | |
78 | * testsuite/24_iterators/istreambuf_iterator/cons/sentinel.cc: | |
79 | New test. | |
80 | * testsuite/24_iterators/istreambuf_iterator/sentinel.cc: New test. | |
81 | ||
3841739c JW |
82 | * include/std/ranges (__deep_const_range, __enable_view_impl): Remove. |
83 | (ranges::enable_view): Simplify (LWG 3326). | |
84 | * include/bits/range_access.h (ranges::enable_view): Declare. | |
85 | * include/bits/regex.h (__enable_view_impl): Remove partial | |
86 | specialization. | |
87 | * include/bits/stl_multiset.h (__enable_view_impl): Likewise. | |
88 | * include/bits/stl_set.h (__enable_view_impl): Likewise. | |
89 | * include/bits/unordered_set.h (__enable_view_impl): Likewise. | |
90 | * include/debug/multiset.h (__enable_view_impl): Likewise. | |
91 | * include/debug/set.h (__enable_view_impl): Likewise. | |
92 | * include/debug/unordered_set (__enable_view_impl): Likewise. | |
93 | * include/experimental/string_view (ranges::enable_view): Define | |
94 | partial specialization. | |
95 | * include/std/span (ranges::enable_view): Likewise. | |
96 | * include/std/string_view (ranges::enable_view): Likewise. | |
97 | * testsuite/std/ranges/view.cc: Check satisfaction of updated concept. | |
98 | ||
9e589880 JW |
99 | 2020-02-21 Jonathan Wakely <jwakely@redhat.com> |
100 | ||
101 | * include/std/optional (operator<=>(optional<T>, optional<U>)) | |
102 | (operator<=>(optional<T>, nullopt), operator<=>(optional<T>, U)): | |
103 | Define for C++20. | |
104 | * include/std/tuple (__tuple_cmp): New helper function for <=>. | |
105 | (operator<=>(tuple<T...>, tuple<U>...)): Define for C++20. | |
106 | * include/std/variant (operator<=>(variant<T...>, variant<T...>)) | |
107 | (operator<=>(monostate, monostate)): Define for C++20. | |
108 | * testsuite/20_util/optional/relops/three_way.cc: New test. | |
109 | * testsuite/20_util/tuple/comparison_operators/three_way.cc: New test. | |
110 | * testsuite/20_util/variant/89851.cc: Move to ... | |
111 | * testsuite/20_util/variant/relops/89851.cc: ... here. | |
112 | * testsuite/20_util/variant/90008.cc: Move to ... | |
113 | * testsuite/20_util/variant/relops/90008.cc: ... here. | |
114 | * testsuite/20_util/variant/relops/three_way.cc: New test. | |
115 | ||
5586e506 PP |
116 | 2020-02-20 Patrick Palka <ppalka@redhat.com> |
117 | ||
6e63438a PP |
118 | * include/std/ranges (views::__adaptor::__maybe_refwrap): New utility |
119 | function. | |
120 | (views::__adaptor::_RangeAdaptor::operator()): Add comments. Use | |
121 | __maybe_refwrap to capture lvalue references by reference, and then use | |
122 | unwrap_reference_t to forward the by-reference captures as references. | |
123 | * testsuite/std/ranges/adaptors/split.cc: Augment test. | |
124 | * testsuite/std/ranges/adaptors/split_neg.cc: New test. | |
125 | ||
5586e506 PP |
126 | * include/std/ranges (iota_view): Forward declare _Sentinel. |
127 | (iota_view::_Iterator): Befriend _Sentinel. | |
128 | (iota_view::_Sentinel::_M_equal): New member function. | |
129 | (iota_view::_Sentinel::operator==): Use it. | |
130 | (views::_Iota::operator()): Forward __f using the correct type. | |
131 | * testsuite/std/ranges/access/ssize.cc (test06): Don't call views::iota | |
132 | with integers of different signedness, to appease iota_view's deduction | |
133 | guide. | |
134 | * testsuite/std/ranges/iota/iota_view.cc: Augment test. | |
135 | ||
c7b591f3 JW |
136 | 2020-02-20 Jonathan Wakely <jwakely@redhat.com> |
137 | ||
e817c23f JW |
138 | * include/bits/range_access.h (ranges::begin): Reject array of |
139 | incomplete type. | |
140 | (ranges::end, ranges::size): Require arrays to be bounded. | |
141 | (ranges::data): Require lvalue or borrowed_range. | |
142 | (ranges::iterator_t): Remove constraint. | |
143 | * testsuite/std/ranges/access/begin.cc: Do not check array of | |
144 | incomplete type. | |
145 | * testsuite/std/ranges/access/begin_neg.cc: New test. | |
146 | * testsuite/std/ranges/access/end_neg.cc: Adjust expected error. | |
147 | * testsuite/std/ranges/access/size_neg.cc: Adjust expected error. | |
148 | * testsuite/std/ranges/access/ssize.cc: Do not check array of | |
149 | incomplete type. | |
150 | ||
4be779f5 JW |
151 | * include/std/system_error (error_category::operator<=>) |
152 | (operator<=>(const error_code&, const error_code&)) | |
153 | (operator<=>(const error_condition&, const error_condition&)): Define | |
154 | for C++20. | |
155 | * testsuite/19_diagnostics/error_category/operators/less.cc: New test. | |
156 | * testsuite/19_diagnostics/error_category/operators/three_way.cc: New | |
157 | test. | |
158 | * testsuite/19_diagnostics/error_code/operators/equal.cc: Remove | |
159 | incorrect comment. | |
160 | * testsuite/19_diagnostics/error_code/operators/less.cc: New test. | |
161 | * testsuite/19_diagnostics/error_code/operators/not_equal.cc: Remove | |
162 | incorrect comment. | |
163 | * testsuite/19_diagnostics/error_code/operators/three_way.cc: New test. | |
164 | * testsuite/19_diagnostics/error_condition/operators/equal.cc: Remove | |
165 | incorrect comment. | |
166 | * testsuite/19_diagnostics/error_condition/operators/less.cc: New test. | |
167 | * testsuite/19_diagnostics/error_condition/operators/not_equal.cc: | |
168 | Remove incorrect comment. | |
169 | * testsuite/19_diagnostics/error_condition/operators/three_way.cc: New | |
170 | test. | |
171 | ||
20fa41e6 JW |
172 | * libsupc++/typeinfo (type_info::operator!=): Remove for C++20. |
173 | ||
c7b591f3 JW |
174 | * include/std/thread (thread::id::operator<=>): Define for C++20. |
175 | * testsuite/30_threads/thread/id/70294.cc: Do not take addresses of | |
176 | functions in namespace std. | |
177 | * testsuite/30_threads/thread/id/operators_c++20.cc: New test. | |
178 | ||
38c7b74d PP |
179 | 2020-02-19 Patrick Palka <ppalka@redhat.com> |
180 | ||
181 | * testsuite/std/ranges/adaptors/split.cc (test03): Don't include the | |
182 | null terminator of the underlying string as part of the test_range. | |
183 | (main): Call test03. | |
184 | ||
a45fb21a JW |
185 | 2020-02-19 Jonathan Wakely <jwakely@redhat.com> |
186 | ||
1b425f3a JW |
187 | * include/bits/stl_iterator.h (common_iterator): Add copyable<I> |
188 | requirement (LWG 3385). | |
189 | * testsuite/24_iterators/headers/iterator/synopsis_c++20.cc: Adjust | |
190 | expected declaration. | |
191 | ||
7433536b JW |
192 | * include/std/ranges (take_while_view, drop_view, drop_while_view) |
193 | (elements_view:_Iterator): Initialize data members (LWG 3364). | |
194 | ||
256f67aa JW |
195 | * libsupc++/compare (three_way_comparable): Remove always-false check |
196 | that should have been removed with weak_equality (P1959R0). | |
197 | (three_way_comparable_with): Likewise. Reorder requirements (LWG 3360). | |
198 | ||
0294dc5f JW |
199 | * include/std/concepts (__detail::__partially_ordered_with): Move here |
200 | from <compare>. | |
201 | (totally_ordered, totally_ordered_with): Use __partially_ordered_with | |
202 | to simplify definition (LWG 3331). | |
203 | * libsupc++/compare (__detail::__partially_ordered_with): Move to | |
204 | <concepts>. | |
205 | ||
241ed965 JW |
206 | * include/std/concepts (totally_ordered_with): Remove redundant |
207 | requirement (LWG 3329). | |
208 | ||
77f5310f JW |
209 | * include/std/ranges (__detail::__convertible_to_non_slicing): New |
210 | helper concept. | |
211 | (__detail::__pair_like_convertible_to): Remove. | |
212 | (__detail::__pair_like_convertible_from): Add requirements for | |
213 | non-slicing conversions. | |
214 | (subrange): Constrain constructors with __convertible_to_non_slicing. | |
215 | Remove constructors from pair-like types. Add new deduction guide. | |
216 | * testsuite/std/ranges/subrange/lwg3282_neg.cc: New test. | |
217 | ||
59aa9e57 JW |
218 | * include/bits/iterator_concepts.h (iter_move): Add declaration to |
219 | prevent unqualified lookup finding a suitable declaration (LWG 3247). | |
220 | ||
e89100ef JW |
221 | * include/std/memory_resource (polymorphic_allocator::allocate) |
222 | (polymorphic_allocator::allocate_object): Change type of exception to | |
223 | bad_array_new_length (LWG 3237). | |
224 | * testsuite/20_util/polymorphic_allocator/lwg3237.cc: New test. | |
225 | ||
bb54e0b8 JW |
226 | * include/std/type_traits (__cpp_lib_unwrap_ref): Define (LWG 3348). |
227 | * include/std/version (__cpp_lib_unwrap_ref): Likewise. | |
228 | * testsuite/20_util/unwrap_reference/1.cc: Check macro. | |
229 | * testsuite/20_util/unwrap_reference/3.cc: New test. | |
230 | ||
5f031f97 JW |
231 | * include/std/numeric (midpoint(T8, T*)): Do not check for complete |
232 | type during overload resolution, use static assert instead (LWG 3200). | |
233 | * testsuite/26_numerics/midpoint/pointer.cc: Do not test with | |
234 | incomplete type. | |
235 | * testsuite/26_numerics/midpoint/pointer_neg.cc: New test. | |
236 | ||
66ae31eb JW |
237 | * include/std/span (span(T (&)[N])): Use non-deduced context to |
238 | prevent first parameter from interfering with class template argument | |
239 | deduction (LWG 3369). | |
240 | * testsuite/23_containers/span/deduction.cc: Add missing 'const'. | |
241 | * testsuite/23_containers/span/lwg3255.cc: Check for construction from | |
242 | rvalues. | |
243 | ||
247f410b JW |
244 | * include/std/span (span::const_iterator, span::const_reverse_iterator) |
245 | (span::cbegin(), span::cend(), span::crbegin(), span::crend()): | |
246 | Remove (LWG 3320). | |
247 | * testsuite/23_containers/span/everything.cc: Replace uses of cbegin | |
248 | and cend. | |
249 | * testsuite/20_util/specialized_algorithms/destroy/constrained.cc: | |
250 | Likewise. | |
251 | * testsuite/20_util/specialized_algorithms/uninitialized_copy/ | |
252 | constrained.cc: Likewise. | |
253 | * testsuite/20_util/specialized_algorithms/ | |
254 | uninitialized_default_construct/constrained.cc: Likewise. | |
255 | * testsuite/20_util/specialized_algorithms/uninitialized_fill/ | |
256 | constrained.cc: Likewise. | |
257 | * testsuite/20_util/specialized_algorithms/uninitialized_move/ | |
258 | constrained.cc: Likewise. | |
259 | * testsuite/20_util/specialized_algorithms/ | |
260 | uninitialized_value_construct/constrained.cc: Likewise. | |
261 | ||
aca60ecf JW |
262 | * include/bits/range_access.h (range_size_t): Define alias template. |
263 | * include/std/ranges (all_view): Rename to views::all_t (LWG 3335). | |
264 | * testsuite/std/ranges/adaptors/filter.cc: Adjust to new name. | |
265 | ||
4cc3b275 JW |
266 | * include/std/ranges (filter_view, transform_view, take_view) |
267 | (join_view, split_view, reverse_view): Remove commented-out converting | |
268 | constructors (LWG 3280). | |
269 | ||
5f3641d0 JW |
270 | * include/std/memory (uninitialized_construct_using_allocator): Use |
271 | std::construct_at (LWG 3321). | |
272 | ||
020a03ee JW |
273 | * include/std/memory_resource (polymorphic_allocator::allocate_bytes) |
274 | (polymorphic_allocator::allocate_object) | |
275 | (polymorphic_allocator::new_object): Add nodiscard attribute (LWG3304). | |
276 | ||
15411a64 JW |
277 | LWG 3379. "safe" in several library names is misleading |
278 | * include/bits/range_access.h (enable_safe_range): Rename to | |
279 | enable_borrowed_range. | |
280 | (__detail::__maybe_safe_range): Rename to __maybe_borrowed_range. | |
281 | (safe_range): Rename to borrowed_range. | |
282 | * include/bits/ranges_algo.h: Adjust to use new names. | |
283 | * include/bits/ranges_algobase.h: Likewise. | |
284 | * include/bits/ranges_uninitialized.h: Likewise. | |
285 | * include/std/ranges: Likewise. | |
286 | (safe_iterator_t): Rename to borrowed_iterator_t. | |
287 | (safe_subrange_t): Rename to borrowed_subrange_t. | |
288 | * include/std/span: Adjust to use new names. | |
289 | * include/std/string_view: Likewise. | |
290 | * include/experimental/string_view: Likewise. | |
291 | * testsuite/std/ranges/access/begin.cc: Likewise. | |
292 | * testsuite/std/ranges/access/cbegin.cc: Likewise. | |
293 | * testsuite/std/ranges/access/cdata.cc: Likewise. | |
294 | * testsuite/std/ranges/access/cend.cc: Likewise. | |
295 | * testsuite/std/ranges/access/crbegin.cc: Likewise. | |
296 | * testsuite/std/ranges/access/crend.cc: Likewise. | |
297 | * testsuite/std/ranges/access/data.cc: Likewise. | |
298 | * testsuite/std/ranges/access/end.cc: Likewise. | |
299 | * testsuite/std/ranges/access/rbegin.cc: Likewise. | |
300 | * testsuite/std/ranges/access/rend.cc: Likewise. | |
301 | * testsuite/std/ranges/safe_range.cc: Likewise. | |
302 | * testsuite/std/ranges/safe_range_types.cc: Likewise. | |
303 | * testsuite/util/testsuite_iterators.h: Likewise. | |
304 | ||
fa89adaa JW |
305 | * include/std/ranges (tuple_element<0, const subrange<I, S, K>>) |
306 | (tuple_element<1, const subrange<I, S, K>>): Add partial | |
307 | specializations (LWG 3398). | |
308 | * testsuite/std/ranges/subrange/tuple_like.cc: New test. | |
309 | ||
a45fb21a JW |
310 | * include/bits/ranges_algo.h (__find_fn, __find_first_of_fn) |
311 | (__adjacent_find_fn, __remove_if_fn, __remove_copy_if_fn) | |
312 | (__unique_fn, __unique_copy_fn): Remove redundant conversions to bool. | |
313 | ||
242b4fb7 PP |
314 | 2020-02-18 Patrick Palka <ppalka@redhat.com> |
315 | ||
316 | P1983R0 Wording for GB301, US296, US292, US291, and US283 | |
317 | * include/std/ranges (filter_view::pred): New member function. | |
318 | (join_view::_Iterator::_Iterator): Remove now-redundant comment since | |
319 | P1983R0 fixes the highlighted issue in the same way. | |
320 | (join_view::_Iterator<_Const>): Add friend | |
321 | join_view::_Iterator<!_Const>. | |
322 | (join_view::_M_inner): Remove mutable specifier, effectively reverting | |
323 | the proposed wording changes of P3278. | |
324 | (join_view::begin): Refine the condition for when to return a const | |
325 | iterator. | |
326 | (split_view::_OuterIter::_OuterIter): Adjust constraints. | |
327 | * testsuite/std/ranges/adaptors/filter.cc: Test that filter_view::pred | |
328 | exists and works. | |
329 | ||
f5b4dc38 JW |
330 | 2020-02-18 Jonathan Wakely <jwakely@redhat.com> |
331 | ||
a5b213dd JW |
332 | PR libstdc++/93818 |
333 | * include/std/ranges (_RangeAdaptor): Add deduction guide. | |
334 | (filter_view::_Iterator): Add alias _Vp_iter and use in place of | |
335 | iterator_t<_Vp>. | |
336 | (filter_view::_Iterator::_S_iter_cat()): Add 'typename'. | |
337 | (transform_view::_Iterator): Add alias _Base_iter and use in place of | |
338 | iterator_t<_Base>. | |
339 | (transform_view::_Iterator::_S_iter_cat()): Add 'typename'. | |
340 | (join_view::_Iterator): Add _Outer_iter and _Inner_iter aliases. | |
341 | (join_view::_Iterator::_S_iter_cat()): Add 'typename'. | |
342 | (split_view::_InnerIter::_S_iter_cat()): Likewise. | |
343 | ||
ce7b39d0 JW |
344 | * testsuite/20_util/integer_comparisons/equal.cc: Fix invalid |
345 | assumption that long is wider than int. | |
346 | * testsuite/20_util/integer_comparisons/greater_equal.cc: Likewise. | |
347 | * testsuite/20_util/integer_comparisons/less.cc: Likewise. | |
348 | * testsuite/20_util/integer_comparisons/less_equal.cc: Likewise. | |
349 | * testsuite/20_util/integer_comparisons/not_equal.cc: Likewise. | |
350 | ||
9b8e2dea JW |
351 | P1976R2 Fixed-size span construction from dynamic range |
352 | * include/std/span (__cpp_lib_span): Update value. | |
353 | (span(It, size_type), span(It, End)): Make conditionally explicit. Add | |
354 | assertion. | |
355 | (span(R&&), span(const span<OType, OExtent>&)): Likewise and relax | |
356 | constraints. | |
357 | (span::first<Count>(), span::last<Count>()): Use explicit type in | |
358 | return statement. | |
359 | (as_bytes, as_writable_bytes): Likewise. | |
360 | * include/std/version (__cpp_lib_span): Update value. | |
361 | * testsuite/23_containers/span/1.cc: Check new value. | |
362 | * testsuite/23_containers/span/2.cc: Check new value. | |
363 | * testsuite/23_containers/span/explicit.cc: New test. | |
364 | ||
d6c9e372 JW |
365 | * include/std/span (span::__is_compatible_array): Simplify alias |
366 | template by using requires-clause. | |
367 | (span::__is_compatible_ref): New alias template for constraining | |
368 | constructors. | |
369 | (span::__is_compatible_iterator, span::__is_compatible_range): Remove. | |
370 | (span(It, size_type), span(It, End)): Use __is_compatible_ref. | |
371 | (span(T(&)[N], span(array<T, N>&), span(const array<T, N>&)): Remove | |
372 | redundant parentheses. | |
373 | (span(R&&)): Add missing constraints. | |
374 | ||
f09f3242 JW |
375 | * include/std/span (span): Reorder members and rename template |
376 | parameters to match declarations in the C++2a working paper. | |
377 | ||
f5b4dc38 JW |
378 | P2116R0 Remove tuple-like protocol support from fixed-extent span |
379 | * include/std/span (get, tuple_size, tuple_element): Remove. | |
380 | * testsuite/23_containers/span/everything.cc: Remove checks for | |
381 | tuple-like API. | |
382 | * testsuite/23_containers/span/get_neg.cc: Remove. | |
383 | * testsuite/23_containers/span/tuple_element_dynamic_neg.cc: Remove. | |
384 | * testsuite/23_containers/span/tuple_element_oob_neg.cc: Remove. | |
385 | * testsuite/23_containers/span/tuple_size_neg.cc: Remove. | |
386 | ||
f3169941 PP |
387 | 2020-02-17 Patrick Palka <ppalka@redhat.com> |
388 | ||
aa667c3f PP |
389 | P2106R0 Alternative wording for GB315 and GB316 |
390 | * include/bits/ranges_algo.h (in_fun_result): New. | |
391 | (for_each_result, for_each_n_result): Change into an alias of | |
392 | in_fun_result. | |
393 | (in_in_result): New. | |
394 | (mismatch_result): Change into an alias of in_in_result. | |
395 | (copy_if_result): Change into an alias of in_out_result. | |
396 | (swap_ranges_result): Change into an alias of in_in_result. | |
397 | (unary_transform_result): Change into an alias of in_out_result. | |
398 | (in_in_out_result): New. | |
399 | (binary_transform_result): Change into an alias of in_in_out_result. | |
400 | (replace_copy_result, replace_copy_if_result, remove_copy_if_result, | |
401 | remove_copy_result, unique_copy_result, reverse_copy_result, | |
402 | rotate_copy_result, partial_sort_copy_result): Change into an alias of | |
403 | in_out_result. | |
404 | (in_out_out_result): New. | |
405 | (partition_copy_result, merge_result): Change into an alias of | |
406 | in_out_out_result. | |
407 | (set_union_result, set_intersection_result): Change into an alias of | |
408 | in_in_out_result. | |
409 | (set_difference_result): Change into an alias of in_out_result. | |
410 | (set_symmetric_difference): Change into an alias of in_in_out_result. | |
411 | (min_max_result): New. | |
412 | (minmax_result, minmax_element_result): Change into an alias of | |
413 | min_max_result. | |
414 | (in_found_result): New. | |
415 | (next_permutation_result, prev_permutation_result): Change into an alias | |
416 | of in_found_result. | |
417 | (__next_permutation_fn::operator(), __prev_permutation_fn::operator()): | |
418 | Adjust following changes to next_permutation_result and | |
419 | prev_permutation_result. | |
420 | * include/bits/ranges_algobase.h (in_out_result): New. | |
421 | (copy_result, move_result, move_backward_result, copy_backward_result, | |
422 | copy_n_result): Change into an alias of in_out_result. | |
423 | * include/bits/ranges_uninitialized.h (uninitialized_copy_result, | |
424 | uninitialized_copy_n_result, uninitialized_move_result, | |
425 | uninitialized_move_n_result): Likewise. | |
426 | * testsuite/25_algorithms/next_permutation/constrained.cc: Adjust uses of | |
427 | structured bindings. | |
428 | * testsuite/25_algorithms/prev_permutation/constrained.cc: Likewise. | |
429 | ||
f3169941 PP |
430 | P1243R4 Rangify new algorithms |
431 | * include/bits/ranges_algo.h (for_each_n_result, __for_each_n_fn, | |
432 | for_each_n, __sample_fn, sample, __clamp_fn, clamp): New. | |
433 | * testsuite/25_algorithms/clamp/constrained.cc: New test. | |
434 | * testsuite/25_algorithms/for_each/constrained.cc: Augment test. | |
435 | * testsuite/25_algorithms/sample/constrained.cc: New test. | |
436 | ||
98cf2c26 JW |
437 | 2020-02-17 Jonathan Wakely <jwakely@redhat.com> |
438 | ||
c5e1c1d3 JW |
439 | P1964R2 Wording for boolean-testable |
440 | * include/bits/ranges_algo.h (__find_fn, __find_first_of_fn) | |
441 | (__adjacent_find_fn): Cast result of predicate to bool. | |
442 | * include/std/concepts (__boolean): Remove. | |
443 | (__detail::__boolean_testable_impl, __detail::__boolean_testable): Add | |
444 | new helper concepts. | |
445 | (__detail::__weakly_eq_cmp_with, totally_ordered, totally_ordered_with) | |
446 | (predicate): Use __boolean_testable instead of boolean. | |
447 | * libsupc++/compare (__detail::__partially_ordered, _Synth3way): | |
448 | Likewise. | |
449 | ||
7ab36231 JW |
450 | P1970R2 Consistency for size() functions: Add ranges::ssize |
451 | * include/bits/range_access.h (_SSize, ssize): Define for C++20. | |
452 | * testsuite/std/ranges/access/ssize.cc: New test. | |
453 | ||
9866abe3 JW |
454 | P1956R1 On the names of low-level bit manipulation functions |
455 | * include/bits/hashtable_policy.h: Update comment. | |
456 | * include/std/bit (__ispow2, __ceil2, __floor2, __log2p1): Rename. | |
457 | (ispow2, ceil2, floor2, log2p1): Likewise. | |
458 | (__cpp_lib_int_pow2): Add feature test macro. | |
459 | * include/std/charconv (__to_chars_len_2): Adjust use of __log2p1. | |
460 | * include/std/memory (assume_aligned): Adjust use of ispow2. | |
461 | * include/std/version (__cpp_lib_int_pow2): Add. | |
462 | * libsupc++/new_opa.cc: Adjust use of __ispow2. | |
463 | * src/c++17/memory_resource.cc: Likewise, and for __ceil2 and __log2p1. | |
464 | * testsuite/17_intro/freestanding.cc: Adjust use of ispow2. | |
465 | * testsuite/26_numerics/bit/bit.pow.two/ceil2.cc: Rename to ... | |
466 | * testsuite/26_numerics/bit/bit.pow.two/bit_ceil.cc: ... here. | |
467 | * testsuite/26_numerics/bit/bit.pow.two/ceil2_neg.cc: Rename to ... | |
468 | * testsuite/26_numerics/bit/bit.pow.two/bit_ceil_neg.cc: ... here. | |
469 | * testsuite/26_numerics/bit/bit.pow.two/floor2.cc: Rename to ... | |
470 | * testsuite/26_numerics/bit/bit.pow.two/bit_floor.cc: ... here. | |
471 | * testsuite/26_numerics/bit/bit.pow.two/log2p1.cc: Rename to ... | |
472 | * testsuite/26_numerics/bit/bit.pow.two/bit_width.cc: ... here. | |
473 | * testsuite/26_numerics/bit/bit.pow.two/ispow2.cc: Rename to ... | |
474 | * testsuite/26_numerics/bit/bit.pow.two/has_single_bit.cc: ... here. | |
475 | ||
cfbc8fbb JW |
476 | * include/std/charconv: Add comment. |
477 | ||
9cd4eeef JW |
478 | PR libstdc++/92546 (partial) |
479 | * include/bits/random.h (uniform_random_bit_generator): Move definition | |
480 | to <bits/uniform_int_dist.h>. | |
481 | * include/bits/ranges_algo.h: Include <bits/uniform_int_dist.h> instead | |
482 | of <bits/random.h>. | |
483 | * include/bits/ranges_algobase.h: Do not include <cmath>. | |
484 | * include/bits/uniform_int_dist.h (uniform_random_bit_generator): | |
485 | Move here. | |
486 | * include/std/ranges: Do not include <limits>. | |
487 | * testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error lineno. | |
488 | ||
c03b53da JW |
489 | PR libstdc++/92546 (partial) |
490 | * include/Makefile.am: Add new header. | |
491 | * include/Makefile.in: Regenerate. | |
492 | * include/bits/int_limits.h: New header. | |
493 | * include/bits/parse_numbers.h (__select_int::_Select_int): Replace | |
494 | numeric_limits with __detail::__int_limits. | |
495 | * include/std/bit (__rotl, __rotr, __countl_zero, __countl_one) | |
496 | (__countr_zero, __countr_one, __popcount, __ceil2, __floor2, __log2p1): | |
497 | Likewise. | |
498 | * include/std/charconv (__to_chars_8, __from_chars_binary) | |
499 | (__from_chars_alpha_to_num, from_chars): Likewise. | |
500 | * include/std/memory_resource (polymorphic_allocator::allocate) | |
501 | (polymorphic_allocator::allocate_object): Likewise. | |
502 | * include/std/string_view (basic_string_view::_S_compare): Likewise. | |
503 | * include/std/utility (in_range): Likewise. | |
504 | * testsuite/20_util/integer_comparisons/in_range_neg.cc: Adjust for | |
505 | extra error about incomplete type __int_limits<bool>. | |
506 | * testsuite/26_numerics/bit/bit.count/countl_one.cc: Include <limits>. | |
507 | * testsuite/26_numerics/bit/bit.count/countl_zero.cc: Likewise. | |
508 | * testsuite/26_numerics/bit/bit.count/countr_one.cc: Likewise. | |
509 | * testsuite/26_numerics/bit/bit.count/countr_zero.cc: Likewise. | |
510 | * testsuite/26_numerics/bit/bit.count/popcount.cc: Likewise. | |
511 | * testsuite/26_numerics/bit/bit.pow.two/ceil2_neg.cc: Likewise. | |
512 | * testsuite/26_numerics/bit/bit.pow.two/ceil2.cc: Likewise. | |
513 | * testsuite/26_numerics/bit/bit.pow.two/floor2.cc: Likewise. | |
514 | * testsuite/26_numerics/bit/bit.pow.two/ispow2.cc: Likewise. | |
515 | * testsuite/26_numerics/bit/bit.pow.two/log2p1.cc: Likewise. | |
516 | * testsuite/26_numerics/bit/bit.rotate/rotl.cc: Likewise. | |
517 | * testsuite/26_numerics/bit/bit.rotate/rotr.cc: Likewise. | |
518 | ||
4540ef78 JW |
519 | * python/libstdcxx/v6/printers.py (StdCmpCatPrinter.to_string): Update |
520 | value for partial_ordering::unordered. | |
521 | ||
d6dfa3da JW |
522 | * include/bits/iterator_concepts.h (indirectly_copyable_storable): Add |
523 | const-qualified expression variations. | |
524 | * include/std/concepts (copyable): Likewise. | |
525 | ||
98cf2c26 JW |
526 | * include/std/type_traits (__is_standard_integer): New helper trait. |
527 | * include/std/utility (cmp_equal, cmp_not_equal, cmp_less, cmp_greater) | |
528 | (cmp_less_equal, cmp_greater_equal, in_range): Define for C++20. | |
529 | * include/std/version (__cpp_lib_integer_comparison_functions): Define. | |
530 | * testsuite/20_util/integer_comparisons/1.cc: New test. | |
531 | * testsuite/20_util/integer_comparisons/2.cc: New test. | |
532 | * testsuite/20_util/integer_comparisons/equal.cc: New test. | |
533 | * testsuite/20_util/integer_comparisons/equal_neg.cc: New test. | |
534 | * testsuite/20_util/integer_comparisons/greater_equal.cc: New test. | |
535 | * testsuite/20_util/integer_comparisons/greater_equal_neg.cc: New test. | |
536 | * testsuite/20_util/integer_comparisons/greater_neg.cc: New test. | |
537 | * testsuite/20_util/integer_comparisons/in_range.cc: New test. | |
538 | * testsuite/20_util/integer_comparisons/in_range_neg.cc: New test. | |
539 | * testsuite/20_util/integer_comparisons/less.cc: New test. | |
540 | * testsuite/20_util/integer_comparisons/less_equal.cc: New test. | |
541 | * testsuite/20_util/integer_comparisons/less_equal_neg.cc: New test. | |
542 | * testsuite/20_util/integer_comparisons/less_neg.cc: New test. | |
543 | * testsuite/20_util/integer_comparisons/not_equal.cc: New test. | |
544 | * testsuite/20_util/integer_comparisons/not_equal_neg.cc: New test. | |
545 | ||
93b8cfce PP |
546 | 2020-02-16 Patrick Palka <ppalka@redhat.com> |
547 | ||
548 | * include/bits/ranges_algo.h (__lexicographical_compare_fn::operator()): | |
549 | Move code after an early exit constexpr if to under an else branch. | |
550 | * include/bits/ranges_algobase.h (__equal_fn::operator()): Likewise. | |
551 | ||
90b7eb65 PP |
552 | 2020-02-15 Patrick Palka <ppalka@redhat.com> |
553 | ||
55992626 PP |
554 | * include/bits/ranges_algo.h: Adjust whitespace and formatting. |
555 | * include/bits/ranges_algobase.h: Likewise. | |
556 | * include/bits/ranges_uninitialized.h: Likewise. | |
557 | ||
b40c57bd PP |
558 | * include/bits/ranges_algo.h: (adjacent_find, all_of, any_of, |
559 | binary_search, copy_if, count, count_if, equal_range, find, find_end, | |
560 | find_first_of, find_if, find_if_not, for_each, generate, generate_n, | |
561 | includes, inplace_merge, is_heap, is_heap_until, is_partitioned, | |
562 | is_permutation, is_sorted, is_sorted_until, lexicographical_compare, | |
563 | lower_bound, make_heap, max, max_element, merge, min, min_element, | |
564 | minmax, minmax_element, mismatch, next_permutation, none_of, | |
565 | nth_element, partial_sort, partial_sort_copy, partition, partition_copy, | |
566 | partition_point, pop_heap, prev_permutation, push_heap, remove, | |
567 | remove_copy, remove_copy_if, remove_if, replace, replace_copy, | |
568 | replace_copy_if, replace_if, reverse, reverse_copy, rotate, rotate_copy, | |
569 | search, search_n, set_difference, set_intersection, | |
570 | set_symmetric_difference, set_union, shuffle, sort, sort_heap, | |
571 | stable_partition, stable_sort, swap_ranges, transform, unique, | |
572 | unique_copy, upper_bound): Convert into function objects. | |
573 | * include/bits/ranges_algobase.h: (equal, copy, move, copy_n, fill_n, | |
574 | fill, move_backward, copy_backward): Likewise. | |
575 | * include/bits/ranges_uninitialized.h (uninitialized_default_construct, | |
576 | uninitialized_default_construct_n, uninitialized_value_construct, | |
577 | uninitialized_value_construct_n, uninitialized_copy, | |
578 | uninitialized_copy_n, uninitialized_move, uninitialized_move_n, | |
579 | uninitialized_fill, uninitialized_fill_n, construct_at, destroy_at, | |
580 | destroy, destroy_n): Likewise. | |
581 | ||
90b7eb65 PP |
582 | * include/bits/ranges_algo.h (ranges::__find_end): Fold into ... |
583 | (ranges::find_end): ... here. | |
584 | (ranges::__lexicographical_compare): Fold into ... | |
585 | (ranges::lexicographical_compare): ... here. | |
586 | * include/bits/ranges_algobase.h (ranges::__equal): Fold into ... | |
587 | (ranges::equal): ... here. | |
588 | ||
55b00d14 JW |
589 | 2020-02-15 Jonathan Wakely <jwakely@redhat.com> |
590 | ||
591 | * include/bits/erase_if.h (__cpp_lib_erase_if): Define to 202002L. | |
592 | * include/std/deque: Likewise. | |
593 | * include/std/forward_list: Likewise. | |
594 | * include/std/list: Likewise. | |
595 | * include/std/string: Likewise. | |
596 | * include/std/vector: Likewise. | |
597 | * include/std/version: Likewise. | |
598 | * testsuite/23_containers/deque/erasure.cc: Test for new value. | |
599 | * testsuite/23_containers/forward_list/erasure.cc: Likewise. | |
600 | * testsuite/23_containers/list/erasure.cc: Likewise. | |
601 | * testsuite/23_containers/map/erasure.cc: Likewise. | |
602 | * testsuite/23_containers/set/erasure.cc: Likewise. | |
603 | * testsuite/23_containers/unordered_map/erasure.cc: Likewise. | |
604 | * testsuite/23_containers/unordered_set/erasure.cc: Likewise. | |
605 | * testsuite/23_containers/vector/erasure.cc: Likewise. | |
606 | ||
5b1d5885 JW |
607 | 2020-02-15 Jonathan Wakely <jwakely@redhat.com> |
608 | ||
609 | * include/bits/random.h (uniform_random_bit_generator): Require min() | |
610 | and max() to be constant expressions and min() to be less than max(). | |
611 | * testsuite/26_numerics/random/concept.cc: Check additional cases. | |
612 | * testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error lineno. | |
613 | ||
90fc7b3c PP |
614 | 2020-02-13 Patrick Palka <ppalka@redhat.com> |
615 | ||
613c932f PP |
616 | * include/Makefile.am: Add <bits/ranges_uninitialized.h>. |
617 | * include/Makefile.in: Regenerate. | |
618 | * include/bits/ranges_uninitialized.h: New header. | |
619 | * include/std/memory: Include it. | |
620 | * testsuite/20_util/specialized_algorithms/destroy/constrained.cc: New | |
621 | test. | |
622 | * .../uninitialized_copy/constrained.cc: New test. | |
623 | * .../uninitialized_default_construct/constrained.cc: New test. | |
624 | * .../uninitialized_fill/constrained.cc: New test. | |
625 | * .../uninitialized_move/constrained.cc: New test. | |
626 | * .../uninitialized_value_construct/constrained.cc: New test. | |
627 | ||
90fc7b3c PP |
628 | * include/Makefile.am: Add bits/ranges_algobase.h |
629 | * include/Makefile.in: Regenerate. | |
630 | * bits/ranges_algo.h: Include <bits/ranges_algobase.h> and refactor | |
631 | existing #includes. | |
632 | (__detail::__is_normal_iterator, __detail::is_reverse_iterator, | |
633 | __detail::__is_move_iterator, copy_result, move_result, | |
634 | __equal, equal, copy_result, move_result, move_backward_result, | |
635 | copy_backward_result, __copy_or_move_backward, __copy_or_move, copy, | |
636 | move, copy_backward, move_backward, copy_n_result, copy_n, fill_n, | |
637 | fill): Split out into ... | |
638 | * bits/range_algobase.h: ... this new header. | |
639 | ||
99bbab9f PP |
640 | 2020-02-12 Patrick Palka <ppalka@redhat.com> |
641 | ||
642 | LWG 3389 and LWG 3390 | |
643 | * include/bits/stl_iterator.h (move_move_iterator): Use std::move when | |
644 | constructing the move_iterator with __i. | |
645 | (counted_iterator::counted_iterator): Use std::move when initializing | |
646 | M_current with __i. | |
647 | * testsuite/24_iterators/counted_iterator/lwg3389.cc: New test. | |
648 | * testsuite/24_iterators/move_iterator/lwg3390.cc: New test. | |
649 | ||
02ce382c SL |
650 | 2020-02-12 Sandra Loosemore <sandra@codesourcery.com> |
651 | ||
652 | PR libstdc++/79193 | |
653 | PR libstdc++/88999 | |
654 | ||
655 | * configure: Regenerated. | |
656 | ||
b32a3f32 FD |
657 | 2020-02-12 François Dumont <fdumont@gcc.gnu.org> |
658 | ||
659 | * include/bits/hashtable.h | |
660 | (_Hashtable<>(_Hashtable&&, std::allocator_type&)): Add | |
661 | missing std namespace qualification to forward call. | |
662 | ||
dcda050e JW |
663 | 2020-02-09 Jonathan Wakely <jwakely@redhat.com> |
664 | ||
38660e87 JW |
665 | * testsuite/20_util/function_objects/range.cmp/equal_to.cc: Fix |
666 | comment. | |
667 | * testsuite/20_util/function_objects/range.cmp/less.ccL Likewise. | |
668 | ||
97a7c229 JW |
669 | * include/std/ranges: Fix non-ASCII characters in comment. |
670 | ||
dcda050e JW |
671 | * include/bits/range_cmp.h (__detail::__eq_builtin_ptr_cmp): Require |
672 | equality comparison to be valid and return bool. | |
673 | (__detail::__less_builtin_ptr_cmp): Likewise for less-than comparison. | |
674 | * testsuite/20_util/function_objects/range.cmp/equal_to.cc: Check | |
675 | type with ambiguous conversion to fundamental types. | |
676 | * testsuite/20_util/function_objects/range.cmp/less.cc: Likewise. | |
677 | ||
d222d8ec JW |
678 | 2020-02-07 Jonathan Wakely <jwakely@redhat.com> |
679 | ||
c8dd2446 JW |
680 | * include/bits/iterator_concepts.h (iter_difference_t, iter_value_t): |
681 | Use remove_cvref_t. | |
682 | (readable_traits): Rename to indirectly_readable_traits. | |
683 | (readable): Rename to indirectly_readable. | |
684 | (writable): Rename to indirectly_writable. | |
685 | (__detail::__iter_exchange_move): Do not use remove_reference_t. | |
686 | (indirectly_swappable): Adjust requires expression parameter types. | |
687 | expression. | |
688 | * include/bits/ranges_algo.h (ranges::transform, ranges::replace) | |
689 | (ranges::replace_if, ranges::generate_n, ranges::generate) | |
690 | (ranges::remove): Use new name for writable. | |
691 | * include/bits/stl_iterator.h (__detail::__common_iter_has_arrow): | |
692 | Use new name for readable. | |
693 | * include/ext/pointer.h (readable_traits<_Pointer_adapter<P>>): Use | |
694 | new name for readable_traits. | |
695 | * testsuite/24_iterators/associated_types/readable.traits.cc: Likewise. | |
696 | * testsuite/24_iterators/indirect_callable/projected.cc: Adjust for | |
697 | new definition of indirectly_readable. | |
698 | ||
d222d8ec JW |
699 | * include/bits/stl_iterator.h (__detail::__common_iter_ptr): Change |
700 | to take parameters of common_iterator, instead of the common_iterator | |
701 | type itself. Fix argument for __common_iter_has_arrow constraint. | |
702 | (iterator_traits<common_iterator<I, S>>::pointer): Adjust. | |
703 | ||
572992c8 JW |
704 | 2020-02-07 Jonathan Wakely <jwakely@redhat.com> |
705 | ||
706 | * include/std/ranges (iota_view): Add braces to prevent -Wempty-body | |
707 | warning. | |
708 | (basic_istream_view::_Iterator::operator++()): Add missing return. | |
709 | ||
cba9ef06 PP |
710 | 2020-02-07 Patrick Palka <ppalka@redhat.com> |
711 | ||
a04f635d PP |
712 | * include/bits/ranges_algo.h: Remove extraneous &&. |
713 | ||
b7903d9f PP |
714 | * include/std/ranges (ranges::__detail::__stream_extractable, |
715 | ranges::basic_istream_view, ranges::istream_view): Define. | |
716 | * testsuite/std/ranges/istream_view: New test. | |
717 | ||
cba9ef06 PP |
718 | Implement C++20 range adaptors |
719 | * include/std/ranges: Include <bits/refwrap.h> and <tuple>. | |
720 | (subrange::_S_store_size): Mark as const instead of constexpr to | |
721 | avoid what seems to be a bug in GCC. | |
722 | (__detail::__box): Give it defaulted copy and move constructors. | |
55d4cbcb PP |
723 | (ranges::views::_Single::operator()): Mark constexpr. |
724 | (ranges::views::_Iota::operator()): Mark constexpr. | |
cba9ef06 | 725 | (__detail::Empty): Define. |
55d4cbcb PP |
726 | (ranges::views::__closure::_RangeAdaptor, |
727 | ranges::views::__closure::_RangeAdaptorClosure, ref_view, all_view, | |
728 | ranges::views::all, ranges::__detail::find_if, | |
729 | ranges::__detail::find_if_not, ranges::__detail::mismatch, | |
730 | ranges::detail::min, filter_view, ranges::views::filter, transform_view, | |
731 | ranges::views::transform, take_view, ranges::views::take, | |
732 | take_while_view, ranges::views::take_while, drop_view, | |
733 | ranges::views::drop, join_view, ranges::views::join, | |
cba9ef06 | 734 | __detail::require_constant, __detail::tiny_range, split_view, |
55d4cbcb PP |
735 | ranges::views::split, ranges::views::_Counted, ranges::views::counted, |
736 | common_view, ranges::views::common, reverse_view, | |
737 | ranges::views::reverse, | |
738 | ranges::views::__detail::__is_reversible_subrange, | |
739 | ranges::views::__detail::__is_reverse_view, reverse_view, | |
740 | ranges::views::reverse, __detail::__has_tuple_element, elements_view, | |
741 | ranges::views::elements, ranges::views::keys, ranges::views::values): | |
742 | Define. | |
743 | (views): Alias for ranges::views. | |
744 | (tuple_size<ranges::subrange<>>, tuple_element<0, ranges::subrange>, | |
745 | tuple_element<1, ranges::subrange>): New partial specializations. | |
cba9ef06 PP |
746 | * testsuite/std/ranges/adaptors/all.cc: New test. |
747 | * testsuite/std/ranges/adaptors/common.cc: Likewise. | |
748 | * testsuite/std/ranges/adaptors/counted.cc: Likewise. | |
749 | * testsuite/std/ranges/adaptors/drop.cc: Likewise. | |
750 | * testsuite/std/ranges/adaptors/drop_while.cc: Likewise. | |
751 | * testsuite/std/ranges/adaptors/elements.cc: Likewise. | |
752 | * testsuite/std/ranges/adaptors/filter.cc: Likewise. | |
753 | * testsuite/std/ranges/adaptors/join.cc: Likewise. | |
754 | * testsuite/std/ranges/adaptors/reverse.cc: Likewise. | |
755 | * testsuite/std/ranges/adaptors/split.cc: Likewise. | |
756 | * testsuite/std/ranges/adaptors/take.cc: Likewise. | |
757 | * testsuite/std/ranges/adaptors/take_while.cc: Likewise. | |
758 | * testsuite/std/ranges/adaptors/transform.cc: Likewise. | |
759 | ||
5713834e JW |
760 | 2020-02-07 Jonathan Wakely <jwakely@redhat.com> |
761 | ||
0d57370c JW |
762 | * libsupc++/compare (__cmp_cat::type): Define typedef for underlying |
763 | type of enumerations and comparison category types. | |
764 | (__cmp_cat::_Ord, __cmp_cat::_Ncmp): Add underlying type. | |
765 | (__cmp_cat::_Ncmp::unordered): Change value to 2. | |
766 | (partial_ordering::_M_value, weak_ordering::_M_value) | |
767 | (strong_ordering::_M_value): Change type to __cmp_cat::type. | |
768 | (partial_ordering::_M_is_ordered): Remove data member. | |
769 | (partial_ordering): Use second bit of _M_value for unordered. Adjust | |
770 | comparison operators. | |
771 | (weak_ordering::operator partial_ordering): Simplify to remove | |
772 | branches. | |
773 | (operator<=>(unspecified, weak_ordering)): Likewise. | |
774 | (strong_ordering::operator partial_ordering): Likewise. | |
775 | (strong_ordering::operator weak_ordering): Likewise. | |
776 | (operator<=>(unspecified, strong_ordering)): Likewise. | |
777 | * testsuite/18_support/comparisons/categories/partialord.cc: New test. | |
778 | * testsuite/18_support/comparisons/categories/strongord.cc: New test. | |
779 | * testsuite/18_support/comparisons/categories/weakord.cc: New test. | |
780 | ||
5713834e JW |
781 | * include/std/ranges (iota_view::_Iterator): Fix typo in name of |
782 | __cpp_lib_three_way_comparison macro and use deduced return type for | |
783 | operator<=>. | |
784 | * testsuite/std/ranges/iota/iterator.cc: New test. | |
785 | ||
bc464641 PP |
786 | 2020-02-07 Patrick Palka <ppalka@redhat.com> |
787 | Jonathan Wakely <jwakely@redhat.com> | |
788 | ||
789 | Implement C++20 constrained algorithms | |
790 | * include/Makefile.am: Add new header. | |
791 | * include/Makefile.in: Regenerate. | |
792 | * include/std/algorithm: Include <bits/ranges_algo.h>. | |
793 | * include/bits/ranges_algo.h: New file. | |
794 | * testsuite/25_algorithms/adjacent_find/constrained.cc: New test. | |
795 | * testsuite/25_algorithms/all_of/constrained.cc: New test. | |
796 | * testsuite/25_algorithms/any_of/constrained.cc: New test. | |
797 | * testsuite/25_algorithms/binary_search/constrained.cc: New test. | |
798 | * testsuite/25_algorithms/copy/constrained.cc: New test. | |
799 | * testsuite/25_algorithms/copy_backward/constrained.cc: New test. | |
800 | * testsuite/25_algorithms/copy_if/constrained.cc: New test. | |
801 | * testsuite/25_algorithms/copy_n/constrained.cc: New test. | |
802 | * testsuite/25_algorithms/count/constrained.cc: New test. | |
803 | * testsuite/25_algorithms/count_if/constrained.cc: New test. | |
804 | * testsuite/25_algorithms/equal/constrained.cc: New test. | |
805 | * testsuite/25_algorithms/equal_range/constrained.cc: New test. | |
806 | * testsuite/25_algorithms/fill/constrained.cc: New test. | |
807 | * testsuite/25_algorithms/fill_n/constrained.cc: New test. | |
808 | * testsuite/25_algorithms/find/constrained.cc: New test. | |
809 | * testsuite/25_algorithms/find_end/constrained.cc: New test. | |
810 | * testsuite/25_algorithms/find_first_of/constrained.cc: New test. | |
811 | * testsuite/25_algorithms/find_if/constrained.cc: New test. | |
812 | * testsuite/25_algorithms/find_if_not/constrained.cc: New test. | |
813 | * testsuite/25_algorithms/for_each/constrained.cc: New test. | |
814 | * testsuite/25_algorithms/generate/constrained.cc: New test. | |
815 | * testsuite/25_algorithms/generate_n/constrained.cc: New test. | |
816 | * testsuite/25_algorithms/heap/constrained.cc: New test. | |
817 | * testsuite/25_algorithms/includes/constrained.cc: New test. | |
818 | * testsuite/25_algorithms/inplace_merge/constrained.cc: New test. | |
819 | * testsuite/25_algorithms/is_partitioned/constrained.cc: New test. | |
820 | * testsuite/25_algorithms/is_permutation/constrained.cc: New test. | |
821 | * testsuite/25_algorithms/is_sorted/constrained.cc: New test. | |
822 | * testsuite/25_algorithms/is_sorted_until/constrained.cc: New test. | |
823 | * testsuite/25_algorithms/lexicographical_compare/constrained.cc: New | |
824 | test. | |
825 | * testsuite/25_algorithms/lower_bound/constrained.cc: New test. | |
826 | * testsuite/25_algorithms/max/constrained.cc: New test. | |
827 | * testsuite/25_algorithms/max_element/constrained.cc: New test. | |
828 | * testsuite/25_algorithms/merge/constrained.cc: New test. | |
829 | * testsuite/25_algorithms/min/constrained.cc: New test. | |
830 | * testsuite/25_algorithms/min_element/constrained.cc: New test. | |
831 | * testsuite/25_algorithms/minmax/constrained.cc: New test. | |
832 | * testsuite/25_algorithms/minmax_element/constrained.cc: New test. | |
833 | * testsuite/25_algorithms/mismatch/constrained.cc: New test. | |
834 | * testsuite/25_algorithms/move/constrained.cc: New test. | |
835 | * testsuite/25_algorithms/move_backward/constrained.cc: New test. | |
836 | * testsuite/25_algorithms/next_permutation/constrained.cc: New test. | |
837 | * testsuite/25_algorithms/none_of/constrained.cc: New test. | |
838 | * testsuite/25_algorithms/nth_element/constrained.cc: New test. | |
839 | * testsuite/25_algorithms/partial_sort/constrained.cc: New test. | |
840 | * testsuite/25_algorithms/partial_sort_copy/constrained.cc: New test. | |
841 | * testsuite/25_algorithms/partition/constrained.cc: New test. | |
842 | * testsuite/25_algorithms/partition_copy/constrained.cc: New test. | |
843 | * testsuite/25_algorithms/partition_point/constrained.cc: New test. | |
844 | * testsuite/25_algorithms/prev_permutation/constrained.cc: New test. | |
845 | * testsuite/25_algorithms/remove/constrained.cc: New test. | |
846 | * testsuite/25_algorithms/remove_copy/constrained.cc: New test. | |
847 | * testsuite/25_algorithms/remove_copy_if/constrained.cc: New test. | |
848 | * testsuite/25_algorithms/remove_if/constrained.cc: New test. | |
849 | * testsuite/25_algorithms/replace/constrained.cc: New test. | |
850 | * testsuite/25_algorithms/replace_copy/constrained.cc: New test. | |
851 | * testsuite/25_algorithms/replace_copy_if/constrained.cc: New test. | |
852 | * testsuite/25_algorithms/replace_if/constrained.cc: New test. | |
853 | * testsuite/25_algorithms/reverse/constrained.cc: New test. | |
854 | * testsuite/25_algorithms/reverse_copy/constrained.cc: New test. | |
855 | * testsuite/25_algorithms/rotate/constrained.cc: New test. | |
856 | * testsuite/25_algorithms/rotate_copy/constrained.cc: New test. | |
857 | * testsuite/25_algorithms/search/constrained.cc: New test. | |
858 | * testsuite/25_algorithms/search_n/constrained.cc: New test. | |
859 | * testsuite/25_algorithms/set_difference/constrained.cc: New test. | |
860 | * testsuite/25_algorithms/set_intersection/constrained.cc: New test. | |
861 | * testsuite/25_algorithms/set_symmetric_difference/constrained.cc: New | |
862 | test. | |
863 | * testsuite/25_algorithms/set_union/constrained.cc: New test. | |
864 | * testsuite/25_algorithms/shuffle/constrained.cc: New test. | |
865 | * testsuite/25_algorithms/sort/constrained.cc: New test. | |
866 | * testsuite/25_algorithms/stable_partition/constrained.cc: New test. | |
867 | * testsuite/25_algorithms/stable_sort/constrained.cc: New test. | |
868 | * testsuite/25_algorithms/swap_ranges/constrained.cc: New test. | |
869 | * testsuite/25_algorithms/transform/constrained.cc: New test. | |
870 | * testsuite/25_algorithms/unique/constrained.cc: New test. | |
871 | * testsuite/25_algorithms/unique_copy/constrained.cc: New test. | |
872 | * testsuite/25_algorithms/upper_bound/constrained.cc: New test. | |
873 | ||
d1aa7705 JW |
874 | 2020-02-06 Jonathan Wakely <jwakely@redhat.com> |
875 | ||
bd630df0 JW |
876 | * include/bits/stl_iterator.h (__detail::__common_iter_ptr): Fix PR |
877 | number in comment. Fix indentation. | |
878 | ||
d1aa7705 JW |
879 | * include/bits/stl_algobase.h (__iter_swap, __iter_swap<true>): Remove |
880 | redundant _GLIBCXX20_CONSTEXPR. | |
881 | ||
26eae9ac JW |
882 | * include/std/ranges (viewable_range): Replace decay_t with |
883 | remove_cvref_t (LWG 3375). | |
884 | ||
269e8130 JW |
885 | 2020-02-05 Jonathan Wakely <jwakely@redhat.com> |
886 | ||
887 | * include/bits/iterator_concepts.h (iter_reference_t) | |
888 | (iter_rvalue_reference_t, iter_common_reference_t, indirect_result_t): | |
889 | Remove workarounds for PR c++/67704. | |
890 | * testsuite/24_iterators/aliases.cc: New test. | |
891 | ||
7db12d15 PP |
892 | 2020-02-05 Patrick Palka <ppalka@redhat.com> |
893 | ||
894 | * include/bits/stl_iterator.h (move_iterator::move_iterator): Move __i | |
895 | when initializing _M_current. | |
896 | (move_iterator::base): Split into two overloads differing in | |
897 | ref-qualifiers as in P1207R4 for C++20. | |
898 | ||
9962493c JW |
899 | 2020-02-04 Jonathan Wakely <jwakely@redhat.com> |
900 | ||
9bc5bea1 JW |
901 | * include/std/functional (_GLIBCXX_NOT_FN_CALL_OP): Un-define after |
902 | use. | |
903 | ||
9962493c JW |
904 | PR libstdc++/93562 |
905 | * include/bits/unique_ptr.h (__uniq_ptr_impl::swap): Define. | |
906 | (unique_ptr::swap, unique_ptr<T[], D>::swap): Call it. | |
907 | * testsuite/20_util/unique_ptr/modifiers/93562.cc: New test. | |
908 | ||
20fa702b AB |
909 | 2020-02-01 Andrew Burgess <andrew.burgess@embecosm.com> |
910 | ||
911 | * configure: Regenerate. | |
912 | ||
6e5a1963 PP |
913 | 2020-01-31 Patrick Palka <ppalka@redhat.com> |
914 | ||
915 | * testsuite/24_iterators/range_operations/distance.cc: Do not assume | |
916 | test_range::end() returns the same type as test_range::begin(). | |
917 | * testsuite/24_iterators/range_operations/next.cc: Likewise. | |
918 | * testsuite/24_iterators/range_operations/prev.cc: Likewise. | |
919 | * testsuite/util/testsuite_iterators.h (__gnu_test::test_range::end): | |
920 | Always return a sentinel<I>. | |
921 | ||
5cd2e126 JW |
922 | 2020-01-29 Jonathan Wakely <jwakely@redhat.com> |
923 | ||
0a8f4feb JW |
924 | PR libstdc++/92895 |
925 | * include/std/stop_token (stop_token::stop_possible()): Call new | |
926 | _M_stop_possible() function. | |
927 | (stop_token::stop_requested()): Do not use stop_possible(). | |
928 | (stop_token::binary_semaphore): New class, as temporary stand-in for | |
929 | std::binary_semaphore. | |
930 | (stop_token::_Stop_cb::_M_callback): Add noexcept to type. | |
931 | (stop_token::_Stop_cb::_M_destroyed, stop_token::_Stop_cb::_M_done): | |
932 | New data members for symchronization with stop_callback destruction. | |
933 | (stop_token::_Stop_cb::_Stop_cb): Make non-template. | |
934 | (stop_token::_Stop_cb::_M_linked, stop_token::_Stop_cb::_S_execute): | |
935 | Remove. | |
936 | (stop_token::_Stop_cb::_M_run): New member function. | |
937 | (stop_token::_Stop_state::_M_stopped, stop_token::_Stop_state::_M_mtx): | |
938 | Remove. | |
939 | (stop_token::_Stop_state::_M_owners): New data member to track | |
940 | reference count for ownership. | |
941 | (stop_token::_Stop_state::_M_value): New data member combining a | |
942 | spinlock, the stop requested flag, and the reference count for | |
943 | associated stop_source objects. | |
944 | (stop_token::_Stop_state::_M_requester): New data member for | |
945 | synchronization with stop_callback destruction. | |
946 | (stop_token::_Stop_state::_M_stop_possible()): New member function. | |
947 | (stop_token::_Stop_state::_M_stop_requested()): Inspect relevant bit | |
948 | of _M_value. | |
949 | (stop_token::_Stop_state::_M_add_owner) | |
950 | (stop_token::_Stop_state::_M_release_ownership) | |
951 | (stop_token::_Stop_state::_M_add_ssrc) | |
952 | (stop_token::_Stop_state::_M_sub_ssrc): New member functions for | |
953 | updating reference counts. | |
954 | (stop_token::_Stop_state::_M_lock, stop_token::_Stop_state::_M_unlock) | |
955 | (stop_token::_Stop_state::_M_lock, stop_token::_Stop_state::_M_unlock) | |
956 | (stop_token::_Stop_state::_M_try_lock) | |
957 | (stop_token::_Stop_state::_M_try_lock_and_stop) | |
958 | (stop_token::_Stop_state::_M_do_try_lock): New member functions for | |
959 | managing spinlock. | |
960 | (stop_token::_Stop_state::_M_request_stop): Use atomic operations to | |
961 | read and update state. Release lock while running callbacks. Use new | |
962 | data members to synchronize with callback destruction. | |
963 | (stop_token::_Stop_state::_M_remove_callback): Likewise. | |
964 | (stop_token::_Stop_state::_M_register_callback): Use atomic operations | |
965 | to read and update state. | |
966 | (stop_token::_Stop_state_ref): Handle type to manage _Stop_state, | |
967 | replacing shared_ptr. | |
968 | (stop_source::stop_source(const stop_source&)): Update reference count. | |
969 | (stop_source::operator=(const stop_source&)): Likewise. | |
970 | (stop_source::~stop_source()): Likewise. | |
971 | (stop_source::stop_source(stop_source&&)): Define as defaulted. | |
972 | (stop_source::operator=(stop_source&&)): Establish postcondition on | |
973 | parameter. | |
974 | (stop_callback): Enforce preconditions on template parameter. Replace | |
975 | base class with data member of new _Cb_impl type. | |
976 | (stop_callback::stop_callback(const stop_token&, Cb&&)) | |
977 | (stop_callback::stop_callback(stop_token&&, Cb&&)): Fix TOCTTOU race. | |
978 | (stop_callback::_Cb_impl): New type wrapping _Callback member and | |
979 | defining the _S_execute member function. | |
980 | * testsuite/30_threads/stop_token/stop_callback/deadlock-mt.cc: New | |
981 | test. | |
982 | * testsuite/30_threads/stop_token/stop_callback/deadlock.cc: New test. | |
983 | * testsuite/30_threads/stop_token/stop_callback/destroy.cc: New test. | |
984 | * testsuite/30_threads/stop_token/stop_callback/destructible_neg.cc: | |
985 | New test. | |
986 | * testsuite/30_threads/stop_token/stop_callback/invocable_neg.cc: New | |
987 | test. | |
988 | * testsuite/30_threads/stop_token/stop_callback/invoke.cc: New test. | |
989 | * testsuite/30_threads/stop_token/stop_source/assign.cc: New test. | |
990 | * testsuite/30_threads/stop_token/stop_token/stop_possible.cc: New | |
991 | test. | |
992 | ||
f214ffb3 JW |
993 | * libsupc++/compare (__detail::__3way_builtin_ptr_cmp): Use |
994 | three_way_comparable_with. | |
995 | (__detail::__3way_cmp_with): Remove workaround for fixed bug. | |
996 | (compare_three_way::operator()): Remove redundant constraint from | |
997 | requires-clause. | |
998 | (__detail::_Synth3way::operator()): Use three_way_comparable_with | |
999 | instead of workaround. | |
1000 | * testsuite/18_support/comparisons/object/93479.cc: Prune extra | |
1001 | output due to simplified constraints on compare_three_way::operator(). | |
1002 | ||
83b02010 JW |
1003 | PR libstdc++/93479 |
1004 | * libsupc++/compare (__3way_builtin_ptr_cmp): Require <=> to be valid. | |
1005 | * testsuite/18_support/comparisons/object/93479.cc: New test. | |
1006 | ||
5cd2e126 JW |
1007 | * testsuite/std/ranges/access/end.cc: Do not assume test_range::end() |
1008 | returns the same type as test_range::begin(). Add comments. | |
1009 | * testsuite/std/ranges/access/rbegin.cc: Likewise. | |
1010 | * testsuite/std/ranges/access/rend.cc: Likewise. | |
1011 | * testsuite/std/ranges/range.cc: Do not assume the sentinel for | |
1012 | test_range is the same as its iterator type. | |
1013 | * testsuite/util/testsuite_iterators.h (test_range::sentinel): Add | |
1014 | operator- overloads to satisfy sized_sentinel_for when the iterator | |
1015 | satisfies random_access_iterator. | |
1016 | ||
759812fd JW |
1017 | 2020-01-28 Jonathan Wakely <jwakely@redhat.com> |
1018 | ||
72a9fd20 JW |
1019 | PR libstdc++/93470 |
1020 | * include/bits/refwrap.h (reference_wrapper::operator()): Restrict | |
1021 | static assertion to object types. | |
1022 | ||
759812fd JW |
1023 | PR libstdc++/93325 |
1024 | * acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Use AC_SEARCH_LIBS for | |
1025 | clock_gettime instead of explicit glibc version check. | |
1026 | * configure: Regenerate. | |
1027 | ||
a5d81aaa JW |
1028 | 2020-01-28 Martin Liska <mliska@suse.cz> |
1029 | ||
1030 | PR libstdc++/93478 | |
1031 | * include/std/atomic: Fix typo. | |
1032 | * include/std/optional: Likewise. | |
1033 | ||
1034 | 2020-01-27 Andrew Burgess <andrew.burgess@embecosm.com> | |
1035 | ||
1036 | * configure: Regenerate. | |
1037 | ||
389cd88c JW |
1038 | 2020-01-27 Jonathan Wakely <jwakely@redhat.com> |
1039 | ||
1040 | PR libstdc++/93426 | |
1041 | * include/std/span (span): Fix deduction guide. | |
1042 | * testsuite/23_containers/span/deduction.cc: New test. | |
1043 | ||
482eeff5 JW |
1044 | 2020-01-24 Jonathan Wakely <jwakely@redhat.com> |
1045 | ||
1046 | * libsupc++/compare (__cmp_cat::_Eq): Remove enumeration type. | |
1047 | (__cmp_cat::_Ord::equivalent): Add enumerator. | |
1048 | (__cmp_cat::_Ord::_Less, __cmp_cat::_Ord::_Greater): Rename to less | |
1049 | and greater. | |
1050 | (partial_ordering, weak_ordering, strong_ordering): Remove | |
1051 | constructors taking __cmp_cat::_Eq parameters. Use renamed | |
1052 | enumerators. | |
1053 | ||
e8e66971 MR |
1054 | 2020-01-24 Maciej W. Rozycki <macro@wdc.com> |
1055 | ||
1056 | * acinclude.m4: Handle `--with-toolexeclibdir='. | |
1057 | * Makefile.in: Regenerate. | |
1058 | * aclocal.m4: Regenerate. | |
1059 | * configure: Regenerate. | |
1060 | * doc/Makefile.in: Regenerate. | |
1061 | * include/Makefile.in: Regenerate. | |
1062 | * libsupc++/Makefile.in: Regenerate. | |
1063 | * po/Makefile.in: Regenerate. | |
1064 | * python/Makefile.in: Regenerate. | |
1065 | * src/Makefile.in: Regenerate. | |
1066 | * src/c++11/Makefile.in: Regenerate. | |
1067 | * src/c++17/Makefile.in: Regenerate. | |
1068 | * src/c++98/Makefile.in: Regenerate. | |
1069 | * src/filesystem/Makefile.in: Regenerate. | |
1070 | * testsuite/Makefile.in: Regenerate. | |
1071 | ||
7a900bce AO |
1072 | 2020-01-23 Alexandre Oliva <oliva@adacore.com> |
1073 | ||
f9e84b31 AO |
1074 | * crossconfig.m4 (GLIBCXX_CHECK_MATH_DECL): Reject macros. |
1075 | * configure: Rebuild. | |
1076 | ||
7a900bce AO |
1077 | * testsuite/27_io/fpos/mbstate_t/1.cc: Zero-init mbstate_t. |
1078 | ||
04681fca JW |
1079 | 2020-01-23 Jonathan Wakely <jwakely@redhat.com> |
1080 | ||
1081 | PR libstdc++/91947 | |
1082 | * include/Makefile.am (${host_builddir}/largefile-config.h): Simplify | |
1083 | rule. | |
1084 | * include/Makefile.in: Regenerate. | |
1085 | ||
c784f162 JW |
1086 | 2020-01-20 Jonathan Wakely <jwakely@redhat.com> |
1087 | ||
1088 | * doc/xml/faq.xml: Fix grammar. | |
1089 | * doc/xml/manual/appendix_contributing.xml: Improve instructions. | |
1090 | * doc/xml/manual/spine.xml: Update copyright years. | |
1091 | * doc/html/*: Regenerate. | |
1092 | ||
f4d83eba ER |
1093 | 2020-01-19 Eric S. Raymond <esr@thyrsus.com> |
1094 | ||
1095 | * doc/xml/faq.xml: Update for SVN -> Git transition. | |
1096 | * doc/xml/manual/appendix_contributing.xml: Likewise. | |
1097 | * doc/xml/manual/status_cxx1998.xml: Likewise. | |
1098 | * doc/xml/manual/status_cxx2011.xml: Likewise. | |
1099 | * doc/xml/manual/status_cxx2014.xml: Likewise. | |
1100 | * doc/xml/manual/status_cxx2017.xml: Likewise. | |
1101 | * doc/xml/manual/status_cxx2020.xml: Likewise. | |
1102 | * doc/xml/manual/status_cxxtr1.xml: Likewise. | |
1103 | * doc/xml/manual/status_cxxtr24733.xml: Likewise. | |
1104 | ||
49789fd0 IS |
1105 | 2020-01-18 Iain Sandoe <iain@sandoe.co.uk> |
1106 | ||
1107 | * include/Makefile.am: Add coroutine to the std set. | |
1108 | * include/Makefile.in: Regenerated. | |
1109 | * include/std/coroutine: New file. | |
1110 | ||
0ba6a850 JW |
1111 | 2020-01-17 Jonathan Wakely <jwakely@redhat.com> |
1112 | ||
1113 | PR libstdc++/92376 | |
1114 | * include/bits/c++config: Only do PSTL config when the header is | |
1115 | present, to fix freestanding. | |
1116 | * libsupc++/new_opa.cc [!_GLIBCXX_HOSTED]: Declare allocation | |
1117 | functions if they were detected by configure. | |
1118 | ||
98d56ea8 JW |
1119 | 2020-01-16 Kai-Uwe Eckhardt <kuehro@gmx.de> |
1120 | Matthew Bauer <mjbauer95@gmail.com> | |
1121 | Jonathan Wakely <jwakely@redhat.com> | |
1122 | ||
1123 | PR bootstrap/64271 (partial) | |
1124 | * config/os/bsd/netbsd/ctype_base.h (ctype_base::mask): Change type | |
1125 | to unsigned short. | |
1126 | (ctype_base::alpha, ctype_base::digit, ctype_base::xdigit) | |
1127 | (ctype_base::print, ctype_base::graph, ctype_base::alnum): Sync | |
1128 | definitions with NetBSD upstream. | |
1129 | (ctype_base::blank): Use _CTYPE_BL. | |
1130 | * config/os/bsd/netbsd/ctype_configure_char.cc (_C_ctype_): Remove | |
1131 | Declaration. | |
1132 | (ctype<char>::classic_table): Use _C_ctype_tab_ instead of _C_ctype_. | |
1133 | (ctype<char>::do_toupper, ctype<char>::do_tolower): Cast char | |
1134 | parameters to unsigned char. | |
1135 | * config/os/bsd/netbsd/ctype_inline.h (ctype<char>::is): Likewise. | |
1136 | ||
d9165389 FD |
1137 | 2020-01-16 François Dumont <fdumont@gcc.gnu.org> |
1138 | ||
1139 | PR libstdc++/91263 | |
1140 | * include/bits/hashtable.h (_Hashtable<>): Make _Equality<> friend. | |
1141 | * include/bits/hashtable_policy.h: Include <bits/stl_algo.h>. | |
1142 | (_Equality_base): Remove. | |
1143 | (_Equality<>::_M_equal): Review implementation. Use | |
1144 | std::is_permutation. | |
1145 | * testsuite/23_containers/unordered_multiset/operators/1.cc | |
1146 | (Hash, Equal, test02, test03): New. | |
1147 | * testsuite/23_containers/unordered_set/operators/1.cc | |
1148 | (Hash, Equal, test02, test03): New. | |
1149 | ||
2a0f6c61 JW |
1150 | 2020-01-15 Jonathan Wakely <jwakely@redhat.com> |
1151 | ||
1152 | PR libstdc++/93267 | |
1153 | * include/bits/iterator_concepts.h (__max_diff_type, __max_size_type): | |
1154 | Move here from <bits/range_access.h> and define using __int128 when | |
1155 | available. | |
1156 | (__is_integer_like, __is_signed_integer_like): Move here from | |
1157 | <bits/range_access.h>. | |
1158 | (weakly_incrementable): Use __is_signed_integer_like. | |
1159 | * include/bits/range_access.h (__max_diff_type, __max_size_type) | |
1160 | (__is_integer_like, __is_signed_integer_like): Move to | |
1161 | <bits/iterator_concepts.h>. | |
1162 | (__make_unsigned_like_t): Move here from <ranges>. | |
1163 | * include/std/ranges (__make_unsigned_like_t): Move to | |
1164 | <bits/range_access.h>. | |
1165 | (iota_view): Replace using-directive with using-declarations. | |
1166 | * testsuite/std/ranges/iota/93267.cc: New test. | |
1167 | * testsuite/std/ranges/iota_view.cc: Move to new 'iota' sub-directory. | |
1168 | ||
e4379a93 JW |
1169 | 2020-01-13 Jonathan Wakely <jwakely@redhat.com> |
1170 | ||
fe7cc34f JW |
1171 | PR libstdc++/93244 |
1172 | * include/bits/fs_path.h (path::generic_string<C,A>) | |
1173 | [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Convert root-dir to forward-slash. | |
1174 | * testsuite/27_io/filesystem/path/generic/generic_string.cc: Check | |
1175 | root-dir is converted to forward slash in generic pathname. | |
1176 | * testsuite/27_io/filesystem/path/generic/utf.cc: New test. | |
1177 | * testsuite/27_io/filesystem/path/generic/wchar_t.cc: New test. | |
1178 | ||
e4379a93 JW |
1179 | PR libstdc++/58605 |
1180 | * include/bits/atomic_base.h (__cpp_lib_atomic_value_initialization): | |
1181 | Define. | |
1182 | (__atomic_flag_base, __atomic_base, __atomic_base<_PTp*>) | |
1183 | (__atomic_float): Add default member initializer for C++20. | |
1184 | * include/std/atomic (atomic): Likewise. | |
1185 | (atomic::atomic()): Remove noexcept-specifier on default constructor. | |
1186 | * include/std/version (__cpp_lib_atomic_value_initialization): Define. | |
1187 | * testsuite/29_atomics/atomic/cons/assign_neg.cc: Adjust dg-error line | |
1188 | number. | |
1189 | * testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise. | |
1190 | * testsuite/29_atomics/atomic/cons/value_init.cc: New test. | |
1191 | * testsuite/29_atomics/atomic_flag/cons/value_init.cc: New test. | |
1192 | * testsuite/29_atomics/atomic_flag/requirements/trivial.cc: Adjust | |
1193 | expected result for is_trivially_default_constructible. | |
1194 | * testsuite/29_atomics/atomic_float/requirements.cc: Likewise. | |
1195 | * testsuite/29_atomics/atomic_float/value_init.cc: New test. | |
1196 | * testsuite/29_atomics/atomic_integral/cons/assign_neg.cc: Likewise. | |
1197 | * testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Likewise. | |
1198 | * testsuite/29_atomics/atomic_integral/cons/value_init.cc | |
1199 | * testsuite/29_atomics/atomic_integral/requirements/trivial.cc: Adjust | |
1200 | expected results for is_trivially_default_constructible. | |
1201 | * testsuite/util/testsuite_common_types.h (has_trivial_dtor): Add | |
1202 | new test generator. | |
1203 | ||
7918cb93 JW |
1204 | 2020-01-10 Jonathan Wakely <jwakely@redhat.com> |
1205 | ||
68be73fc JW |
1206 | * testsuite/util/testsuite_iterators.h: Improve comment. |
1207 | ||
78f02e80 JW |
1208 | * testsuite/25_algorithms/equal/deque_iterators/1.cc: Don't use C++11 |
1209 | initialization syntax. | |
1210 | ||
7918cb93 JW |
1211 | PR libstdc++/92285 |
1212 | * include/bits/streambuf_iterator.h (istreambuf_iterator): Make type | |
1213 | of base class independent of __cplusplus value. | |
1214 | [__cplusplus < 201103L] (istreambuf_iterator::reference): Override the | |
1215 | type defined in the base class | |
1216 | * testsuite/24_iterators/istreambuf_iterator/92285.cc: New test. | |
1217 | * testsuite/24_iterators/istreambuf_iterator/requirements/ | |
1218 | base_classes.cc: Adjust expected base class for C++98. | |
1219 | ||
acd43917 OH |
1220 | 2020-01-09 Olivier Hainque <hainque@adacore.com> |
1221 | ||
1222 | * doc/xml/manual/appendix_contributing.xml: Document _C2 | |
1223 | as a reserved identifier, by VxWorks. | |
1224 | * include/bits/stl_map.h: Rename _C2 template typenames as _Cmp2. | |
1225 | * include/bits/stl_multimap.h: Likewise. | |
1226 | ||
caa39b2e JW |
1227 | 2020-01-09 Jonathan Wakely <jwakely@redhat.com> |
1228 | ||
1a788638 JW |
1229 | * include/ext/extptr_allocator.h (_ExtPtr_allocator::operator==) |
1230 | (_ExtPtr_allocator::operator!=): Add missing const qualifiers. | |
1231 | * include/ext/pointer.h (readable_traits<_Pointer_adapter<S>>): Add | |
1232 | partial specialization to disambiguate the two constrained | |
1233 | specializations. | |
1234 | ||
caa39b2e JW |
1235 | * include/experimental/type_traits (experimental::is_pod_v): Disable |
1236 | -Wdeprecated-declarations warnings around reference to std::is_pod. | |
1237 | * include/std/type_traits (is_pod_v): Likewise. | |
1238 | * testsuite/18_support/max_align_t/requirements/2.cc: Also check | |
1239 | is_standard_layout and is_trivial. Do not check is_pod for C++20. | |
1240 | * testsuite/20_util/is_pod/requirements/explicit_instantiation.cc: | |
1241 | Add -Wno-deprecated for C++20. | |
1242 | * testsuite/20_util/is_pod/requirements/typedefs.cc: Likewise. | |
1243 | * testsuite/20_util/is_pod/value.cc: Likewise. | |
1244 | * testsuite/experimental/type_traits/value.cc: Likewise. | |
1245 | ||
1a6c5064 JTM |
1246 | 2020-01-09 JeanHeyd "ThePhD" Meneide <phdofthehouse@gmail.com> |
1247 | ||
1248 | * include/bits/c++config (_GLIBCXX20_DEPRECATED): Add new macro. | |
1249 | * include/std/type_traits (is_pod, is_pod_v): Deprecate for C++20. | |
1250 | * testuite/20_util/is_pod/deprecated-2a.cc: New test. | |
1251 | ||
d574c8aa JW |
1252 | 2020-01-09 Jonathan Wakely <jwakely@redhat.com> |
1253 | ||
160e95dc JW |
1254 | PR libstdc++/93205 |
1255 | * include/bits/random.h (operator>>): Check stream operation succeeds. | |
1256 | * include/bits/random.tcc (operator<<): Remove redundant __ostream_type | |
1257 | typedefs. | |
1258 | (operator>>): Remove redundant __istream_type typedefs. Check stream | |
1259 | operations succeed. | |
1260 | (__extract_params): New function to fill a vector from a stream. | |
1261 | * testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error line. | |
1262 | ||
d574c8aa JW |
1263 | PR libstdc++/93208 |
1264 | * config/abi/pre/gnu.ver: Add new exports. | |
1265 | * include/std/memory_resource (memory_resource::~memory_resource()): | |
1266 | Do not define inline. | |
1267 | (monotonic_buffer_resource::~monotonic_buffer_resource()): Likewise. | |
1268 | * src/c++17/memory_resource.cc (memory_resource::~memory_resource()): | |
1269 | Define. | |
1270 | (monotonic_buffer_resource::~monotonic_buffer_resource()): Define. | |
1271 | * testsuite/20_util/monotonic_buffer_resource/93208.cc: New test. | |
1272 | ||
b9c84e95 FD |
1273 | 2020-01-09 François Dumont <fdumont@gcc.gnu.org> |
1274 | ||
1275 | PR libstdc++/92124 | |
1276 | * include/bits/hashtable.h (_Hashtable<>::__alloc_node_gen_t): New | |
1277 | template alias. | |
1278 | (_Hashtable<>::__fwd_value_for): New. | |
1279 | (_Hashtable<>::_M_assign_elements<>): Remove _NodeGenerator template | |
1280 | parameter. | |
1281 | (_Hashtable<>::_M_assign<>): Add _Ht template parameter. | |
1282 | (_Hashtable<>::operator=(const _Hashtable<>&)): Adapt. | |
1283 | (_Hashtable<>::_M_move_assign): Adapt. Replace std::move_if_noexcept | |
1284 | with std::move. | |
1285 | (_Hashtable<>::_Hashtable(const _Hashtable&)): Adapt. | |
1286 | (_Hashtable<>::_Hashtable(const _Hashtable&, const allocator_type&)): | |
1287 | Adapt. | |
1288 | (_Hashtable<>::_Hashtable(_Hashtable&&, const allocator_type&)): | |
1289 | Adapt. | |
1290 | * testsuite/23_containers/unordered_set/92124.cc: New. | |
1291 | ||
fff148b7 JW |
1292 | 2020-01-08 Jonathan Wakely <jwakely@redhat.com> |
1293 | ||
1294 | PR libstdc++/93201 | |
1295 | * src/c++17/fs_ops.cc (do_remove_all): New function implementing more | |
1296 | detailed error reporting for remove_all. Check result of recursive | |
1297 | call before incrementing iterator. | |
1298 | (remove_all(const path&), remove_all(const path&, error_code&)): Use | |
1299 | do_remove_all. | |
1300 | * src/filesystem/ops.cc (remove_all(const path&, error_code&)): Check | |
1301 | result of recursive call before incrementing iterator. | |
1302 | * testsuite/27_io/filesystem/operations/remove_all.cc: Check errors | |
1303 | are reported correctly. | |
1304 | * testsuite/experimental/filesystem/operations/remove_all.cc: Likewise. | |
1305 | ||
9e3c1eb7 TR |
1306 | 2020-01-07 Thomas Rodgers <trodgers@redhat.com> |
1307 | ||
1308 | * include/std/condition_variable | |
1309 | (condition_variable_any::wait_on): Rename to match current draft | |
1310 | standard. | |
1311 | (condition_variable_any::wait_on_until): Likewise. | |
1312 | (condition_variable_any::wait_on_for): Likewise. | |
1313 | * testsuite/30_threads/condition_variable_any/stop_token/wait_on.cc: | |
1314 | Adjust tests to account for renamed methods. | |
1315 | ||
6af8819b FD |
1316 | 2020-01-07 François Dumont <fdumont@gcc.gnu.org> |
1317 | ||
1318 | PR libstdc++/92124 | |
1319 | * include/bits/stl_tree.h | |
1320 | (_Rb_tree<>::_M_move_assign(_Rb_tree&, false_type)): Replace | |
1321 | std::move_if_noexcept by std::move. | |
1322 | * testsuite/23_containers/map/92124.cc: New. | |
1323 | * testsuite/23_containers/set/92124.cc: New. | |
1324 | ||
f31a99f7 JW |
1325 | 2020-01-06 Jonathan Wakely <jwakely@redhat.com> |
1326 | ||
a4a1f965 JW |
1327 | * include/std/stop_token (stop_token): Remove operator!= (LWG 3254). |
1328 | (stop_source): Likewise (LWG 3362). | |
1329 | * testsuite/30_threads/stop_token/stop_source.cc: Test equality | |
1330 | comparisons. | |
1331 | ||
f31a99f7 JW |
1332 | * include/bits/stl_algobase.h (__is_byte_iter, __min_cmp) |
1333 | (lexicographical_compare_three_way): Do not depend on | |
1334 | __cpp_lib_concepts. | |
1335 | * include/std/version (__cpp_lib_three_way_comparison): Only define | |
1336 | when __cpp_lib_concepts is defined. | |
1337 | * libsupc++/compare (__cpp_lib_three_way_comparison): Likewise. | |
1338 | ||
b4e70137 JW |
1339 | 2020-01-03 Jonathan Wakely <jwakely@redhat.com> |
1340 | ||
1341 | * include/bits/stl_algobase.h (lexicographical_compare_three_way): | |
1342 | Only define four-argument overload when __cpp_lib_concepts is defined. | |
1343 | ||
a8497ec6 JDA |
1344 | 2020-01-01 John David Anglin <danglin@gcc.gnu.org> |
1345 | ||
1346 | * config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update. | |
1347 | ||
8d9254fc | 1348 | 2020-01-01 Jakub Jelinek <jakub@redhat.com> |
5624e564 JJ |
1349 | |
1350 | Update copyright years. | |
b4df5e92 | 1351 | \f |
8d9254fc | 1352 | Copyright (C) 2020 Free Software Foundation, Inc. |
b4df5e92 JW |
1353 | |
1354 | Copying and distribution of this file, with or without modification, | |
1355 | are permitted in any medium without royalty provided the copyright | |
1356 | notice and this notice are preserved. |