1 2019-10-22 Jonathan Wakely <jwakely@redhat.com>
3 * include/bits/alloc_traits.h
4 (allocator_traits<allocator<T>>::allocate): Ignore hint for C++20.
5 (allocator_traits<allocator<T>>::construct): Perform placement new
6 directly for C++20, instead of calling allocator<T>::construct.
7 (allocator_traits<allocator<T>>::destroy): Call destructor directly
8 for C++20, instead of calling allocator<T>::destroy.
9 (allocator_traits<allocator<T>>::max_size): Return value directly
10 for C++20, instead of calling std::allocator<T>::max_size().
11 (__do_alloc_on_copy, __do_alloc_on_move, __do_alloc_on_swap): Do not
12 define for C++17 and up.
13 (__alloc_on_copy, __alloc_on_move, __alloc_on_swap): Use if-constexpr
14 for C++17 and up, instead of tag dispatching.
15 * include/bits/allocator.h (allocator<void>): Remove for C++20.
16 (allocator::pointer, allocator::const_pointer, allocator::reference)
17 (allocator::const_reference, allocator::rebind): Remove for C++20.
18 * include/bits/basic_string.h (basic_string): Use __alloc_traits to
20 * include/bits/memoryfwd.h (allocator<void>): Remove for C++20.
21 * include/ext/debug_allocator.h: Use __alloc_traits for rebinding.
22 * include/ext/malloc_allocator.h (malloc_allocator::~malloc_allocator)
23 (malloc_allocator::pointer, malloc_allocator::const_pointer)
24 (malloc_allocator::reference, malloc_allocator::const_reference)
25 (malloc_allocator::rebind, malloc_allocator::max_size)
26 (malloc_allocator::construct, malloc_allocator::destroy): Do not
28 (malloc_allocator::_M_max_size): Define new function.
29 * include/ext/new_allocator.h (new_allocator::~new_allocator)
30 (new_allocator::pointer, new_allocator::const_pointer)
31 (new_allocator::reference, new_allocator::const_reference)
32 (new_allocator::rebind, new_allocator::max_size)
33 (new_allocator::construct, new_allocator::destroy): Do not
35 (new_allocator::_M_max_size): Define new function.
36 * include/ext/rc_string_base.h (__rc_string_base::_Rep): Use
37 __alloc_traits to rebind allocator.
38 * include/ext/rope (_Rope_rep_base, _Rope_base): Likewise.
39 (rope::rope(CharT, const allocator_type&)): Use __alloc_traits
40 to construct character.
41 * include/ext/slist (_Slist_base): Use __alloc_traits to rebind
43 * include/ext/sso_string_base.h (__sso_string_base::_M_max_size):
45 * include/ext/throw_allocator.h (throw_allocator): Do not use optional
46 members of std::allocator, use __alloc_traits members instead.
47 * include/ext/vstring.h (__versa_string): Use __alloc_traits.
48 * include/ext/vstring_util.h (__vstring_utility): Likewise.
49 * include/std/memory: Include <bits/alloc_traits.h>.
50 * testsuite/20_util/allocator/8230.cc: Use __gnu_test::max_size.
51 * testsuite/20_util/allocator/rebind_c++20.cc: New test.
52 * testsuite/20_util/allocator/requirements/typedefs.cc: Do not check
53 for pointer, const_pointer, reference, const_reference or rebind in
55 * testsuite/20_util/allocator/requirements/typedefs_c++20.cc: New test.
56 * testsuite/23_containers/deque/capacity/29134.cc: Use
58 * testsuite/23_containers/forward_list/capacity/1.cc: Likewise.
59 * testsuite/23_containers/list/capacity/29134.cc: Likewise.
60 * testsuite/23_containers/map/capacity/29134.cc: Likewise.
61 * testsuite/23_containers/multimap/capacity/29134.cc: Likewise.
62 * testsuite/23_containers/multiset/capacity/29134.cc: Likewise.
63 * testsuite/23_containers/set/capacity/29134.cc: Likewise.
64 * testsuite/23_containers/vector/capacity/29134.cc: Likewise.
65 * testsuite/ext/malloc_allocator/variadic_construct.cc: Do not run
67 * testsuite/ext/new_allocator/variadic_construct.cc: Likewise.
68 * testsuite/ext/vstring/capacity/29134.cc: Use __gnu_test::max_size.
69 * testsuite/util/replacement_memory_operators.h: Do not assume
70 Alloc::pointer exists.
71 * testsuite/util/testsuite_allocator.h (__gnu_test::max_size): Define
72 helper to call max_size for any allocator.
74 2019-10-22 Andreas Schwab <schwab@suse.de>
76 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
78 2019-10-18 Jonathan Wakely <jwakely@redhat.com>
81 * libsupc++/new_opa.cc (operator new) [__APPLE__]: Increase alignment
82 to at least sizeof(void*).
84 * include/bits/range_cmp.h (ranges::less::operator()): Inline the
85 logic from std::less::operator() to remove the dependency on it.
87 2019-10-17 Jonathan Wakely <jwakely@redhat.com>
89 * doc/doxygen/user.cfg.in (INPUT): Add new C++17 and C++20 headers.
91 * include/Makefile.am: Add new header.
92 * include/Makefile.in: Regenerate.
93 * include/bits/range_cmp.h: New header for C++20 function objects.
94 * include/std/functional: Include new header.
95 * testsuite/20_util/function_objects/identity/1.cc: New test.
96 * testsuite/20_util/function_objects/range.cmp/equal_to.cc: New test.
97 * testsuite/20_util/function_objects/range.cmp/greater.cc: New test.
98 * testsuite/20_util/function_objects/range.cmp/greater_equal.cc: New
100 * testsuite/20_util/function_objects/range.cmp/less.cc: New test.
101 * testsuite/20_util/function_objects/range.cmp/less_equal.cc: New test.
102 * testsuite/20_util/function_objects/range.cmp/not_equal_to.cc: New
106 * include/bits/forward_list.h
107 (_M_move_assign(forward_list&&, false_type)): Do not use
108 __make_move_if_noexcept, instead move unconditionally.
109 * include/bits/stl_deque.h (_M_move_assign2(deque&&, false_type)):
111 * include/bits/stl_list.h (_M_move_assign(list&&, false_type)):
113 * include/bits/stl_vector.h (_M_move_assign(vector&&, false_type)):
115 * testsuite/23_containers/vector/92124.cc: New test.
117 2019-10-16 Jonathan Wakely <jwakely@redhat.com>
119 * include/bits/c++config (_GLIBCXX_BUILTIN_IS_SAME_AS): Define to
120 one of __is_same_as or __is_same when available.
121 * include/std/concepts (__detail::__same_as): Use std::is_same_v.
122 * include/std/type_traits (is_same) [_GLIBCXX_BUILTIN_IS_SAME_AS]:
123 Use new macro instead of __is_same_as.
124 (is_same) [!_GLIBCXX_BUILTIN_IS_SAME_AS]: Restore partial
126 (is_same_v) [_GLIBCXX_BUILTIN_IS_SAME_AS]: Use new macro.
127 (is_same_v) [!_GLIBCXX_BUILTIN_IS_SAME_AS]: Use std::is_same.
129 2019-10-16 François Dumont <fdumont@gcc.gnu.org>
131 * src/c++11/debug.cc (print_field): Replace constness_names <unknown>
132 entry with <unknown constness>. Replace state_names <unknown> entry with
135 2019-10-11 Jonathan Wakely <jwakely@redhat.com>
137 * include/Makefile.am: Add new header.
138 * include/Makefile.in: Regenerate.
139 * include/precompiled/stdc++.h: Include <concepts>.
140 * include/std/concepts: New header for C++20.
141 * include/std/version (__cpp_lib_concepts): Define.
142 * scripts/create_testsuite_files: Look for test files in new std
144 * testsuite/libstdc++-dg/conformance.exp: Likewise.
145 * testsuite/std/concepts/concepts.callable/invocable.cc: New test.
146 * testsuite/std/concepts/concepts.callable/regular_invocable.cc: New
148 * testsuite/std/concepts/concepts.callable/relation.cc: New test.
149 * testsuite/std/concepts/concepts.callable/strictweakorder.cc: New
151 * testsuite/std/concepts/concepts.lang/concept.arithmetic/
152 floating_point.cc: New test.
153 * testsuite/std/concepts/concepts.lang/concept.arithmetic/integral.cc:
155 * testsuite/std/concepts/concepts.lang/concept.arithmetic/
156 signed_integral.cc: New test.
157 * testsuite/std/concepts/concepts.lang/concept.arithmetic/
158 unsigned_integral.cc: New test.
159 * testsuite/std/concepts/concepts.lang/concept.assignable/1.cc: New
161 * testsuite/std/concepts/concepts.lang/concept.common/1.cc: New test.
162 * testsuite/std/concepts/concepts.lang/concept.commonref/1.cc: New
164 * testsuite/std/concepts/concepts.lang/concept.constructible/1.cc:
166 * testsuite/std/concepts/concepts.lang/concept.convertible/1.cc:
168 * testsuite/std/concepts/concepts.lang/concept.copyconstructible/1.cc:
170 * testsuite/std/concepts/concepts.lang/concept.defaultconstructible/
172 * testsuite/std/concepts/concepts.lang/concept.derived/1.cc:
174 * testsuite/std/concepts/concepts.lang/concept.destructible/1.cc:
176 * testsuite/std/concepts/concepts.lang/concept.moveconstructible/1.cc:
178 * testsuite/std/concepts/concepts.lang/concept.same/1.cc:
180 * testsuite/std/concepts/concepts.lang/concept.swappable/swap.cc:
182 * testsuite/std/concepts/concepts.lang/concept.swappable/swappable.cc:
184 * testsuite/std/concepts/concepts.lang/concept.swappable/
185 swappable_with.cc: New test.
186 * testsuite/std/concepts/concepts.object/copyable.cc: New test.
187 * testsuite/std/concepts/concepts.object/movable.cc: New test.
188 * testsuite/std/concepts/concepts.object/regular.cc: New test.
189 * testsuite/std/concepts/concepts.object/semiregular.cc: New test.
191 * include/std/type_traits (is_same): Replace partial specialization
192 by using __is_same_as built-in in primary template.
193 (is_same_v): Use __is_same_as built-in instead of instantiating the
197 * include/tr2/dynamic_bitset (__dynamic_bitset_base): Define all
198 special member functions as defaulted. Add noexcept to most members.
199 (__dynamic_bitset_base(size_t, unsigned long long, const _Alloc&)):
200 Mask off unwanted bits in the __val parameter. Avoid undefined left
202 (__dynamic_bitset_base::_M_assign): Remove.
203 (__dynamic_bitset_base::_M_do_reset): Use std::fill.
204 (__dynamic_bitset_base::_M_are_all_aux): Avoid integer promotion when
205 block_type has lower rank than int.
206 (dynamic_bitset): Add noexcept to most members. Use injected-class-name
207 in return types and parameter types.
208 (dynamic_bitset::_M_Nb): Add default member initializer.
209 (dynamic_bitset(), dynamic_bitset(const dynamic_bitset&)): Define as
211 (dynamic_bitset(dynamic_bitset&&)): Clear source object after move.
212 (dynamic_bitset::operator=(const dynamic_bitset&)): Define as
214 (dynamic_bitset::operator=(dynamic_bitset&&)): Add noexcept-specifier.
215 Define without using swap, to propagate allocator correctly.
216 (dynamic_bitset(const char*, const _Alloc&)): Use strlen.
217 (dynamic_bitset::_M_do_sanitize, dynamic_bitset::_M_do_fill): Use
218 casts to avoid unwanted integer promotions.
219 (dynamic_bitset::_M_copy_from_ptr): Rearrange template parameters and
220 add default template arguments and default argument to simplify usage.
221 (dynamic_bitset::_M_copy_from_string): Adjust call to _M_copy_from_ptr.
222 (operator==(const dynamic_bitset&, const dynamic_bitset&))
223 (operator<(const dynamic_bitset&, const dynamic_bitset&)): Use _M_Nb.
224 * include/tr2/dynamic_bitset.tcc (dynamic_bitset::_M_copy_from_ptr):
225 Adjust template parameters to match declaration.
226 * testsuite/tr2/dynamic_bitset/cmp.cc: New test.
227 * testsuite/tr2/dynamic_bitset/cons.cc: New test.
228 * testsuite/tr2/dynamic_bitset/copy.cc: New test.
229 * testsuite/tr2/dynamic_bitset/move.cc: New test.
230 * testsuite/tr2/dynamic_bitset/pr92059.cc: New test.
232 * include/bits/charconv.h (__to_chars_len): Avoid -Wsign-compare
235 2019-10-10 Jonathan Wakely <jwakely@redhat.com>
238 * src/c++98/locale.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]
239 (find_ldbl_sync_facet): Fix parameter type and missing return.
241 2019-10-09 Marek Polacek <polacek@redhat.com>
243 PR c++/91364 - P0388R4: Permit conversions to arrays of unknown bound.
244 PR c++/69531 - DR 1307: Differently bounded array parameters.
245 PR c++/88128 - DR 330: Qual convs and pointers to arrays of pointers.
246 * testsuite/23_containers/span/lwg3255.cc: Adjust test to match the
247 post-P0388R4 behavior.
249 2019-10-09 Jonathan Wakely <jwakely@redhat.com>
252 * src/c++98/locale.cc (locale::id::_M_id()) [__GTHREADS]: Use atomic
253 compare-exchange or double-checked lock to ensure only one thread sets
254 the _M_index variable.
255 [_GLIBCXX_LONG_DOUBLE_COMPAT]: Call find_ldbl_sync_facet to detect
256 facets that share another facet's ID.
257 [_GLIBCXX_LONG_DOUBLE_COMPAT] (find_ldbl_sync_facet): New function.
260 * src/c++98/locale_init.cc (locale::classic()): Do not construct a new
261 locale object for every call.
262 (locale::_S_initialize_once()): Construct C locale here.
264 2019-10-08 Jonathan Wakely <jwakely@redhat.com>
266 * doc/Makefile.am (doc-html-docbook-regenerate): New target.
267 (${docbook_outdir}/html): Do not create unused 'html/ext' directory.
268 * doc/Makefile.in: Regenerate.
269 * doc/xml/manual/documentation_hacking.xml: Document new target.
270 * doc/html/*: Regenerate.
272 * doc/xml/manual/allocator.xml: Use archived copy of CUJ article.
273 * doc/html/*: Regenerate.
275 2019-10-06 François Dumont <fdumont@gcc.gnu.org>
277 * include/bits/stl_algo.h
278 (__copy_n_a(_IIte, _Size, _OIte)): New.
279 (__copy_n_a(istreambuf_iterator<>, _Size, _CharT*)): New declaration.
280 (__copy_n(_IIte, _Size, _OIte, input_iterator_tag)): Adapt to use
282 * include/bits/streambuf_iterator.h (istreambuf_iterator<>): Declare
283 std::__copy_n_a friend.
284 (__copy_n_a(istreambuf_iterator<>, _Size, _CharT*)): New.
285 * testsuite/25_algorithms/copy_n/istreambuf_iterator/1.cc: New.
286 * testsuite/25_algorithms/copy_n/istreambuf_iterator/1_neg.cc: New.
287 * testsuite/25_algorithms/copy_n/istreambuf_iterator/2_neg.cc: New.
289 * include/bits/stl_iterator_base_types.h (__iterator_category_t): Define
291 (_RequireInputIte): Likewise and use __enable_if_t.
292 * include/std/numeric
293 (__is_random_access_iter): Use __iterator_category_t.
295 * include/bits/stl_algo.h (copy_n): Add __glibcxx_requires_can_increment
297 * testsuite/25_algorithms/copy_n/debug/1_neg.cc: New.
298 * testsuite/25_algorithms/copy_n/debug/2_neg.cc: New.
300 2019-10-04 François Dumont <fdumont@gcc.gnu.org>
302 * include/debug/forward_list
303 (_Sequence_traits<__debug::forward_list<>>::_S_size): Returns __dp_sign
304 distance when not empty.
305 * include/debug/list (_Sequence_traits<__debug::list<>>::_S_size):
307 * include/debug/helper_functions.h (__dp_sign_max_size): New
308 _Distance_precision enum entry.
309 (__valid_range_aux(_IIte, _IIte, _Distance_traits<>::__type,
310 __false_type)): Adapt.
311 * include/debug/safe_iterator.tcc
312 (_Safe_iterator<>::_M_get_distance_to(const _Safe_iterator&)): Review
313 distance computation.
315 2019-10-04 Jonathan Wakely <jwakely@redhat.com>
319 * configure.ac: Use AC_SYS_LARGEFILE to enable 64-bit file APIs.
320 * config.h.in: Regenerate:
321 * configure: Regenerate:
322 * include/Makefile.am (${host_builddir}/largefile-config.h): New
323 target to generate config header for filesystem library.
324 (${host_builddir}/c++config.h): Rename macros for large file support.
325 * include/Makefile.in: Regenerate.
326 * src/c++17/fs_dir.cc: Include new config header.
327 * src/c++17/fs_ops.cc: Likewise.
328 (filesystem::file_size): Use uintmax_t for size.
329 * src/filesystem/dir.cc: Include new config header.
330 * src/filesystem/ops.cc: Likewise.
331 (experimental::filesystem::file_size): Use uintmax_t for size.
333 * testsuite/util/testsuite_abi.h: Use std::unordered_map instead of
334 std::tr1::unordered_map.
335 * testsuite/util/testsuite_allocator.h: Likewise.
337 * include/tr1/hashtable.h: Add header for __gnu_cxx::__alloc_traits.
339 * include/tr1/hashtable.h (tr1::_Hashtable::_M_allocate_node): Use
340 __gnu_cxx::__alloc_traits for allocator construct function.
341 (tr1::_Hashtable::_M_deallocate_node): Likewise for destroy function.
343 * include/precompiled/stdc++.h: Include <span> for C++20.
344 * testsuite/17_intro/names.cc: Do not define 'e' for C++20.
346 2019-10-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
348 * include/parallel/multiway_merge.h (_RAIter3): Replace _C by _Cp.
350 2019-10-02 Jonathan Wakely <jwakely@redhat.com>
352 * config/abi/pre/gnu.ver: Tighten up greedy wildcards.
354 * doc/xml/manual/parallel_mode.xml: Add caveat about support for
356 * doc/html/*: Regenerate.
358 2019-10-01 Jonathan Wakely <jwakely@redhat.com>
360 * include/experimental/algorithm (experimental::sample): Qualify call
361 to __sample correctly.
362 * include/parallel/algo.h (sample, for_each_n): Add using-declarations
363 for algorithms that don't have parallel implementations.
365 * include/parallel/algobase.h (equal, lexicographical_compare): Add
366 _GLIBCXX20_CONSTEXPR and dispatch to sequential algorithm when being
368 * include/parallel/algorithmfwd.h (equal, lexicographical_compare):
369 Add _GLIBCXX20_CONSTEXPR.
371 * testsuite/17_intro/using_namespace_std_tr1_neg.cc: Skip test for
373 * testsuite/20_util/hash/84998.cc: Likewise.
374 * testsuite/23_containers/deque/types/pmr_typedefs_debug.cc: Likewise.
375 * testsuite/23_containers/forward_list/pmr_typedefs_debug.cc: Likewise.
376 * testsuite/23_containers/list/pmr_typedefs_debug.cc: Likewise.
377 * testsuite/23_containers/map/pmr_typedefs_debug.cc: Likewise.
378 * testsuite/23_containers/multimap/pmr_typedefs_debug.cc: Likewise.
379 * testsuite/23_containers/multiset/pmr_typedefs_debug.cc: Likewise.
380 * testsuite/23_containers/set/pmr_typedefs_debug.cc: Likewise.
381 * testsuite/23_containers/unordered_map/pmr_typedefs_debug.cc:
383 * testsuite/23_containers/unordered_multimap/pmr_typedefs_debug.cc:
385 * testsuite/23_containers/unordered_multiset/pmr_typedefs_debug.cc:
387 * testsuite/23_containers/unordered_set/pmr_typedefs_debug.cc:
389 * testsuite/23_containers/vector/cons/destructible_debug_neg.cc:
391 * testsuite/23_containers/vector/types/pmr_typedefs_debug.cc: Likewise.
392 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
393 * testsuite/25_algorithms/copy/86658.cc: Likewise.
394 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
395 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
396 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
397 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
399 * include/parallel/algo.h: Replace non-reserved names.
400 * include/parallel/multiway_merge.h: Likewise.
401 * include/parallel/multiway_mergesort.h: Likewise.
402 * include/parallel/numericfwd.h: Likewise.
403 * testsuite/17_intro/names.cc: Add RAI to test macros.
405 2019-09-30 François Dumont <fdumont@gcc.gnu.org>
407 * include/debug/array: Add C++20 constexpr to comparison operators.
408 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc: Adapt
409 dg-error line numbers.
410 * testsuite/23_containers/array/tuple_interface/
411 tuple_element_debug_neg.cc: Likewise.
413 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
415 * include/experimental/internet: Include netinet/in.h if we have
416 _GLIBCXX_HAVE_NETINET_IN_H defined.
418 * testsuite/ext/special_functions/airy_ai/check_nan.cc: Ignore the
419 FreeBSD warning about lower advertised precision of tgammal.
420 * testsuite/ext/special_functions/airy_bi/check_nan.cc: Likewise.
421 * testsuite/special_functions/07_cyl_bessel_i/check_nan.cc: Likewise.
422 * testsuite/special_functions/08_cyl_bessel_j/check_nan.cc: Likewise.
423 * testsuite/special_functions/09_cyl_bessel_k/check_nan.cc: Likewise.
424 * testsuite/special_functions/10_cyl_neumann/check_nan.cc: Likewise.
425 * testsuite/special_functions/19_sph_bessel/check_nan.cc: Likewise.
426 * testsuite/special_functions/21_sph_neumann/check_nan.cc: Likewise.
427 * testsuite/tr1/5_numerical_facilities/special_functions/
428 08_cyl_bessel_i/check_nan.cc: Likewise.
429 * testsuite/tr1/5_numerical_facilities/special_functions/
430 09_cyl_bessel_j/check_nan.cc: Likewise.
431 * testuite/tr1/5_numerical_facilities/special_functions/
432 10_cyl_bessel_k/check_nan.cc: Likewise.
433 * testsuite/tr1/5_numerical_facilities/special_functions/
434 11_cyl_neumann/check_nan.cc: Likewise.
435 * testsuite/tr1/5_numerical_facilities/special_functions/
436 21_sph_bessel/check_nan.cc: Likewise.
437 * testsuite/tr1/5_numerical_facilities/special_functions/
438 23_sph_neumann/check_nan.cc: Likewise.
440 2019-09-30 Jonathan Wakely <jwakely@redhat.com>
442 * include/std/span (span(element_type(&)[N]))
443 (span(array<value_type, N>&), span(const array<value_type, N>&)):
444 Deduce array element type to allow safe const conversions (LWG 3255).
445 [!_GLIBCXX_P1394] (span(Container&), span(const Container&)): Use
446 remove_cv_t on arguments to __is_std_span and __is_std_array.
447 * testsuite/23_containers/span/lwg3255.cc: New test.
450 * include/parallel/checkers.h (__is_sorted): Remove unused variable.
452 2019-09-28 François Dumont <fdumont@gcc.gnu.org>
454 * include/bits/stl_algo.h (merge): Fix documentation.
455 * include/debug/functions.h (__check_sorted_aux): Add C++20 constexpr.
456 (__check_sorted): Likewise and remove nested irreflexive check.
457 (__check_sorted_set_aux, __check_sorted_set): Add C++20 constexpr.
458 (__check_partitioned_lower, __check_partitioned_upper): Likewise.
459 (_Irreflexive_checker::_S_is_valid): Likewise.
460 (__is_irreflexive, __is_irreflexive_pred): Likewise.
461 * include/debug/helper_functions.h (__get_distance): Add constexpr.
462 (__valid_range_aux): Add C++20 constexpr.
463 (__valid_range(_Iter, _Iter, _Distance_traits<_Iter>::__type&)):
464 Likewise and add std::is_constant_evaluated check.
465 (__valid_range_aux(_Iter, _Iter, std::input_iterator_tag)): New.
466 (__valid_range_aux(_Iter, _Iter, std::random_accss_iterator_tag)): New.
467 (__valid_range_aux(_Integral, _Integral, std::__true_type)): New,
469 (__valid_range(_Iter, _Iter)): Adapt to use latter, add constexpr and
470 __builtin_is_contant_evaludated check..
471 (__can_advance, __base): Add constexpr.
472 * include/debug/macros.h [_GLIBCXX_HAVE_BUILTIN_IS_CONSTANT_EVALUATED]
473 (_GLIBCXX_DEBUG_VERIFY_COND_AT): New.
474 (__glibcxx_check_sorted): Use __glibcxx_check_irreflexive.
475 (__glibcxx_check_sorted_pred): Use __glibcxx_check_irreflexive_pred.
476 * testsuite/25_algorithms/binary_search/constexpr.cc: Use irreflexive
478 * testsuite/25_algorithms/is_sorted/constexpr.cc: Likewise.
479 * testsuite/25_algorithms/merge/constexpr.cc: Fix order in camm. Fix
480 lambda to be irreflexive.
482 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
484 * configure: Regenerate.
486 2019-09-27 Jonathan Wakely <jwakely@redhat.com>
489 * src/c++11/debug.cc (_Safe_iterator_base::_M_detach()): Load pointer
490 atomically and lock the mutex before accessing the sequence.
491 (_Safe_local_iterator_base::_M_detach()): Likewise.
492 (_Safe_iterator_base::_M_reset()): Clear _M_sequence atomically.
494 2019-09-26 Jonathan Wakely <jwakely@redhat.com>
496 * include/debug/array (to_array): Define for debug mode.
498 * include/bits/stl_pair.h (pair): Add _GLIBCXX20_CONSTEXPR to
499 piecewise construction constructor, assignment operators, and swap.
500 * include/std/tuple (pair::pair(piecewise_construct_t, tuple, tuple)):
501 Add _GLIBCXX20_CONSTEXPR.
502 (pair::pair(tuple, tuple, _Index_tuple, _Index_tuple)): Likewise.
503 * testsuite/20_util/pair/constexpr_assign.cc: New test.
504 * testsuite/20_util/pair/constexpr_swap.cc: New test.
506 * include/experimental/internet (operator==, operator<): Fix loop
507 condition to avoid reading past the end of the array.
509 * include/std/array: Remove references to profile mode.
510 * include/std/bitset: Likewise.
511 * include/std/deque: Likewise.
512 * include/std/forward_list: Likewise.
513 * include/std/list: Likewise.
514 * include/std/map: Likewise.
515 * include/std/set: Likewise.
516 * include/std/unordered_map: Likewise.
517 * include/std/unordered_set: Likewise.
518 * include/std/vector: Likewise.
519 * testsuite/17_intro/headers/c++1998/profile_mode.cc: New test.
520 * testsuite/17_intro/headers/c++2011/profile_mode.cc: New test.
522 2019-09-25 Jonathan Wakely <jwakely@redhat.com>
524 * include/bits/regex.h
525 (basic_regex::assign(const C*, size_t, flag_type)): Add default
527 * testsuite/28_regex/basic_regex/assign/char/lwg3296.cc: New test.
528 * testsuite/28_regex/basic_regex/assign/wchar_t/lwg3296.cc: New test.
530 2019-09-24 Jonathan Wakely <jwakely@redhat.com>
532 * include/std/variant (variant::index()): Remove impossible case.
535 * testsuite/util/testsuite_hooks.h
536 (conversion::iterator_to_const_iterator()): Do not return an invalid
537 iterator. Test direct-initialization and direct-list-initialization
538 as well as implicit conversion.
540 2019-09-23 Jonathan Wakely <jwakely@redhat.com>
542 PR libstdc++/91788 (partial)
543 * include/std/variant (variant::index()): Improve codegen for cases
544 where conversion to size_t already works correctly.
546 2019-09-23 Andreas Schwab <schwab@suse.de>
548 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
550 2019-09-12 Jonathan Wakely <jwakely@redhat.com>
553 * include/bits/stl_algo.h (for_each_n): Fix random access iterator
555 * testsuite/25_algorithms/for_each/for_each_n.cc: Test with random
558 2019-09-11 Jonathan Wakely <jwakely@redhat.com>
560 * python/libstdcxx/v6/xmethods.py (SharedPtrUseCountWorker.__call__):
563 * testsuite/20_util/result_of/sfinae_friendly_1.cc: Add -Wno-volatile
564 for C++2a and up. Define HAS_52748_FIXED and fix incorrect tests.
565 * testsuite/tr1/3_function_objects/result_of.cc: Add -Wno-volatile
568 2019-09-10 Jonathan Wakely <jwakely@redhat.com>
570 * include/std/type_traits (__do_common_type_impl): Implement
571 additional COND-RES(CREF(D1), CRED(D2)) condition for C++20.
572 (basic_common_reference, common_reference, common_reference_t): Define
574 * testsuite/20_util/common_reference/requirements/alias_decl.cc: New
576 * testsuite/20_util/common_reference/requirements/
577 explicit_instantiation.cc: New test.
578 * testsuite/20_util/common_reference/requirements/typedefs.cc: New
581 * include/std/charconv (to_chars): Rename to __to_chars_i. Define
582 non-template overloads for each signed and unsigned integer type and
583 char. Define deleted overload for bool (LWG 3266).
584 * testsuite/20_util/to_chars/1_neg.cc: Remove.
585 * testsuite/20_util/to_chars/3.cc: New test.
586 * testsuite/20_util/to_chars/lwg3266.cc: New test.
588 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
590 * acinclude.m4: Handle uclinux*.
591 * configure: Regenerate.
592 * configure.host: Handle uclinux*
594 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
595 Mickaël Guêné <mickael.guene@st.com>
597 * libsupc++/eh_personality.cc (get_ttype_entry): Add FDPIC
600 2019-09-10 Jonathan Wakely <jwakely@redhat.com>
603 * testsuite/23_containers/span/get_neg.cc: Avoid ambiguity due to
604 0ul being a valid null pointer constant.
606 * include/std/type_traits (__remove_cv_t): New alias template.
607 (is_void, is_integral, is_floating_point, is_pointer)
608 (is_member_object_pointer, is_member_function_pointer, is_null_pointer)
609 (is_member_point), __is_signed_integer, __is_unsigned_integer)
610 (__make_unsigned_selector, __make_signed_selector, remove_pointer)
611 (__decay_selector): Use __remove_cv_t.
612 (remove_cv): Add partial specializations for cv-qualified types.
613 (__decay_t): New alias template.
614 (__decay_and_strip, __common_type_impl, __result_of_impl): Use
616 (__enable_if_t): Move earlier in the file.
617 (_Require): Use __enable_if_t.
618 (swap(T&, T&)): Use _Require.
619 (swap(T(&)[N])): Use __enable_if_t.
621 2019-09-09 Edward Smith-Rowland <3dw4rd@verizon.net>
623 Implement C++20 p1424 - 'constexpr' feature macro concerns,
624 Issue 3256 - Feature testing macro for constexpr algorithms,
625 and Issue 3257 - Missing feature testing macro update from P0858.
626 * include/std/version (__cpp_lib_constexpr_algorithms): Bump value.
627 * include/bits/algorithmfwd.h: Ditto.
628 * include/std/utility: Ditto.
629 * testsuite/25_algorithms/constexpr_macro.cc: Ditto.
630 * testsuite/25_algorithms/cpp_lib_constexpr.cc: New check for
631 __cpp_lib_constexpr macro in <algorith>.
632 * testsuite/20_util/exchange/constexpr.cc: Add check for
633 __cpp_lib_constexpr macro in <utility>.
634 * testsuite/25_algorithms/adjacent_find/constexpr.cc: Remove check for
635 __cpp_lib_constexpr_algorithms.
636 * testsuite/25_algorithms/all_of/constexpr.cc: Ditto.
637 * testsuite/25_algorithms/any_of/constexpr.cc: Ditto.
638 * testsuite/25_algorithms/binary_search/constexpr.cc: Ditto.
639 * testsuite/25_algorithms/copy/constexpr.cc: Ditto.
640 * testsuite/25_algorithms/copy_backward/constexpr.cc: Ditto.
641 * testsuite/25_algorithms/copy_if/constexpr.cc: Ditto.
642 * testsuite/25_algorithms/copy_n/constexpr.cc: Ditto.
643 * testsuite/25_algorithms/count/constexpr.cc: Ditto.
644 * testsuite/25_algorithms/count_if/constexpr.cc: Ditto.
645 * testsuite/25_algorithms/equal/constexpr.cc: Ditto.
646 * testsuite/25_algorithms/equal_range/constexpr.cc: Ditto.
647 * testsuite/25_algorithms/fill/constexpr.cc: Ditto.
648 * testsuite/25_algorithms/fill_n/constexpr.cc: Ditto.
649 * testsuite/25_algorithms/find/constexpr.cc: Ditto.
650 * testsuite/25_algorithms/find_end/constexpr.cc: Ditto.
651 * testsuite/25_algorithms/find_first_of/constexpr.cc: Ditto.
652 * testsuite/25_algorithms/find_if/constexpr.cc: Ditto.
653 * testsuite/25_algorithms/find_if_not/constexpr.cc: Ditto.
654 * testsuite/25_algorithms/for_each/constexpr.cc: Ditto.
655 * testsuite/25_algorithms/generate/constexpr.cc: Ditto.
656 * testsuite/25_algorithms/generate_n/constexpr.cc: Ditto.
657 * testsuite/25_algorithms/is_heap/constexpr.cc: Ditto.
658 * testsuite/25_algorithms/is_heap_until/constexpr.cc: Ditto.
659 * testsuite/25_algorithms/is_partitioned/constexpr.cc: Ditto.
660 * testsuite/25_algorithms/is_permutation/constexpr.cc: Ditto.
661 * testsuite/25_algorithms/is_sorted/constexpr.cc: Ditto.
662 * testsuite/25_algorithms/is_sorted_until/constexpr.cc: Ditto.
663 * testsuite/25_algorithms/lexicographical_compare/constexpr.cc: Ditto.
664 * testsuite/25_algorithms/lower_bound/constexpr.cc: Ditto.
665 * testsuite/25_algorithms/merge/constexpr.cc: Ditto.
666 * testsuite/25_algorithms/mismatch/constexpr.cc: Ditto.
667 * testsuite/25_algorithms/none_of/constexpr.cc: Ditto.
668 * testsuite/25_algorithms/partition_copy/constexpr.cc: Ditto.
669 * testsuite/25_algorithms/partition_point/constexpr.cc: Ditto.
670 * testsuite/25_algorithms/remove/constexpr.cc: Ditto.
671 * testsuite/25_algorithms/remove_copy/constexpr.cc: Ditto.
672 * testsuite/25_algorithms/remove_copy_if/constexpr.cc: Ditto.
673 * testsuite/25_algorithms/remove_if/constexpr.cc: Ditto.
674 * testsuite/25_algorithms/replace_copy/constexpr.cc: Ditto.
675 * testsuite/25_algorithms/replace_copy_if/constexpr.cc: Ditto.
676 * testsuite/25_algorithms/replace_if/constexpr.cc: Ditto.
677 * testsuite/25_algorithms/reverse_copy/constexpr.cc: Ditto.
678 * testsuite/25_algorithms/rotate_copy/constexpr.cc: Ditto.
679 * testsuite/25_algorithms/search/constexpr.cc: Ditto.
680 * testsuite/25_algorithms/search_n/constexpr.cc: Ditto.
681 * testsuite/25_algorithms/set_difference/constexpr.cc: Ditto.
682 * testsuite/25_algorithms/set_intersection/constexpr.cc: Ditto.
683 * testsuite/25_algorithms/set_symmetric_difference/constexpr.cc: Ditto.
684 * testsuite/25_algorithms/set_union/constexpr.cc: Ditto.
685 * testsuite/25_algorithms/transform/constexpr.cc: Ditto.
686 * testsuite/25_algorithms/unique/constexpr.cc: Ditto.
687 * testsuite/25_algorithms/unique_copy/constexpr.cc: Ditto.
688 * testsuite/25_algorithms/upper_bound/constexpr.cc: Ditto.
690 2019-09-09 Edward Smith-Rowland <3dw4rd@verizon.net>
692 Update docs for recent <span> and constexpr lib changes.
693 * doc/xml/manual/status_cxx2020.xml: Update p0202r3, p0858r0, p0879r0,
694 p1023r0, p1085r2 status.
695 * doc/html/manual/status.html: Regenerate.
697 2019-09-09 Antony Polukhin <antoshkka@gmail.com>
699 * include/bits/charconv.h (__detail::__to_chars_10_impl): Replace
700 final offsets with constants.
702 2019-09-09 Jonathan Wakely <jwakely@redhat.com>
704 * include/bits/range_access.h (__adl_to_address): Remove.
705 * include/std/span (__is_base_derived_safe_convertible_v): Replace
706 with span::__is_compatible.
707 (__is_std_array_v): Replace with __is_std_array class template and
708 partial specializations.
709 (__is_std_array, __is_std_span): New class templates and partial
711 (span::__is_compatible): New alias template for SFINAE constraints.
712 (span::span(element_type (&)[N])): Remove redundant constraints. Do
713 not use __adl_data to obtain a pointer.
714 (span::span(array<value_type, N>&)): Likewise.
715 (span::span(const array<value_type, N>&)): Likewise.
716 [_GLIBCXX_P1394] (span::iter_reference_t, span::iterator_t)
717 (span::iter_value_t, span::derived_from): New alias templates for
718 SFINAE constraints, until the equivalents are supported in <concepts>
720 [_GLIBCXX_P1394] (span::__is_compatible_iterator): New alias template
721 for SFINAE constraints.
722 [_GLIBCXX_P1394] (span::is_compatible_range): New class template for
724 [_GLIBCXX_P1394] (span::span(Range&&)): Improve constraints.
725 [_GLIBCXX_P1394] (span::span(ContiguousIterator, Sentinel)): Likewise.
726 Use std::to_address instead of __adl_to_address.
727 [_GLIBCXX_P1394] (span::span(ContiguousIterator, size_type)): Likewise.
728 [!_GLIBCXX_P1394] (span::__is_compatible_container): New alias
729 template for SFINAE constraints.
730 [!_GLIBCXX_P1394] (span::span(Container&))
731 (span::span(const Container&)): Improve constraints.
732 [!_GLIBCXX_P1394] (span::span(pointer, size_type))
733 (span::span(pointer, pointer)): Remove redundant cast of pointer.
734 (span(const span<OType, OExtent>&)): New constructor.
736 2019-09-06 Jonathan Wakely <jwakely@redhat.com>
738 * include/bits/range_access.h (ssize): Define for C++20.
739 * testsuite/24_iterators/range_access_cpp20.cc: New test.
740 * doc/xml/manual/status_cxx2020.xml: Update P1227R2 status.
741 * doc/html/*: Regenerate.
743 2019-09-06 Florian Weimer <fweimer@redhat.com>
745 * configure: Regenerate.
747 2019-09-05 Jonathan Wakely <jwakely@redhat.com>
749 * doc/xml/manual/status_cxx2020.xml: Update status for P0122R7 and
750 P1024R3. Remove entry for P0920R2.
751 * include/std/span (__cpp_lib_span): Change value.
752 (__extent_storage, __extent_storage<dynamic_extent>): Remove default
754 (span): Replace __extent_storage base class with data member.
755 (span::_S_subspan_extent): New function.
756 (span::empty()): Add nodiscard attribute.
757 (span::front, span::back, span::operator[]): Check preconditions.
758 (span::first, span::last, span::subspan): Add noexcept. Improve
759 precondition checks (LWG 3103).
760 (get): Remove redundant condition from static_assert.
761 (tuple_element<I, span<T, E>>): Fix static_assert message and simplify.
762 (as_writable_bytes): Add inline specifier.
763 * include/std/version (__cpp_lib_span): Change value.
764 * testsuite/23_containers/span/back_neg.cc: Remove stray semi-colon.
765 * testsuite/23_containers/span/front_neg.cc: Likewise.
766 * testsuite/23_containers/span/index_op_neg.cc: Likewise.
767 * testsuite/23_containers/span/last_neg.cc: Improve test.
768 * testsuite/23_containers/span/subspan_neg.cc: Likewise.
769 * testsuite/23_containers/span/1.cc: New test.
770 * testsuite/23_containers/span/2.cc: New test.
771 * testsuite/23_containers/span/back_assert_neg.cc: New test.
772 * testsuite/23_containers/span/first_2_assert_neg.cc: New test.
773 * testsuite/23_containers/span/first_assert_neg.cc: New test.
774 * testsuite/23_containers/span/first_neg.cc: New test.
775 * testsuite/23_containers/span/front_assert_neg.cc: New test.
776 * testsuite/23_containers/span/index_op_assert_neg.cc: New test.
777 * testsuite/23_containers/span/last_2_assert_neg.cc: New test.
778 * testsuite/23_containers/span/last_assert_neg.cc: New test.
779 * testsuite/23_containers/span/subspan_2_assert_neg.cc: New test.
780 * testsuite/23_containers/span/subspan_3_assert_neg.cc: New test.
781 * testsuite/23_containers/span/subspan_4_assert_neg.cc: New test.
782 * testsuite/23_containers/span/subspan_5_assert_neg.cc: New test.
783 * testsuite/23_containers/span/subspan_6_assert_neg.cc: New test.
784 * testsuite/23_containers/span/subspan_assert_neg.cc: New test.
786 2019-09-05 JeanHeyd Meneide <phdofthehouse@gmail.com>
788 * include/Makefile.am: Add <span> header.
789 * include/Makefile.in: Regenerate.
790 * include/bits/range_access.h (__adl_begin, __adl_end, __adl_cbegin)
791 (__adl_cend, __adl_rbegin, __adl_rend, __adl_crbegin, __adl_crend)
792 (__adl_data, __adl_cdata, __adl_size, __adl_empty, __adl_to_address):
793 New functions for performing argument-dependent lookup of range
794 customization points.
795 * include/bits/stl_iterator.h (__normal_iterator): Add
796 _GLIBCXX20_CONSTEXPR to all functions.
797 * include/std/span: New header.
798 * include/std/version (__cpp_lib_span): Define feature test macro.
799 * testsuite/23_containers/span/contiguous_range_neg.cc: New test.
800 * testsuite/23_containers/span/everything.cc: New test.
801 * testsuite/23_containers/span/get_neg.cc: New test.
802 * testsuite/23_containers/span/last_neg.cc: New test.
803 * testsuite/23_containers/span/subspan_neg.cc: New test.
804 * testsuite/23_containers/span/tuple_element_dynamic_neg.cc: New test.
805 * testsuite/23_containers/span/tuple_element_oob_neg.cc: New test.
806 * testsuite/23_containers/span/tuple_size_neg.cc: New test.
808 2019-09-05 Jonathan Wakely <jwakely@redhat.com>
810 * doc/xml/manual/allocator.xml: Remove URL for bibliography entry.
811 * doc/html/*: Regenerate.
813 2019-09-04 Mike Crowe <mac@mcrowe.com>
816 * acinclude.m4 (GLIBCXX_CHECK_PTHREAD_COND_CLOCKWAIT): Check for new
817 pthread_cond_clockwait function.
818 * configure.ac: Use GLIBCXX_CHECK_PTHREAD_COND_CLOCKWAIT.
819 * configure: Regenerate.
820 * config.h.in: Regenerate.
821 * include/std/condition_variable: (condition_variable): Rename
822 __steady_clock_t typedef and add system_clock. Change __clock_t to be
823 a typedef for the preferred clock to convert arbitrary other clocks to.
824 [_GLIBCXX_USE_PTHREAD_COND_CLOCKWAIT] (wait_until): Add a steady_clock
826 (wait_until): Change __clock_t overload to use system_clock.
827 [_GLIBCXX_USE_PTHREAD_COND_CLOCKWAIT] (__wait_until_impl): Add
828 steady_clock overload that calls pthread_cond_clockwait.
829 (__wait_until_impl): Change __clock_t overload to use system_clock.
830 (condition_variable_any) [_GLIBCXX_USE_PTHREAD_COND_CLOCKWAIT]: Use
831 steady_clock for __clock_t if pthread_cond_clockwait is available.
833 2019-09-04 Mike Crowe <mac@mcrowe.com>
835 * testsuite/30_threads/condition_variable/members/2.cc (test01):
836 Parameterise so that test can be run against an arbitrary clock.
837 (main): Test using std::chrono::steady_clock and a user-defined
838 clock in addition to the previous std::chrono::system_clock.
839 * testsuite/30_threads/condition_variable_any/members/2.cc: Likewise.
841 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
843 * crossconfig.m4: Remove references to spu.
844 * configure: Regenerate.
845 * doc/xml/manual/appendix_contributing.xml: Remove references
846 to __ea as "badword" for spu.
847 * doc/html/manual/source_code_style.html: Regenerate.
848 * include/tr1/ell_integral.tcc (__ellint_rd): Do not attempt
849 to avoid __ea (as "badword" for spu).
850 (__ellint_rj): Likewise.
852 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
855 * acinclude.m4 (GLIBCXX_CHECK_LINKER_FEATURES): Fix GNU ld --version
856 scanning to conform to the GNU Coding Standards.
857 * configure: Regenerate.
859 2019-09-02 Jonathan Wakely <jwakely@redhat.com>
861 * src/c++17/memory_resource.cc: Use __constinit keyword.
863 2019-09-02 Jonathan Wakely <jwakely@redhat.com>
865 * doc/xml/manual/abi.xml: Document 9.x library versions.
866 * doc/html/*: Regenerate.
868 2019-09-02 Jonathan Wakely <jwakely@redhat.com>
870 * include/std/charconv (__detail::__to_chars_2_len): Use std::log2p1.
871 (__detail::__to_chars_8_len): Remove.
872 (__detail::__to_chars_8): Inline length calculation here.
873 (__detail::__from_chars_binary): Use numeric_limits instead of
876 2019-09-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
878 * config/abi/post/i386-solaris/baseline_symbols.txt: Regenerate.
879 * config/abi/post/i386-solaris/amd64/baseline_symbols.txt: Likewise.
880 * config/abi/post/sparc-solaris/baseline_symbols.txt: Likewise.
881 * config/abi/post/sparc-solaris/sparcv9/baseline_symbols.txt:
884 2019-09-01 François Dumont <fdumont@gcc.gnu.org>
886 * testsuite_files/util/testsuite_performance.h
887 (resource_counter::start): Ignore unused malloc(0) result.
889 2019-09-01 Gerald Pfeifer <gerald@pfeifer.com>
891 * doc/xml/manual/policy_data_structures_biblio.xml (COM: Component
892 Model Object Technologies): Adjust name and link.
894 2019-08-30 Antony Polukhin <antoshkka@gmail.com>
896 * include/std/charconv (__detail::__to_chars_8)
897 __detail::__to_chars_16): Replace array of precomputed digits with
898 arithmetic operations to avoid CPU cache misses. Remove zero
899 termination from array of digits to allow symbol merge with generic
900 implementation of __detail::__to_chars. Replace final offsets with
901 constants. Use __detail::__to_chars_len_2 instead of a generic
902 __detail::__to_chars_len.
903 (__detail::__to_chars): Remove zero termination from array of digits.
904 (__detail::__to_chars_2): Leading digit is always '1'.
906 2019-08-30 Jonathan Wakely <jwakely@redhat.com>
908 * testsuite/23_containers/vector/cons/89164_c++17.cc: Fix errors.
910 2019-08-30 Uros Bizjak <ubizjak@gmail.com>
912 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
914 2019-08-30 Jonathan Wakely <jwakely@redhat.com>
917 * include/bits/stl_algobase.h (__copy_move): Give descriptive names
918 to template parameters.
919 * include/bits/stl_uninitialized.h (uninitialized_copy)
920 (uninitialized_fill, uninitialized_fill_n): Add static assertions to
921 diagnose invalid uses.
922 * testsuite/20_util/specialized_algorithms/uninitialized_copy/1.cc:
923 Adjust expected error.
924 * testsuite/20_util/specialized_algorithms/uninitialized_copy/89164.cc:
926 * testsuite/20_util/specialized_algorithms/uninitialized_copy_n/
928 * testsuite/20_util/specialized_algorithms/uninitialized_fill/89164.cc:
930 * testsuite/20_util/specialized_algorithms/uninitialized_fill_n/
932 * testsuite/23_containers/vector/cons/89164.cc: New test.
933 * testsuite/23_containers/vector/cons/89164_c++17.cc: New test.
935 2019-08-29 Jonathan Wakely <jwakely@redhat.com>
938 * acinclude.m4 (libtool_VERSION): Bump to 6:28:0.
939 * configure: Regenerate.
940 * config/abi/pre/gnu.ver (GLIBCXX_3.4.28): Add new version. Export
942 * testsuite/27_io/filesystem/iterators/91067.cc: Test move
944 * testsuite/util/testsuite_abi.cc: Add new symbol version.
946 2019-08-29 Jakub Jelinek <jakub@redhat.com>
948 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
949 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
951 2019-08-28 Jonathan Wakely <jwakely@redhat.com>
953 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
954 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
955 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
956 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
957 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
958 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
959 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
961 2019-08-23 Joseph Myers <joseph@codesourcery.com>
963 * src/filesystem/ops-common.h [_GLIBCXX_FILESYSTEM_IS_WINDOWS]
964 (std::filesystem::__gnu_posix::lstat): Add return type.
966 2019-08-20 Jonathan Wakely <jwakely@redhat.com>
968 * doc/doxygen/user.cfg.in (INPUT): Remove profile mode headers.
970 * include/std/numeric (reduce): Fix Doxygen markup.
973 * include/std/type_traits (is_function): Simplify definition. Remove
974 partial specializations for function types.
975 (__is_referenceable): Simplify definition.
976 * testsuite/20_util/bind/91371.cc: New test.
977 * testsuite/20_util/is_function/91371.cc: New test.
978 * testsuite/20_util/is_function/value.cc: Check more pointer types.
979 * testsuite/20_util/is_member_function_pointer/91371.cc: New test.
980 * testsuite/20_util/is_object/91371.cc: New test.
982 2019-08-16 Uros Bizjak <ubizjak@gmail.com>
984 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
986 2019-08-15 Jonathan Wakely <jwakely@redhat.com>
989 * include/bits/std_function.h (__check_func_return_type): Remove.
990 (function::_Callable): Use std::__is_invocable_impl instead of
991 __check_func_return_type.
992 * include/std/type_traits (__is_invocable_impl): Add another defaulted
993 template parameter. Define a separate partial specialization for
994 INVOKE and INVOKE<void>. For INVOKE<R> replace is_convertible check
995 with a check that models delayed temporary materialization.
996 * testsuite/20_util/function/91456.cc: New test.
997 * testsuite/20_util/is_invocable/91456.cc: New test.
999 2019-08-14 Jonathan Wakely <jwakely@redhat.com>
1001 * include/std/type_traits (__is_nullptr_t): Add deprecated attribute.
1003 2019-08-14 Edward Smith-Rowland <3dw4rd@verizon.net>
1005 Implement C++20 p0879 - Constexpr for swap and swap related functions.
1006 * include/std/version (__cpp_lib_constexpr_swap_algorithms): New macro.
1007 * include/bits/algorithmfwd.h (__cpp_lib_constexpr_swap_algorithms):
1009 (iter_swap, make_heap, next_permutation, partial_sort_copy, pop_heap)
1010 (prev_permutation, push_heap, reverse, rotate, sort_heap, swap)
1011 (swap_ranges, nth_element, partial_sort, sort): Add constexpr.
1012 * include/bits/move.h (swap): Add constexpr.
1013 * include/bits/stl_algo.h (__move_median_to_first, __reverse, reverse)
1014 (__gcd, __rotate, rotate, __partition, __heap_select)
1015 (__partial_sort_copy, partial_sort_copy, __unguarded_partition)
1016 (__unguarded_partition_pivot, __partial_sort, __introsort_loop, __sort)
1017 (__introselect, __chunk_insertion_sort, next_permutation)
1018 (prev_permutation, partition, partial_sort, nth_element, sort)
1019 (__iter_swap::iter_swap, iter_swap, swap_ranges): Add constexpr.
1020 * include/bits/stl_algobase.h (__iter_swap::iter_swap, iter_swap)
1021 (swap_ranges): Add constexpr.
1022 * include/bits/stl_heap.h (__push_heap, push_heap, __adjust_heap,
1023 __pop_heap, pop_heap, __make_heap, make_heap, __sort_heap, sort_heap):
1025 * include/std/type_traits (swap): Add constexpr.
1026 * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Add constexpr.
1027 * testsuite/25_algorithms/iter_swap/constexpr.cc: New test.
1028 * testsuite/25_algorithms/make_heap/constexpr.cc: New test.
1029 * testsuite/25_algorithms/next_permutation/constexpr.cc: New test.
1030 * testsuite/25_algorithms/nth_element/constexpr.cc: New test.
1031 * testsuite/25_algorithms/partial_sort/constexpr.cc: New test.
1032 * testsuite/25_algorithms/partial_sort_copy/constexpr.cc: New test.
1033 * testsuite/25_algorithms/partition/constexpr.cc: New test.
1034 * testsuite/25_algorithms/pop_heap/constexpr.cc: New test.
1035 * testsuite/25_algorithms/prev_permutation/constexpr.cc: New test.
1036 * testsuite/25_algorithms/push_heap/constexpr.cc: New test.
1037 * testsuite/25_algorithms/reverse/constexpr.cc: New test.
1038 * testsuite/25_algorithms/rotate/constexpr.cc: New test.
1039 * testsuite/25_algorithms/sort/constexpr.cc: New test.
1040 * testsuite/25_algorithms/sort_heap/constexpr.cc: New test.
1041 * testsuite/25_algorithms/swap/constexpr.cc: New test.
1042 * testsuite/25_algorithms/swap_ranges/constexpr.cc: New test.
1044 2019-08-12 Jonathan Wakely <jwakely@redhat.com>
1047 * src/c++17/string-inst.cc: Use _GLIBCXX_USE_CXX11_ABI=1 by default.
1049 * include/std/tuple (__unpack_std_tuple): New variable template and
1050 partial specializations.
1051 (apply, make_from_tuple): Add noexcept-specifier.
1052 * testsuite/20_util/tuple/apply/2.cc: New test.
1053 * testsuite/20_util/tuple/make_from_tuple/2.cc: New test.
1055 2019-08-09 Corentin Gay <gay@adacore.com>
1057 * testsuite/ext/random/beta_distribution/operators/serialize.cc,
1058 testsuite/ext/random/hypergeometric_distribution/operators/serialize.cc,
1059 testsuite/ext/random/normal_mv_distribution/operators/serialize.cc,
1060 testsuite/ext/random/triangular_distribution/operators/serialize.cc,
1061 testsuite/ext/random/von_mises_distribution/operators/serialize.cc:
1062 Add call to `VERIFY`.
1064 2019-08-09 Alexandre Oliva <oliva@adacore.com>
1066 * include/ext/random
1067 (normal_mv_distribution::param_type::param_type): New private
1068 ctor taking a decomposed varcov matrix, for use by...
1069 (operator>>): ... this, befriended.
1070 * include/ext/random.tcc (operator>>): Use it.
1071 (normal_mv_distribution::param_type::_M_init_lower): Adjust
1072 member function name in exception message.
1074 2019-08-08 Jonathan Wakely <jwakely@redhat.com>
1076 P0325R4 to_array from LFTS with updates
1077 * include/experimental/array (to_array): Qualify call to __to_array.
1078 * include/std/array (__cpp_lib_to_array, to_array): Define for C++20.
1079 * include/std/version (__cpp_lib_to_array): Likewise.
1080 * testsuite/23_containers/array/creation/1.cc: New test.
1081 * testsuite/23_containers/array/creation/2.cc: New test.
1082 * testsuite/23_containers/array/creation/3_neg.cc: New test.
1083 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
1084 Use zero for dg-error line number.
1086 2019-08-06 Jonathan Wakely <jwakely@redhat.com>
1088 P1651R0 bind_front should not unwrap reference_wrapper
1089 * include/std/functional (bind_front): Don't unwrap reference_wrapper.
1090 * include/std/version (__cpp_lib_bind_front): Update value.
1091 * testsuite/20_util/function_objects/bind_front/1.cc: Fix test for
1093 * testsuite/20_util/function_objects/bind_front/2.cc: New test.
1095 * include/std/numbers [!__STRICT_ANSI__ && _GLIBCXX_USE_FLOAT128]
1096 (e_v, log2e_v, log10e_v, pi_v, inv_pi_v, inv_sqrtpi_v, ln2_v, ln10_v)
1097 (sqrt2_v, sqrt3_v, inv_sqrt3, egamma_v, phi_v): Add explicit
1098 specializations for __float128.
1099 * testsuite/26_numerics/numbers/float128.cc: New test.
1101 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
1103 * doc/xml/manual/documentation_hacking.xml: doxygen.org is now
1106 2019-08-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1108 Implement C++20 p0202 - Add Constexpr Modifiers to Functions
1109 in <algorithm> and <utility> Headers.
1110 Implement C++20 p1023 - constexpr comparison operators for std::array.
1111 * include/bits/algorithmfwd.h (all_of, any_of, binary_search, copy,
1112 copy_backward, copy_if, copy_n, equal_range, fill, find_end,
1113 find_if_not, includes, is_heap, is_heap_until, is_partitioned,
1114 is_permutation, is_sorted, is_sorted_until, iter_swap, lower_bound,
1115 none_of, partition_copy, partition_point, remove, remove_if,
1116 remove_copy, remove_copy_if, replace_copy, replace_copy_if,
1117 reverse_copy, rotate_copy, uunique, upper_bound, adjacent_find, count,
1118 count_if, equal, find, find_first_of, find_if, for_each, generate,
1119 generate_n, lexicographical_compare, merge, mismatch, replace,
1120 replace_if, search, search_n, set_difference, set_intersection,
1121 set_symmetric_difference, set_union, transform, unique_copy):
1123 * include/bits/cpp_type_traits.h (__miter_base): Mark constexpr.
1124 * include/bits/predefined_ops.h (_Iter_less_val::operator(),
1125 _Val_less_iter::operator(), _Iter_equal_to_iter::operator(),
1126 _Iter_equal_to_val::operator(), _Iter_equals_val::operator()):
1127 Use const ref instead of ref arg;
1128 (_Iter_less_val, __iter_less_val, _Val_less_iter, __val_less_iter,
1129 __iter_equal_to_iter, __iter_equal_to_val, __iter_comp_val,
1130 _Iter_comp_val, _Val_comp_iter, __val_comp_iter, __iter_equals_val,
1131 _Iter_equals_iter, __iter_comp_iter, _Iter_pred, __pred_iter,
1132 _Iter_comp_to_val, __iter_comp_val, _Iter_comp_to_iter,
1133 __iter_comp_iter): Mark constexpr.
1134 * include/bits/stl_algo.h (__find_if, __find_if_not, __find_if_not_n,
1135 __search, __search_n_aux, __search_n, __find_end, find_end, all_of,
1136 none_of, any_of, find_if_not, is_partitioned, partition_point,
1137 __remove_copy_if, remove_copy, remove_copy_if, copy_if, __copy_n,
1138 copy_n, partition_copy, __remove_if, remove, remove_if, __adjacent_find,
1139 __unique, unique, __unique_copy, reverse_copy, rotate_copy,
1140 __unguarded_linear_insert, __insertion_sort, __unguarded_insertion_sort,
1141 __final_insertion_sort, lower_bound, __upper_bound, upper_bound,
1142 __equal_range, equal_range, binary_search, __includes, includes,
1143 __next_permutation, __prev_permutation, __replace_copy_if, replace_copy,
1144 replace_copy_if, __count_if, is_sorted, __is_sorted_until,
1145 is_sorted_until, __is_permutation, is_permutation, for_each, find,
1146 find_if, find_first_of, adjacent_find, count, count_if, search,
1147 search_n, transform, replace, replace_if, generate, generate_n,
1148 unique_copy, __merge, merge, __set_union, set_union, __set_intersection,
1149 set_intersection, __set_difference, set_difference,
1150 __set_symmetric_difference, set_symmetric_difference): Mark constexpr.
1151 * include/bits/stl_algobase.h (__memmove, __memcmp): New maybe constexpr
1152 wrappers around __builtin_memmove and __builtin_memcmp
1154 (__niter_base, __niter_wrap, __copy_m, __copy_move_a, __copy_move_a2,
1155 copy, move, __copy_move_b, __copy_move_backward_a,
1156 __copy_move_backward_a2, copy_backward, move_backward, __fill_a, fill,
1157 __fill_n_a, fill_n, equal, __lc_rai::__newlast1, __lc_rai::__cnd2,
1158 __lexicographical_compare_impl, __lexicographical_compare,
1159 __lexicographical_compare<true>::__lc, __lexicographical_compare_aux,
1160 __lower_bound, lower_bound, equal, __equal4, lexicographical_compare,
1161 __mismatch, mismatch, __is_heap_until, __is_heap, is_heap_until,
1162 is_heap): Mark constexpr.
1163 * include/bits/stl_heap.h (__is_heap_until, __is_heap, is_heap_until,
1164 is_heap): Mark constexpr.
1165 * include/bits/stl_iterator.h (__niter_base, __miter_base): Mark constexpr.
1166 * include/std/array: Make comparison ops constexpr.
1167 * include/std/utility: Make exchange constexpr.
1168 * include/std/version (__cpp_lib_constexpr_algorithms): New macro.
1169 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust.
1170 * testsuite/23_containers/array/tuple_interface/
1171 tuple_element_neg.cc: Adjust.
1172 * testsuite/20_util/exchange/constexpr.cc: New.
1173 * testsuite/23_containers/array/comparison_operators/constexpr.cc: New.
1174 * testsuite/25_algorithms/constexpr_macro.cc: New.
1175 * testsuite/25_algorithms/adjacent_find/constexpr.cc: New.
1176 * testsuite/25_algorithms/all_of/constexpr.cc: New.
1177 * testsuite/25_algorithms/any_of/constexpr.cc: New.
1178 * testsuite/25_algorithms/binary_search/constexpr.cc: New.
1179 * testsuite/25_algorithms/copy/constexpr.cc: New.
1180 * testsuite/25_algorithms/copy_backward/constexpr.cc: New.
1181 * testsuite/25_algorithms/copy_if/constexpr.cc: New.
1182 * testsuite/25_algorithms/copy_n/constexpr.cc: New.
1183 * testsuite/25_algorithms/count/constexpr.cc: New.
1184 * testsuite/25_algorithms/count_if/constexpr.cc: New.
1185 * testsuite/25_algorithms/equal/constexpr.cc: New.
1186 * testsuite/25_algorithms/equal_range/constexpr.cc: New.
1187 * testsuite/25_algorithms/fill/constexpr.cc: New.
1188 * testsuite/25_algorithms/fill_n/constexpr.cc: New.
1189 * testsuite/25_algorithms/find/constexpr.cc: New.
1190 * testsuite/25_algorithms/find_end/constexpr.cc: New.
1191 * testsuite/25_algorithms/find_first_of/constexpr.cc: New.
1192 * testsuite/25_algorithms/find_if/constexpr.cc: New.
1193 * testsuite/25_algorithms/find_if_not/constexpr.cc: New.
1194 * testsuite/25_algorithms/for_each/constexpr.cc: New.
1195 * testsuite/25_algorithms/generate/constexpr.cc: New.
1196 * testsuite/25_algorithms/generate_n/constexpr.cc: New.
1197 * testsuite/25_algorithms/is_heap/constexpr.cc: New.
1198 * testsuite/25_algorithms/is_heap_until/constexpr.cc: New.
1199 * testsuite/25_algorithms/is_partitioned/constexpr.cc: New.
1200 * testsuite/25_algorithms/is_permutation/constexpr.cc: New.
1201 * testsuite/25_algorithms/is_sorted/constexpr.cc: New.
1202 * testsuite/25_algorithms/is_sorted_until/constexpr.cc: New.
1203 * testsuite/25_algorithms/lexicographical_compare/constexpr.cc: New.
1204 * testsuite/25_algorithms/lower_bound/constexpr.cc: New.
1205 * testsuite/25_algorithms/merge/constexpr.cc: New.
1206 * testsuite/25_algorithms/mismatch/constexpr.cc: New.
1207 * testsuite/25_algorithms/none_of/constexpr.cc: New.
1208 * testsuite/25_algorithms/partition_copy/constexpr.cc: New.
1209 * testsuite/25_algorithms/partition_point/constexpr.cc: New.
1210 * testsuite/25_algorithms/remove/constexpr.cc: New.
1211 * testsuite/25_algorithms/remove_copy/constexpr.cc: New.
1212 * testsuite/25_algorithms/remove_copy_if/constexpr.cc: New.
1213 * testsuite/25_algorithms/remove_if/constexpr.cc: New.
1214 * testsuite/25_algorithms/replace_copy/constexpr.cc: New.
1215 * testsuite/25_algorithms/replace_copy_if/constexpr.cc: New.
1216 * testsuite/25_algorithms/replace_if/constexpr.cc: New.
1217 * testsuite/25_algorithms/reverse_copy/constexpr.cc: New.
1218 * testsuite/25_algorithms/rotate_copy/constexpr.cc: New.
1219 * testsuite/25_algorithms/search/constexpr.cc: New.
1220 * testsuite/25_algorithms/search_n/constexpr.cc: New.
1221 * testsuite/25_algorithms/set_difference/constexpr.cc: New.
1222 * testsuite/25_algorithms/set_intersection/constexpr.cc: New.
1223 * testsuite/25_algorithms/set_symmetric_difference/constexpr.cc: New.
1224 * testsuite/25_algorithms/set_union/constexpr.cc: New.
1225 * testsuite/25_algorithms/transform/constexpr.cc: New.
1226 * testsuite/25_algorithms/unique/constexpr.cc: New.
1227 * testsuite/25_algorithms/unique_copy/constexpr.cc: New.
1228 * testsuite/25_algorithms/upper_bound/constexpr.cc: New.
1230 2019-07-31 Jonathan Wakely <jwakely@redhat.com>
1232 * include/std/memory (make_obj_using_allocator): Qualify call to
1233 uses_allocator_construction_args.
1235 P0631R4 Math Constants
1236 * include/Makefile.am: Add new header.
1237 * include/Makefile.in: Regenerate.
1238 * include/precompiled/stdc++.h: Include new header.
1239 * include/std/numbers: New header.
1240 * include/std/version (__cpp_lib_math_constants): Define.
1241 * testsuite/26_numerics/numbers/1.cc: New test.
1242 * testsuite/26_numerics/numbers/2.cc: New test.
1243 * testsuite/26_numerics/numbers/3.cc: New test.
1244 * testsuite/26_numerics/numbers/nonfloat_neg.cc: New test.
1246 * include/std/bit: Add Doxygen comments.
1249 * include/bits/unique_ptr.h (unique_ptr::__safe_conversion_up): Remove
1250 constraints on deleter that should only apply to the constructor.
1251 (unique_ptr<T[], D>::__safe_conversion_up): Likewise.
1252 (unique_ptr<T[], D>::unique_ptr(unique_ptr<U, D>&&)): Restore
1253 constraints on deleter here.
1254 * testsuite/20_util/unique_ptr/assign/91308.cc: New test.
1256 2019-07-29 Jonathan Wakely <jwakely@redhat.com>
1259 * libsupc++/cxxabi.h (__gnu_cxx::recursive_init_error): Do not define
1261 * libsupc++/guard_error.cc (__gnu_cxx::recursive_init_error): Define
1263 * testsuite/18_support/51333.cc: New test.
1265 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
1267 * doc/xml/manual/documentation_hacking.xml: Fix broken reference
1268 to the Doxygen manual. Avoid a "here" link on the way.
1269 Fix another broken link to Doxygen docblocks.
1271 2019-07-26 Jonathan Wakely <jwakely@redhat.com>
1273 * include/std/bit (__cpp_lib_endian): Define.
1274 * include/std/version (__cpp_lib_endian): Define.
1275 * testsuite/26_numerics/endian/2.cc: New.
1276 * testsuite/26_numerics/endian/3.cc: New.
1277 * testsuite/26_numerics/endian/4.cc: New.
1279 2019-07-26 François Dumont <fdumont@gcc.gnu.org>
1281 * testsuite/util/testsuite_iterators.h
1282 (bidirectional_iterator_wrapper): Fix type comment.
1283 (random_access_iterator_wrapper): Likewise.
1285 2019-07-25 Jonathan Wakely <jwakely@redhat.com>
1287 * include/std/bit (endian): Move definition here as per P1612R1.
1288 * include/std/type_traits (endian): Remove definition from here.
1289 * testsuite/20_util/endian/1.cc: Rename to ...
1290 * testsuite/26_numerics/endian/1.cc: ... here. Adjust header.
1292 2019-07-25 Martin Liska <mliska@suse.cz>
1293 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
1296 * testsuite/ext/bitmap_allocator/check_delete.cc: Add
1297 -fno-allocation-dce.
1298 * testsuite/ext/bitmap_allocator/check_new.cc: Likewise.
1299 * testsuite/ext/new_allocator/check_delete.cc: Likewise.
1300 * testsuite/ext/new_allocator/check_new.cc: Likewise.
1302 2019-07-22 Jonathan Wakely <jwakely@redhat.com>
1304 * testsuite/26_numerics/bit/bitops.count/*: Rename to ...
1305 * testsuite/26_numerics/bit/bit.count/*: Here.
1307 * include/std/bit (__rotl, __rotr): Change second parameter from
1308 unsigned int to int and handle negative values.
1309 (rotl, rotr): Remove check for __STRICT_ANSI__. Change second
1310 parameter from unsigned int to int. Add nodiscard attribute.
1311 * testsuite/26_numerics/bit/bitops.rot/rotl.cc: Rename to ...
1312 * testsuite/26_numerics/bit/bit.rotate/rotl.cc: Here. Test negative
1314 * testsuite/26_numerics/bit/bitops.rot/rotr.cc: Rename to ...
1315 * testsuite/26_numerics/bit/bit.rotate/rotr.cc: Here. Test negative
1318 * include/std/bit (__ceil2): Make unrepresentable results undefined,
1319 as per P1355R2. Add debug assertion. Perform one left shift, not two,
1320 so that out of range values cause undefined behaviour. Ensure that
1321 shift will still be undefined if left operand is promoted.
1322 * testsuite/26_numerics/bit/bit.pow.two/ceil2.cc: Replace checks for
1323 unrepresentable values with checks that they are not core constant
1325 * testsuite/26_numerics/bit/bit.pow.two/ceil2_neg.cc: New test.
1327 2019-07-19 François Dumont <fdumont@gcc.gnu.org>
1329 * include/bits/stl_tempbuf.h (__detail::__return_temporary_buffer): Fix
1330 sized deallocation size computation.
1332 2019-07-19 Andreas Schwab <schwab@linux-m68k.org>
1334 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
1336 2019-07-18 François Dumont <fdumont@gcc.gnu.org>
1338 * include/bits/stl_tempbuf.h (__detail::__return_temporary_buffer): New.
1339 (~_Temporary_buffer()): Use latter.
1340 (_Temporary_buffer(_FIterator, size_type)): Likewise.
1342 2019-07-17 Andreas Schwab <schwab@suse.de>
1344 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
1346 2019-07-16 Jason Merrill <jason@redhat.com>
1348 * include/std/memory (uses_allocator_construction_args): Add parens
1351 2019-07-12 Jonathan Wakely <jwakely@redhat.com>
1353 * testsuite/29_atomics/atomic_float/1.cc: Fix comment.
1355 * include/experimental/string_view (__detail::__idt): Remove.
1356 (operator==, operator!=, operator<, operator>, operator<=, operator>=):
1357 Use __type_identity_t instead of __detail::__idt;
1358 * include/std/string_view (__detail::__idt): Remove.
1359 (operator==, operator!=, operator<, operator>, operator<=, operator>=):
1360 Use __type_identity_t instead of __detail::__idt;
1361 * include/std/type_traits (__type_identity_t): New alias template.
1363 * doc/xml/manual/status_cxx2020.xml: Update status for atomic_ref
1364 and floating point atomics.
1366 2019-07-11 Jonathan Wakely <jwakely@redhat.com>
1368 * doc/xml/manual/configure.xml: Improve documentation of
1369 --enable-libstdcxx-time option.
1371 * include/bits/atomic_base.h (__atomic_impl): New namespace for
1372 wrappers around atomic built-ins.
1373 (__atomic_float, __atomic_ref): New class templates for use as base
1375 * include/std/atomic (atomic<float>, atomic<double>)
1376 (atomic<long double>): New explicit specializations.
1377 (atomic_ref): New class template.
1378 (__cpp_lib_atomic_ref): Define.
1379 * include/std/version (__cpp_lib_atomic_ref): Define.
1380 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error.
1381 * testsuite/29_atomics/atomic_float/1.cc: New test.
1382 * testsuite/29_atomics/atomic_float/requirements.cc: New test.
1383 * testsuite/29_atomics/atomic_ref/deduction.cc: New test.
1384 * testsuite/29_atomics/atomic_ref/float.cc: New test.
1385 * testsuite/29_atomics/atomic_ref/generic.cc: New test.
1386 * testsuite/29_atomics/atomic_ref/integral.cc: New test.
1387 * testsuite/29_atomics/atomic_ref/pointer.cc: New test.
1388 * testsuite/29_atomics/atomic_ref/requirements.cc: New test.
1390 2019-07-06 Jonathan Wakely <jwakely@redhat.com>
1392 * include/ext/atomicity.h (__exchange_and_add, __atomic_add): Replace
1393 throw() with _GLIBCXX_NOTHROW.
1394 (__atomic_add_dispatch): Return after performing atomic increment.
1396 2019-07-05 Jonathan Wakely <jwakely@redhat.com>
1398 * include/ext/atomicity.h [_GLIBCXX_ATOMIC_BUILTINS] (__atomic_add)
1399 (__exchange_and_add): Replace static specifier with always_inline
1401 (__exchange_and_add_single, __atomic_add_single): Likewise.
1402 (__exchange_and_add_dispatch, __atomic_add_dispatch): Likewise. Also
1403 combine !__gthread_active_p() and !__GTHREADS branches.
1405 2019-07-03 Jonathan Wakely <jwakely@redhat.com>
1408 * acinclude.m4 (libtool_VERSION): Bump to 6:27:0.
1409 * configure: Regenerate.
1410 * config/abi/pre/gnu.ver (GLIBCXX_3.4.27): Add new version. Export
1412 * testsuite/27_io/filesystem/iterators/91067.cc: New test.
1413 * testsuite/util/testsuite_abi.cc: Add new symbol version.
1415 2019-07-02 Jonathan Wakely <jwakely@redhat.com>
1417 * include/bits/c++config (_GLIBCXX_HAVE_BUILTIN_LAUNDER)
1418 (_GLIBCXX_HAVE_BUILTIN_IS_CONSTANT_EVALUATED): Use __has_builtin
1419 instead of __is_identifier to detect Clang support.
1421 2019-07-02 Jim Wilson <jimw@sifive.com>
1423 * configure.ac (BUILD_PDF): Also test for doxygen, dot, xsltproc,
1425 * configure: Regenerate.
1427 2019-06-27 Jonathan Wakely <jwakely@redhat.com>
1430 * src/c++17/fs_path.cc (filesystem_error::_Impl): Use a string_view
1431 for the what_arg parameters.
1432 (filesystem_error::filesystem_error): Pass system_error::what() to
1433 the _Impl constructor.
1434 * testsuite/27_io/filesystem/filesystem_error/cons.cc: Ensure that
1435 filesystem_error::what() contains system_error::what().
1437 2019-06-26 Jonathan Wakely <jwakely@redhat.com>
1439 * include/std/charconv (chars_format): Define bitmask type.
1440 * testsuite/20_util/to_chars/chars_format.cc: New test.
1442 * include/bits/fs_path.h (path::__is_encoded_char): Use __is_one_of.
1443 * include/std/bit (_If_is_unsigned_integer_type): Remove.
1444 (_If_is_unsigned_integer): Use __is_unsigned_integer.
1445 (rotl(byte, unsigned), rotr(byte, unsigned), countl_zero(byte))
1446 (countl_one(byte), countr_zero(byte), countr_one(byte))
1447 (popcount(byte), ispow2(byte), ceil2(byte), floor2(byte))
1448 (log2p1(byte)): Remove.
1449 * include/std/charconv (__detail::__is_one_of): Move to <type_traits>.
1450 (__detail::__is_int_to_chars_type): Remove.
1451 (__detail::__integer_to_chars_result_type): Use __is_signed_integer
1452 and __is_unsigned_integer.
1453 * include/std/type_traits (__is_one_of): Move here from <charconv>.
1454 (__is_signed_integer, __is_unsigned_integer): New helpers.
1455 * testsuite/26_numerics/bit/bit.pow.two/ceil2.cc: Remove test for
1457 * testsuite/26_numerics/bit/bit.pow.two/floor2.cc: Likewise.
1458 * testsuite/26_numerics/bit/bit.pow.two/ispow2.cc: Likewise.
1459 * testsuite/26_numerics/bit/bit.pow.two/log2p1.cc: Likewise.
1460 * testsuite/26_numerics/bit/bitops.count/countl_one.cc: Likewise.
1461 * testsuite/26_numerics/bit/bitops.count/countl_zero.cc: Likewise.
1462 * testsuite/26_numerics/bit/bitops.count/countr_one.cc: Likewise.
1463 * testsuite/26_numerics/bit/bitops.count/countr_zero.cc: Likewise.
1464 * testsuite/26_numerics/bit/bitops.count/popcount.cc: Likewise.
1465 * testsuite/26_numerics/bit/bitops.rot/rotl.cc: Likewise.
1466 * testsuite/26_numerics/bit/bitops.rot/rotr.cc: Likewise.
1468 2019-06-25 Jonathan Wakely <jwakely@redhat.com>
1470 * include/std/numeric (midpoint(T, T)): Avoid std::abs in constexpr
1473 2019-06-25 Jakub Jelinek <jakub@redhat.com>
1475 * include/pstl/pstl_config.h (_PSTL_PRAGMA_SIMD_SCAN,
1476 _PSTL_PRAGMA_SIMD_INCLUSIVE_SCAN, _PSTL_PRAGMA_SIMD_EXCLUSIVE_SCAN):
1477 Define to OpenMP 5.0 pragmas even for GCC 10.0+.
1478 (_PSTL_UDS_PRESENT): Define to 1 for GCC 10.0+.
1480 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
1482 * include/std/numeric (midpoint(T, T)): Change implementation for
1483 floating-point types to avoid incorrect rounding of denormals.
1484 * testsuite/26_numerics/midpoint/floating.cc: Add check for correct
1485 rounding with denormals.
1486 * testsuite/26_numerics/gcd/gcd_neg.cc: Adjust dg-error line numbers.
1487 * testsuite/26_numerics/lcm/lcm_neg.cc: Likewise.
1489 * testsuite/18_support/headers/cfloat/values_c++17.cc: New test.
1491 2019-06-20 Jonathan Wakely <jwakely@redhat.com>
1493 * acinclude.m4 (GLIBCXX_ENABLE_DEBUG): Only do debug build for final
1495 * configure: Regenerate.
1497 * include/std/variant (_Variant_storage, _Extra_visit_slot_needed):
1498 Qualify calls to __never_valueless.
1500 * doc/xml/manual/status_cxx2017.xml: Fix outdated reference to
1501 C++17 working draft.
1503 * testsuite/libstdc++-prettyprinters/simple.cc: Use non-palindromic
1504 vector<bool> for test.
1505 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
1507 2019-06-19 Jonathan Wakely <jwakely@redhat.com>
1509 * include/bits/stream_iterator.h (istream_iterator::_M_equal()): Make
1511 (istream_iterator::_M_read()): Do not check stream state before
1512 attempting extraction. Set stream pointer to null when extraction
1514 (operator==(const istream_iterator&, const istream_iterator&)): Change
1515 to be a hidden friend of istream_iterator.
1516 (operator!=(const istream_iterator&, const istream_iterator&)):
1518 (ostream_iterator::ostream_iterator()): Add default constructor.
1519 (ostream_iterator::ostream_iterator(ostream_type*, const C*)): Use
1521 * testsuite/24_iterators/istream_iterator/1.cc: New test.
1522 * testsuite/24_iterators/ostream_iterator/1.cc: New test.
1523 * testsuite/24_iterators/ostream_iterator/70766.cc: Also check
1524 constructor taking a string.
1525 * testsuite/24_iterators/ostream_iterator/requirements/constexpr.cc:
1528 2019-06-19 Michael Weghorn <m.weghorn@posteo.de>
1529 Jonathan Wakely <jwakely@redhat.com>
1532 * python/libstdcxx/v6/printers.py (StdVectorPrinter._iterator): Use
1533 values of type bool for vector<bool> elements.
1534 * testsuite/libstdc++-prettyprinters/simple.cc: Test vector<bool>.
1535 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
1537 2019-06-19 Jonathan Wakely <jwakely@redhat.com>
1539 PR libstdc++/90920 partially revert r263433
1540 * include/bits/stl_algo.h (__rotate): Restore checks for empty ranges.
1541 (rotate): Remove checks.
1542 * testsuite/25_algorithms/rotate/90920.cc: New test.
1544 * include/std/numeric (reduce(Iter, Iter, T, BinOp)): Fix value
1545 category used in invocable check.
1546 (reduce(Iter, Iter, T)): Pass initial value as rvalue.
1547 * testsuite/26_numerics/reduce/2.cc: New test.
1549 2019-06-18 Jonathan Wakely <jwakely@redhat.com>
1551 * include/bits/algorithmfwd.h: Change title of doc group.
1552 * include/bits/stl_algo.h (for_each_n): Add new C++17 algorithm from
1554 * include/bits/stl_numeric.h: Define doc group and add algos to it.
1555 * include/std/numeric (__is_random_access_iter): New internal trait.
1556 (reduce, transform_reduce, exclusive_scan, inclusive_scan)
1557 (transform_exclusive_scan, transform_inclusive_scan): Likewise.
1558 * testsuite/25_algorithms/for_each/for_each_n.cc: New test.
1559 * testsuite/26_numerics/exclusive_scan/1.cc: New test.
1560 * testsuite/26_numerics/inclusive_scan/1.cc: New test.
1561 * testsuite/26_numerics/reduce/1.cc: New test.
1562 * testsuite/26_numerics/transform_exclusive_scan/1.cc: New test.
1563 * testsuite/26_numerics/transform_inclusive_scan/1.cc: New test.
1564 * testsuite/26_numerics/transform_reduce/1.cc: New test.
1565 * testsuite/util/testsuite_iterators.h (test_container::size()): New
1568 * include/c_global/cstddef (std::byte): Perform arithmetic operations
1569 in unsigned int to avoid promotion (LWG 2950).
1571 2019-06-17 Jonathan Wakely <jwakely@redhat.com>
1573 * testsuite/20_util/allocator/1.cc: Add sized delete, which fixes a
1576 * include/c_global/cmath (__lerp, lerp): Add noexcept (LWG 3201).
1578 PR libstdc++/90281 Fix string conversions for filesystem::path
1579 * include/bits/fs_path.h (u8path) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]:
1580 Use codecvt_utf8_utf16 instead of codecvt_utf8. Use
1581 __str_codecvt_in_all to fail for partial conversions and throw on
1583 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS && _GLIBCXX_USE_CHAR8_T]
1584 (path::_Cvt<char8_t>): Add explicit specialization.
1585 [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::_Cvt::_S_wconvert): Remove
1587 [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::_Cvt::_S_convert): Use
1588 if-constexpr instead of dispatching to _S_wconvert. Use codecvt
1589 instead of codecvt_utf8. Use __str_codecvt_in_all and
1590 __str_codecvt_out_all.
1591 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::_Cvt::_S_convert): Use
1592 codecvt instead of codecvt_utf8. Use __str_codecvt_out_all.
1593 (path::_S_str_convert) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use
1594 codecvt_utf8_utf16 instead of codecvt_utf8. Construct return values
1595 with allocator. Use __str_codecvt_out_all. Fallthrough to POSIX code
1596 after converting to UTF-8.
1597 (path::_S_str_convert): Use codecvt instead of codecvt_utf8. Use
1598 __str_codecvt_in_all.
1599 (path::string): Fix initialization of string types with different
1601 (path::u8string) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use
1602 codecvt_utf8_utf16 instead of codecvt_utf8. Use __str_codecvt_out_all.
1603 * include/bits/locale_conv.h (__do_str_codecvt): Reorder static and
1605 (__str_codecvt_out_all, __str_codecvt_in_all): New functions that
1606 return false for partial conversions.
1607 * include/experimental/bits/fs_path.h (u8path):
1608 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Implement correctly for mingw.
1609 [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::_Cvt::_S_wconvert): Add
1610 missing handling for char8_t. Use codecvt and codecvt_utf8_utf16
1611 instead of codecvt_utf8. Use __str_codecvt_in_all and
1612 __str_codecvt_out_all.
1613 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::_Cvt::_S_convert): Use
1614 codecvt instead of codecvt_utf8. Use __str_codecvt_out_all.
1615 (path::string) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use
1616 codecvt_utf8_utf16 instead of codecvt_utf8. Construct return values
1617 with allocator. Use __str_codecvt_out_all and __str_codecvt_in_all.
1618 (path::string) [!_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use
1619 __str_codecvt_in_all.
1620 (path::u8string) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use
1621 codecvt_utf8_utf16 instead of codecvt_utf8. Use __str_codecvt_out_all.
1622 * src/c++17/fs_path.cc (path::_S_convert_loc): Use
1623 __str_codecvt_in_all.
1624 * src/filesystem/path.cc (path::_S_convert_loc): Likewise.
1625 * testsuite/27_io/filesystem/path/construct/90281.cc: New test.
1626 * testsuite/27_io/filesystem/path/factory/u8path.cc: New test.
1627 * testsuite/27_io/filesystem/path/native/string.cc: Test with empty
1628 strings and with Unicode characters outside the basic multilingual
1630 * testsuite/27_io/filesystem/path/native/alloc.cc: New test.
1631 * testsuite/experimental/filesystem/path/construct/90281.cc: New test.
1632 * testsuite/experimental/filesystem/path/factory/u8path.cc: New test.
1633 * testsuite/experimental/filesystem/path/native/alloc.cc: New test.
1634 * testsuite/experimental/filesystem/path/native/string.cc: Test with
1635 empty strings and with Unicode characters outside the basic
1638 2019-06-17 François Dumont <fdumont@gcc.gnu.org>
1639 Jonathan Wakely <jwakely@redhat.com>
1641 * include/bits/hashtable.h (struct _Hashtable::_Scoped_node): New type.
1642 (_Hashtable::_M_insert_unique_node): Add key_type parameter. Don't
1643 deallocate node if insertion fails.
1644 (_Hashtable::_M_insert_multi_node): Likewise.
1645 (_Hashtable::_M_reinsert_node): Pass additional key argument.
1646 (_Hashtable::_M_reinsert_node_multi): Likewise. Remove FIXME.
1647 (_Hashtable::_M_extract_node(size_t, __node_base*)): New function.
1648 (_Hashtable::extract(const_iterator)): Use _M_extract_node.
1649 (_Hashtable::extract(const _Key&)): Likewise.
1650 (_Hashtable::_M_merge_unique): Pass additional key argument.
1651 (_Hashtable::_M_emplace<Args>(true_type, Args&&...)): Likewise. Use
1653 (_Hashtable::_M_insert): Likewise.
1654 * include/bits/hashtable_policy.h (_Map_base::operator[]): Likewise.
1655 (_Hashtable_alloc): Add comments to functions with misleading names.
1657 2019-06-17 Jonathan Wakely <jwakely@redhat.com>
1659 * testsuite/20_util/bad_function_call/what.cc: Include <string> header
1661 * testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc: Likewise.
1662 * testsuite/20_util/tuple/cons/allocator_with_any.cc: Include <memory>
1663 header for std::allocator.
1664 * testsuite/23_containers/array/tuple_interface/tuple_element.cc: Add
1665 using-declaration for std::size_t.
1666 * testsuite/23_containers/array/tuple_interface/tuple_size.cc:
1668 * testsuite/23_containers/deque/cons/55977.cc: Include <istream> for
1670 * testsuite/23_containers/vector/cons/55977.cc: Likewise.
1671 * testsuite/experimental/map/erasure.cc: Include <string> for
1673 * testsuite/experimental/unordered_map/erasure.cc: Likewise.
1675 2019-06-14 Jonathan Wakely <jwakely@redhat.com>
1677 * include/experimental/type_traits (experimental::nonesuch): Use
1678 pragma to disable -Wctor-dtor-privacy warnings.
1679 * include/std/type_traits (__is_convertible_helper<From, To, false>)
1680 (__is_nt_convertible_helper<From, To, false>, __nonesuch): Likewise.
1682 * include/std/version (__cpp_lib_bind_front): Add missing macro.
1684 2019-06-12 Jonathan Wakely <jwakely@redhat.com>
1686 * include/std/algorithm (__cpp_lib_parallel_algorithm): Fix value.
1687 * include/std/memory (__cpp_lib_parallel_algorithm): Likewise.
1688 * include/std/numeric (__cpp_lib_parallel_algorithm): Likewise.
1689 * testsuite/25_algorithms/pstl/feature_test.cc: New test.
1691 * include/std/variant (get<T>, get<N>, get_if<N>, get_if<T>)
1692 (variant::emplace): Change static_assert messages from "should be"
1694 (hash<monostate>::operator()): Remove name of unused parameter.
1696 * include/std/mutex (scoped_lock::~scoped_lock()): Use fold
1699 * include/Makefile.am: Add new <bits/charconv.h> header.
1700 * include/Makefile.in: Regenerate.
1701 * include/bits/basic_string.h (to_string(int), to_string(unsigned))
1702 (to_string(long), to_string(unsigned long), to_string(long long))
1703 (to_string(unsigned long long)): Rewrite to use __to_chars_10_impl.
1704 * include/bits/charconv.h: New header.
1705 (__detail::__to_chars_len): Move here from <charconv>.
1706 (__detail::__to_chars_10_impl): New function extracted from
1707 __detail::__to_chars_10.
1708 * include/std/charconv (__cpp_lib_to_chars): Add, but comment out.
1709 (__to_chars_unsigned_type): New class template that reuses
1710 __make_unsigned_selector_base::__select to pick a type.
1711 (__unsigned_least_t): Redefine as __to_chars_unsigned_type<T>::type.
1712 (__detail::__to_chars_len): Move to new header.
1713 (__detail::__to_chars_10): Add inline specifier. Move code doing the
1714 output to __detail::__to_chars_10_impl and call that.
1715 * include/std/version (__cpp_lib_to_chars): Add, but comment out.
1716 * testsuite/21_strings/basic_string/numeric_conversions/char/
1717 to_string.cc: Fix reference in comment. Remove unused variable.
1718 * testsuite/21_strings/basic_string/numeric_conversions/char/
1719 to_string_int.cc: New test.
1721 2019-06-09 Edward Smith-Rowland <3dw4rd@verizon.net>
1723 Fix ConstexprIterator requirements tests - No constexpr algorithms!
1724 * testsuite/21_strings/basic_string_view/requirements/constexpr_iter.cc:
1725 Replace copy with hand-rolled loop.
1726 * testsuite/23_containers/array/requirements/constexpr_iter.cc:
1729 2019-06-08 Edward Smith-Rowland <3dw4rd@verizon.net>
1731 Test for C++20 p0858 - ConstexprIterator requirements.
1732 * testsuite/21_strings/basic_string_view/requirements/constexpr_iter.cc:
1734 * testsuite/23_containers/array/requirements/constexpr_iter.cc:
1737 2019-06-07 Thomas Rodgers <trodgers@redhat.com>
1739 Rename PSTL macro's consistent with libstdc++ (and llvm upstream
1741 * include/bits/c++config: Rename all macros of the form __PSTL* to
1743 * include/std/algorithm: Likewise.
1744 * include/std/execution: Likewise.
1745 * include/std/numeric: Likewise.
1746 * include/std/memory: Likewise.
1747 * include/pstl/glue_memory_impl.h: Likewise.
1748 * include/pstl/numeric_impl.h: Likewise.
1749 * include/pstl/glue_memory_defs.h: Likewise.
1750 * include/pstl/execution_defs.h: Likewise.
1751 * include/pstl/utils.h: Likewise.
1752 * include/pstl/algorithm_fwd.h: Likewise.
1753 * include/pstl/unseq_backend_simd.h: Likewise.
1754 * include/pstl/glue_execution_defs.h: Likewise.
1755 * include/pstl/algorithm_impl.h: Likewise.
1756 * include/pstl/parallel_impl.h: Likewise.
1757 * include/pstl/memory_impl.h: Likewise.
1758 * include/pstl/glue_numeric_defs.h: Likewise.
1759 * include/pstl/parallel_backend_utils.h: Likewise.
1760 * include/pstl/glue_algorithm_defs.h: Likewise.
1761 * include/pstl/parallel_backend.h: Likewise.
1762 * include/pstl/glue_numeric_impl.h: Likewise.
1763 * include/pstl/parallel_backend_tbb.h: Likewise.
1764 * include/pstl/numeric_fwd.h: Likewise.
1765 * include/pstl/glue_algorithm_impl.h: Likewise.
1766 * include/pstl/execution_impl.h: Likewise.
1767 * include/pstl/pstl_config.h: Likewise.
1768 * testsuite/util/pstl/pstl_test_config.h: Likewise.
1769 * testsuite/util/pstl/test_utils.h: Likewise.
1770 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc:
1772 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc:
1774 * testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc:
1776 * testsuite/26_numerics/pstl/numeric_ops/scan.cc: Likewise.
1777 * testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: Likewise.
1778 * testsuite/26_numerics/pstl/numeric_ops/reduce.cc: Likewise.
1779 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: Likewise.
1780 * testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc:
1782 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: Likewise.
1783 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: Likewise.
1784 * testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: Likewise.
1785 * testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: Likewise.
1786 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc:
1788 * testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: Likewise.
1789 * testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: Likewise.
1790 * testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: Likewise.
1791 * testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: Likewise.
1792 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc:
1794 * testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: Likewise.
1795 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: Likewise.
1796 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc:
1798 * testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc:
1800 * testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: Likewise.
1801 * testsuite/25_algorithms/pstl/alg_merge/merge.cc: Likewise.
1802 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc:
1804 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc:
1806 * testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc:
1808 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc:
1810 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc:
1812 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc:
1814 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc:
1816 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc:
1818 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc:
1820 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc:
1822 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc:
1824 * testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: Likewise.
1826 Rename header guards to be consistent with upstream project's
1828 * include/pstl/glue_memory_impl.h: Rename all macros of the form
1829 _PSTL_(.*)_H to _PSTL_\U\1_H.
1830 * include/pstl/numeric_impl.h: Likewise.
1831 * include/pstl/glue_memory_defs.h: Likewise.
1832 * include/pstl/execution_defs.h: Likewise.
1833 * include/pstl/utils.h: Likewise.
1834 * include/pstl/algorithm_fwd.h: Likewise.
1835 * include/pstl/unseq_backend_simd.h: Likewise.
1836 * include/pstl/glue_execution_defs.h: Likewise.
1837 * include/pstl/algorithm_impl.h: Likewise.
1838 * include/pstl/parallel_impl.h: Likewise.
1839 * include/pstl/memory_impl.h: Likewise.
1840 * include/pstl/glue_numeric_defs.h: Likewise.
1841 * include/pstl/parallel_backend_utils.h: Likewise.
1842 * include/pstl/glue_algorithm_defs.h: Likewise.
1843 * include/pstl/parallel_backend.h: Likewise.
1844 * include/pstl/glue_numeric_impl.h: Likewise.
1845 * include/pstl/parallel_backend_tbb.h: Likewise.
1846 * include/pstl/numeric_fwd.h: Likewise.
1847 * include/pstl/glue_algorithm_impl.h: Likewise.
1848 * include/pstl/execution_impl.h: Likewise.
1849 * include/pstl/pstl_config.h: Likewise.
1850 * testsuite/util/pstl/pstl_test_config.h: Likewise.
1852 Synchronize libstdc++ parallel algorithms with upstream
1854 * include/pstl/algorithm_fwd.h: Synchronize with
1855 upstream PSTL project.
1856 * include/pstl/algorithm_impl.h: Likewise.
1857 * include/pstl/execution_defs.h: Likewise.
1858 * include/pstl/execution_impl.h: Likewise.
1859 * include/pstl/glue_algorithm_impl.h: Likewise.
1860 * include/pstl/glue_execution_defs.h: Likewise.
1861 * include/pstl/numeric_fwd.h: Likewise.
1862 * include/pstl/numeric_impl.h: Likewise.
1863 * include/pstl/parallel_backend.h: Likewise.
1864 * include/pstl/pstl_config.h: Likewise.
1865 * include/pstl/unseq_backend_simd.h: Likewise.
1866 * include/pstl/parallel_backend_serial.h: New file.
1867 * include/Makefile.am (pstl_headers): Add
1868 parallel_backend_serial.h.
1869 * include/Makefile.in: Regenerate.
1871 Clean up non-conforming names
1872 * include/pstl/algorithm_impl.h (__parallel_set_union_op):
1873 Uglfiy copy_range1 and copy_range2
1874 (__pattern_walk2_n): Rename local n to __n
1875 * include/pstl/parallel_backend_tbb.h (struct __binary_no_op):
1876 Rename parameter _T to _Tp.
1878 Integrate non-TBB serial backend support
1879 * include/bits/c++config: Adjust TBB detection logic to select serial
1880 PSTL backend if no TBB present.
1881 * testsuite/utils/pstl/test_utils.h: Remove check for
1882 _PSTL_USE_PAR_POLICIES
1884 2019-06-07 Jonathan Wakely <jwakely@redhat.com>
1886 * testsuite/24_iterators/container_access.cc: Move dg-options before
1887 dg-do directive so the target check uses the -std option.
1890 * configure: Regenerate.
1891 * src/Makefile.am (stamp-debug): Also test for missing makefile.
1892 * src/Makefile.in: Regenerate.
1894 2019-06-06 Jonathan Wakely <jwakely@redhat.com>
1896 * include/std/array: Do not include <stdexcept>.
1897 * include/std/optional: Include <exception> and
1898 <bits/exception_defines.h> instead of <stdexcept>.
1899 * testsuite/20_util/function_objects/searchers.cc: Include <cctype>
1901 * testsuite/20_util/tuple/cons/deduction.cc: Include <memory> for
1903 * testsuite/23_containers/map/erasure.cc: Include <string>.
1904 * testsuite/23_containers/unordered_map/erasure.cc: Likewise.
1906 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc: Add
1907 dg-prune-output for different C++98 diagnostic.
1908 * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc:
1910 * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc:
1912 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
1914 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
1916 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
1918 * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
1920 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
1922 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
1924 * testsuite/23_containers/vector/requirements/dr438/
1925 constructor_1_neg.cc: Likewise.
1926 * testsuite/23_containers/vector/requirements/dr438/
1927 constructor_2_neg.cc: Likewise.
1928 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
1930 * testsuite/libstdc++-prettyprinters/compat.cc: Do not run for C++98.
1932 * testsuite/23_containers/unordered_map/requirements/debug_container.cc:
1933 Do not test allocator rebinding extension for C++2a.
1934 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Change
1935 dg-do directive for C++17 and C++2a.
1937 * testsuite/23_containers/deque/requirements/explicit_instantiation/
1938 1_c++0x.cc: Remove redundant test.
1939 * testsuite/23_containers/deque/requirements/explicit_instantiation/
1940 2.cc: Use target selector instead of preprocessor condition.
1941 * testsuite/23_containers/deque/requirements/explicit_instantiation/
1942 3.cc: Do not run test for C++2a.
1943 * testsuite/23_containers/forward_list/requirements/
1944 explicit_instantiation/3.cc: Likewise.
1945 * testsuite/23_containers/forward_list/requirements/
1946 explicit_instantiation/5.cc: Do not test allocator rebinding extension
1948 * testsuite/23_containers/list/requirements/explicit_instantiation/
1949 1_c++0x.cc: Remove redundant test.
1950 * testsuite/23_containers/list/requirements/explicit_instantiation/
1951 2.cc: Use target selector instead of preprocessor condition.
1952 * testsuite/23_containers/list/requirements/explicit_instantiation/
1953 3.cc: Do not run test for C++2a.
1954 * testsuite/23_containers/list/requirements/explicit_instantiation/
1955 5.cc: Do not test allocator rebinding extension for C++2a.
1956 * testsuite/23_containers/map/requirements/explicit_instantiation/
1957 1_c++0x.cc: Remove redundant test.
1958 * testsuite/23_containers/map/requirements/explicit_instantiation/
1959 2.cc: Adjust comment.
1960 * testsuite/23_containers/map/requirements/explicit_instantiation/
1961 3.cc: Do not run test for C++2a.
1962 * testsuite/23_containers/map/requirements/explicit_instantiation/
1963 5.cc: Do not test allocator rebinding extension for C++2a.
1964 * testsuite/23_containers/multimap/requirements/explicit_instantiation/
1965 1_c++0x.cc: Remove redundant test.
1966 * testsuite/23_containers/multimap/requirements/explicit_instantiation/
1967 3.cc: Do not run test for C++2a.
1968 * testsuite/23_containers/multimap/requirements/explicit_instantiation/
1969 5.cc: Do not test allocator rebinding extension for C++2a.
1970 * testsuite/23_containers/multiset/requirements/explicit_instantiation/
1971 3.cc: Do not run test for C++2a.
1972 * testsuite/23_containers/multiset/requirements/explicit_instantiation/
1973 5.cc: Do not test allocator rebinding extension for C++2a.
1974 * testsuite/23_containers/set/requirements/explicit_instantiation/3.cc:
1975 Do not run test for C++2a.
1976 * testsuite/23_containers/set/requirements/explicit_instantiation/
1977 1_c++0x.cc: Remove redundant test.
1978 * testsuite/23_containers/set/requirements/explicit_instantiation/5.cc:
1979 Do not test allocator rebinding extension for C++2a.
1980 * testsuite/23_containers/unordered_map/requirements/
1981 explicit_instantiation/3.cc: Likewise.
1982 * testsuite/23_containers/unordered_map/requirements/
1983 explicit_instantiation/5.cc: Do not test allocator rebinding extension
1985 * testsuite/23_containers/unordered_multimap/requirements/
1986 explicit_instantiation/3.cc: Do not run test for C++2a.
1987 * testsuite/23_containers/unordered_multimap/requirements/
1988 explicit_instantiation/5.cc: Do not test allocator rebinding extension
1990 * testsuite/23_containers/unordered_multiset/requirements/
1991 explicit_instantiation/3.cc: Do not run test for C++2a.
1992 * testsuite/23_containers/unordered_multiset/requirements/
1993 explicit_instantiation/5.cc: Do not test allocator rebinding extension
1995 * testsuite/23_containers/unordered_set/requirements/
1996 explicit_instantiation/3.cc: Do not run test for C++2a.
1997 * testsuite/23_containers/unordered_set/requirements/
1998 explicit_instantiation/5.cc: Do not test allocator rebinding extension
2000 * testsuite/23_containers/vector/ext_pointer/explicit_instantiation/
2001 2.cc: Remove redundant test.
2002 * testsuite/23_containers/vector/ext_pointer/explicit_instantiation/
2003 3.cc: Do not run test for C++2a.
2004 * testsuite/23_containers/vector/requirements/explicit_instantiation/
2007 * include/std/type_traits (is_empty, is_polymorphic, is_final)
2008 (is_abstract, is_aggregate): Remove static_assert.
2009 * testsuite/20_util/is_abstract/incomplete_neg.cc: Check for error
2011 * testsuite/20_util/is_aggregate/incomplete_neg.cc: Likewise. Add
2012 missing -std=gnu++17 option.
2013 * testsuite/20_util/is_empty/incomplete_neg.cc: New test.
2014 * testsuite/20_util/is_final/incomplete_neg.cc: New test.
2015 * testsuite/20_util/is_polymorphic/incomplete_neg.cc: Check for error
2018 * testsuite/18_support/set_terminate.cc: Do not run for C++98 mode.
2019 * testsuite/18_support/set_unexpected.cc: Likewise.
2020 * testsuite/20_util/is_nothrow_invocable/value.cc: Test converting to
2022 * testsuite/20_util/is_nothrow_invocable/value_ext.cc: Fix constexpr
2023 function to be valid in C++11.
2024 * testsuite/26_numerics/complex/proj.cc: Do not run for C++98 mode.
2025 * testsuite/experimental/names.cc: Do not run for C++98 mode. Do not
2026 include Library Fundamentals or Networking headers in C++11 mode.
2027 * testsuite/ext/char8_t/atomic-1.cc: Do not run for C++98 mode.
2029 * include/std/tuple (_TC): Replace with _TupleConstraints.
2030 (_TupleConstraints): New helper for SFINAE constraints, with more
2031 expressive member functions to reduce duplication when used.
2032 (tuple::_TC2, tuple::_TMC, tuple::_TNTC): Remove.
2033 (tuple::_TCC): Replace dummy type parameter with bool non-type
2034 parameter that can be used to check the pack size.
2035 (tuple::_ImplicitDefaultCtor, tuple::_ExplicitDefaultCtor)
2036 (tuple::_ImplicitCtor, tuple::_ExplicitCtor): New alias templates for
2037 checking constraints in constructors.
2038 (tuple::__valid_args, tuple::_UseOtherCtor, tuple::__use_other_ctor):
2040 (tuple::tuple): Use new helpers to reduce repitition in constraints.
2041 (tuple::tuple(allocator_arg_t, const Alloc&)): Constrain.
2042 (tuple<T1, T2>::_TCC, tuple<T1, T2>::_ImplicitDefaultCtor)
2043 (tuple<T1, T2>::_ExplicitDefaultCtor, tuple<T1, T2>::_ImplicitCtor)
2044 (tuple<T1, T2>::_ExplicitCtor): New alias templates for checking
2045 constraints in constructors.
2046 (tuple::__is_alloc_arg()): New SFINAE helpers.
2047 (tuple<T1, T2>::tuple): Use new helpers to reduce repitition in
2049 (tuple<T1, T2>::tuple(allocator_arg_t, const Alloc&)): Constrain.
2050 * testsuite/20_util/tuple/cons/90700.cc: New test.
2051 * testsuite/20_util/tuple/cons/allocators.cc: Add default constructor
2052 to meet new constraint on allocator-extended default constructor.
2054 2019-06-03 Jonathan Wakely <jwakely@redhat.com>
2056 * include/bits/stl_map.h (map): Disable static assert for C++98 mode.
2057 * include/bits/stl_multimap.h (multimap): Likewise.
2059 2019-06-03 François Dumont <fdumont@gcc.gnu.org>
2061 Rename variables and cleanup comments.
2062 * include/bits/hashtable_policy.h
2063 * include/bits/hashtable.h
2065 2019-06-03 Jonathan Wakely <jwakely@redhat.com>
2067 * doc/xml/manual/status_cxx2020.xml: Add missing row for P0920R2.
2068 Fix bgcolor for P0340R3.
2069 * doc/html/*: Regenerate.
2072 * doc/xml/manual/status_cxx2014.xml: Document what's missing from
2073 <experimental/memory_resource>.
2074 * doc/xml/manual/status_cxx2020.xml: Document status of P1285R0,
2075 P0339R6, P0340R3, P1164R1 and P1357R1.
2076 * doc/html/*: Regenerate.
2078 * doc/xml/manual/status_cxx2020.xml: Document P1463R1 status.
2079 * include/bits/forward_list.h [__cplusplus > 201703]: Enable
2080 allocator::value_type assertion for C++2a.
2081 * include/bits/hashtable.h: Likewise.
2082 * include/bits/stl_deque.h: Likewise.
2083 * include/bits/stl_list.h: Likewise.
2084 * include/bits/stl_map.h: Likewise.
2085 * include/bits/stl_multimap.h: Likewise.
2086 * include/bits/stl_multiset.h: Likewise.
2087 * include/bits/stl_set.h: Likewise.
2088 * include/bits/stl_vector.h: Likewise.
2089 * testsuite/23_containers/deque/48101-3_neg.cc: New test.
2090 * testsuite/23_containers/forward_list/48101-3_neg.cc: New test.
2091 * testsuite/23_containers/list/48101-3_neg.cc: New test.
2092 * testsuite/23_containers/map/48101-3_neg.cc: New test.
2093 * testsuite/23_containers/multimap/48101-3_neg.cc: New test.
2094 * testsuite/23_containers/multiset/48101-3_neg.cc: New test.
2095 * testsuite/23_containers/set/48101-3_neg.cc: New test.
2096 * testsuite/23_containers/unordered_map/48101-3_neg.cc: New test.
2097 * testsuite/23_containers/unordered_multimap/48101-3_neg.cc: New test.
2098 * testsuite/23_containers/unordered_multiset/48101-3_neg.cc: New test.
2099 * testsuite/23_containers/unordered_set/48101-3_neg.cc: New test.
2100 * testsuite/23_containers/vector/48101-3_neg.cc: New test.
2102 2019-05-31 Gerald Pfeifer <gerald@pfeifer.com>
2104 * doc/xml/manual/allocator.xml: Move hoard.org back to http.
2106 2019-05-31 Jonathan Wakely <jwakely@redhat.com>
2108 * include/std/tuple (tuple<>): Add noexcept to allocator-extended
2110 (tuple<T1, T2>::__nothrow_default_constructible()): New helper
2112 (tuple<T1, T2>::tuple(), explicit tuple<T1, T2>::tuple()): Use helper.
2114 2019-05-31 Jonathan Wakely <jwakely@redhat.com>
2116 * src/c++98/bitmap_allocator.cc: Add using-declaration for size_t.
2119 * libsupc++/eh_term_handler.cc: Include eh_term_handler.h to get
2120 definition of _GLIBCXX_DEFAULT_TERM_HANDLER.
2121 * libsupc++/eh_term_handler.h: New header defining
2122 _GLIBCXX_DEFAULT_TERM_HANDLER.
2123 * libsupc++/eh_terminate.cc: Include eh_term_handler.h.
2124 (set_terminate): Restore default handler when argument is null.
2125 (set_unexpected): Likewise.
2126 * testsuite/18_support/set_terminate.cc: New test.
2127 * testsuite/18_support/set_unexpected.cc: New test.
2129 * include/backward/hashtable.h (size_t, ptrdiff_t)
2130 (forward_iterator_tag, input_iterator_tag, _Construct, _Destroy)
2131 (distance, vector, pair, __iterator_category): Remove
2132 using-declarations that add these names to namespace __gnu_cxx.
2133 * include/ext/bitmap_allocator.h (size_t, ptrdiff_t): Likewise.
2134 * include/ext/debug_allocator.h (size_t): Likewise.
2135 * include/ext/functional (size_t, unary_function, binary_function)
2136 (mem_fun1_t, const_mem_fun1_t, mem_fun1_ref_t, const_mem_fun1_ref_t):
2138 * include/ext/malloc_allocator.h (size_t, ptrdiff_t): Likewise.
2139 * include/ext/memory (ptrdiff_t, pair, __iterator_category): Likewise.
2140 * include/ext/mt_allocator.h (size_t, ptrdiff_t): Likewise.
2141 * include/ext/new_allocator.h (size_t, ptrdiff_t): Likewise.
2142 * include/ext/numeric (iota): Fix outdated comment.
2143 * include/ext/pool_allocator.h (size_t, ptrdiff_t): Likewise.
2144 * include/ext/rb_tree (_Rb_tree, allocator): Likewise.
2145 * include/ext/rope (size_t, ptrdiff_t, allocator, _Destroy): Likewise.
2146 * include/ext/ropeimpl.h (size_t, printf, basic_ostream)
2147 (__throw_length_error, _Destroy, std::__uninitialized_fill_n_a):
2149 * include/ext/slist (size_t, ptrdiff_t, _Construct, _Destroy)
2150 (allocator, __true_type, __false_type): Likewise.
2152 2019-05-31 Antony Polukhin <antoshkka@gmail.com>
2155 * include/std/type_traits __type_identity, __is_complete_or_unbounded):
2156 New helpers for checking preconditions in traits.
2157 (is_trivial, is_trivially_copyable, is_standard_layout, is_pod)
2158 (is_literal_type, is_empty, is_polymorphic, is_final, is_abstract)
2159 (is_destructible, is_nothrow_destructible, is_constructible)
2160 (is_default_constructible, is_copy_constructible)
2161 (is_move_constructible, is_nothrow_default_constructible)
2162 (is_nothrow_constructible, is_nothrow_copy_constructible)
2163 (is_nothrow_move_constructible, is_copy_assignable, is_move_assignable)
2164 (is_nothrow_assignable, is_nothrow_copy_assignable)
2165 (is_nothrow_move_assignable, is_trivially_constructible)
2166 (is_trivially_copy_constructible, is_trivially_move_constructible)
2167 is_trivially_assignable, is_trivially_copy_assignable)
2168 (is_trivially_move_assignable, is_trivially_destructible)
2169 (alignment_of, is_swappable, is_nothrow_swappable, is_invocable)
2170 (is_invocable_r, is_nothrow_invocable)
2171 (has_unique_object_representations, is_aggregate): Add static_asserts
2172 to make sure that type traits are not misused with incomplete types.
2173 (__is_constructible_impl, __is_nothrow_default_constructible_impl)
2174 (__is_nothrow_constructible_impl, __is_nothrow_assignable_impl): New
2175 base characteristics without assertions that can be reused in other
2177 * testsuite/20_util/is_complete_or_unbounded/memoization.cc: New test.
2178 * testsuite/20_util/is_complete_or_unbounded/memoization_neg.cc: New
2180 * testsuite/20_util/is_complete_or_unbounded/value.cc: New test.
2181 * testsuite/20_util/is_abstract/incomplete_neg.cc: New test.
2182 * testsuite/20_util/is_aggregate/incomplete_neg.cc: New test.
2183 * testsuite/20_util/is_class/value.cc: Check incomplete type.
2184 * testsuite/20_util/is_function/value.cc: Likewise.
2185 * testsuite/20_util/is_move_constructible/incomplete_neg.cc: New test.
2186 * testsuite/20_util/is_nothrow_move_assignable/incomplete_neg.cc: New
2188 * testsuite/20_util/is_polymorphic/incomplete_neg.cc: New test.
2189 * testsuite/20_util/is_reference/value.cc: Check incomplete types.
2190 * testsuite/20_util/is_unbounded_array/value.cc: Likewise.
2191 * testsuite/20_util/is_union/value.cc: Likewise.
2192 * testsuite/20_util/is_void/value.cc: Likewise.
2193 * testsuite/util/testsuite_tr1.h: Add incomplete union type.
2195 2019-05-31 Jonathan Wakely <jwakely@redhat.com>
2197 * include/bits/random.h (random_device::_M_init(const char*, size_t)):
2198 Add new private member function.
2199 * src/c++11/cow-string-inst.cc (random_device::_M_init(const string&))
2200 (random_device::_M_init_pretr1(const string&)): Call new private
2201 member with string data.
2202 * src/c++11/random.cc (random_device::_M_init(const char*, size_t)):
2204 * testsuite/26_numerics/random/random_device/cons/default-cow.cc: New
2205 test using COW strings.
2206 * testsuite/26_numerics/random/random_device/cons/default.cc: Generate
2207 a value from the device.
2208 * testsuite/26_numerics/random/random_device/cons/token.cc: Likewise.
2209 Fix typo in token string.
2211 2019-05-30 Nina Dinka Ranns <dinka.ranns@gmail.com>
2213 LWG2788 basic_string spurious use of a default constructible allocator
2214 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
2215 (basic_string::_M_replace_dispatch): Construct temporary string with
2216 the current allocator.
2217 * testsuite/21_strings/basic_string/allocator/char/lwg2788.cc: New.
2218 * testsuite/21_strings/basic_string/allocator/wchar_t/lwg2788.cc: New.
2220 2019-05-30 Jonathan Wakely <jwakely@redhat.com>
2222 * doc/xml/manual/diagnostics.xml: Update list of headers that define
2224 * doc/xml/manual/support.xml: Rewrite advice around NULL. Rewrite
2225 section about new/delete overloads. Improve section on verbose
2227 * doc/html/*: Regenerate.
2229 * doc/xml/manual/status_cxx2020.xml: Add feature-test macro for
2230 P0811R3. Change status of P1353R0.
2231 * doc/html/*: Regenerate.
2233 * doc/xml/manual/status_cxx2011.xml: Use <variablelist> for
2234 documentation of implementation-defined types for [thread.req.native].
2235 * doc/xml/manual/status_cxx2017.xml: Update documentation of
2236 implementation-defined strings for [variant.bad.access]. Fix typo in
2237 documentation of implementation-defined support for [fs.conform.9945].
2238 * doc/html/*: Regenerate.
2240 2019-05-29 Jonathan Wakely <jwakely@redhat.com>
2243 * testsuite/26_numerics/random/random_device/cons/token.cc: Fix test
2244 that fails on mingw-w64.
2247 * src/c++17/fs_ops.cc [_GLIBCXX_FILESYSTEM_IS_WINDOWS]
2248 (status(const path&, error_code&)): Use parent_path() to remove
2250 (symlink_status(const path&, error_code&)): Duplicate workaround for
2251 bug in _wstat for paths with trailing slash.
2252 * testsuite/27_io/filesystem/operations/remove_all.cc: Check path
2253 with trailing slash.
2254 * testsuite/27_io/filesystem/operations/status.cc: Likewise.
2255 * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
2257 * src/c++17/fs_path.cc (path::parent_path()): Create whole path at
2258 once instead of building it iteratively.
2260 * testsuite/util/testsuite_api.h: Remove names of unused parameters.
2262 PR libstdc++/85494 use rdseed and rand_s in std::random_device
2263 * acinclude.m4 (GLIBCXX_CHECK_X86_RDSEED): Define macro to check if
2264 the assembler supports rdseed.
2265 * config.h.in: Regenerate.
2266 * configure: Regenerate.
2267 * configure.ac: Use GLIBCXX_CHECK_X86_RDSEED.
2268 * config/os/mingw32-w64/os_defines.h (_GLIBCXX_USE_CRT_RAND_S): Define.
2269 * doc/html/*: Regenerate.
2270 * doc/xml/manual/status_cxx2011.xml: Document new tokens.
2271 * include/bits/random.h (random_device::random_device()): Always call
2272 _M_init rather than _M_init_pretr1.
2273 (random_device::random_device(const string&)): Likewise.
2274 (random_device::operator()()): Always call _M_getval().
2275 (random_device::_M_file): Replace first member of union with an
2276 anonymous struct, with _M_file as its first member.
2277 * src/c++11/random.cc [_GLIBCXX_X86_RDRAND] (USE_RDRAND): Define.
2278 [_GLIBCXX_X86_RDSEED] (USE_RDSEED): Define.
2279 (USE_MT19937): Define if none of the above are defined.
2280 (USE_POSIX_FILE_IO): Define.
2281 (_M_strtoul): Remove.
2282 [USE_RDSEED] (__x86_rdseed): Define new function.
2283 [_GLIBCXX_USE_CRT_RAND_S] (__winxp_rand_s): Define new function.
2284 (random_device::_M_init(const string&)): Initialize new union members.
2285 Add support for "rdseed" and "rand_s" tokens. Decide what the
2286 "default" token does according to which USE_* macros are defined.
2287 [USE_POSIX_FILE_IO]: Store a file descriptor.
2288 [USE_MT19937]: Forward to _M_init_pretr1 instead.
2289 (random_device::_M_init_pretr1(const string&)) [USE_MT19937]: Inline
2290 code from _M_strtoul.
2291 [!USE_MT19937]: Call _M_init, transforming the old default token or
2292 numeric tokens to "default".
2293 (random_device::_M_fini()) [USE_POSIX_FILE_IO]: Use close not fclose.
2294 (random_device::_M_getval()): Use new union members to obtain a
2295 random number from the stored function pointer or file descriptor.
2296 [USE_MT19937]: Obtain a value from the mt19937 engine.
2297 (random_device::_M_getval_pretr1()): Call _M_getval().
2298 (random_device::_M_getentropy()) [USE_POSIX_FILE_IO]: Use _M_fd
2300 [!USE_MT19937] (mersenne_twister): Do not instantiate when not needed.
2301 * testsuite/26_numerics/random/random_device/85494.cc: New test.
2303 2019-05-28 Jonathan Wakely <jwakely@redhat.com>
2306 * include/experimental/bits/fs_path.h (path::path(path&&)): Only call
2307 _M_split_cmpts() for a path with multiple components.
2308 (path::_S_is_dir_sep()): Add missing 'static' keyword to function.
2309 * src/filesystem/path.cc (path::_M_split_cmpts()): Count number of
2310 components and reserve space in vector. Return early when there is
2312 * testsuite/27_io/filesystem/path/construct/90634.cc: New test.
2313 * testsuite/experimental/filesystem/path/construct/90634.cc: New test.
2315 * testsuite/util/testsuite_fs.h (compare_paths): Use three-argument
2316 form of std::equals for C++11 compatibility.
2318 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
2320 * doc/xml/manual/appendix_contributing.xml: Update pointer to
2321 C++ standard at ansi.org.
2323 2019-05-24 Jonathan Wakely <jwakely@redhat.com>
2325 * include/std/numeric (midpoint(T*, T*)): Fix incorrect result.
2326 * testsuite/26_numerics/midpoint/pointer.cc: Change "compile" test
2329 * testsuite/20_util/shared_ptr/cons/alias-rval.cc: Fix test.
2330 * testsuite/20_util/shared_ptr/cons/alias.cc: Remove unused function.
2332 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
2334 * testsuite/20_util/function_objects/invoke/1.cc: Move C++17-specific
2336 * testsuite/20_util/function_objects/invoke/3.cc: New test.
2337 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Change
2338 "compile" test to "run".
2340 * doc/xml/manual/intro.xml: Document LWG DR 2996 change.
2341 * doc/html/*: Regenerate.
2342 * include/bits/shared_ptr.h (shared_ptr(shared_ptr&&, T*)): Add
2343 rvalue aliasing constructor.
2344 (static_pointer_cast, const_pointer, dynamic_pointer_cast)
2345 (reinterpret_pointer_cast): Add overloads taking rvalues.
2346 * include/bits/shared_ptr_base.h (__shared_ptr(__shared_ptr&&, T*)):
2347 Add rvalue aliasing constructor.
2348 * testsuite/20_util/shared_ptr/casts/1.cc: Change "compile" test to
2349 "run" and check return values as well as types.
2350 * testsuite/20_util/shared_ptr/casts/reinterpret.cc: Likewise.
2351 * testsuite/20_util/shared_ptr/casts/rval.cc: New test.
2352 * testsuite/20_util/shared_ptr/cons/alias-rval.cc: New test.
2353 * testsuite/20_util/shared_ptr/cons/alias.cc: Remove unused return
2356 * doc/xml/manual/evolution.xml: Document LWG DR 2921 change.
2357 * doc/xml/manual/intro.xml: Likewise.
2358 * include/std/future (__create_task_state): Add default arguments
2359 to make providing an allocator optional.
2360 (packaged_task::packaged_task(F&&)): Call __create_task_state directly
2361 instead of delegating to another constructor.
2362 (packaged_task::packaged_task(allocator_arg_t, const A&, ...)): Do not
2363 define allocator-extended constructors for C++17 and later.
2364 * testsuite/30_threads/packaged_task/cons/alloc.cc: Only run test for
2366 * testsuite/30_threads/packaged_task/cons/alloc2.cc: Likewise.
2367 * testsuite/30_threads/packaged_task/cons/alloc_min.cc: Likewise.
2368 * testsuite/30_threads/packaged_task/uses_allocator.cc: Likewise.
2370 2019-05-23 Hans-Peter Nilsson <hp@axis.com>
2372 * testsuite/26_numerics/random/poisson_distribution/operators/values.cc:
2373 Don't run the libstdc++/83237 part on simulator targets.
2375 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
2377 * doc/xml/manual/status_cxx2017.xml: Add feature test macro for
2379 * doc/html/*: Regenerate.
2381 * include/experimental/any (__any_caster): Use RTTI if comparing
2382 addresses fails, to support non-unique addresses in shared libraries.
2383 * include/std/any (__any_caster): Likewise.
2386 * include/experimental/any (__any_caster): Constrain to only be
2387 callable for object types. Use remove_cv_t instead of decay_t.
2388 If the type decays or isn't copy constructible, compare the manager
2389 function to a dummy specialization.
2390 (__any_caster): Add overload constrained for non-object types.
2391 (any::_Manager_internal<_Op>): Add dummy specialization.
2392 * testsuite/experimental/any/misc/any_cast.cc: Test function types
2395 2019-05-22 Jonathan Wakely <jwakely@redhat.com>
2398 * src/c++17/fs_path.cc (path::_List::operator=(const _List&)): Fix
2399 reversed arguments to uninitialized_copy_n.
2400 * testsuite/27_io/filesystem/path/assign/copy.cc: Check that source
2401 is unchanged by copy assignment.
2402 * testsuite/util/testsuite_fs.h (compare_paths): Use std::equal to
2403 compare path components.
2406 * include/experimental/memory_resource: Add system header pragma and
2407 do not define anything unless compiled as C++14 or later.
2408 (__resource_adaptor_common::__guaranteed_alignment): Remove.
2409 (__resource_adaptor_imp::do_allocate): If the requested alignment
2410 is a fundamental alignment then either allocate directly from _M_alloc
2411 or call the new _M_allocate function.
2412 (__resource_adaptor_imp::do_deallocate): Likewise for deallocation.
2413 (__resource_adaptor_imp::_M_allocate): New function that uses a copy
2414 of the allocator rebound to a POD type with the specified alignment.
2415 (__resource_adaptor_imp::_M_deallocate): Likewise for deallocation.
2416 * testsuite/experimental/memory_resource/new_delete_resource.cc:
2417 Adjust expected allocation sizes.
2418 * testsuite/experimental/memory_resource/resource_adaptor.cc: Remove
2419 xfail for Solaris x86.
2421 2019-05-21 Thomas Rodgers <trodgers@redhat.com>
2423 LWG 3062 - Unnecessary decay_t in is_execution_policy_v
2424 * include/pstl/execution_defs.h (__enable_if_execution_policy):
2425 Use std::__remove_cvref_t when building with GCC.
2427 2019-05-21 Jonathan Wakely <jwakely@redhat.com>
2430 * testsuite/lib/libstdc++.exp (check_effective_target_tbb-backend):
2431 Use "additional_flags" to pass -ltbb to v3_target_compile command.
2432 Use check_v3_target_prop_cached to cache the result of the test.
2434 * doc/xml/manual/shared_ptr.xml: Fix names of lock policy constants.
2436 2019-05-20 Thomas Rodgers <trodgers@redhat.com>
2439 * testsuite/lib/libstdc++.exp (check_effective_target_tbb-backend):
2440 Changed v3_target_compile check from preprocess to executable.
2441 Added "-ltbb" to v3_target_compile flags.
2443 2019-05-20 Thomas Rodgers <trodgers@redhat.com>
2445 * testsuite/lib/libstdc++.exp (check_effective_target_tbb-backend):
2446 Add check for Thread Building Blocks 2018 or later.
2448 2019-05-20 Jonathan Wakely <jwakely@redhat.com>
2450 * testsuite/experimental/names.cc: Only include Networking TS headers
2451 on targets with the necessary Gthreads support.
2453 2019-05-20 Marek Polacek <polacek@redhat.com>
2455 CWG 2094 - volatile scalars are trivially copyable.
2457 * testsuite/20_util/is_trivially_copyable/value.cc: Change the expected
2458 result for volatile int.
2460 2019-05-20 Jonathan Wakely <jwakely@redhat.com>
2462 * testsuite/17_intro/names.cc: Do not check 'ptr' on Solaris.
2463 * testsuite/experimental/names.cc: Include <experimental/filesystem>
2466 PR c++/90532 Ensure __is_constructible(T[]) is false
2467 * include/std/type_traits (__do_is_default_constructible_impl)
2468 (__is_default_constructible_atom, __is_default_constructible_safe):
2470 (is_default_constructible): Use is_constructible.
2471 * testsuite/20_util/is_constructible/value.cc: Check int[] case.
2472 * testsuite/20_util/is_default_constructible/value.cc: Likewise.
2473 * testsuite/20_util/is_trivially_constructible/value.cc: Likewise.
2474 * testsuite/20_util/is_trivially_default_constructible/value.cc:
2477 2019-05-20 Pádraig Brady <pbrady@fb.com>
2479 * libstdc++-v3/include/ext/new_allocator.h (deallocate): Pass the size
2480 to the deallocator with -fsized-deallocation.
2482 2019-05-20 Jonathan Wakely <jwakely@redhat.com>
2484 * testsuite/experimental/memory_resource/new_delete_resource.cc: Fix
2485 test by passing correct alignment to deallocate function.
2487 2019-05-18 Jonathan Wakely <jwakely@redhat.com>
2490 * python/libstdcxx/v6/printers.py (UniquePointerPrinter.__init__):
2491 Raise exception if unique_ptr tuple member has unknown structure.
2492 * python/libstdcxx/v6/xmethods.py (UniquePtrGetWorker.__call__):
2493 Adjust worker to support new __uniq_ptr_data base class. Do not
2494 assume field called _M_head_impl is the first tuple element.
2496 2019-05-17 François Dumont <fdumont@gcc.gnu.org>
2498 * include/bits/stl_deque.h
2499 (_Deque_iterator<>::__ptr_to): Remove, use std::__ptr_rebind.
2500 (_Deque_base(_Deque_base&&, const allocator_type&)): New.
2501 (_Deque_base::_Deque_impl_data): New.
2502 (_Deque_base::_Deque_impl): Inherit latter.
2503 (_Deque_base::_Deque_impl::_M_swap_data): Move...
2504 (_Deque_base::_Deque_impl_data::_M_swap_data): ... here.
2505 (_Deque_base::_Deque_impl()): Add noexcept qualification.
2506 (_Deque_base::_Deque_impl(_Deque_impl&&, _Tp_alloc_type&&)): New.
2507 (_Deque_base::_Deque_impl::_M_get_Tp_allocator()): Remove static_cast.
2508 (deque<>::deque()): Default.
2509 (deque<>::deque(deque&&)): Default.
2510 (deque<>::deque(deque&&, const allocator_type&, false_type)): New.
2511 (deque<>::deque(deque&&, const allocator_type&, true_type)): New.
2512 (deque<>::deque(deque&&, const allocator_type&)): Delegate to latters.
2513 (deque<>::deque<_It>(_It, _It, const allocator_type&)): Use
2514 _M_range_initialize.
2515 (deque<>::assign<_It>(_It, _It)): Use _M_assign_aux.
2516 (deque<>::resize(size_type, const value_type&)): Share a single
2518 (deque<>::insert<_It>(const_iterator, _It, _It)): Use
2519 _M_range_insert_aux.
2520 [__cplusplus >= 201103L](_M_initialize_dispatch): Remove.
2521 [__cplusplus >= 201103L](_M_assign_dispatch): Remove.
2522 [__cplusplus >= 201103L](_M_insert_dispatch): Remove.
2523 * testsuite/23_containers/deque/allocator/default_init.cc: New.
2525 2019-05-17 Jonathan Wakely <jwakely@redhat.com>
2528 * include/std/variant (holds_alternative, get, get_if): Improve
2529 static assertion messages.
2530 (bad_variant_access::bad_variant_access()): Change default message.
2531 (__throw_bad_variant_access(bool)): New overload.
2532 (get): Use new overload.
2533 (visit, visit<R>): Improve exception message.
2535 * testsuite/20_util/variant/compile.cc: Fix narrowing test for ILP32
2536 targets. Add more cases from P0608R3.
2537 * testsuite/20_util/variant/run.cc: Add more cases from P0608R3.
2539 * include/bits/random.h (seed_seq::param): Fix non-reserved name.
2540 * include/experimental/type_traits (is_detected_exact)
2541 (is_detected_exact_v): Likewise.
2542 * include/pstl/execution_defs.h (is_execution_policy)
2543 (is_execution_policy_v, __enable_if_execution_policy): Likewise.
2544 * include/pstl/execution_impl.h (__policy_traits): Likewise.
2545 * testsuite/17_intro/names.cc: Check for more non-reserved names.
2546 * testsuite/experimental/names.cc: New test.
2549 * include/bits/hashtable.h (_Hashtable::~_Hashtable()): Remove static
2550 assertions from the destructor.
2551 * include/bits/hashtable_policy.h (_Hash_code_base::_M_hash_code):
2552 Move static_assert for hash function to here.
2553 (_Hash_table_base::_M_equals): Move static_assert for equality
2555 * include/bits/stl_tree.h (_Rb_tree::_S_value(_Const_Link_type)):
2557 (_Rb_tree::_S_key(_Const_Link_type)): Move assertions here. Access
2558 the value directly instead of calling _S_value.
2559 (_Rb_tree::_S_value(_Const_Base_ptr)): Remove.
2560 (_Rb_tree::_S_key(_Const_Base_ptr)): Do downcast and forward to
2561 _S_key(_Const_Link_type).
2562 * testsuite/23_containers/set/85965.cc: Check construction,
2563 destruction, assignment and size() do not trigger the assertions.
2564 * testsuite/23_containers/unordered_set/85965.cc: Likewise.
2565 * testsuite/23_containers/map/48101_neg.cc: Call find and adjust
2567 * testsuite/23_containers/multimap/48101_neg.cc: Likewise.
2568 * testsuite/23_containers/multiset/48101_neg.cc: Likewise.
2569 * testsuite/23_containers/set/48101_neg.cc: Likewise.
2570 * testsuite/23_containers/unordered_map/48101_neg.cc: Likewise.
2571 * testsuite/23_containers/unordered_multimap/48101_neg.cc: Likewise.
2572 * testsuite/23_containers/unordered_multiset/48101_neg.cc: Likewise.
2573 * testsuite/23_containers/unordered_set/48101_neg.cc: Likewise.
2575 * include/bits/invoke.h [__cplusplus < 201703L] (__invoke_r<void>):
2576 Use _GLIBCXX14_CONSTEXPR because void functions cannot be constexpr
2579 * doc/xml/manual/status_cxx2020.xml: Update P0608R3, P0777R1, and
2581 * doc/html/*: Regenerate.
2582 * include/std/tuple (make_from_tuple): Use remove_reference_t instead
2583 of decay_t (P0777R1).
2585 2019-05-17 François Dumont <fdumont@gcc.gnu.org>
2587 Move from state of allocators (LWG2593)
2588 * include/bits/stl_deque.h
2589 (_Deque_base(_Deque_base&&, false_type)): Remove.
2590 (_Deque_base(_Deque_base&&, true_type)): Remove.
2591 (_Deque_base(_Deque_base&&)): Adapt.
2592 (_Deque_base::_M_move_impl()): Remove.
2593 * testsuite/util/testsuite_allocator.h
2594 (propagating_allocator(propagating_allocator&&)): Preserve move from
2596 * testsuite/23_containers/deque/allocator/move_assign.cc (test02):
2598 * testsuite/23_containers/forward_list/allocator/move_assign.cc (test02):
2600 * testsuite/23_containers/list/allocator/move_assign.cc (test02): Adapt.
2601 * testsuite/23_containers/map/allocator/move_assign.cc (test02): Adapt.
2602 * testsuite/23_containers/multimap/allocator/move_assign.cc (test02):
2604 * testsuite/23_containers/multiset/allocator/move_assign.cc (test02):
2606 * testsuite/23_containers/set/allocator/move_assign.cc (test02): Adapt.
2607 * testsuite/23_containers/unordered_map/allocator/move_assign.cc
2609 * testsuite/23_containers/unordered_multimap/allocator/move_assign.cc
2611 * testsuite/23_containers/unordered_multiset/allocator/move_assign.cc
2613 * testsuite/23_containers/unordered_set/allocator/move_assign.cc
2615 * testsuite/23_containers/vector/allocator/move_assign.cc (test02):
2617 * testsuite/23_containers/vector/bool/allocator/move_assign.cc (test02):
2619 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc
2621 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc
2624 2019-05-16 Jonathan Wakely <jwakely@redhat.com>
2626 * src/c++17/fs_ops.cc (absolute(const path&, error_code&))
2627 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Remove bogus assertion.
2629 * include/std/variant (__overload_set): Remove.
2631 (_Build_FUN): New class template to define a single FUN overload,
2632 with specializations to prevent unwanted conversions, as per P0608R3.
2633 (_Build_FUNs): New class template to build an overload set of FUN.
2634 (_FUN_type): New alias template to perform overload resolution.
2635 (__accepted_type): Use integer_constant base for failure case. Use
2636 _FUN_type for successful case.
2637 (variant::__accepted_index): Use _Tp instead of _Tp&&.
2638 (variant::variant(_Tp&&)): Likewise.
2639 (variant::operator=(_Tp&&)): Likewise.
2641 * include/std/variant (_Variant_storage<false, _Types...>::_M_reset):
2642 Replace raw visitation with a runtime check for the valueless state
2643 and a non-raw visitor.
2644 (_Variant_storage<false, _Types...>::_M_reset_impl): Remove.
2645 (variant::index()): Remove branch.
2646 (variant::swap(variant&)): Use valueless_by_exception() instead of
2647 comparing the index to variant_npos, and add likelihood attribute.
2649 * include/bits/hashtable_policy.h (_Equal_helper): Remove.
2650 (_Hashtable_base::_Equal_hash_code): Define new class template.
2651 (_Hashtable_base::_M_equals): Use _Equal_hash_code instead of
2654 * include/bits/hashtable_policy.h (_Hashtable_ebo_helper::_S_get):
2655 Replace with _M_get non-static member function.
2656 (_Hashtable_ebo_helper::_S_cget): Replace with _M_cget non-static
2658 (_Hash_code_base, _Local_iterator_base, _Hashtable_base):
2659 (_Hashtable_alloc): Adjust to use non-static members of EBO helper.
2661 * include/bits/hashtable_policy.h (_Hash_code_base::_M_swap): Use
2662 _S_get accessors for members in EBO helpers.
2663 (_Hash_code_base::_M_extract(), _Hash_code_base::_M_ranged_hash())
2664 (_Hash_code_base::_M_h1(), _Hash_code_base::_M_h2()): Remove non-const
2666 (_Hashtable_base::_M_swap): Use _S_get accessors for members in EBO
2668 (_Hashtable_base::_M_eq()): Remove non-const overload.
2670 2019-05-15 Jonathan Wakely <jwakely@redhat.com>
2672 * include/std/variant (visit, visit<R>): Qualify calls to __do_visit.
2674 2019-05-14 Jonathan Wakely <jwakely@redhat.com>
2676 * testsuite/util/testsuite_allocator.h (NullablePointer::operator bool):
2679 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2681 * config/os/solaris/solaris2.10: Move to ...
2682 * config/os/solaris: ... this.
2683 * configure.host (os_include_dir): Adapt.
2684 (abi_baseline_pair): Remove Solaris 10 handling.
2685 * config/abi/post/i386-solaris2.10: Remove.
2686 * config/abi/post/sparc-solaris2.10: Remove.
2687 * config/abi/post/i386-solaris2.11: Rename to ...
2688 * config/abi/post/i386-solaris: ... this.
2689 * config/abi/post/sparc-solaris2.11: Rename to ...
2690 * config/abi/post/sparc-solaris: ... this.
2692 * libsupc++/new_opa.cc [_GLIBCXX_HAVE_MEMALIGN] [__sun]: Remove
2695 * testsuite/ext/enc_filebuf/char/13598.cc: Remove *-*-solaris2.10
2698 2019-05-14 Jonathan Wakely <jwakely@redhat.com>
2700 * include/std/variant (__visit_with_index): Remove typedef.
2701 (__deduce_visit_result): New tag type.
2702 (__raw_visit, __raw_idx_visit): New helper functions for "raw"
2703 visitation of possibly-valueless variants, forwarding to __do_visit
2704 with the relevant tag type.
2705 (_Variant_storage<false, _Types...>::_M_reset_impl): Use __raw_visit
2706 and make lambda return void.
2707 (__variant_construct): Likewise.
2708 (_Copy_assign_base::operator=, _Move_assign_base::operator=): Use
2709 __raw_idx_visit and make lambda return void.
2710 (_Multi_array::__untag_result): Add metafunction to check the function
2711 pointer type for a tag type that dictates the kind of visitation.
2712 (_Multi_array<_Ret(*)(_Visitor, _Variants...), __first, __rest...>):
2713 Use decltype(auto) instead of tagged function pointer type.
2714 (__gen_vtable_impl): Remove bool non-type parameter and unused
2715 _Variant_tuple parameter.
2716 (__gen_vtable_impl::__visit_invoke_impl): Remove.
2717 (__gen_vtable_impl::__do_visit_invoke): Remove.
2718 (__gen_vtable_impl::__do_visit_invoke_r): Remove.
2719 (__gen_vtable_impl::__visit_invoke): Use if-constexpr and __invoke_r
2720 for the visit<R> case, rather than dispatching to separate functions.
2721 (_VARIANT_RELATION_FUNCTION_TEMPLATE): Use __raw_idx_visit and make
2723 (variant::swap): Likewise.
2724 (__do_visit): Replace two non-type template parameters with a single
2725 type parameter, so that the caller must specify the visitor's return
2726 type (or one of the tag types).
2727 (visit): Deduce a return type from the visitor and use the
2728 __deduce_visit_result tag to enforce that all overloads return the
2730 (visit<R>): Call __do_visit<R> with explicit result type.
2731 (__variant_hash_call_base_impl::operator()): Use __raw_visit and make
2734 2019-05-14 Nina Dinka Ranns <dinka.ranns@gmail.com>
2736 nonesuch is insufficiently useless (lwg2996)
2737 * include/std/type_traits (struct __nonesuch): Added private base
2738 class to make __nonesuch not an aggregate and removed deleted default
2740 * include/bits/stl_pair.h (struct __nonesuch_no_braces): Removed.
2741 (operator=(const pair&)): Use __nonesuch instead of
2742 __nonesuch_no_braces.
2743 (operator=(pair&&)): Likewise
2744 * include/std/tuple (operator=(const tuple&)): Use __nonesuch instead
2745 of __nonesuch_no_braces.
2746 (operator=(tuple&&)): Likewise
2747 * include/experimental/type_traits (struct nonesuch): Added private
2748 base class to make nonesuch not an aggregate and removed deleted
2749 default constructor.
2750 * testsuite/20_util/nonesuch/nonesuch.cc: New.
2751 * testsuite/experimental/type_traits/nonesuch.cc: New.
2753 2019-05-14 Jonathan Wakely <jwakely@redhat.com>
2755 * include/bits/std_function.h (_Simple_type_wrapper): Remove.
2756 (_Function_handler): Remove partial specializations for void return
2757 types and pointers to member.
2758 (_Function_handler::_M_manager): Adapt to removal of
2759 _Simple_type_wrapper.
2760 (_Function_handler::_M_invoke): Use __invoke_r instead of __invoke.
2761 * include/std/functional (_Bind_result::__enable_if_void)
2762 (_Bind_result::__disable_if_void): Remove sfinae helpers.
2763 (_Bind_result::__call): Use __invoke_r and remove overloads for void
2765 * include/std/future (__future_base::_Task_state::_M_run)
2766 (__future_base::_Task_state::_M_run_delayed): Use __invoke_r and
2767 change return type of lambda expressions.
2769 * include/bits/invoke.h (__invoke_r): Define new function implementing
2770 the INVOKE<R> pseudo-function.
2771 * testsuite/20_util/function_objects/invoke/1.cc: Add more tests.
2772 * testsuite/20_util/function_objects/invoke/2.cc: New test.
2774 * include/std/type_traits (__is_nt_convertible_helper): Define it
2775 unconditionally, not only for C++20.
2776 (__is_nothrow_convertible): Define internal trait for use in C++11.
2777 (__is_nt_invocable_impl: Fix by using __is_nothrow_convertible.
2778 (is_invocable_r_v, is_nothrow_invocable_r_v): Add missing parameter.
2779 * testsuite/20_util/is_nothrow_convertible/value_ext.cc: New test.
2780 * testsuite/20_util/is_nothrow_convertible/value.cc: Check with type
2781 that has nothrow explicit conversion but potentially-throwing implicit
2783 * testsuite/20_util/is_nothrow_invocable/value.cc: Likewise.
2784 * testsuite/20_util/is_nothrow_invocable/value_ext.cc: Fix helper
2785 function to only consider implicit conversions.
2786 * testsuite/20_util/tuple/cons/noexcept_specs.cc: Add comment.
2788 * include/std/iterator: Include <iosfwd> instead of <istream> and
2791 * include/bits/stl_tree.h (_Rb_tree::erase(const Key*, const Key*)):
2792 Remove unused, non-standard function.
2794 * include/bits/regex.h (match_results::max_size()): Adjust return
2795 value to account for prefix/suffix/unmatched subs.
2796 (match_results::_M_resize(unsigned int)): Use _Base_type::assign to
2797 reset the contained sub matches.
2798 (match_results::_M_establish_failed_match(_Bi_iter)): Add new member
2799 function to set result state following a failed match.
2800 * include/bits/regex.tcc (__regex_algo_impl): Remove loop to set
2801 sub_match states after _M_resize. Use _M_establish_failed_match.
2804 * include/std/thread (thread::_State_impl, thread::_S_make_state):
2805 Replace single _Callable parameter with variadic _Args pack, to
2806 forward them directly to the tuple of decayed copies.
2807 * testsuite/30_threads/thread/cons/69724.cc: New test.
2809 2019-05-14 Nina Dinka Ranns <dinka.ranns@gmail.com>
2811 Inconsistency wrt Allocators in basic_string assignment (LWG2579)
2812 * include/bits/basic_string.h: (operator=(const basic_string&):
2813 Move allocator decision to assign.
2814 (assign(const basic_string&)): Move allocator decision here.
2815 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
2817 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
2820 2019-05-14 Jonathan Wakely <jwakely@redhat.com>
2822 * testsuite/util/testsuite_allocator.h (memory_resource)
2823 (default_resource_mgr): Fix indentation.
2825 * testsuite/20_util/allocator_traits/members/allocate_hint_nonpod.cc:
2826 Use operator-> to access raw pointer member.
2827 * testsuite/23_containers/vector/59829.cc: Likewise.
2828 * testsuite/23_containers/vector/bool/80893.cc: Likewise.
2829 * testsuite/libstdc++-prettyprinters/cxx11.cc: Use NullablePointer.
2830 * testsuite/util/testsuite_allocator.h (NullablePointer): New utility
2832 (PointerBase, PointerBase_void): Derive from NullablePointer and use
2833 its constructors and equality operators. Change converting
2834 constructors to use operator-> to access private member of the other
2836 (PointerBase_void::operator->()): Add, for access to private member.
2837 (operator-(PointerBase, PointerBase)): Change to hidden friend.
2838 (operator==(PointerBase, PointerBase)): Remove.
2839 (operator!=(PointerBase, PointerBase)): Remove.
2841 * python/libstdcxx/v6/printers.py (UniquePointerPrinter.__init__): Do
2842 not assume field called _M_head_impl is the first tuple element.
2843 * testsuite/libstdc++-prettyprinters/compat.cc: Make tuple
2844 implementation more accurate.
2845 * testsuite/libstdc++-prettyprinters/cxx11.cc: Check unique_ptr with
2846 empty pointer type and non-empty deleter.
2848 LWG 2899 - Make is_move_constructible correct for unique_ptr
2849 * include/bits/unique_ptr.h (__uniq_ptr_impl): Add move constructor,
2850 move assignment operator.
2851 (__uniq_ptr_impl::release(), __uniq_ptr_impl::reset(pointer)): Add.
2852 (__uniq_ptr_data): New class template with conditionally deleted
2854 (unique_ptr, unique_ptr<T[], D>): Change type of data member from
2855 __uniq_ptr_impl<T, D> to __uniq_ptr_data<T, D>. Define move
2856 constructor and move assignment operator as defaulted.
2857 (unique_ptr::release(), unique_ptr<T[], D>::release()): Forward to
2858 __uniq_ptr_impl::release().
2859 (unique_ptr::reset(pointer), unique_ptr<T[], D>::reset<U>(U)): Forward
2860 to __uniq_ptr_impl::reset(pointer).
2861 * python/libstdcxx/v6/printers.py (UniquePointerPrinter.__init__):
2862 Check for new __uniq_ptr_data type.
2863 * testsuite/20_util/unique_ptr/dr2899.cc: New test.
2865 2019-05-13 Jonathan Wakely <jwakely@redhat.com>
2867 PR libstdc++/90454.cc path construction from void*
2868 * include/bits/fs_path.h (path::_Path): Use remove_pointer so that
2869 pointers to void are rejected as well as void.
2870 * include/experimental/bits/fs_path.h (path::_Path): Likewise.
2871 * testsuite/27_io/filesystem/path/construct/80762.cc: Also check
2873 * testsuite/experimental/filesystem/path/construct/80762.cc: Likewise.
2875 * doc/xml/manual/policy_data_structures.xml: Comment out stray
2876 <remark> elements. Fix formatting of bibliography references.
2878 2019-05-13 Edward Smith-Rowland <3dw4rd@verizon.net>
2880 * doc/xml/manual/status_cxx2020.xml: Document P0811R3 status.
2882 2019-05-13 Jonathan Wakely <jwakely@redhat.com>
2884 Remove Profile Mode, deprecated since 7.1.0
2885 * doc/Makefile.am: Remove XML file for profile mode docs.
2886 * doc/Makefile.in: Regenerate.
2887 * doc/xml/authors.xml: Remove authors of profile mode docs.
2888 * doc/xml/manual/appendix_contributing.xml: Remove mention of profile
2890 * doc/xml/manual/debug.xml: Likewise.
2891 * doc/xml/manual/evolution.xml: Document removal of profile mode.
2892 * doc/xml/manual/profile_mode.xml: Remove profile mode docs.
2893 * doc/xml/manual/spine.xml: Remove profile mode author credit.
2894 * doc/xml/manual/test.xml: Remove docs for dg-require-profile-mode
2896 * doc/xml/manual/using.xml: Remove docs for profile mode headers and
2898 * doc/html/*: Regenerate.
2899 * include/Makefile.am: Remove profile mode headers.
2900 * include/Makefile.in: Regenerate.
2901 * include/bits/c++config (std::__profile): Remove namespace.
2902 [_GLIBCXX_PROFILE]: Remove checks for macro.
2903 * include/profile/array: Remove.
2904 * include/profile/base.h: Remove.
2905 * include/profile/bitset: Remove.
2906 * include/profile/deque: Remove.
2907 * include/profile/forward_list: Remove.
2908 * include/profile/impl/profiler.h: Remove.
2909 * include/profile/impl/profiler_algos.h: Remove.
2910 * include/profile/impl/profiler_container_size.h: Remove.
2911 * include/profile/impl/profiler_hash_func.h: Remove.
2912 * include/profile/impl/profiler_hashtable_size.h: Remove.
2913 * include/profile/impl/profiler_list_to_slist.h: Remove.
2914 * include/profile/impl/profiler_list_to_vector.h: Remove.
2915 * include/profile/impl/profiler_map_to_unordered_map.h: Remove.
2916 * include/profile/impl/profiler_node.h: Remove.
2917 * include/profile/impl/profiler_state.h: Remove.
2918 * include/profile/impl/profiler_trace.h: Remove.
2919 * include/profile/impl/profiler_vector_size.h: Remove.
2920 * include/profile/impl/profiler_vector_to_list.h: Remove.
2921 * include/profile/iterator_tracker.h: Remove.
2922 * include/profile/list: Remove.
2923 * include/profile/map: Remove.
2924 * include/profile/map.h: Remove.
2925 * include/profile/multimap.h: Remove.
2926 * include/profile/multiset.h: Remove.
2927 * include/profile/ordered_base.h: Remove.
2928 * include/profile/set: Remove.
2929 * include/profile/set.h: Remove.
2930 * include/profile/unordered_base.h: Remove.
2931 * include/profile/unordered_map: Remove.
2932 * include/profile/unordered_set: Remove.
2933 * include/profile/vector: Remove.
2934 * scripts/run_doxygen: Do not process profile mode headers.
2935 * testsuite/23_containers/array/element_access/60497.cc: Don't use
2937 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
2938 Remove dg-skip-if for profile mode.
2939 * testsuite/23_containers/forward_list/capacity/1.cc: Remove
2940 preprocessor check for profile mode.
2941 * testsuite/23_containers/list/capacity/29134.cc: Likewise.
2942 * testsuite/23_containers/map/modifiers/extract.cc: Remove dg-skip-if
2944 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
2946 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
2947 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
2948 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
2949 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
2950 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
2952 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc:
2954 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc:
2956 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
2958 * testsuite/23_containers/vector/bool/capacity/29134.cc: Remove
2959 preprocessor check for profile mode.
2960 * testsuite/23_containers/vector/bool/modifiers/insert/31370.cc:
2962 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
2963 Remove dg-skip-if for profile mode.
2964 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
2965 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
2966 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
2967 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
2968 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
2969 * testsuite/Makefile.am: Remove profile_flags variable and
2970 * testsuite/Makefile.am: Remove profile_flags variable and
2971 check-profile target.
2972 * testsuite/Makefile.in: Regenerate.
2973 * testsuite/ext/profile/all.cc: Remove.
2974 * testsuite/ext/profile/mutex_extensions_neg.cc: Remove.
2975 * testsuite/ext/profile/profiler_algos.cc: Remove.
2976 * testsuite/ext/profile/replace_new.cc: Remove.
2977 * testsuite/ext/throw_allocator/deallocate_global.cc: Remove
2978 preprocessor check for profile mode.
2979 * testsuite/ext/throw_allocator/deallocate_local.cc: Likewise.
2980 * testsuite/lib/libstdc++.exp (check_v3_target_profile_mode): Remove.
2981 (check_v3_target_normal_mode): Do not check for profile mode macro.
2982 * testsuite/libstdc++-prettyprinters/80276.cc: Remove dg-skip-if for
2984 * testsuite/libstdc++-prettyprinters/compat.cc: Likewise.
2985 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
2986 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
2987 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
2988 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
2989 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
2990 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
2991 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
2992 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
2993 * testsuite/libstdc++-prettyprinters/whatis2.cc: Likewise.
2995 Remove array_allocator extension, deprecated since 4.9.0
2996 * doc/xml/manual/allocator.xml: Remove documentation for
2998 * doc/xml/manual/evolution.xml: Document array_allocator removal.
2999 * doc/xml/manual/using.xml: Remove header from documentation.
3000 * include/Makefile.am: Remove <ext/array_allocator.h> header.
3001 * include/Makefile.in: Regenerate.
3002 * include/ext/array_allocator.h: Remove.
3003 * include/precompiled/extc++.h: Do not include removed header.
3004 * testsuite/ext/array_allocator/1.cc: Remove.
3005 * testsuite/ext/array_allocator/2.cc: Remove.
3006 * testsuite/ext/array_allocator/26875.cc: Remove.
3007 * testsuite/ext/array_allocator/3.cc: Remove.
3008 * testsuite/ext/array_allocator/check_deallocate_null.cc: Remove.
3009 * testsuite/ext/array_allocator/check_delete.cc: Remove.
3010 * testsuite/ext/array_allocator/check_new.cc: Remove.
3011 * testsuite/ext/array_allocator/variadic_construct.cc: Remove.
3012 * testsuite/ext/headers.cc: Do not include removed header.
3014 2019-05-11 François Dumont <fdumont@gcc.gnu.org>
3016 * include/bits/stl_bvector.h
3017 (operator==(const _Bit_iterator_base&, const _Bit_iterator_base&)):
3019 (operator<(const _Bit_iterator_base&, const _Bit_iterator_base&)):
3021 (operator!=(const _Bit_iterator_base&, const _Bit_iterator_base&)):
3023 (operator>(const _Bit_iterator_base&, const _Bit_iterator_base&)):
3025 (operator<=(const _Bit_iterator_base&, const _Bit_iterator_base&)):
3027 (operator>=(const _Bit_iterator_base&, const _Bit_iterator_base&)):
3029 (operator-(const _Bit_iterator_base&, const _Bit_iterator_base&)):
3031 (_Bit_iterator::operator+(difference_type)): Likewise and allow NRVO
3033 (_Bit_iterator::operator-(difference_type)): Likewise.
3034 (operator+(ptrdiff_t, const _Bit_iterator&)): Make hidden friend.
3035 (_Bit_const_iterator::operator+(difference_type)): Likewise and allow
3037 (_Bit_const_iterator::operator-(difference_type)): Likewise.
3038 (operator+(ptrdiff_t, const _Bit_const_iterator&)): Make hidden friend.
3040 2019-05-10 Jonathan Wakely <jwakely@redhat.com>
3043 * testsuite/util/thread/all.h: Do not use remove_pointer for
3044 std::thread::native_handle_type.
3047 * include/std/variant (_Variant_storage<false, Types...>::_M_storage())
3048 (_Variant_storage<true, Types...>::_M_reset()))
3049 (_Variant_storage<true, Types...>::_M_storage())): Add noexcept.
3050 (__get_storage): Likewise.
3051 (variant): Add noexcept to friend declarations for __get and
3055 * include/bits/unique_ptr.h (default_delete, default_delete<T[]>):
3056 Use _Require for constraints.
3057 (operator>(nullptr_t, const unique_ptr<T,D>&)): Implement exactly as
3059 (__uniq_ptr_hash): New base class with conditionally-disabled call
3061 (hash<unique_ptr<T,D>>): Derive from __uniq_ptr_hash.
3062 * testsuite/20_util/default_delete/48631_neg.cc: Adjust dg-error line.
3063 * testsuite/20_util/unique_ptr/hash/90388.cc: New test.
3065 * include/bits/shared_ptr.h: Improve docs.
3066 * include/bits/shared_ptr_base.h: Likewise.
3067 * include/bits/stl_uninitialized.h: Likewise.
3068 * include/bits/unique_ptr.h: Likewise.
3069 * libsupc++/new: Likewise.
3071 2019-05-09 François Dumont <fdumont@gcc.gnu.org>
3073 * include/bits/stl_deque.h
3074 (operator==(const _Deque_iterator<>&, const _Deque_iterator<>&)):
3076 (operator!=(const _Deque_iterator<>&, const _Deque_iterator<>&)):
3078 (operator<(const _Deque_iterator<>&, const _Deque_iterator<>&)):
3080 (operator<=(const _Deque_iterator<>&, const _Deque_iterator<>&)):
3082 (operator>(const _Deque_iterator<>&, const _Deque_iterator<>&)):
3084 (operator>=(const _Deque_iterator<>&, const _Deque_iterator<>&)):
3086 (_Deque_iterator<>::operator+(difference_type)): Likewise and allow NRVO
3088 (_Deque_iterator<>::operator-(difference_type)): Likewise.
3090 2019-05-08 François Dumont <fdumont@gcc.gnu.org>
3093 * testsuite/23_containers/unordered_multiset/insert/24061-multiset.cc
3094 (test01): Reserve for number of insertions to avoid rehash during test.
3095 * testsuite/23_containers/unordered_multimap/insert/24061-multimap.cc
3097 * testsuite/23_containers/unordered_multimap/insert/24061-multimap.cc
3102 2019-05-08 Jonathan Wakely <jwakely@redhat.com>
3104 * include/experimental/bits/fs_path.h: Improve docs.
3105 * include/experimental/bits/net.h: Fix wrong header name in comment.
3106 Do not document implementation details.
3107 * include/experimental/netfwd: Fix doxygen grouping.
3109 2019-05-07 Jonathan Wakely <jwakely@redhat.com>
3111 * include/bits/stl_pair.h: Improve docs.
3112 * include/std/tuple: Likewise.
3114 * doc/doxygen/doxygroups.cc (std::literals): Add documentation for
3116 * include/std/chrono: Improve docs.
3117 * include/std/ratio: Do not document implementation details.
3118 * testsuite/20_util/ratio/cons/cons_overflow_neg.cc: Adjust dg-error
3120 * testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Likewise.
3123 * doc/xml/manual/intro.xml: Document DR 2408 and 2465 changes.
3124 * include/std/chrono (__duration_common_type_wrapper): Replace with ...
3125 (__duration_common_type): New helper.
3126 (common_type<chrono::duration<R1, P2>, chrono::duration<R2, P2>>): Use
3127 __duration_common_type.
3128 (__timepoint_common_type_wrapper): Replace with ...
3129 (__timepoint_common_type): New helper.
3130 (common_type<chrono::time_point<C, D2>, chrono::time_point<C, D2>>):
3131 Use __time_point_common_type.
3132 * include/std/type_traits (common_type<>): Define, as per LWG 2408.
3133 (__common_type_impl): If either argument is transformed by decay,
3134 use the common_type of the decayed types.
3135 (__common_type_impl<_Tp, _Up, _Tp, _Up>): If the types are already
3136 decayed, use __do_common_type_impl to get the common_type.
3137 (common_type<_Tp>): Use common_type<_Tp, _Tp>.
3138 (__do_member_type_wrapper, __member_type_wrapper)
3139 (__expanded_common_type_wrapper): Remove.
3140 (__common_type_pack, __common_type_fold): New helpers.
3141 (common_type<_Tp, _Up, _Vp...>): Use new helpers instead of
3142 __member_type_wrapper and __expanded_common_type_wrapper.
3143 * testsuite/20_util/common_type/requirements/explicit_instantiation.cc:
3144 Test zero-length template argument list.
3145 * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc:
3146 Test single argument cases and argument types that should decay.
3147 * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc:
3148 Adjust expected error.
3149 * testsuite/20_util/duration/literals/range_neg.cc: Use zero for
3151 * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise.
3152 * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
3153 * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
3155 * doc/xml/manual/intro.xml: Fix DR 2537 and DR 2566 confusion.
3157 2019-05-01 Nina Dinka Ranns <dinka.ranns@gmail.com>
3159 Make allocator propagation more consistent for
3160 operator+(basic_string) (P1165R1)
3161 * include/bits/basic_string.h
3162 (operator+(basic_string&&, basic_string&&): Changed resulting
3163 allocator to always be the one from the first parameter.
3164 * include/bits/basic_string.tcc
3165 (operator+(const _CharT*, const basic_string&)): Changed
3166 resulting allocator to be SOCCC on the second parameter's allocator.
3167 (operator+(_CharT, const basic_string&)): Likewise.
3168 * testsuite/21_strings/basic_string/allocator/char/operator_plus.cc:
3170 * testsuite/21_strings/basic_string/allocator/wchar_t/operator_plus.cc:
3173 2019-05-07 Jonathan Wakely <jwakely@redhat.com>
3175 * include/bits/regex.h: Improve docs.
3176 * include/bits/regex.tcc: Do not document implementation details.
3178 * testsuite/19_diagnostics/error_code/hash.cc: New test.
3180 2019-05-06 François Dumont <fdumont@gcc.gnu.org>
3182 * python/libstdcxx/v6/printers.py (add_one_template_type_printer):
3183 Add type printer for container types in std::__debug namespace.
3184 * testsuite/lib/gdb-test.exp (whatis-regexp-test): New.
3185 (gdb-tests): Use distinct parameters for the type of test and use of
3187 (gdb-test): Check for regex test even if 'whatis' test.
3188 * testsuite/libstdc++-prettyprinters/80276.cc: Adapt for _GLIBCXX_DEBUG
3190 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
3191 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
3192 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
3193 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
3194 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
3195 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
3196 * testsuite/libstdc++-prettyprinters/whatis2.cc: Likewise.
3198 2019-05-04 Jonathan Wakely <jwakely@redhat.com>
3200 * include/std/system_error (error_category): Fix comment.
3203 * src/c++17/fs_ops.cc (absolute(const path&)): Report an error if the
3204 argument is an empty path.
3205 (absolute(const path&, error_code&)): Use invalid_argument as error
3206 code instead of no_such_file_or_directory.
3207 * testsuite/27_io/filesystem/operations/absolute.cc: Check handling
3208 of non-existent paths and empty paths with both overloads of absolute.
3210 * include/std/system_error (error_category, error_code)
3211 (error_condition): Improve docs.
3212 * libsupc++/exception: Add missing @addtogroup Doxygen command.
3213 * libsupc++/exception_ptr.h (exception_ptr): Link equality operators
3214 to class documentation. Suppress documentation for implementation
3216 * libsupc++/nested_exception.h (throw_with_nested, rethrow_if_nested):
3217 Suppress documentation for implementation details.
3219 * include/std/system_error (error_code): Remove friend declaration
3220 for hash<error_code>.
3221 (hash<error_code>::operator()): Use public member functions to access
3223 (hash<error_condition>::operator()): Use address of category, not
3224 its object representation.
3225 * src/c++11/compatibility-c++0x.cc (hash<error_code>::operator()):
3226 Use public member functions to access value and category.
3227 * testsuite/19_diagnostics/error_condition/hash.cc: New test.
3229 2019-05-04 François Dumont <fdumont@gcc.gnu.org>
3231 * include/bits/hashtable.h (_Hashtable<>::rehash): Review comment.
3232 * include/bits/hashtable_policy.h
3233 (_Prime_rehash_policy::_M_bkt_for_elements): Use __builtin_ceill.
3234 (_Power2_rehash_policy::_M_bkt_for_elements): Likewise.
3235 (_Power2_rehash_policy::_M_next_bkt): Enforce returning a result not
3236 smaller than input value rather than always greater. Preserve
3237 _M_next_resize if called with 0 input. Use __builtin_floorl.
3238 (_Power2_rehash_policy::_M_need_rehash): Rehash only if number of
3239 elements + number of insertions is greater than _M_next_resize. Start
3240 with 11 buckets if not told otherwise. Use __builtin_floorl.
3241 (_Rehash_base<>::reserve): Use rehash policy _M_bkt_for_elements.
3242 * src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt):
3243 Preserve _M_next_resize if called with 0 input. Use __builtin_floorl.
3244 (_Prime_rehash_policy::_M_need_rehash): Start with 11 buckets if not
3245 told otherwise. Use __builtin_floorl.
3246 * testsuite/23_containers/unordered_set/hash_policy/71181.cc: Adapt test
3247 to also validate _Power2_rehash_policy.
3248 * testsuite/23_containers/unordered_set/hash_policy/power2_rehash.cc:
3251 2019-05-03 Jonathan Wakely <jwakely@redhat.com>
3254 * testsuite/26_numerics/complex/proj.cc: Don't assume <cmath> defines
3258 * include/ext/numeric_traits.h (__glibcxx_min): Avoid integer
3259 overflow warning with -Wpedantic -Wsystem-headers.
3261 2019-05-02 Jonathan Wakely <jwakely@redhat.com>
3264 * include/bits/c++config (_GLIBCXX_NOEXCEPT_IF): Use variadic macro.
3265 * include/bits/move.h (swap): Remove extra parentheses.
3267 * include/experimental/bits/lfts_config.h: Improve doc markup.
3268 * include/experimental/optional: Improve docs.
3269 (_Has_addressof_mem, _Has_addressof_free, _Has_addressof)
3270 (__constexpr_addressof): Remove.
3271 (optional::operator->()): Use std::__addressof().
3272 * include/std/optional (optional::operator->()): Adjust whitespace.
3273 * testsuite/experimental/optional/constexpr/observers/2.cc: Check
3274 that operator-> is still constexpr with overloaded operator&. Change
3275 to compile-only test.
3276 * testsuite/experimental/optional/constexpr/observers/3.cc: Change to
3279 * include/bits/shared_ptr.h: Improve docs.
3280 * include/bits/shared_ptr_atomic.h: Likewise.
3281 * include/bits/unique_ptr.h: Likewise. Adjust whitespace.
3283 * include/bits/basic_string.h: Fix iterator/index confusion in
3285 * include/bits/range_access.h: Fix Doxygen warnings.
3286 * include/bits/refwrap.h: Do not document implementation details.
3287 (ref, cref): Group docs with reference_wrapper.
3288 * include/std/fstream: Fix Doxygen markup.
3289 * libsupc++/initializer_list (begin, end): Group docs with
3292 * doc/doxygen/user.cfg.in: Set MARKDOWN_SUPPORT=YES.
3294 * include/bits/unique_lock.h: Fix/improve doxygen markup.
3295 * include/std/mutex: Likewise.
3296 * include/std/shared_mutex: Likewise.
3298 * include/bits/fs_dir.h: Fix/improve doxygen markup.
3299 * include/bits/fs_fwd.h: Likewise.
3300 * include/bits/fs_ops.h: Likewise.
3301 * include/bits/fs_path.h: Likewise.
3302 * include/std/filesystem: Likewise.
3304 * include/experimental/bits/net.h: Fix/improve doxygen markup.
3305 * include/experimental/buffer: Likewise.
3306 * include/experimental/executor: Likewise.
3307 * include/experimental/internet: Likewise.
3308 * include/experimental/io_context: Likewise.
3309 * include/experimental/net: Likewise.
3310 * include/experimental/netfwd: Likewise.
3311 * include/experimental/socket: Likewise.
3312 * include/experimental/timer: Likewise.
3314 * doc/doxygen/doxygroups.cc: Move description of experimental group
3316 * include/experimental/algorithm: Add to libfund-ts doc group.
3317 * include/experimental/any: Likewise. Do not document implementation
3319 * include/experimental/array: Add to libfund-ts doc group.
3320 * include/experimental/bits/lfts_config.h: Define libfund-ts doc group
3321 for Library Fundamentals.
3322 * include/experimental/chrono: Add to libfund-ts doc group.
3323 * include/experimental/deque: Likewise.
3324 * include/experimental/forward_list: Likewise.
3325 * include/experimental/functional: Likewise.
3326 * include/experimental/iterator: Likewise.
3327 * include/experimental/list: Likewise.
3328 * include/experimental/map: Likewise.
3329 * include/experimental/memory: Likewise.
3330 * include/experimental/memory_resource: Likewise. Improve docs.
3332 * include/experimental/numeric: Add to libfund-ts doc group.
3333 * include/experimental/optional: Likewise.
3334 * include/experimental/propagate_const: Likewise.
3335 * include/experimental/random: Likewise.
3336 * include/experimental/ratio: Likewise.
3337 * include/experimental/regex: Likewise.
3338 * include/experimental/set: Likewise.
3339 * include/experimental/source_location: Likewise.
3340 * include/experimental/string: Likewise.
3341 * include/experimental/string_view: Likewise.
3342 * include/experimental/system_error: Likewise.
3343 * include/experimental/tuple: Likewise.
3344 * include/experimental/type_traits: Likewise.
3345 * include/experimental/unordered_map: Likewise.
3346 * include/experimental/unordered_set: Likewise.
3347 * include/experimental/utility: Likewise.
3348 * include/experimental/vector: Likewise.
3349 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
3350 * testsuite/experimental/array/neg.cc: Adjust dg-error.
3351 * testsuite/experimental/propagate_const/assignment/move_neg.cc:
3353 * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
3354 * testsuite/experimental/propagate_const/requirements2.cc: Likewise.
3355 * testsuite/experimental/propagate_const/requirements3.cc: Likewise.
3356 * testsuite/experimental/propagate_const/requirements4.cc: Likewise.
3357 * testsuite/experimental/propagate_const/requirements5.cc: Likewise.
3359 * include/experimental/bits/fs_dir.h: Fix Doxygen markup.
3360 * include/experimental/bits/fs_fwd.h: Improve docs.
3361 * include/experimental/bits/fs_ops.h: fix Doxygen markup.
3362 * include/experimental/bits/fs_path.h: Likewise.
3363 (path, filesystem_error, u8path): Improve docs.
3364 * include/experimental/filesystem: Link to docs for TS.
3366 * config/allocator/new_allocator_base.h (__allocator_base): Add
3367 workaround for Doxygen bug #6945.
3368 * include/std/memory: Improve docs. Define group for pointer safety.
3369 * include/std/scoped_allocator: Improve docs. Use "undocumented"
3370 conditional to suppress documentation for implementation details.
3372 * include/bits/specfun.h: Improve docs.
3373 * include/tr1/cmath: Likewise. Fix nesting of preprocessor conditions
3376 * doc/doxygen/doxygroups.cc (std::tr2, std::__gnu_cxx): Improve docs.
3377 (std::experimental): Add docs.
3378 * doc/doxygen/user.cfg.in (PREDEFINED): Expand macros for __cxx11
3379 namespace to nothing when generating docs.
3380 * include/bits/regex_constants.h (std::regex_constants): Improve docs.
3381 * include/std/chrono (std::chrono): Likewise.
3382 * include/std/functional (std::placeholders): Likewise.
3383 * include/std/thread (std::this_thread): Likewise.
3385 * include/parallel/settings.h: Fix Doxygen markup.
3387 * include/ext/pb_ds/detail/bin_search_tree_/*_imps.hpp: Do not define
3388 anything unless PB_DS_CLASS_C_DEC is defined.
3389 * include/ext/pb_ds/detail/binary_heap_/*_imps.hpp: Likewise.
3390 * include/ext/pb_ds/detail/binomial_heap_/*_imps.hpp: Likewise.
3391 * include/ext/pb_ds/detail/binomial_heap_base_/*_imps.hpp: Likewise.
3392 * include/ext/pb_ds/detail/cc_hash_table_map_/*_imps.hpp: Likewise.
3393 * include/ext/pb_ds/detail/gp_hash_table_map_/*_imps.hpp: Likewise.
3394 * include/ext/pb_ds/detail/hash_fn/*_imp.hpp: Likewise.
3395 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/*_imps.hpp:
3397 * include/ext/pb_ds/detail/list_update_map_/*_imps.hpp: Likewise.
3398 * include/ext/pb_ds/detail/ov_tree_map_/*_imps.hpp: Likewise.
3399 * include/ext/pb_ds/detail/pairing_heap_/*_imps.hpp: Likewise.
3400 * include/ext/pb_ds/detail/pat_trie_/*_imps.hpp: Likewise.
3401 * include/ext/pb_ds/detail/rb_tree_map_/*_imps.hpp: Likewise.
3402 * include/ext/pb_ds/detail/rc_binomial_heap_/*_imps.hpp: Likewise.
3403 * include/ext/pb_ds/detail/resize_policy*_imp.hpp: Likewise.
3404 * include/ext/pb_ds/detail/splay_tree_/*_imps.hpp: Likewise.
3405 * include/ext/pb_ds/detail/thin_heap_/*_imps.hpp: Likewise.
3406 * include/ext/pb_ds/detail/trie_policy*_imp.hpp: Likewise.
3407 * include/ext/pb_ds/detail/unordered_iterator/const_iterator.hpp:
3409 * include/ext/pb_ds/detail/unordered_iterator/iterator.hpp: Likewise.
3410 * include/ext/pb_ds/detail/unordered_iterator/point_const_iterator.hpp:
3412 * include/ext/pb_ds/detail/unordered_iterator/point_iterator.hpp:
3415 * doc/doxygen/user.cfg.in: Regenerate with Doxygen 1.8.14 and set
3416 GROUP_NESTED_COMPOUNDS=YES and SORT_BY_SCOPE_NAME=NO. Add various
3417 _GLIBCXX_xxx macros and __attribute__(X) to PREDEFINED macros that
3420 2019-05-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3422 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: Regenerate.
3423 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: Likewise.
3424 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: Likewise.
3425 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: Likewise.
3426 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: Likewise.
3427 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
3429 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: Likewise.
3430 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
3433 2019-05-01 Jonathan Wakely <jwakely@redhat.com>
3436 * include/std/complex (__complex_proj): Return parameter unchanged.
3437 [_GLIBCXX_USE_C99_COMPLEX] (__complex_proj): Change overloads for
3438 floating-point types to take std::complex arguments.
3439 [_GLIBCXX_USE_C99_MATH_TR1] (__complex_proj): Add overloads for
3440 floating-point types.
3441 * testsuite/26_numerics/complex/proj.cc: New test.
3443 2019-04-30 Jakub Jelinek <jakub@redhat.com>
3445 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Change _Lock_policyE2 exports
3446 to _Lock_policyE[012].
3447 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
3449 2019-04-30 Jonathan Wakely <jwakely@redhat.com>
3451 * testsuite/27_io/filesystem/path/decompose/root_path.cc: Remove
3452 macros accidentally left in.
3453 * testsuite/27_io/filesystem/path/native/string-char8_t.cc: Remove
3454 unnecessary -lstdc++fs option. Fix test for mingw.
3455 * testsuite/experimental/filesystem/path/native/string-char8_t.cc:
3458 2019-04-30 Jakub Jelinek <jakub@redhat.com>
3460 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
3462 2019-04-29 Jonathan Wakely <jwakely@redhat.com>
3464 * include/bits/stl_algo.h (generate_n): Adjust doxygen comment.
3466 * include/bits/move.h (swap(T&, T&), swap(T (&)[N], T (&)[N])): Use
3467 _GLIBCXX_NOEXCEPT_IF to simplify declarations.
3470 * src/c++11/shared_ptr.cc (get_mutex): Align pool mutexes to 64 bytes.
3472 * include/bits/stl_bvector.h (vector<bool>::empty()): Add nodiscard
3475 * include/bits/stl_iterator_base_types.h (_Iter_base): Remove unused
3476 class template and partial specialization.
3479 * include/bits/stl_algo.h (generate_n): Convert _Size parameter to
3481 * include/bits/stl_algobase.h (__size_to_integer): New overloaded
3482 functions to convert a value to an integral type.
3483 (__fill_n_a, __fill_n_a): Assert that __n is already an integral type.
3484 (fill_n): Convert _Size parameter to an integral type.
3485 * testsuite/25_algorithms/fill_n/87982.cc: New test.
3486 * testsuite/25_algorithms/fill_n/87982_neg.cc: New test.
3487 * testsuite/25_algorithms/fill_n/dr426.cc: New test.
3488 * testsuite/25_algorithms/generate_n/87982.cc: New test.
3489 * testsuite/25_algorithms/generate_n/87982_neg.cc: New test.
3490 * testsuite/25_algorithms/generate_n/dr426.cc: New test.
3492 2019-04-28 Nina Dinka Ranns <dinka.ranns@gmail.com>
3494 Adding noexcept-specification on tuple constructors (LWG 2899)
3495 * libstdc++-v3/include/std/tuple:
3496 (tuple()): Add noexcept-specification.
3497 (tuple(const _Elements&...)): Likewise
3498 (tuple(_UElements&&...)): Likewise
3499 (tuple(const tuple<_UElements...>&)): Likewise
3500 (tuple(tuple<_UElements...>&&)): Likewise
3501 (tuple(const _T1&, const _T2&)): Likewise
3502 (tuple(_U1&&, _U2&&)): Likewise
3503 (tuple(const tuple<_U1, _U2>&): Likewise
3504 (tuple(tuple<_U1, _U2>&&): Likewise
3505 (tuple(const pair<_U1, _U2>&): Likewise
3506 (tuple(pair<_U1, _U2>&&): Likewise
3507 * libstdc++-v3/testsuite/20_util/tuple/cons/noexcept_specs.cc: New
3509 2019-04-27 Marc Glisse <marc.glisse@inria.fr>
3512 * include/bits/stl_uninitialized.h (__relocate_object_a): Mark the
3513 arguments with __restrict.
3515 2019-04-26 H.J. Lu <hongjiu.lu@intel.com>
3517 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
3519 2019-04-26 Jonathan Wakely <jwakely@redhat.com>
3521 * include/experimental/bits/fs_path.h
3522 (path::_S_convert_loc<_InputIterator>): Create const std::string to
3523 avoid redundant call to _S_convert_loc with non-const pointers.
3525 * testsuite/20_util/variant/run.cc: Use a new Hashable type to test
3526 hashing, because pmr::string depends on _GLIBCXX_USE_CXX11_ABI==1.
3527 * testsuite/21_strings/basic_string/hash/hash.cc
3528 [!_GLIBCXX_USE_CXX11_ABI]: Don't test pmr strings.
3529 * testsuite/21_strings/basic_string/hash/hash_char8_t.cc
3530 [!_GLIBCXX_USE_CXX11_ABI]: Likewise.
3532 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Replace wildcard that matches
3533 wstring::_M_replace_dispatch with more specific patterns.
3534 * include/bits/fs_path.h (path::_S_convert_loc<_InputIterator>):
3535 Create const std::string to avoid redundant call to _S_convert_loc
3536 with non-const pointers.
3537 * include/bits/locale_conv.h (__do_str_codecvt): Use if-constexpr to
3538 avoid unnecessary basic_string::assign instantiations.
3540 * include/std/memory (__uses_alloc_args): Add string-literal to
3541 static_assert, to match the one in __uses_alloc.
3542 [__cpp_concepts] (_Std_pair): Use C++2a syntax for concept.
3543 * testsuite/20_util/polymorphic_allocator/construct_c++2a.cc: Check
3544 for recursive uses-allocator construction of nested pairs.
3545 * testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc:: Add
3548 2019-04-26 Jakub Jelinek <jakub@redhat.com>
3550 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Update.
3551 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
3552 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
3553 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
3555 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
3556 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
3557 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
3558 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
3559 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
3560 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
3561 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
3563 2019-04-25 Jonathan Wakely <jwakely@redhat.com>
3566 * doc/xml/manual/status_cxx2020.xml: Amend P0591R4 status.
3567 * include/std/scoped_allocator [__cplusplus > 201703L]
3568 (scoped_allocator_adaptor::construct): Define in terms of
3569 uses_allocator_construction_args, as per P0591R4.
3570 * testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc: New test.
3571 * testsuite/util/testsuite_allocator.h: Remove name of unused
3574 2019-04-24 Jonathan Wakely <jwakely@redhat.com>
3576 * doc/xml/manual/status_cxx2017.xml: Document P0024R2 status.
3577 * doc/html/*: Regenerate.
3579 * include/bits/fs_path.h (operator<, operator<=, operator>)
3580 (operator>=, operator==, operator!=): Make hidden friends, as per
3582 * testsuite/27_io/filesystem/path/native/string-char8_t.cc: Fix
3583 string type in test.
3584 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
3586 * include/std/any (any::any(ValueType&&)): Use __and_v.
3587 * include/std/numeric (midpoint(T, T, T), midpoint(T*, T*, T*)):
3590 * include/std/tuple (apply): Use remove_reference_t instead of decay_t
3592 * include/std/type_traits (__result_of_memfun): Use remove_reference
3593 instead of __remove_cvref_t and remove redundant is_same check.
3594 (__inv_unwrap): Use __remove_cvref_t instead of decay_t.
3596 * include/experimental/string_view (basic_string_view::pointer)
3597 (basic_string_view::reference): Fix to refer to non-const value_type.
3598 * include/bits/basic_string.h (basic_string): Use __sv_check and
3599 __sv_limit instead of basic_string_view::_M_check and
3600 basic_string_view::_M_limit.
3601 * include/std/string_view (__sv_check, __sv_limit): New
3602 helper functions to replace basic_string_view::_M_check and
3603 basic_string_view::_M_limit.
3604 (basic_string_view): Add static assertions to enforce ill-formed
3605 requirement for traits_type::char_type from P1148R0, and to enforce
3606 required properties of char-like types.
3607 (basic_string_view::pointer, basic_string_view::reference): Fix to
3608 refer to non-const value_type.
3609 (basic_string_view::operator[], basic_string_view::at)
3610 (basic_string_view::front, basic_string_view::back)
3611 (basic_string_view::data): Use const_reference and const_pointer
3612 typedefs for return types.
3613 (basic_string_view::_M_check, basic_string_view::_M_limit): Remove.
3614 (hash<wstring_view>): Fix argument_type typedef.
3615 * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
3616 char/1.cc: Fix expected return type of basic_string_view::data().
3617 * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
3618 wchar_t/1.cc: Likewise.
3619 * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
3620 char/1.cc: Likewise.
3621 * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
3622 wchar_t/1.cc: Likewise.
3623 * testsuite/21_strings/basic_string_view/requirements/traits_neg.cc:
3625 * testsuite/21_strings/basic_string_view/requirements/typedefs.cc:
3626 Check reference and pointer typedefs.
3627 * testsuite/experimental/string_view/requirements/typedefs.cc:
3629 * testsuite/experimental/string_view/modifiers/remove_prefix/char/1.cc:
3630 Fix expected return type of basic_string_view::data().
3631 * testsuite/experimental/string_view/modifiers/remove_prefix/wchar_t/
3633 * testsuite/experimental/string_view/modifiers/remove_suffix/char/1.cc:
3635 * testsuite/experimental/string_view/modifiers/remove_suffix/wchar_t/
3639 * include/std/any (__any_caster): Use remove_cv_t instead of decay_t.
3640 Avoid a runtime check for types that can never be stored in std::any.
3641 * testsuite/20_util/any/misc/any_cast.cc: Test std::any_cast with
3644 PR libstdc++/90220 (partial)
3645 * include/std/any (any_cast<T>(any*), any_cast<T>(const any*)): Do
3646 not attempt ill-formed static_cast to pointers to non-object types.
3647 * testsuite/20_util/any/misc/any_cast.cc: Test std::any_cast with
3650 * testsuite/20_util/variant/run.cc: Catch exception by reference to
3651 prevent -Wcatch-value warning.
3653 * include/std/variant (__variant_construct): Use template parameter
3654 type instead of equivalent decltype-specifier.
3655 (_Move_ctor_base<false, Types...>::_Move_ctor_base(_Move_ctor_base&&)):
3656 Replace forward with move.
3657 (_Move_ctor_base<false, Types...>::_M_destructive_move)
3658 (_Move_ctor_base<false, Types...>::_M_destructive_copy)
3659 (_Move_ctor_base<true, Types...>::_M_destructive_move)
3660 (_Move_ctor_base<true, Types...>::_M_destructive_copy): Only set the
3661 index after construction succeeds.
3662 (_Copy_assign_base<false, Types...>::operator=): Remove redundant
3663 if-constexpr checks that are always true. Use __remove_cvref_t instead
3664 of remove_reference so that is_nothrow_move_constructible check
3665 doesn't use a const rvalue parameter. In the potentially-throwing case
3666 construct a temporary and move assign it, as per LWG 2904.
3667 (_Move_assign_base<false, Types...>::operator=): Remove redundant
3668 if-constexpr checks that are always true. Use emplace as per LWG 2904.
3669 (variant::operator=(T&&)): Only use emplace conditionally, otherwise
3670 construct a temporary and move assign from it, as per LWG 2904.
3671 * testsuite/20_util/variant/exception_safety.cc: Check that
3672 assignment operators have strong exception safety guarantee.
3674 2019-04-23 Thomas Rodgers <trodgers@redhat.com>
3676 Document PSTL linker flags
3678 * doc/xml/manual/using.xml: Add PSTL linker flags to table 3.1.
3680 2019-04-23 Jonathan Wakely <jwakely@redhat.com>
3682 * include/std/variant (__detail::__variant::_Traits): Make
3683 _S_trivial_copy_assign depend on _S_trivial_copy_ctor and make
3684 _S_trivial_move_assign depend on _S_trivial_move_ctor, as per
3686 (__detail::__variant::_Copy_assign_alias): Only depend on
3687 _S_trivial_copy_assign, which subsumes _S_trivial_copy_ctor now.
3688 * testsuite/20_util/variant/compile.cc: Correct checks for trivial
3689 move assignment operators.
3692 * include/std/variant (variant::__not_self): New helper for the
3693 is_same_v<remove_cvref_t<T>, variant>==false constraints.
3694 (variant::__to_type_impl): Remove.
3695 (variant::__to_type): Add default argument to check pack size, instead
3696 of using __to_type_impl.
3697 (variant::__accepted_type): Add default argument using __not_self.
3698 (variant::__is_in_place_tag, variant::__not_in_place_tag): New helpers
3699 for variant(T&&) constructor constraint.
3700 (variant::variant(T&&)): Use __not_in_place_tag in constraints.
3701 Extract __accepted_type into a named template parameter for reuse in
3702 other constraints and in the exception specification.
3703 (variant::variant(in_place_type_t<T>, Args&&...))
3704 (variant::variant(in_place_type_t<T>, initializer_list<U>, Args&&...))
3705 (variant::variant(in_place_index_t<T>, Args&&...))
3706 (variant::variant(in_place_index_t<T>, initializer_list<U>, Args&&...))
3707 (variant::operator=T&&)): Remove redundant && from trait arguments.
3708 * testsuite/20_util/variant/compile.cc: Check variant(T&&) constructor
3709 isn't used for in_place_type or in_place_index arguments.
3711 * include/std/type_traits (unwrap_reference_t): Define for C++2a.
3712 (unwrap_ref_decay): Remove inheritance from unwrap_reference.
3713 * testsuite/20_util/unwrap_reference/1.cc: Adjust test to use alias.
3715 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3716 Bernd Edlinger <bernd.edlinger@hotmail.de>
3717 Jakub Jelinek <jakub@redhat.com>
3720 * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Add
3721 general-regs-only target attribute for ARM.
3723 2019-04-23 Jonathan Wakely <jwakely@redhat.com>
3726 * include/bits/basic_string.h (_Never_valueless_alt): Make partial
3727 specialization also depend on is_nothrow_move_constructible.
3728 * include/std/variant (__detail::__variant::__never_valueless()):
3729 Only true if the variant would have a move assignment operator.
3730 (__detail::__variant::_Variant_storage<false, T...>::_M_valid()):
3731 Check __never_valueless<T...>().
3732 (variant::emplace): Only perform non-throwing move assignments
3733 for never-valueless alternatives if the variant has a move assignment
3735 * testsuite/20_util/variant/compile.cc: Check that never-valueless
3736 types can be emplaced into non-assignable variants.
3737 * testsuite/20_util/variant/run.cc: Check that never-valueless types
3738 don't get copied when emplaced into non-assignable variants.
3740 * include/std/variant (__detail::__variant::__ref_cast): Remove
3742 (__detail::__variant::_Uninitialized::_M_get)
3743 (__detail::__variant::__get)
3744 (__gen_vtable_impl::__element_by_index_or_cookie): Add noexcept.
3746 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
3748 * testsuite/17_intro/headers/c++1998/charset.cc: Skip for Darwin8
3750 * testsuite/17_intro/headers/c++2011/charset.cc: Likewise.
3751 * testsuite/17_intro/headers/c++2014/charset.cc: Likewise.
3752 * testsuite/17_intro/headers/c++2017/charset.cc: Likewise.
3753 * testsuite/17_intro/headers/c++2020/charset.cc: Likewise.
3755 2019-04-20 Thomas Rodgers <trodgers@redhat.com>
3757 Delegate PSTL configuration to pstl/pstl_config.h
3759 * include/bits/c++config: Remove explicit PSTL configuration
3760 macros and use definitions from <pstl/pstl_config.h>.
3762 2019-04-20 Thomas Rodgers <trodgers@redhat.com>
3764 Cleanup algorithm implementations
3765 * include/pstl/glue_algorithm_impl.h (stable_sort): Forward
3767 (mismatch): Forward execution policy.
3768 (equal): Qualify call to std::equal().
3769 (partial_sort): Forward execution policy.
3770 (inplace_merge): Forward execution policy.
3772 2019-04-19 Thomas Rodgers <trodgers@redhat.com>
3774 Improve implementation of parallel equal()
3775 * include/pstl/algorithm_impl.h
3776 (__internal::__brick_equal): use "4 iterator" version of
3778 (__internal::__brick_equal): use simd for random access
3779 iterators on unsequenced execution policies.
3780 (__internal::__pattern_equal): add "4 iterator" version
3781 (__internal::__pattern_equal): dispatch to simd __brick_equal
3782 for vector-only execution policies.
3783 (__internal::__pattern_equal): dispatch to __parallel_or for
3784 parallel execution policies.
3785 * include/pstl/glue_algorithm_impl.h
3786 (std::equal): dispatch to "4 iterator" version of
3787 __internal::__pattern_equal().
3789 2019-04-17 Jonathan Wakely <jwakely@redhat.com>
3792 * include/bits/forward_list.h (operator==): Do not use operator!= to
3794 (forward_list<T, A>::sort(Comp)): When elements are equal take the one
3795 earlier in the list, so that sort is stable.
3796 * testsuite/23_containers/forward_list/operations/90105.cc: New test.
3797 * testsuite/23_containers/forward_list/comparable.cc: Test with
3798 types that meet the minimum EqualityComparable and LessThanComparable
3799 requirements. Remove irrelevant comment.
3801 * include/std/variant (__detail::__variant::_Traits::_S_copy_assign):
3802 Do not depend on whether all alternative types are move constructible.
3803 (__detail::__variant::_Copy_assign_base::operator=): Remove cv-quals
3804 from the operand when deciding whether to perform the assignment.
3805 * testsuite/20_util/variant/compile.cc (DeletedMoves): Define type
3806 with deleted move constructor and deleted move assignment operator.
3807 (default_ctor, copy_ctor, move_ctor, copy_assign, move_assign): Check
3808 behaviour of variants with DeletedMoves as an alternative.
3809 * testsuite/20_util/variant/run.cc (DeletedMoves): Define same type.
3810 (move_ctor, move_assign): Check that moving a variant with a
3811 DeletedMoves alternative falls back to copying instead of moving.
3813 * testsuite/20_util/variant/compile.cc: Remove empty string literals
3814 from static_assert declarations.
3816 * testsuite/20_util/variant/compile.cc (MoveCtorOnly): Fix type to
3817 actually match its name.
3818 (MoveCtorAndSwapOnly): Define new type that adds swap to MoveCtorOnly.
3819 (test_swap()): Fix result for MoveCtorOnly and check
3820 MoveCtorAndSwapOnly.
3822 * include/std/optional (optional::value_or(U&&) &&): Add missing
3823 constexpr specifier.
3824 * testsuite/20_util/optional/constexpr/observers/4.cc: Check value_or
3825 for disengaged optionals and rvalue optionals.
3826 * testsuite/20_util/optional/observers/4.cc: Likewise.
3828 2019-04-12 Thomas Rodgers <trodgers@redhat.com>
3830 * include/pstl/algorithm_impl.h: Uglify identfiers.
3831 * include/pstl/numeric_impl.h: Uglify identfiers.
3832 * include/pstl/parallel_backend_tbb.h: Uglify identfiers.
3834 2019-04-11 Thomas Rodgers <trodgers@redhat.com>
3836 * include/bits/c++config:
3837 Add definition for __PSTL_ASSERT.
3838 Add definition for __PSTL_ASSERT_MSG.
3839 * include/pstl/algorithm_impl.h: Replace use of assert().
3840 * include/pstl/numeric_impl.h: Replace use of assert().
3841 * include/pstl/parallel_backend_tbb.h:
3842 Replace use of assert().
3843 Replace use of __TBB_ASSERT().
3844 * include/pstl/parallel_backend_utils.h: Replace use of assert().
3846 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
3849 * src/c++17/memory_resource.cc
3850 (monotonic_buffer_resource::_Chunk::allocate): Increase alignment if
3851 needed to allow placing a _Chunk at the end of the buffer.
3852 (monotonic_buffer_resource::_M_new_buffer): Remove static_assert.
3854 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
3856 * doc/xml/faq.xml: Add information about emergency EH pool.
3857 * doc/xml/manual/debug.xml: Update list of memory debugging tools.
3858 Move outdated information on mt_allocator to a separate section.
3859 * doc/xml/manual/evolution.xml: Clarify that GLIBCXX_FORCE_NEW
3860 doesn't affect the default allocator.
3862 * testsuite/lib/libstdc++.exp (check_v3_target_parallel_mode): Fix
3866 * testsuite/20_util/variant/89851.cc: New test.
3868 2019-04-09 Jonathan Wakely <jwakely@redhat.com>
3870 * include/std/variant: Adjust whitespace. Add comments.
3871 (_Multi_array): Leave primary template undefined.
3872 (_Multi_array<_Tp>): Define partial specialization for base case of
3874 (__gen_vtable_impl, __gen_vtable): Remove redundant && from type
3875 which is always a reference.
3876 (__gen_vtable::_S_apply()): Remove function, inline body into
3877 default member initializer.
3878 * testsuite/20_util/variant/visit.cc: Test with noncopyable types.
3880 * include/std/variant (__variant_idx_cookie): Add member type.
3881 (__visitor_result_type): Remove.
3882 (__do_visit): Use invoke_result instead of __visitor_result_type.
3883 * testsuite/20_util/variant/visit.cc: New test.
3886 * include/std/variant (_VARIANT_RELATION_FUNCTION_TEMPLATE): Remove
3888 * testsuite/20_util/variant/90008.cc: New test.
3890 2019-04-09 Thomas Rodgers <trodgers@redhat.com>
3892 * include/pstl/algorithm_impl.h: Add namespace qualification.
3893 * include/pstl/execution_defs.h: Add namespace qualification.
3894 * include/pstl/execution_impl.h: Add namespace qualification.
3895 * include/pstl/numeric_impl.h: Add namespace qualification.
3896 * include/pstl/parallel_backend_tbb.h: Add namespace qualification.
3897 * include/pstl/unseq_backend_simd.h: Add namespace qualification.
3898 * include/pstl/parallel_backend_utils.h: Include <cassert>.
3900 2019-04-08 Ville Voutilainen <ville.voutilainen@gmail.com>
3902 Fix visit<R> for variant.
3903 * include/std/variant (__do_visit): Add a template parameter
3904 for enforcing same return types for visit.
3905 (__gen_vtable_impl): Likewise.
3906 (_S_apply_single_alt): Adjust.
3907 (__visit_invoke_impl): New. Handle casting to void.
3908 (__do_visit_invoke): New. Enforces same return types.
3909 (__do_visit_invoke_r): New. Converts return types.
3910 (__visit_invoke): Adjust.
3911 (__gen_vtable): Add a template parameter for enforcing
3912 same return types for visit.
3913 * testsuite/20_util/variant/visit_r.cc: Add a test for a visitor with
3914 different return types.
3915 * testsuite/20_util/variant/visit_neg.cc: New. Ensures that
3916 visitors with different return types don't accidentally
3917 compile with regular visitation.
3919 2019-04-08 Christophe Lyon <christophe.lyon@linaro.org>
3921 * testsuite/27_io/filesystem/iterators/caching.cc: Add
3922 dg-require-filesystem-ts.
3924 2019-04-05 Jonathan Wakely <jwakely@redhat.com>
3926 * doc/xml/manual/status_cxx2020.xml: Update status.
3927 * include/std/variant (visit<R>): Define for C++2a (P0655R1).
3928 * testsuite/20_util/variant/visit_r.cc: New test.
3930 * include/bits/fs_dir.h (directory_iterator::operator*)
3931 (directory_iterator::operator->): Add noexcept.
3932 (operator==, operator!=): Replace namespace-scope equality operators
3933 for directory iterators with hidden friends.
3936 * config/abi/pre/gnu.ver: Add missing exports.
3937 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Test
3940 * config/abi/pre/gnu.ver: Export new symbols.
3941 * include/bits/fs_dir.h (recursive_directory_iterator::options())
3942 (recursive_directory_iterator::recursion_pending())
3943 (recursive_directory_iterator::disable_recursion_pending()): Remove
3944 inline definitions. Make noexcept.
3945 (recursive_directory_iterator::depth())
3946 (recursive_directory_iterator::operator*())
3947 (recursive_directory_iterator::operator->()): Make noexcept.
3948 (recursive_directory_iterator::_M_options)
3949 (recursive_directory_iterator::_M_pending): Remove data members.
3950 * src/c++17/fs_path.cc (_Dir_stack): Add constructor and data members.
3951 (recursive_directory_iterator::recursive_directory_iterator): Remove
3952 ctor-initializer. Use new constructor for _Dir_stack.
3953 (recursive_directory_iterator::options())
3954 (recursive_directory_iterator::recursion_pending())
3955 (recursive_directory_iterator::disable_recursion_pending()): Add
3956 non-inline definitions.
3957 (recursive_directory_iterator::depth()): Make noexcept.
3958 (recursive_directory_iterator::increment(error_code&))
3959 (recursive_directory_iterator::pop(error_code&)): Adjust to new
3960 location of options and recursion_pending members.
3961 * testsuite/27_io/filesystem/iterators/recursion_pending.cc: New test.
3962 * testsuite/util/testsuite_fs.h (__gnu_test::scoped_file): Add
3963 user-declared move constructor and assignment operator, to make the
3966 * src/c++17/fs_dir.cc (_Dir::advance(bool, error_code&)): Handle
3967 d_type == DT_UNKNOWN immediately.
3968 (_Dir::should_recurse(bool, error_code&)): Remove file_type::unknown
3970 * testsuite/27_io/filesystem/iterators/caching.cc: New test.
3972 * include/bits/fs_path.h (path::operator=(path&&)): Check for self
3974 * src/c++17/fs_path.cc (path::operator=(const path&)): Likewise.
3975 * testsuite/27_io/filesystem/path/assign/copy.cc: Test self
3978 PR libstdc++/87431 (again)
3979 * include/bits/basic_string.h (__variant::_Never_valueless_alt):
3980 Define partial specialization for basic_string.
3981 * include/bits/shared_ptr.h (_Never_valueless_alt): Likewise for
3982 shared_ptr and weak_ptr.
3983 * include/bits/std_function.h (_Never_valueless_alt): Likewise for
3985 * include/bits/stl_vector.h (_Never_valueless_alt): Likewise for
3987 * include/bits/unique_ptr.h (_Never_valueless_alt): Likewise for
3989 * include/debug/vector (_Never_valueless_alt): Likewise for debug
3991 * include/std/any (_Never_valueless_alt): Define explicit
3992 specialization for any.
3993 * include/std/variant (_Never_valueless_alt): Define primary template.
3994 (__never_valueless): Use _Never_valueless_alt instead of
3995 is_trivially_copyable.
3996 (variant::emplace<N>(Args&&...)): Add special case for non-throwing
3997 initializations to avoid try-catch overhead. Add special case for
3998 scalars produced by potentially-throwing conversions. Use
3999 _Never_valueless_alt instead of is_trivially_copyable for the
4000 remaining strong exception-safety cases.
4001 (variant::emplace<N>(initializer_list<U>, Args&&...)): Likewise.
4002 * testsuite/20_util/variant/87431.cc: Run both test functions.
4003 * testsuite/20_util/variant/exception_safety.cc: New test.
4004 * testsuite/20_util/variant/run.cc: Use pmr::string instead of string,
4005 so the variant becomes valueless.
4007 2019-04-03 Jonathan Wakely <jwakely@redhat.com>
4010 * include/std/variant (_Copy_assign_base, _Move_assign_base, variant):
4012 (variant::emplace<_Tp>): Return result of emplace<N> directly.
4014 * include/std/string (__hash_string_base): New class template defining
4015 operator() for hashing strings.
4016 (hash<pmr::string>, hash<pmr::u8string>, hash<pmr::u16string>)
4017 (hash<pmr::u32string>, hash<pmr::wstring>): Define for C++17.
4018 * testsuite/21_strings/basic_string/hash/hash.cc: New test.
4019 * testsuite/21_strings/basic_string/hash/hash_char8_t.cc: New test.
4021 2019-04-01 Ville Voutilainen <ville.voutilainen@gmail.com>
4023 Use single-visitation in variant assignment and swap and relops.
4024 Also use indices instead of types when checking whether
4025 variants hold the same thing.
4026 * include/std/variant (__do_visit): Add a template parameter
4027 for index visitation, invoke with indices if index visitation
4029 (__variant_idx_cookie): New.
4030 (__visit_with_index): Likewise.
4031 (_Copy_assign_base::operator=): Do single-visitation with
4033 (_Move_assign_base::operator=): Likewise.
4034 (_Extra_visit_slot_needed): Adjust.
4035 (__visit_invoke): Call with indices if it's an index visitor.
4036 (relops): Do single-visitation with an index visitor.
4038 (__visitor_result_type): New.
4040 2019-03-30 Eric Botcazou <ebotcazou@adacore.com>
4042 * src/c++17/fs_ops.cc (fs::permissions): Use std::errc::not_supported.
4044 2019-03-28 Ville Voutilainen <ville.voutilainen@gmail.com>
4046 Don't revisit a variant we are already visiting.
4047 * include/std/variant (__variant_construct_single): New.
4048 (__variant_construct): Use it.
4049 (_M_destructive_move): Likewise.
4050 (_M_destructive_copy): Likewise.
4051 (_Copy_assign_base::operator=): Adjust.
4052 (_Move_assign_base::operator=): Likewise.
4055 2019-03-26 Jonathan Wakely <jwakely@redhat.com>
4058 * include/bits/hashtable.h (_Hashtable): Move static assertions to
4059 destructor so they are not evaluated until the _Key type is complete.
4060 * include/bits/stl_tree.h (_Rb_tree): Likewise.
4061 * testsuite/23_containers/set/85965.cc: New test.
4062 * testsuite/23_containers/unordered_set/85965.cc: New test.
4063 * testsuite/23_containers/map/48101_neg.cc: Replace "here" errors
4064 with regexp matching the corresponding _Rb_tree specialization.
4065 * testsuite/23_containers/multimap/48101_neg.cc: Likewise.
4066 * testsuite/23_containers/multiset/48101_neg.cc: Remove "here" error.
4067 * testsuite/23_containers/set/48101_neg.cc: Likewise.
4068 * testsuite/23_containers/unordered_map/48101_neg.cc: Likewise.
4069 * testsuite/23_containers/unordered_multimap/48101_neg.cc: Likewise.
4070 * testsuite/23_containers/unordered_multiset/48101_neg.cc: Likewise.
4071 * testsuite/23_containers/unordered_set/48101_neg.cc: Likewise.
4073 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com>
4076 Fix based on a suggestion by Antony Polukhin.
4077 * include/std/variant (__never_valueless): New.
4079 (_Extra_visit_slot_needed): New.
4080 (_Multi_array): Use it.
4081 (_S_apply_all_alts): Likewise.
4083 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com>
4086 Fix based on a suggestion by Antony Polukhin.
4087 * include/std/variant (__gen_vtable): Don't reserve an
4088 additional table slot, _Multi_array already does that.
4090 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com>
4093 Fix based on a suggestion by Antony Polukhin.
4094 * include/std/variant (__variant_construct): Capture a pointer
4095 to the storage and visit just one variant.
4097 2019-03-22 Jonathan Wakely <jwakely@redhat.com>
4099 * doc/xml/manual/backwards_compatibility.xml: Remove link to
4100 Doxygen-generated pages with unstable URL.
4101 * doc/xml/manual/concurrency_extensions.xml: Likewise.
4102 * doc/xml/manual/extensions.xml: Likewise.
4103 * doc/xml/manual/parallel_mode.xml: Likewise.
4104 * doc/xml/manual/support.xml: Likewise.
4106 * include/bits/stl_algobase.h (__lg): Do arithmetic on type int to
4107 avoid -Wconversion warnings.
4109 2019-03-21 Thomas Rodgers <trodgers@redhat.com>
4111 * include/Makefile.am (std_header): Add ${std_srcdir}/execution.
4112 (pstl_srcdir, pstl_builddir, pstl_headers): New variables.
4113 (allstamped): Add stamp-pstl.
4114 (install-headers): Add ptsl_builddir.
4115 * include/Makefile.in: Regenerate.
4116 * include/bits/c++config: Add pstl configuration.
4117 * include/pstl/LICENSE.txt: New file.
4118 * include/pstl/algorithm_fwd.h: New file.
4119 * include/pstl/algorithm_impl.h: New file.
4120 * include/pstl/execution_defs.h: New file.
4121 * include/pstl/execution_impl.h: New file.
4122 * include/pstl/glue_algorithm_defs.h: New file.
4123 * include/pstl/glue_algorithm_impl.h: New file.
4124 * include/pstl/glue_execution_defs.h: New file.
4125 * include/pstl/glue_memory_defs.h: New file.
4126 * include/pstl/glue_memory_impl.h: New file.
4127 * include/pstl/glue_numeric_defs.h: New file.
4128 * include/pstl/glue_numeric_impl.h: New file.
4129 * include/pstl/memory_impl.h: New file.
4130 * include/pstl/numeric_fwd.h: New file.
4131 * include/pstl/numeric_impl.h: New file.
4132 * include/pstl/parallel_backend.h: New file.
4133 * include/pstl/parallel_backend_tbb.h: New file.
4134 * include/pstl/parallel_backend_utils.h: New file.
4135 * include/pstl/parallel_impl.h: New file.
4136 * include/pstl/pstl_config.h: New file.
4137 * include/pstl/unseq_backend_simd.h: New file.
4138 * include/pstl/utils.h: New file.
4139 * include/std/algorithm: Include parallel algorithm implementations.
4140 * include/std/execution: New file.
4141 * include/std/memory: Include parallel algorithm implementations.
4142 * include/std/numeric: Include parallel algorithm implementations.
4143 * include/std/version: Add parallel algorithms feature test macro.
4144 * testsuite/util/pstl/pstl_test_config.h: New file.
4145 * testsuite/util/pstl/test_utils.h: New file.
4146 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc: New file.
4147 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc: New file.
4148 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc: New file.
4149 * testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: New file.
4150 * testsuite/25_algorithms/pstl/alg_merge/merge.cc: New file.
4151 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc: New file.
4152 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc: New file.
4153 * testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc: New file.
4154 * testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc: New file.
4155 * testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc: New file.
4156 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc: New file.
4157 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc: New file.
4158 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc: New file.
4159 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc: New file.
4160 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc: New file.
4161 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc: New file.
4162 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc: New file.
4163 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc: New file.
4164 * testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc: New file.
4165 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc: New file.
4166 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc: New file.
4167 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc: New file.
4168 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc: New file.
4169 * testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc: New file.
4170 * testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: New file.
4171 * testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: New file.
4172 * testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: New file.
4173 * testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: New file.
4174 * testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: New file.
4175 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: New file.
4176 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc: New file.
4177 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: New file.
4178 * testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc: New file.
4179 * testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc: New file.
4180 * testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: New file.
4181 * testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc: New file.
4182 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: New file.
4183 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc: New file.
4184 * testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: New file.
4185 * testsuite/25_algorithms/pstl/alg_sorting/includes.cc: New file.
4186 * testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: New file.
4187 * testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc: New file.
4188 * testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc: New file.
4189 * testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc: New file.
4190 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: New file.
4191 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc: New file.
4192 * testsuite/25_algorithms/pstl/alg_sorting/set.cc: New file.
4193 * testsuite/25_algorithms/pstl/alg_sorting/sort.cc: New file.
4194 * testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc: New file.
4195 * testsuite/26_numerics/pstl/numeric_ops/reduce.cc: New file.
4196 * testsuite/26_numerics/pstl/numeric_ops/scan.cc: New file.
4197 * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc: New file.
4198 * testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: New file.
4199 * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc: New file.
4200 * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc: New file.
4201 * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc: New file.
4202 * testsuite/testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: New file.
4203 * testsuite/testsuite/25_algorithms/pstl/alg_merge/merge.cc: New file.
4204 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc: New file.
4205 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc: New file.
4206 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc: New file.
4207 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc: New file.
4208 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc: New file.
4209 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc: New file.
4210 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc: New file.
4211 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc: New file.
4212 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc: New file.
4213 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc: New file.
4214 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc: New file.
4215 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc: New file.
4216 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc: New file.
4217 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc: New file.
4218 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc: New file.
4219 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc: New file.
4220 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc: New file.
4221 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc: New file.
4222 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc: New file.
4223 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: New file.
4224 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: New file.
4225 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: New file.
4226 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: New file.
4227 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: New file.
4228 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: New file.
4229 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc: New file.
4230 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: New file.
4231 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc: New file.
4232 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc: New file.
4233 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: New file.
4234 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc: New file.
4235 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: New file.
4236 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc: New file.
4237 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: New file.
4238 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/includes.cc: New file.
4239 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: New file.
4240 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc: New file.
4241 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc: New file.
4242 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc: New file.
4243 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: New file.
4244 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc: New file.
4245 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/set.cc: New file.
4246 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/sort.cc: New file.
4247 * testsuite/testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc: New file.
4248 * testsuite/testsuite/26_numerics/pstl/numeric_ops/reduce.cc: New file.
4249 * testsuite/testsuite/26_numerics/pstl/numeric_ops/scan.cc: New file.
4250 * testsuite/testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc: New file.
4251 * testsuite/testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: New file.
4253 2019-03-21 Jonathan Wakely <jwakely@redhat.com>
4255 * include/c_compatibility/math.h [!__STDCPP_WANT_MATH_SPEC_FUNCS__]
4256 (assoc_laguerre, assoc_laguerref, assoc_laguerrel, assoc_legendre)
4257 (assoc_legendref, assoc_legendrel, beta, betaf, betal, comp_ellint_1)
4258 (comp_ellint_1f, comp_ellint_1l, comp_ellint_2, comp_ellint_2f)
4259 (comp_ellint_2l, comp_ellint_3, comp_ellint_3f, comp_ellint_3l)
4260 (cyl_bessel_i, cyl_bessel_if, cyl_bessel_il, cyl_bessel_j)
4261 (cyl_bessel_jf, cyl_bessel_jl, cyl_bessel_k, cyl_bessel_kf)
4262 (cyl_bessel_kl, cyl_neumann, cyl_neumannf, cyl_neumannl, ellint_1)
4263 (ellint_1f, ellint_1l, ellint_2, ellint_2f, ellint_2l, ellint_3)
4264 (ellint_3f, ellint_3l, expint, expintf, expintl, hermite, hermitef)
4265 (hermitel, laguerre, laguerref, laguerrel, legendre, legendref)
4266 (legendrel, riemann_zeta, riemann_zetaf, riemann_zetal, sph_bessel)
4267 (sph_besself, sph_bessell, sph_legendre, sph_legendref, sph_legendrel)
4268 (sph_neumann, sph_neumannf, sph_neumannl): Only add using-declarations
4269 when the special functions IS is enabled, not for C++17.
4270 * testsuite/26_numerics/headers/cmath/functions_global_c++17.cc:
4272 * testsuite/26_numerics/headers/cmath/functions_global.cc: New test,
4273 without checks for special functions in C++17.
4274 * testsuite/26_numerics/headers/cmath/special_functions_global.cc:
4278 * include/backward/hash_map: Use <> for includes not "".
4279 * include/backward/hash_set: Likewise.
4280 * include/backward/strstream: Likewise.
4281 * include/tr1/bessel_function.tcc: Likewise.
4282 * include/tr1/exp_integral.tcc: Likewise.
4283 * include/tr1/legendre_function.tcc: Likewise.
4284 * include/tr1/modified_bessel_func.tcc: Likewise.
4285 * include/tr1/riemann_zeta.tcc: Likewise.
4287 2019-03-19 Jonathan Wakely <jwakely@redhat.com>
4289 * doc/xml/manual/allocator.xml: Link to table documenting evolution
4290 of extension allocators.
4291 * doc/xml/manual/evolution.xml: Use angle brackets for header names.
4292 Document new headers in 7.2, 8.1 and 9.1 releases.
4293 * doc/xml/manual/using.xml: Adjust link target for new_allocator.
4294 * doc/html/*: Regenerate.
4296 2019-03-12 John David Anglin <dave.anglin@bell.net>
4299 * testsuite/lib/libstdc++.exp: Locate libatomic.
4300 * testsuite/lib/dg-options.exp (add_options_for_libatomic): New.
4301 * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: Add
4303 * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise.
4304 * testsuite/experimental/net/timer/waitable/cons.cc: Likewise.
4305 * testsuite/experimental/net/timer/waitable/dest.cc: Likewise.
4306 * testsuite/experimental/net/timer/waitable/ops.cc: Likewise.
4308 2019-03-11 Jonathan Wakely <jwakely@redhat.com>
4311 * configure.ac: Check for sockatmark.
4312 * crossconfig.m4: Check for sockatmark.
4313 * config.h.in: Regenerate.
4314 * configure: Regenerate.
4315 * include/experimental/internet (address_v4::_S_hton): Rename
4316 overloaded functions to _S_hton_16 and _S_ntoh_16.
4317 (address_v4::_S_ntoh): Rename to _S_ntoh_16 and _S_ntoh_32.
4318 (basic_endpoint): Adjust calls to _S_hton and _S_ntoh.
4319 * include/experimental/socket (basic_socket::at_mark): Check
4320 _GLIBCXX_HAVE_SOCKATMARK.
4322 * testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc: Use
4323 const variables instead of macros.
4326 * libsupc++/hash_bytes.cc [__SIZEOF_SIZE_T__ == 8] (_Hash_bytes):
4327 Use correct type for len_aligned.
4328 * testsuite/20_util/hash/89629.cc: New test.
4330 2019-03-11 Jakub Jelinek <jakub@redhat.com>
4333 * include/std/atomic (atomic<T>::store, atomic<T>::load,
4334 atomic<T>::exchange, atomic<T>::compare_exchange_weak,
4335 atomic<T>::compare_exchange_strong): Cast __m or __s and __f to int.
4336 * include/bits/atomic_base.h (__atomic_base<T>::operator++,
4337 __atomic_base<T>::operator--, __atomic_base<T>::operator+=,
4338 __atomic_base<T>::operator-=, __atomic_base<T>::operator&=,
4339 __atomic_base<T>::operator|=, __atomic_base<T>::operator^=,
4340 __atomic_base<T*>::operator++, __atomic_base<T*>::operator--,
4341 __atomic_base<T*>::operator+=, __atomic_base<T*>::operator-=): Cast
4342 memory_order_seq_cst to int.
4344 2019-03-08 Jonathan Wakely <jwakely@redhat.com>
4346 * doc/xml/manual/using.xml: Use link element instead of xref.
4347 * doc/html/*: Regenerate.
4349 * include/bits/fs_path.h (path::format): Add fixed underlying type.
4351 2019-03-08 François Dumont <fdumont@gcc.gnu.org>
4354 * include/debug/map.h (map): Use _RequireNotAllocator to constrain
4355 parameters in deduction guides.
4356 * include/debug/multimap.h (multimap): Likewise.
4357 * include/debug/set.h (multimap): Likewise.
4358 * include/debug/multiset.h (multimap): Likewise.
4359 * include/debug/unordered_map (unordered_map): Likewise.
4360 (unordered_multimap): Likewise.
4361 * include/debug/unordered_set (unordered_set): Likewise.
4362 (unordered_multiset): Likewise.
4365 * include/debug/unordered_map (unordered_map<>::_M_check_rehashed):
4366 Invalidate all iterators in case of rehash.
4367 (unordered_multimap<>::_M_check_rehashed): Likewise.
4368 * include/debug/unordered_set
4369 (unordered_set<>::_M_check_rehashed): Likewise.
4370 (unordered_multiset<>::_M_check_rehashed): Likewise.
4371 * testsuite/23_containers/unordered_set/debug/89608_neg.cc: New.
4373 2019-03-07 Andreas Schwab <schwab@suse.de>
4375 * config/abi/post/riscv64-linux-gnu: New directory.
4376 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: New file.
4378 2019-03-07 Jonathan Wakely <jwakely@redhat.com>
4380 * testsuite/20_util/function_objects/bind_front/1.cc: Change from
4381 compile test to run. Fix typo.
4383 * doc/xml/manual/status_cxx2020.xml: Update C++20 status.
4384 * doc/html/*: Regenerate.
4386 P0356R5 Simplified partial function application
4387 * include/std/functional [C++20] (_Bind_front, _Bind_front_t): Define
4388 helpers for bind_front.
4389 (bind_front, __cpp_lib_bind_front): Define.
4390 * testsuite/20_util/function_objects/bind_front/1.cc: New test.
4392 2019-03-06 Jonathan Wakely <jwakely@redhat.com>
4394 * include/std/type_traits (__cpp_lib_bounded_array_traits): Define.
4395 * include/std/version (__cpp_lib_bounded_array_traits): Likewise.
4396 * testsuite/20_util/is_bounded_array/value.cc: Check for macro.
4397 * testsuite/20_util/is_unbounded_array/value.cc: Likewise.
4399 2019-03-06 Edward Smith-Rowland <3dw4rd@verizon.net>
4401 PR libstdc++/86655 - std::assoc_legendre should not constrain
4402 the value of m (or x).
4403 * include/tr1/legendre_function.tcc (__assoc_legendre_p,
4404 __sph_legendre): If degree > order Don't throw, return 0.
4405 (__legendre_p, __assoc_legendre_p): Don't constrain x either.
4406 * testsuite/special_functions/02_assoc_legendre/pr86655.cc: New test.
4407 * testsuite/special_functions/20_sph_legendre/pr86655.cc: New test.
4408 * testsuite/tr1/5_numerical_facilities/special_functions/
4409 02_assoc_legendre/pr86655.cc: New test.
4410 * testsuite/tr1/5_numerical_facilities/special_functions/
4411 22_sph_legendre/pr86655.cc: New test.
4413 2019-03-06 Ville Voutilainen <ville.voutilainen@gmail.com>
4416 Also PR libstdc++/85517
4417 * include/std/variant (__do_visit): New.
4418 (__variant_cast): Likewise.
4419 (__variant_cookie): Likewise.
4420 (__erased_*): Remove.
4421 (_Variant_storage::_S_vtable): Likewise.
4422 (_Variant_storage::__M_reset_impl): Adjust to use __do_visit.
4423 (_Variant_storage::__M_reset): Adjust.
4424 (__variant_construct): New.
4425 (_Copy_ctor_base(const _Copy_ctor_base&)): Adjust to use
4426 __variant_construct.
4427 (_Move_ctor_base(_Move_ctor_base&&)): Likewise.
4428 (_Move_ctor_base::__M_destructive_copy): New.
4429 (_Move_ctor_base::__M_destructive_move): Adjust to use
4430 __variant_construct.
4431 (_Copy_assign_base::operator=): Adjust to use __do_visit.
4432 (_Copy_assign_alias): Adjust to check both copy assignment
4433 and copy construction for triviality.
4434 (_Move_assign_base::operator=): Adjust to use __do_visit.
4435 (_Multi_array): Add support for visitors that accept and return
4437 (__gen_vtable_impl::_S_apply_all_alts): Likewise.
4438 (__gen_vtable_impl::_S_apply_single_alt): Likewise.
4439 (__gen_vtable_impl::__element_by_index_or_cookie): New. Generate
4440 a __variant_cookie temporary for a variant that is valueless and..
4441 (__gen_vtable_impl::__visit_invoke): ..adjust here.
4442 (__gen_vtable::_Array_type): Conditionally make space for
4443 the __variant_cookie visitor case.
4444 (__variant_construct_by_index): New.
4445 (get_if): Adjust to use std::addressof.
4446 (relops): Adjust to use __do_visit.
4447 (variant): Add __variant_cast and __variant_construct_by_index
4449 (variant::emplace): Use _M_reset() and __variant_construct_by_index
4450 instead of self-destruction.
4451 (variant::swap): Adjust to use __do_visit.
4452 (visit): Reimplement in terms of __do_visit.
4453 (__variant_hash_call_base_impl::operator()): Adjust to use __do_visit.
4454 * testsuite/20_util/variant/compile.cc: Adjust.
4455 * testsuite/20_util/variant/run.cc: Likewise.
4457 2019-03-06 Jonathan Wakely <jwakely@redhat.com>
4459 * include/bits/c++config.h (_cpp_lib_char8_t): Add L suffix to
4461 * testsuite/experimental/feat-char8_t.cc: Likewise.
4463 * include/std/type_traits [C++20] (is_bounded_array)
4464 (is_unbounded_array, is_bounded_array_v, is_unbounded_array_v):
4466 * testsuite/20_util/is_bounded_array/requirements/
4467 explicit_instantiation.cc: New test.
4468 * testsuite/20_util/is_bounded_array/requirements/typedefs.cc: New
4470 * testsuite/20_util/is_bounded_array/value.cc: New test.
4471 * testsuite/20_util/is_unbounded_array/requirements/
4472 explicit_instantiation.cc: New test.
4473 * testsuite/20_util/is_unbounded_array/requirements/typedefs.cc: New
4475 * testsuite/20_util/is_unbounded_array/value.cc: New test.
4477 * include/bits/ptr_traits.h [C++20] (pointer_traits<T*>::pointer_to):
4479 * testsuite/20_util/pointer_traits/pointer_to_constexpr.cc: New test.
4481 2019-03-05 Jonathan Wakely <jwakely@redhat.com>
4483 * include/c_compatibility/math.h [C++20] (lerp): Add using
4485 * include/c_global/cmath [C++20] (__cpp_lib_interpolate): Define.
4486 (__lerp): Define function template to implement lerp.
4487 (lerp(float, float, float), lerp(double, double, double))
4488 (lerp(long double, long double, long double)): Define for C++20.
4489 * include/std/numeric [C++20] (__cpp_lib_interpolate): Define.
4490 (midpoint(T, T), midpoint(T*, T*)): Define.
4491 * include/std::version [C++20] (__cpp_lib_interpolate): Define.
4492 * testsuite/26_numerics/lerp.cc: New test.
4493 * testsuite/26_numerics/midpoint/floating.cc: New test.
4494 * testsuite/26_numerics/midpoint/integral.cc: New test.
4495 * testsuite/26_numerics/midpoint/pointer.cc: New test.
4497 2019-03-04 Edward Smith-Rowland <3dw4rd@verizon.net>
4499 PR libstdc++/88996 Implement P0439R0
4500 Make std::memory_order a scoped enumeration.
4501 * include/bits/atomic_base.h: For C++20 make memory_order a scoped enum,
4502 add variables for the old enumerators. Adjust calls.
4503 * testsuite/29_atomics/headers/atomic/types_std_c++2a.cc: New test.
4504 * testsuite/29_atomics/headers/atomic/types_std_c++2a_neg.cc: New test.
4506 2019-03-04 Jonathan Wakely <jwakely@redhat.com>
4508 * testsuite/26_numerics/bit/bitops.rot/rotl.cc: Remove bogus dg-do
4511 * include/std/memory_resource (polymorphic_allocator): Add default
4512 template argument for C++20.
4513 (polymorphic_allocator::allocate_bytes)
4514 (polymorphic_allocator::deallocate_bytes)
4515 (polymorphic_allocator::allocate_object)
4516 (polymorphic_allocator::deallocate_object)
4517 (polymorphic_allocator::new_object)
4518 (polymorphic_allocator::delete_object): New member functions for
4520 * testsuite/20_util/polymorphic_allocator/allocate_object.cc: New
4523 2019-03-03 Jonathan Wakely <jwakely@redhat.com>
4526 * src/filesystem/ops-common.h (do_copy_file): Open files in binary
4529 2019-03-01 Jonathan Wakely <jwakely@redhat.com>
4531 * testsuite/util/testsuite_allocator.h (__gnu_test::memory_resource)
4532 [!__cpp_sized_deallocation]: Do not pass size to operator delete.
4534 * include/std/memory (uses_allocator_construction_args): New set of
4535 overloaded functions.
4536 (make_obj_using_allocator, uninitialized_construct_using_allocator):
4538 * include/std/memory_resource (polymorphic_allocator::construct)
4539 [__cplusplus > 201703l]: Replace all overloads with a single function
4540 using uses_allocator_construction_args.
4541 * testsuite/20_util/polymorphic_allocator/construct_c++2a.cc: New
4543 * testsuite/20_util/uses_allocator/make_obj.cc: New test.
4545 2019-02-27 Jonathan Wakely <jwakely@redhat.com>
4548 * acinclude.m4 (GLIBCXX_CONFIGURE_DOCBOOK): Reorder check for local
4549 stylesheet directories before check for xsltproc. Try to use
4550 xmlcatalog to find local stylesheet directory before trying hardcoded
4551 paths. Add path used by suse to hardcoded paths. Adjust xsltproc
4552 check to look for the same stylesheet as doc/Makefile.am uses. Don't
4553 use xsltproc if xmlcatalog fails to find a local stylesheet.
4554 * configure.ac: Check for xmlcatalog.
4555 * Makefile.in: Regenerate.
4556 * configure: Likewise.
4557 * doc/Makefile.in: Likewise.
4558 * include/Makefile.in: Likewise.
4559 * libsupc++/Makefile.in: Likewise.
4560 * po/Makefile.in: Likewise.
4561 * python/Makefile.in: Likewise.
4562 * src/Makefile.in: Likewise.
4563 * src/c++11/Makefile.in: Likewise.
4564 * src/c++17/Makefile.in: Likewise.
4565 * src/c++98/Makefile.in: Likewise.
4566 * src/filesystem/Makefile.in: Likewise.
4567 * testsuite/Makefile.in: Likewise.
4569 2019-02-26 Jonathan Wakely <jwakely@redhat.com>
4572 * include/bits/alloc_traits.h (_RequireNotAllocator): New helper for
4573 container deduction guides.
4574 * include/bits/hashtable.h (_RequireNotAllocatorOrIntegral): Likewise.
4575 * include/bits/stl_map.h (map): Use _RequireNotAllocator to constrain
4576 parameters in deduction guides.
4577 * include/bits/stl_multimap.h (multimap): Likewise.
4578 * include/bits/stl_multiset.h (multiset): Likewise.
4579 * include/bits/stl_queue.h (queue, priority_queue): Likewise.
4580 * include/bits/stl_set.h (set): Likewise.
4581 * include/bits/stl_stack.h (stack): Likewise.
4582 * include/bits/unordered_map.h (unordered_map, unordered_multimap):
4583 use _RequireNotAllocator and _RequireNotAllocatorOrIntegral to
4584 constrain parameters in deduction guides.
4585 * include/bits/unordered_set.h (unordered_set, unordered_multiset):
4587 * testsuite/23_containers/map/cons/deduction.cc: Test additional
4589 * testsuite/23_containers/multiset/cons/deduction.cc: Likewise.
4590 * testsuite/23_containers/set/cons/deduction.cc: Likewise.
4591 * testsuite/23_containers/unordered_map/cons/deduction.cc: Likewise.
4592 * testsuite/23_containers/unordered_multimap/cons/deduction.cc:
4594 * testsuite/23_containers/unordered_multiset/cons/deduction.cc:
4596 * testsuite/23_containers/unordered_set/cons/deduction.cc: Likewise.
4599 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Change
4600 to class template and partial specialization using void_t.
4601 (__is_copy_insertable, __is_move_insertable): Adjust base class.
4603 2019-02-24 Jonathan Wakely <jwakely@redhat.com>
4606 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Make
4607 copy and move members public.
4609 2019-02-23 Jonathan Wakely <jwakely@redhat.com>
4611 * include/std/type_traits (__underlying_type_impl): New helper to
4612 make underlying_type SFINAE-friendly.
4613 (underlying_type): Derive from __underlying_type_impl.
4614 * testsuite/20_util/underlying_type/requirements/typedefs-3.cc: New
4618 * include/bits/char_traits.h (__constant_char_array): Check index is
4619 in range before dereferencing.
4620 (char_traits<char>::compare, char_traits<char>::find)
4621 (char_traits<char8_t>::compare, char_traits<char8_t>::find): Return
4622 immediately if n is zero.
4623 (char_traits<wchar_t>::compare, char_traits<wchar_t>::find): Likewise.
4624 Remove workarounds for PR 67026.
4625 * testsuite/21_strings/basic_string_view/operators/char/89446.cc:
4627 * testsuite/21_strings/basic_string_view/operators/wchar_t/89446.cc:
4630 2019-02-22 Eric Botcazou <ebotcazou@adacore.com>
4632 * config/abi/post/sparc64-linux-gnu/baseline_symbols.txt: Adjust.
4633 * config/abi/post/sparc64-linux-gnu/32/baseline_symbols.txt: Likewise.
4635 2019-02-22 Jakub Jelinek <jakub@redhat.com>
4638 * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Change return
4639 type to std::size_t and argument to type to long double.
4641 2019-02-22 Eric Botcazou <ebotcazou@adacore.com>
4643 * configure.host (abi_baseline_pair): Adjust for SPARC64/Linux.
4644 * config/abi/post/sparc64-linux-gnu: New directory.
4645 * config/abi/post/sparc64-linux-gnu/baseline_symbols.txt: New file.
4646 * config/abi/post/sparc64-linux-gnu/32: New directory.
4647 * config/abi/post/sparc64-linux-gnu/32/baseline_symbols.txt: New file.
4649 2019-02-21 Jonathan Wakely <jwakely@redhat.com>
4651 * testsuite/29_atomics/headers/atomic/types_std_c++20.cc: New test.
4652 * testsuite/29_atomics/headers/atomic/types_std_c++20_neg.cc: New
4655 2019-02-22 Tom Honermann <tom@honermann.net>
4657 * python/libstdcxx/v6/printers.py (register_type_printers): Add type
4658 printers for u8string and u8string_view.
4660 2019-02-22 Tom Honermann <tom@honermann.net>
4662 * testsuite/18_support/byte/ops.cc: Validate
4663 std::to_integer<char8_t>, std::to_integer<char16_t>, and
4664 std::to_integer<char32_t>.
4665 * testsuite/18_support/numeric_limits/dr559.cc: Validate
4666 std::numeric_limits<char8_t>.
4667 * testsuite/18_support/numeric_limits/lowest.cc: Validate
4668 std::numeric_limits<char8_t>::lowest().
4669 * testsuite/18_support/numeric_limits/max_digits10.cc: Validate
4670 std::numeric_limits<char8_t>::max_digits10.
4671 * testsuite/18_support/type_info/fundamental.cc: Validate
4672 typeinfo for char8_t.
4673 * testsuite/20_util/from_chars/1_c++20_neg.cc: New test, validating
4674 std::from_chars with char8_t.
4675 * testsuite/20_util/hash/requirements/explicit_instantiation.cc:
4676 Validate explicit instantiation of std::hash<char8_t>.
4677 * testsuite/20_util/is_integral/value.cc: Validate
4678 std::is_integral<char8_t>.
4679 * testsuite/20_util/make_signed/requirements/typedefs-4.cc:
4680 Validate std::make_signed<char8_t>.
4681 * testsuite/21_strings/basic_string/cons/char/deduction.cc:
4682 Validate u8string construction from char8_t sources.
4683 * testsuite/21_strings/basic_string/types/pmr_typedefs.cc: Validate
4685 * testsuite/21_strings/basic_string_view/operations/compare/
4686 char/70483.cc: Validate substr operations on u8string_view.
4687 * testsuite/21_strings/basic_string_view/typedefs.cc: Validate that
4688 the u8string_view typedef is defined.
4689 * testsuite/21_strings/char_traits/requirements/
4690 constexpr_functions.cc: Validate char_traits<char8_t> constexpr
4692 * testsuite/21_strings/char_traits/requirements/
4693 constexpr_functions_c++17.cc: Validate char_traits<char8_t> C++17
4694 constexpr member functions.
4695 * testsuite/21_strings/headers/string/types_std_c++0x.cc: Validate
4696 that the u8string typedef is defined.
4697 * testsuite/22_locale/locale/cons/unicode.cc: Validate the presence
4698 of the std::codecvt<char16_t, char8_t, std::mbstate_t> and
4699 std::codecvt<char32_t, char8_t, std::mbstate_t> facets.
4700 * testsuite/29_atomics/atomic/cons/assign_neg.cc: Update line
4702 * testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise.
4703 * testsuite/29_atomics/atomic_integral/cons/assign_neg.cc:
4705 * testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Likewise.
4706 * testsuite/29_atomics/atomic_integral/is_always_lock_free.cc:
4707 Validate std::atomic<char8_t>::is_always_lock_free
4708 * testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc:
4709 Update line numbers.
4710 * testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc:
4712 * testsuite/29_atomics/atomic_integral/operators/increment_neg.cc:
4714 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_string.cc:
4715 Validate std::experimental::pmr::u8string.
4716 * testsuite/experimental/string_view/typedefs.cc: Validate that the
4717 u8string_view typedef is defined.
4718 * testsuite/util/testsuite_common_types.h: Add char8_t, char16_t and
4719 char32_t to the typelists.
4721 2019-02-22 Tom Honermann <tom@honermann.net>
4723 * include/ext/typelist.h: Constrain a partial specialization of
4724 typelist::detail::append_ to only match chain<T1,T2>.
4726 2019-02-21 Jonathan Wakely <jwakely@redhat.com>
4729 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Replace
4730 class template with class. Replace move and copy member types with
4731 member alias templates, so they are only instantiated when needed.
4732 (__is_copy_insertable, __is_move_insertable): Adjust base class.
4733 * testsuite/23_containers/vector/modifiers/push_back/89130.cc: Enable
4734 test for C++11/14/17 as well.
4735 * testsuite/23_containers/vector/modifiers/push_back/89416.cc: New
4738 2019-02-20 Jakub Jelinek <jakub@redhat.com>
4741 * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Add
4742 _GLIBCXX_PURE to the alias declaration.
4744 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
4746 * testsuite/21_strings/basic_string/literals/types.cc
4747 [_GLIBCXX_USE_CHAR8_T]: Adjust expected string type for u8 literal.
4748 * testsuite/21_strings/basic_string/literals/values.cc
4749 [_GLIBCXX_USE_CHAR8_T]: Likewise.
4750 * testsuite/22_locale/codecvt/char16_t.cc: Adjust for u8 literals
4751 potentially having different type.
4752 * testsuite/22_locale/codecvt/char32_t.cc: Likewise.
4753 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: Cast u8 literal
4755 * testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc: Likewise.
4756 * testsuite/22_locale/codecvt/utf8.cc: Likewise.
4757 * testsuite/22_locale/conversions/string/2.cc: Remove u8 prefix from
4758 string literals only using basic character set.
4759 * testsuite/22_locale/conversions/string/3.cc: Likewise. Cast other
4760 u8 literals to char.
4761 * testsuite/29_atomics/headers/atomic/macros.cc [_GLIBCXX_USE_CHAR8_T]:
4762 Test ATOMIC_CHAR8_T_LOCK_FREE.
4763 Add missing #error to ATOMIC_CHAR16_T_LOCK_FREE test.
4764 * testsuite/29_atomics/headers/atomic/types_std_c++0x.cc
4765 [_GLIBCXX_USE_CHAR8_T]: Check for std::atomic_char8_t.
4766 * testsuite/experimental/string_view/literals/types.cc
4767 [_GLIBCXX_USE_CHAR8_T]: Adjust expected string_view type for u8
4769 * testsuite/experimental/string_view/literals/values.cc
4770 [_GLIBCXX_USE_CHAR8_T]: Likewise.
4772 2019-02-19 Tom Honermann <tom@honermann.net>
4774 * testsuite/18_support/numeric_limits/char8_t.cc: New test cloned
4775 from char16_32_t.cc; validates numeric_limits<char8_t>.
4776 * testsuite/21_strings/basic_string/literals/types-char8_t.cc: New
4777 test cloned from types.cc; validates operator""s for char8_t
4779 * testsuite/21_strings/basic_string/literals/values-char8_t.cc: New
4780 test cloned from values.cc; validates construction and comparison
4782 * testsuite/21_strings/basic_string/requirements/
4783 /explicit_instantiation/char8_t/1.cc: New test cloned from
4784 char16_t/1.cc; validates explicit instantiation of
4785 basic_string<char8_t>.
4786 * testsuite/21_strings/basic_string_view/literals/types-char8_t.cc:
4787 New test cloned from types.cc; validates operator""sv for char8_t
4788 returns u8string_view.
4789 * testsuite/21_strings/basic_string_view/literals/
4790 values-char8_t.cc: New test cloned from values.cc; validates
4791 construction and comparison of u8string_view values.
4792 * testsuite/21_strings/basic_string_view/requirements/
4793 explicit_instantiation/char8_t/1.cc: New test cloned from
4794 char16_t/1.cc; validates explicit instantiation of
4795 basic_string_view<char8_t>.
4796 * testsuite/21_strings/char_traits/requirements/char8_t/65049.cc:
4797 New test cloned from char16_t/65049.cc; validates that
4798 char_traits<char8_t> is not vulnerable to the concerns in PR65049.
4799 * testsuite/21_strings/char_traits/requirements/char8_t/
4800 typedefs.cc: New test cloned from char16_t/typedefs.cc; validates
4801 that char_traits<char8_t> member typedefs are present and correct.
4802 * testsuite/21_strings/char_traits/requirements/
4803 explicit_instantiation/char8_t/1.cc: New test cloned from
4804 char16_t/1.cc; validates explicit instantiation of
4805 char_traits<char8_t>.
4806 * testsuite/22_locale/codecvt/char16_t-char8_t.cc: New test cloned
4807 from char16_t.cc: validates
4808 codecvt<char16_t, char8_t, mbstate_t>.
4809 * testsuite/22_locale/codecvt/char32_t-char8_t.cc: New test cloned
4810 from char32_t.cc: validates
4811 codecvt<char32_t, char8_t, mbstate_t>.
4812 * testsuite/22_locale/codecvt/utf8-char8_t.cc: New test cloned from
4813 utf8.cc; validates codecvt<char16_t, char8_t, std::mbstate_t> and
4814 codecvt<char32_t, char8_t, std::mbstate_t>.
4815 * testsuite/27_io/filesystem/path/native/string-char8_t.cc: New
4816 test cloned from string.cc; validates filesystem::path construction
4818 * testsuite/experimental/feat-char8_t.cc: New test; validates that
4819 the __cpp_lib_char8_t feature test macro is defined with the
4821 * testsuite/experimental/filesystem/path/native/string-char8_t.cc:
4822 New test cloned from string.cc; validates filesystem::path
4823 construction from char8_t input.
4824 * testsuite/experimental/string_view/literals/types-char8_t.cc: New
4825 test cloned from types.cc; validates operator""sv for char8_t
4826 returns u8string_view.
4827 * testsuite/experimental/string_view/literals/values-char8_t.cc:
4828 New test cloned from values.cc; validates construction and
4829 comparison of u8string_view values.
4830 * testsuite/experimental/string_view/requirements/
4831 explicit_instantiation/char8_t/1.cc: New test cloned from
4832 char16_t/1.cc; validates explicit instantiation of
4833 basic_string_view<char8_t>.
4834 * testsuite/ext/char8_t/atomic-1.cc: New test; validates that
4835 ATOMIC_CHAR8_T_LOCK_FREE is not defined if char8_t support is not
4838 2019-02-19 Tom Honermann <tom@honermann.net>
4840 P0482R5 char8_t: Standard library support
4841 * config/abi/pre/gnu-versioned-namespace.ver (CXXABI_2.0): Add
4842 typeinfo symbols for char8_t.
4843 * config/abi/pre/gnu.ver: Add CXXABI_1.3.12.
4844 (GLIBCXX_3.4.26): Add symbols for specializations of
4845 numeric_limits and codecvt that involve char8_t.
4846 (CXXABI_1.3.12): Add typeinfo symbols for char8_t.
4847 * include/bits/atomic_base.h: Add atomic_char8_t.
4848 * include/bits/basic_string.h: Add std::hash<u8string> and
4849 operator""s(const char8_t*, size_t).
4850 * include/bits/c++config: Define _GLIBCXX_USE_CHAR8_T and
4852 * include/bits/char_traits.h: Add char_traits<char8_t>.
4853 * include/bits/codecvt.h: Add
4854 codecvt<char16_t, char8_t, mbstate_t>,
4855 codecvt<char32_t, char8_t, mbstate_t>,
4856 codecvt_byname<char16_t, char8_t, mbstate_t>, and
4857 codecvt_byname<char32_t, char8_t, mbstate_t>.
4858 * include/bits/cpp_type_traits.h: Add __is_integer<char8_t> to
4859 recognize char8_t as an integral type.
4860 * include/bits/fs_path.h: (path::__is_encoded_char): Recognize
4862 (path::u8string): Return std::u8string when char8_t support is
4864 (path::generic_u8string): Likewise.
4865 (path::_S_convert): Handle conversion from char8_t input.
4866 (path::_S_str_convert): Likewise.
4867 * include/bits/functional_hash.h: Add hash<char8_t>.
4868 * include/bits/locale_conv.h (__str_codecvt_out): Add overloads for
4870 * include/bits/locale_facets.h (_GLIBCXX_NUM_UNICODE_FACETS): Bump
4871 for new char8_t specializations.
4872 * include/bits/localefwd.h: Add missing declarations of
4873 codecvt<char16_t, char, mbstate_t> and
4874 codecvt<char32_t, char, mbstate_t>. Add char8_t declarations
4875 codecvt<char16_t, char8_t, mbstate_t> and
4876 codecvt<char32_t, char8_t, mbstate_t>.
4877 * include/bits/postypes.h: Add u8streampos
4878 * include/bits/stringfwd.h: Add declarations of
4879 char_traits<char8_t> and u8string.
4880 * include/c_global/cstddef: Add __byte_operand<char8_t>.
4881 * include/experimental/bits/fs_path.h (path::__is_encoded_char):
4883 (path::u8string): Return std::u8string when char8_t support is
4885 (path::generic_u8string): Likewise.
4886 (path::_S_convert): Handle conversion from char8_t input.
4887 (path::_S_str_convert): Likewise.
4888 * include/experimental/string: Add u8string.
4889 * include/experimental/string_view: Add u8string_view,
4890 hash<experimental::u8string_view>, and
4891 operator""sv(const char8_t*, size_t).
4892 * include/std/atomic: Add atomic<char8_t> and atomic_char8_t.
4893 * include/std/charconv (__is_int_to_chars_type): Recognize char8_t
4894 as a character type.
4895 * include/std/limits: Add numeric_limits<char8_t>.
4896 * include/std/string_view: Add u8string_view,
4897 hash<experimental::u8string_view>, and
4898 operator""sv(const char8_t*, size_t).
4899 * include/std/type_traits: Add __is_integral_helper<char8_t>,
4900 __make_unsigned<char8_t>, and __make_signed<char8_t>.
4901 * libsupc++/atomic_lockfree_defines.h: Define
4902 ATOMIC_CHAR8_T_LOCK_FREE.
4903 * src/c++11/Makefile.am: Compile with -fchar8_t when compiling
4904 codecvt.cc and limits.cc so that char8_t specializations of
4905 numeric_limits and codecvt and emitted.
4906 * src/c++11/Makefile.in: Likewise.
4907 * src/c++11/codecvt.cc: Define members of
4908 codecvt<char16_t, char8_t, mbstate_t>,
4909 codecvt<char32_t, char8_t, mbstate_t>,
4910 codecvt_byname<char16_t, char8_t, mbstate_t>, and
4911 codecvt_byname<char32_t, char8_t, mbstate_t>.
4912 * src/c++11/limits.cc: Define members of
4913 numeric_limits<char8_t>.
4914 * src/c++98/Makefile.am: Compile with -fchar8_t when compiling
4915 locale_init.cc and localename.cc.
4916 * src/c++98/Makefile.in: Likewise.
4917 * src/c++98/locale_init.cc: Add initialization for the
4918 codecvt<char16_t, char8_t, mbstate_t> and
4919 codecvt<char32_t, char8_t, mbstate_t> facets.
4920 * src/c++98/localename.cc: Likewise.
4921 * testsuite/util/testsuite_abi.cc: Validate ABI bump.
4923 2019-02-18 Wilco Dijkstra <wdijkstr@arm.com>
4925 * 27_io/filesystem/operations/all.cc: Add dg-require-filesystem-ts.
4926 * 27_io/filesystem/operations/resize_file.cc: Likewise.
4927 * 27_io/filesystem/path/generation/normal2.cc: Likewise.
4929 2019-02-14 Jonathan Wakely <jwakely@redhat.com>
4931 * doc/xml/manual/status_cxx2020.xml: Update P0887R1 status.
4932 * doc/html/*: Regenerate.
4934 * doc/xml/manual/status_cxx2017.xml: Add P0063R3 to status table.
4935 * doc/html/*: Regenerate.
4937 * doc/xml/manual/intro.xml: Document LWG 2586 status.
4938 * include/bits/uses_allocator.h (__uses_alloc): Use const lvalue
4939 allocator type in is_constructible checks.
4940 * testsuite/20_util/scoped_allocator/69293_neg.cc: Adjust dg-error.
4941 * testsuite/20_util/scoped_allocator/dr2586.cc: New test.
4942 * testsuite/20_util/tuple/cons/allocators.cc: Add test using
4943 problematic type from LWG 2586 discussion.
4944 * testsuite/20_util/uses_allocator/69293_neg.cc: Adjust dg-error.
4945 * testsuite/20_util/uses_allocator/cons_neg.cc: Likewise.
4947 * configure.ac: Check for C11 timespec_get function.
4948 * crossconfig.m4 (freebsd, linux, gnu, cygwin, solaris, netbsd)
4950 * config.h.in: Regenerate.
4951 * configure: Regenerate.
4952 * include/c_global/ctime (timespec, timespec_get): Add to namespace
4953 std for C++17 and up.
4955 * doc/xml/manual/intro.xml: Document LWG 2537 status.
4956 * include/bits/stl_queue.h
4957 (priority_queue(const Compare&, const Container&, const Alloc&))
4958 (priority_queue(const Compare&, Container&&, const Alloc&)): Call
4960 * testsuite/23_containers/priority_queue/dr2537.cc: New test.
4962 * doc/xml/manual/intro.xml: Document LWG 2566 status.
4963 * include/bits/stl_queue.h (queue, priority_queue): Add static
4964 assertions to enforce LWG 2566 requirement on value_type.
4965 * include/bits/stl_stack.h (stack): Likewise.
4968 * testsuite/20_util/enable_shared_from_this/89303.cc: New test.
4970 * doc/xml/manual/intro.xml: Document LWG 2735 status.
4971 * include/bits/std_abs.h: Add comment about LWG 2735.
4972 * testsuite/26_numerics/headers/cstdlib/dr2735.cc: New test.
4974 2019-02-13 Jonathan Wakely <jwakely@redhat.com>
4977 * include/std/version [__cpp_impl_destroying_delete]
4978 (__cpp_lib_destroying_delete): Only define for C++2a and later.
4979 * libsupc++/new [__cpp_impl_destroying_delete]
4980 (__cpp_lib_destroying_delete): Likewise.
4981 (destroying_delete_t, destroying_delete): Likewise, but define even
4982 when __cpp_impl_destroying_delete is not defined.
4983 * testsuite/18_support/destroying_delete.cc: New test.
4985 2019-02-11 Jonathan Wakely <jwakely@redhat.com>
4988 * testsuite/17_intro/headers/c++2011/parallel_mode.cc: New test.
4989 * testsuite/17_intro/headers/c++2014/parallel_mode.cc: New test.
4990 * testsuite/17_intro/headers/c++2017/parallel_mode.cc: New test.
4991 * testsuite/28_regex/headers/regex/parallel_mode.cc: Remove.
4993 2019-02-09 Jonathan Wakely <jwakely@redhat.com>
4996 * include/bits/fs_path.h (path::has_root_name)
4997 (path::has_root_directory, path::has_root_path)
4998 (path::has_relative_path, path::has_parent_path)
4999 (path::has_filename, path::has_stem, path::has_extension)
5000 (path::is_absolute, path::is_relative, path::_M_find_extension): Add
5002 * src/c++17/fs_path.cc (path::has_root_name)
5003 (path::has_root_directory, path::has_root_path)
5004 (path::has_relative_path, path::has_parent_path)
5005 (path::has_filename, path::_M_find_extension): Add noexcept.
5007 2019-02-06 Jonathan Wakely <jwakely@redhat.com>
5009 PR libstdc++/89102 (partial)
5010 * include/std/type_traits (common_type<>): Define.
5011 (common_type<T>): Derive from common_type<T, T>.
5012 * testsuite/20_util/common_type/requirements/explicit_instantiation.cc:
5013 Test zero-length template argument list.
5014 * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc:
5015 Test additional single argument cases.
5016 * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc:
5017 Adjust expected error.
5019 2019-02-05 Jonathan Wakely <jwakely@redhat.com>
5022 * include/bits/stl_queue.h (queue, priority_queue): Add deduction
5024 * include/bits/stl_stack.h (stack): Likewise.
5025 * testsuite/23_containers/priority_queue/deduction.cc: New test.
5026 * testsuite/23_containers/queue/deduction.cc: New test.
5027 * testsuite/23_containers/stack/deduction.cc: New test.
5030 * include/std/type_traits (__is_convertible_helper)
5031 (__is_convertible_helper<_From, _To, false>): Revert changes to
5032 support is_nothrow_convertible.
5033 (__is_nt_convertible_helper): New helper.
5034 (is_nothrow_convertible): Use __is_nt_convertible_helper.
5036 * testsuite/23_containers/vector/modifiers/push_back/49836.cc: Restore
5037 use of CopyConsOnlyType, but also test DelAnyAssign for completeness.
5040 * include/bits/alloc_traits.h (__is_copy_insertable_impl): Rename to
5041 __is_alloc_insertable_impl. Replace single type member with two
5042 members, one for each of copy and move insertable.
5043 (__is_move_insertable): New trait for internal use.
5044 * include/bits/stl_vector.h (vector::_S_nothrow_relocate(true_type))
5045 (vector::_S_nothrow_relocate(true_type)): New functions to
5046 conditionally check if __relocate_a can throw.
5047 (vector::_S_use_relocate()): Dispatch to _S_nothrow_relocate based
5048 on __is_move_insertable.
5049 (vector::_S_do_relocate): New overloaded functions to conditionally
5051 (vector::_S_relocate): New function that dispatches to _S_do_relocate
5052 based on _S_use_relocate.
5053 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
5054 (vector::_M_default_append): Call _S_relocate instead of __relocate_a.
5055 * testsuite/23_containers/vector/modifiers/push_back/89130.cc: New.
5058 * include/bits/stl_uninitialized.h (__relocate_a_1): Make unused
5059 parameter unnamed. Add message to static assertion.
5060 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
5061 (vector::_M_default_append): Use _GLIBCXX17_CONSTEXPR for if constexpr
5064 2019-02-05 Marc Glisse <marc.glisse@inria.fr>
5067 * include/bits/stl_uninitialized.h (__is_trivially_relocatable):
5069 (__is_bitwise_relocatable): ... to this.
5070 (__relocate_a_1): Adapt.
5071 * include/bits/stl_deque.h (__is_trivially_relocatable): Rename...
5072 (__is_bitwise_relocatable): ... to this.
5074 2019-01-30 Jonathan Wakely <jwakely@redhat.com>
5077 * src/c++17/fs_path.cc (path::replace_extension): Erase extension from
5078 final component as well as from _M_pathname. Append the dot using
5079 operator+= instead of only to _M_pathname.
5080 (path::_M_find_extension): Reformat slightly.
5081 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
5082 Add more test cases.
5084 2019-01-30 Ulrich Drepper <drepper@redhat.com>
5086 * doc/xml/manual/status_cxx2020.xml: Update P0600 entry.
5088 2019-01-29 Jonathan Wakely <jwakely@redhat.com>
5090 * testsuite/26_numerics/headers/complex/synopsis.cc: Remove incorrect
5091 constexpr specifiers from arg and proj.
5093 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add missing exports for
5094 __shared_ptr instantiations used by gcc4-compatible ABI.
5096 * include/experimental/forward_list (experimental::erase): Qualify
5098 * include/experimental/list (experimental::erase): Likewise.
5099 * include/std/forward_list (std::erase): Likewise.
5100 * include/std/list (std::erase): Likewise.
5102 * testsuite/20_util/reference_wrapper/result_type.cc: Disable for
5104 * testsuite/20_util/reference_wrapper/typedefs-2.cc: Likewise.
5105 * testsuite/20_util/reference_wrapper/typedefs-3.cc: Likewise.
5106 * testsuite/20_util/reference_wrapper/typedefs.cc: Likewise.
5107 * testsuite/30_threads/async/54297.cc: Suppress nodiscard warning.
5108 * testsuite/ext/array_allocator/26875.cc: Likewise.
5109 * testsuite/ext/pool_allocator/allocate_chunk.cc: Likewise.
5110 * testsuite/util/replacement_memory_operators.h: Likewise.
5111 * testsuite/util/testsuite_allocator.h: Likewise.
5113 * include/std/memory_resource (__pool_resource::_M_unpooled): Use
5114 normal mode vector, even for debug mode.
5115 * include/std/vector [_GLIBCXX_DEBUG] (_GLIBCXX_STD_C::pmr::vector):
5116 Define alias template for normal mode vector.
5118 2019-01-28 Jonathan Wakely <jwakely@redhat.com>
5121 * config/locale/generic/c_locale.h (__convert_from_v)
5122 [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
5123 * config/os/hpux/os_defines.h: Define _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
5124 * include/bits/locale_facets.tcc (num_put::_M_insert_float)
5125 [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
5127 2019-01-24 Jonathan Wakely <jwakely@redhat.com>
5130 * include/bits/stl_vector.h (vector::__use_relocate): Replace static
5131 data member with static member function _S_use_relocate().
5132 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
5133 (vector::_M_default_append): Use _S_use_relocate() instead of
5136 * testsuite/27_io/filesystem/path/compare/strings.cc: Only compare
5139 2019-01-22 Jonathan Wakely <jwakely@redhat.com>
5142 * testsuite/util/testsuite_hooks.h [stderr] (VERIFY): Use fprintf to
5143 write to stderr instead of using printf.
5145 2019-01-21 Jakub Jelinek <jakub@redhat.com>
5148 * include/bits/char_traits.h (__constant_string_p,
5149 __constant_char_array_p): Use __builtin_is_constant_evaluated if
5152 2019-01-20 Ulrich Drepper <drepper@redhat.com>
5154 Implement C++20 P0600r1.
5155 * include/backward/hash_map: Add nodiscard attribute to empty.
5156 * include/backward/hash_set: Likewise.
5157 * backward/hashtable.h: Likewise.
5158 * include/bits/basic_string.h: Likewise.
5159 * include/bits/forward_list.h: Likewise.
5160 * include/bits/hashtable.h: Likewise.
5161 * include/bits/regex.h: Likewise.
5162 * include/bits/stl_deque.h: Likewise.
5163 * include/bits/stl_list.h: Likewise.
5164 * include/bits/stl_map.h: Likewise.
5165 * include/bits/stl_multimap.h: Likewise.
5166 * include/bits/stl_multiset.h: Likewise.
5167 * include/bits/stl_queue.h: Likewise.
5168 * include/bits/stl_set.h: Likewise.
5169 * include/bits/stl_stack.h: Likewise.
5170 * include/bits/stl_tree.h: Likewise.
5171 * include/bits/stl_vector.h: Likewise.
5172 * include/bits/unordered_map.h: Likewise.
5173 * include/bits/unordered_set.h: Likewise.
5174 * include/debug/array: Likewise.
5175 * include/experimental/any: Likewise.
5176 * include/experimental/bits/fs_path.h: Likewise.
5177 * include/experimental/internet: Likewise.
5178 * include/experimental/string_view: Likewise.
5179 * include/ext/pb_ds/detail/bin_search_tree_/info_fn_imps.hpp:
5181 * include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp:
5183 * include/ext/pb_ds/detail/binary_heap_/info_fn_imps.hpp:
5185 * include/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp:
5187 * include/ext/pb_ds/detail/cc_hash_table_map_/info_fn_imps.hpp:
5189 * include/ext/pb_ds/detail/cc_hash_table_map_/size_fn_imps.hpp:
5191 * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp:
5193 * include/ext/pb_ds/detail/gp_hash_table_map_/info_fn_imps.hpp:
5195 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
5196 info_fn_imps.hpp: Likewise.
5197 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
5198 left_child_next_sibling_heap_.hpp: Likewise.
5199 * include/ext/pb_ds/detail/list_update_map_/info_fn_imps.hpp:
5201 * include/ext/pb_ds/detail/list_update_map_/lu_map_.hpp:
5203 * include/ext/pb_ds/detail/ov_tree_map_/info_fn_imps.hpp:
5205 * include/ext/pb_ds/detail/ov_tree_map_/ov_tree_map_.hp:
5207 * include/ext/pb_ds/detail/pat_trie_/info_fn_imps.hpp:
5209 * include/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp:
5211 * include/ext/pb_ds/detail/rc_binomial_heap_/rc.hpp:
5213 * include/ext/pb_ds/detail/tree_trace_base.hpp: Likewise.
5214 * include/ext/pb_ds/trie_policy.hpp: Likewise.
5215 * include/ext/rope: Likewise.
5216 * include/ext/slist: Likewise.
5217 * include/ext/vstring.h: Likewise.
5218 * include/profile/array: Likewise.
5219 * include/std/array: Likewise.
5220 * include/tr1/array: Likewise.
5221 * include/tr1/hashtable.h: Likewise.
5222 * include/tr1/regex: Likewise.
5223 * include/tr2/dynamic_bitset: Likewise.
5224 * include/bits/alloc_traits.h: Add nodiscard attribute to
5226 * include/experimental/memory_resource: Likewise.
5227 * include/ext/alloc_traits.h: Likewise.
5228 * include/ext/array_allocator.h: Likewise.
5229 * include/ext/bitmap_allocator.h: Likewise.
5230 * include/ext/debug_allocator.h: Likewise.
5231 * include/ext/extptr_allocator.h: Likewise.
5232 * include/ext/mt_allocator.h: Likewise.
5233 * include/ext/new_allocator.h: Likewise.
5234 * include/ext/pool_allocator.h: Likewise.
5235 * include/ext/throw_allocator.h: Likewise.
5236 * include/std/scoped_allocator: Likewise.
5237 * libsupc++/eh_alloc.cc: Likewise.
5238 * include/std/future: Add nodiscard attribute to async.
5239 * libsupc++/new: Add nodiscard attribute to new.
5241 2019-01-18 Jonathan Wakely <jwakely@redhat.com>
5246 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export new symbol.
5247 * include/bits/shared_ptr.h
5248 (shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...))
5249 (allocate_shared): Change to use new tag type.
5250 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_eq):
5251 Declare new member function.
5252 (_Sp_alloc_shared_tag): Define new type.
5253 (_Sp_counted_ptr_inplace): Declare __shared_count<_Lp> as a friend.
5254 (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Use
5255 _Sp_make_shared_tag::_S_eq to check type_info.
5256 (__shared_count(Ptr, Deleter),__shared_count(Ptr, Deleter, Alloc)):
5257 Constrain to prevent being called with _Sp_alloc_shared_tag.
5258 (__shared_count(_Sp_make_shared_tag, const _Alloc&, Args&&...)):
5259 Replace constructor with ...
5260 (__shared_count(Tp*&, _Sp_alloc_shared_tag<_Alloc>, Args&&...)): Use
5261 reference parameter so address of the new object can be returned to
5262 the caller. Obtain the allocator from the tag type.
5263 (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Replace
5264 constructor with ...
5265 (__shared_ptr(_Sp_alloc_shared_tag<Alloc>, Args&&...)): Pass _M_ptr
5266 to the __shared_count constructor.
5267 (__allocate_shared): Change to use new tag type.
5268 * src/c++11/shared_ptr.cc (_Sp_make_shared_tag::_S_eq): Define.
5270 2019-01-17 Jonathan Wakely <jwakely@redhat.com>
5272 * src/c++17/fs_ops.cc
5273 (equivalent(const path&, const path&, error_code&))
5274 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use GetFileInformationByHandle to
5275 compare files instead of relying on incomplete info returned by stat.
5278 * src/c++17/fs_ops.cc (absolute(const path&, error_code&)): Do nothing
5279 if the path is already absolute.
5280 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize root-directory.
5281 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Pass error_code to current_path.
5284 * src/c++17/fs_ops.cc (canonical(const path&, error_code&))
5285 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize path, to match behaviour
5286 of filesystem::exists.
5287 (create_directories(const path&, error_code&)): Add assertions.
5288 (status(const path&, error_code&)) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]:
5289 Add workaround for bug in _wstat for paths with trailing slash.
5290 * testsuite/27_io/filesystem/operations/create_directories.cc: Adjust
5291 for expected behaviour on mingw.
5292 * testsuite/experimental/filesystem/operations/create_directories.cc:
5294 * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Use
5295 "TMP" instead of "TMPDIR" and clean environment before each test. Do
5296 not test permissions on mingw targets.
5298 2019-01-16 Jonathan Wakely <jwakely@redhat.com>
5300 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add exports for fstream
5301 constructors and open members taking wide strings. Fix patterns for
5302 filesystem::path members to match wstring_view parameters. Add
5303 exports for shared_ptr members used by directory iterators.
5304 * src/c++17/fs_ops.cc (remove(const path&, error_code&)): Clear the
5305 error code parameter if the file doesn't exist.
5306 * src/filesystem/ops.cc (remove(const path&, error_code&)):
5308 * testsuite/27_io/filesystem/operations/canonical.cc: Fix expected
5309 values for mingw targets, where "/" is not an absolute path. Do not
5310 test symlinks on mingw targets.
5311 * testsuite/experimental/filesystem/operations/canonical.cc: Likewise.
5312 * testsuite/27_io/filesystem/operations/copy.cc: Do not test symlinks
5314 * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
5315 * testsuite/27_io/filesystem/operations/create_directories.cc: Check
5316 that each component of the path is created.
5317 * testsuite/experimental/filesystem/operations/create_directories.cc:
5319 * testsuite/27_io/filesystem/operations/exists.cc: Do not test
5320 permissions on mingw targets.
5321 * testsuite/experimental/filesystem/operations/exists.cc: Likewise.
5322 * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
5323 * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise.
5324 * testsuite/27_io/filesystem/operations/permissions.cc: XFAIL for
5326 * testsuite/experimental/filesystem/operations/permissions.cc:
5328 * testsuite/27_io/filesystem/operations/remove.cc: Do not test
5329 symlinks or permissions on mingw targets.
5330 * testsuite/experimental/filesystem/operations/remove.cc: Likewise.
5331 * testsuite/27_io/filesystem/operations/remove_all.cc: Do not test
5332 symlinks on mingw targets.
5333 * testsuite/experimental/filesystem/operations/remove_all.cc:
5335 * testsuite/27_io/filesystem/operations/status.cc: Do not test
5336 permissions on mingw targets.
5337 * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Do not
5338 test symlinks on mingw targets.
5339 * testsuite/experimental/filesystem/operations/space.cc: Fix test
5342 2019-02-14 Ulrich Drepper <drepper@redhat.com>
5345 Warn about unused comparisons of shared_ptr/unique_ptr
5346 * include/bits/c++config [_GLIBCXX_NODISCARD]: Define.
5347 * include/bits/shared_ptr.h: Use it for operator ==, !=,
5348 <, <=, >, >= for shared_ptr.
5349 * include/bits/unique_ptr.h: Likewise for unique_ptr.
5351 2019-01-15 Jonathan Wakely <jwakely@redhat.com>
5353 * include/bits/shared_ptr_base.h (__cpp_lib_shared_ptr_arrays): Define
5354 as 201611L, because P0497R0 changes are supported.
5355 * include/std/version (__cpp_lib_shared_ptr_arrays): Likewise.
5357 * include/bits/erase_if.h [__cplusplus > 201703L]
5358 (__cpp_lib_erase_if): Only define for C++2a.
5359 * include/std/iterator [__cplusplus >= 201402L && !_GLIBCXX_DEBUG]
5360 (__cpp_lib_null_iterators): Define.
5361 * include/std/version [__cplusplus >= 201402L && !_GLIBCXX_DEBUG]
5362 (__cpp_lib_null_iterators): Define.
5363 [__cpp_impl_destroying_delete] (__cpp_lib_destroying_delete): Define.
5365 * doc/xml/manual/status_cxx2017.xml: Document P0032R3 and P0307R2
5367 * include/bits/stl_uninitialized.h (__cpp_lib_raw_memory_algorithms):
5369 * include/std/any (__cpp_lib_any): Define as 201606L, because P0032R3
5370 changes are supported.
5371 * include/std/optional (__cpp_lib_optional): Likewise.
5372 * include/std/variant (__cpp_lib_variant): Likewise.
5373 * include/std/version [!__STRICT_ANSI__]
5374 (__cpp_lib_uncaught_exceptions): Define as long integer.
5375 [__cplusplus >= 201703L] (__cpp_lib_any)
5376 (__cpp_lib_raw_memory_algorithms, __cpp_lib_uncaught_exceptions)
5377 (__cpp_lib_variant): Define for C++17.
5378 [__cplusplus >= 201703L] (__cpp_lib_optional): Update value and define
5380 * libsupc++/exception (__cpp_lib_uncaught_exceptions): Define as long
5383 * doc/xml/manual/status_cxx2020.xml: Update P1123R0 status.
5385 2019-01-12 Jonathan Wakely <jwakely@redhat.com>
5389 * src/filesystem/path.cc: Fix typo. If first path is empty, show []
5391 * testsuite/experimental/filesystem/filesystem_error/cons.cc: New
5394 2019-01-11 Jonathan Wakely <jwakely@redhat.com>
5396 * doc/xml/manual/intro.xml: Include new section.
5397 * doc/xml/manual/status_cxx2017.xml: Document more
5398 implementation-defined properties of the library.
5399 * doc/xml/manual/status_cxx2020.xml: Document C++2a status.
5400 * doc/html/*: Regenerate.
5402 * include/bits/refwrap.h [__cplusplus > 201703L]
5403 (_Refwrap_base_arg1, _Refwrap_base_arg2, _Reference_wrapper_base)
5404 (_Reference_wrapper_base_memfun): Do not define for C++2a.
5405 (reference_wrapper): Do not derive from _Reference_wrapper_base_memfun
5407 (reference_wrapper::operator()): Add static assertion.
5408 * testsuite/20_util/reference_wrapper/incomplete.cc: New test.
5410 * include/std/chrono (duration_values::zero(), duration_values::min())
5411 (duration_values::max()): Add noexcept.
5412 (duration::zero(), duration::min(), duration::max()): Likewise.
5413 (time_point::zero(), time_point::min(), time_point::max()): Likewise.
5414 * testsuite/20_util/duration/requirements/noexcept.cc: New test.
5415 * testsuite/20_util/time_point/requirements/noexcept.cc: New test.
5417 * include/std/version (__cpp_lib_erase_if): Move to C++20 group.
5419 2019-01-11 Jakub Jelinek <jakub@redhat.com>
5421 * include/std/type_traits (__cpp_lib_is_constant_evaluated): Define.
5422 * include/std/version (__cpp_lib_is_constant_evaluated): Define.
5424 2019-01-11 Jonathan Wakely <jwakely@redhat.com>
5427 * include/bits/functional_hash.h (hash<nullptr_t>): Define
5428 specialization for C++17 (P0513R0, LWG 2817).
5429 * testsuite/20_util/hash/nullptr.cc: New test.
5432 * config/abi/pre/gnu.ver (GLIBCXX_3.4.6): Remove unused duplicate
5433 pattern for std::basic_stringbuf::str().
5435 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Correct recent changes to
5436 basic_ostream::operator<< patterns.
5438 2019-01-10 Jonathan Wakely <jwakely@redhat.com>
5440 * testsuite/27_io/filesystem/operations/last_write_time.cc: Fix
5441 test failures on targets with 32-bit time_t.
5443 * include/bits/erase_if.h: Define __cpp_lib_erase_if.
5444 * include/std/deque: Likewise.
5445 * include/std/forward_list: Likewise.
5446 * include/std/list: Likewise.
5447 * include/std/string: Likewise.
5448 * include/std/vector: Likewise.
5449 * include/std/version: Likewise.
5450 * testsuite/21_strings/basic_string/erasure.cc: Test macro.
5451 * testsuite/23_containers/deque/erasure.cc: Likewise.
5452 * testsuite/23_containers/forward_list/erasure.cc: Likewise.
5453 * testsuite/23_containers/list/erasure.cc: Likewise.
5454 * testsuite/23_containers/map/erasure.cc: Likewise.
5455 * testsuite/23_containers/set/erasure.cc: Likewise.
5456 * testsuite/23_containers/unordered_map/erasure.cc: Likewise.
5457 * testsuite/23_containers/unordered_set/erasure.cc: Likewise.
5458 * testsuite/23_containers/vector/erasure.cc: Likewise.
5460 * include/experimental/internet [AI_NUMERICSERV]
5461 (resolver_base::numeric_service): Define conditionally.
5462 * testsuite/experimental/net/internet/resolver/base.cc: Test it
5464 * testsuite/experimental/net/internet/resolver/ops/lookup.cc:
5467 2019-01-10 Ville Voutilainen <ville.voutilainen@gmail.com>
5468 Jonathan Wakely <jwakely@redhat.com>
5471 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten patterns.
5472 (GLIBCXX_3.4.26): Add new exports.
5473 * include/Makefile.am: Add ostream-inst.cc. Move string-inst.cc to
5474 correct list of sources.
5475 * include/Makefile.in: Regenerate.
5476 * include/std/ostream (operator<<(nullptr_t)): New member function.
5477 * src/c++17/ostream-inst.cc: New file.
5478 * testsuite/27_io/basic_ostream/inserters_other/char/lwg2221.cc: New
5481 2019-01-10 Jonathan Wakely <jwakely@redhat.com>
5483 * testsuite/util/testsuite_fs.h (nonexistent_path): Include name
5484 of the source file containing the caller.
5485 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Remove
5486 directories created by test.
5487 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
5489 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
5491 * testsuite/experimental/filesystem/iterators/
5492 recursive_directory_iterator.cc: Likewise.
5494 2019-01-10 Jakub Jelinek <jakub@redhat.com>
5496 PR tree-optimization/88775
5497 * include/bits/stl_function.h (greater<_Tp*>::operator(),
5498 less<_Tp*>::operator(), greater_equal<_Tp*>::operator(),
5499 less_equal<_Tp*>::operator()): Use __builtin_is_constant_evaluated
5500 instead of __builtin_constant_p if available. Don't bother with
5501 the pointer comparison in C++11 and earlier.
5503 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
5507 * include/ext/bitmap_allocator.h: Mechanically replace "can not"
5510 2019-01-09 Jonathan Wakely <jwakely@redhat.com>
5512 * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix expected output
5513 for filesystem::path. Give variables more distinctive names.
5515 * include/std/optional (_Optional_payload_base::_M_copy_assign): New
5516 member function to perform non-trivial assignment.
5517 (_Optional_payload_base::_M_move_assign): Likewise.
5518 (_Optional_payload<T, true, false, true>::operator=)
5519 (_Optional_payload<T, true, true, false>::operator=)
5520 (_Optional_payload<T, true, false, false>::operator=): Call
5521 _M_copy_assign and/or _M_move_assign to do non-trivial assignments.
5524 * testsuite/26_numerics/complex/operators/more_constexpr.cc: Do not
5525 test std::complex<long double> if long double format is IBM128.
5526 * testsuite/26_numerics/complex/requirements/more_constexpr.cc:
5529 2019-01-08 Jonathan Wakely <jwakely@redhat.com>
5531 * testsuite/libstdc++-prettyprinters/compat.cc: Test printer support
5532 for old std::unique_ptr layout.
5533 * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix std::variant test
5534 to become valueless. Add filesystem::path tests.
5537 * include/std/optional (_Optional_payload_base): New class template
5538 for common code hoisted from _Optional_payload specializations. Use
5539 a template for the union, to allow a partial specialization for
5540 types with non-trivial destructors. Add constructors for in-place
5541 initialization to the union.
5542 (_Optional_payload(bool, const _Optional_payload&)): Use _M_construct
5543 to perform non-trivial copy construction, instead of relying on
5544 non-standard copy elision in a delegating constructor.
5545 (_Optional_payload(bool, _Optional_payload&&)): Likewise for
5546 non-trivial move construction.
5547 (_Optional_payload): Derive from _Optional_payload_base and use it
5548 for everything except the non-trivial assignment operators, which are
5550 (_Optional_payload<false, C, M>): Derive from the specialization
5551 _Optional_payload<true, false, false> and add a destructor.
5552 (_Optional_base_impl::_M_destruct, _Optional_base_impl::_M_reset):
5553 Forward to corresponding members of _Optional_payload.
5554 (_Optional_base_impl::_M_is_engaged, _Optional_base_impl::_M_get):
5555 Hoist common members from _Optional_base.
5556 (_Optional_base): Make all members and base class public.
5557 (_Optional_base::_M_get, _Optional_base::_M_is_engaged): Move to
5558 _Optional_base_impl.
5559 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter): Add
5560 support for new std::optional layout.
5561 * testsuite/libstdc++-prettyprinters/compat.cc: New test.
5564 * include/bits/locale_conv.h: Use <> for includes not "".
5565 * include/ext/random: Likewise.
5566 * include/ext/vstring.h: Likewise.
5568 2019-01-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5570 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten existing patterns.
5571 (GLIBCXX_3.4.21): Likewise.
5573 2019-01-08 Jonathan Wakely <jwakely@redhat.com>
5576 * src/filesystem/ops.cc (last_write_time): Fix preprocessor condition
5577 to match the one that controls whether utimbuf and utime are declared.
5579 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
5582 * include/bits/char_traits.h (char_traits::move): Do not pass null
5583 pointers to memmove.
5584 * include/bits/locale_facets.h
5585 (ctype<char>::widen(const char*, const char*, char*)): Do not
5586 pass null pointers to memcpy.
5587 (ctype<char>::narrow(const char*, const char*, char, char*)):
5589 (ctype<char>::do_widen(const char*, const char*, char*)):
5591 (ctype<char>::do_narrow(const char*, const char*, char, char*)):
5594 * doc/xml/manual/spine.xml: Update copyright years.
5595 * doc/xml/manual/status_cxx2017.xml: Adjust note about -lstdc++fs.
5596 * doc/xml/manual/using.xml: Remove requirement to link with -lstdc++fs
5597 for C++17 filesystem library.
5598 * doc/html/*: Regenerate.
5600 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for truncate.
5601 * config.h.in: Regenerate.
5602 * config/abi/pre/gnu.ver: Order patterns for filesystem operations
5603 alphabetically and add missing entries for copy_symlink,
5604 hard_link_count, rename, and resize_file.
5605 * configure: Regenerate.
5606 * src/c++17/fs_ops.cc (resize_file): Remove #if so posix::truncate is
5607 used unconditionally.
5608 * src/filesystem/ops-common.h (__gnu_posix::truncate)
5609 [!_GLIBCXX_HAVE_TRUNCATE]: Provide fallback definition that only
5610 supports truncating to zero length.
5611 * testsuite/27_io/filesystem/operations/all.cc: New test.
5612 * testsuite/27_io/filesystem/operations/resize_file.cc: New test.
5614 2019-01-06 Jonathan Wakely <jwakely@redhat.com>
5617 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for utime and
5618 lstat and define _GLIBCXX_USE_UTIME and _GLIBCXX_USE_LSTAT.
5619 * config.h.in: Regenerate.
5620 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export symbols for
5621 remaining std::filesystem types and functions.
5622 * configure: Regenerate.
5623 * src/c++17/Makefile.am: Add C++17 filesystem sources.
5624 * src/c++17/Makefile.in: Regenerate.
5625 * src/c++17/cow-fs_dir.cc: Move src/filesystem/cow-std-dir.cc to
5626 here, and change name of included file.
5627 * src/c++17/cow-fs_ops.cc: Move src/filesystem/cow-std-ops.cc to
5628 here, and change name of included file.
5629 * src/c++17/fs_dir.cc: Move src/filesystem/std-dir.cc to here. Change
5630 path to dir-common.h.
5631 * src/c++17/fs_ops.cc: Move src/filesystem/std-ops.cc to here. Change
5632 path to ops-common.h. Disable -Wunused-parameter warnings.
5633 (internal_file_clock): Define unconditionally.
5634 [!_GLIBCXX_HAVE_SYS_STAT_H] (internal_file_clock::from_stat): Do not
5636 (do_copy_file, do_space): Move definitions to ops.common.h.
5637 (copy, file_size, hard_link_count, last_write_time, space): Only
5638 perform operation when _GLIBCXX_HAVE_SYS_STAT_H is defined, otherwise
5640 (last_write_time, read_symlink): Remove unused attributes from
5642 * src/filesystem/Makefile.am: Remove C++17 filesystem sources.
5643 * src/filesystem/Makefile.in: Regenerate.
5644 * src/filesystem/cow-std-dir.cc: Move to src/c++17/cow-fs_dir.cc.
5645 * src/filesystem/cow-std-ops.cc: Move to src/c++17/cow-fs_ops.cc.
5646 * src/filesystem/std-dir.cc: Move to src/c++17/fs_dir.cc.
5647 * src/filesystem/std-ops.cc: Move to src/c++17/fs_ops.cc.
5648 * src/filesystem/dir-common.h [!_GLIBCXX_HAVE_DIRENT_H]: Define
5649 dummy types and functions instead of using #error.
5650 * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H]: Use #error.
5651 * src/filesystem/ops-common.h [!_GLIBCXX_USE_LSTAT] (lstat): Define
5653 [!_GLIBCXX_HAVE_UNISTD_H]: Define dummy types and functions.
5654 (do_copy_file, do_space): Move definitions here from std-ops.cc.
5655 * src/filesystem/ops.cc: Adjust calls to do_copy_file and do_space
5656 to account for new namespace.
5657 * testsuite/27_io/filesystem/directory_entry/86597.cc: Remove
5658 -lstdc++fs from dg-options.
5659 * testsuite/27_io/filesystem/directory_entry/lwg3171.cc: Likewise.
5660 * testsuite/27_io/filesystem/file_status/1.cc: Likewise.
5661 * testsuite/27_io/filesystem/filesystem_error/cons.cc: Likewise.
5662 * testsuite/27_io/filesystem/filesystem_error/copy.cc: Likewise.
5663 * testsuite/27_io/filesystem/iterators/directory_iterator.cc:
5665 * testsuite/27_io/filesystem/iterators/pop.cc: Likewise.
5666 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
5668 * testsuite/27_io/filesystem/operations/absolute.cc: Likewise.
5669 * testsuite/27_io/filesystem/operations/canonical.cc: Likewise.
5670 * testsuite/27_io/filesystem/operations/copy.cc: Likewise.
5671 * testsuite/27_io/filesystem/operations/copy_file.cc: Likewise.
5672 * testsuite/27_io/filesystem/operations/create_directories.cc:
5674 * testsuite/27_io/filesystem/operations/create_directory.cc: Likewise.
5675 * testsuite/27_io/filesystem/operations/create_symlink.cc: Likewise.
5676 * testsuite/27_io/filesystem/operations/current_path.cc: Likewise.
5677 * testsuite/27_io/filesystem/operations/equivalent.cc: Likewise.
5678 * testsuite/27_io/filesystem/operations/exists.cc: Likewise.
5679 * testsuite/27_io/filesystem/operations/file_size.cc: Likewise.
5680 * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
5681 * testsuite/27_io/filesystem/operations/last_write_time.cc: Likewise.
5682 * testsuite/27_io/filesystem/operations/permissions.cc: Likewise.
5683 * testsuite/27_io/filesystem/operations/proximate.cc: Likewise.
5684 * testsuite/27_io/filesystem/operations/read_symlink.cc: Likewise.
5685 * testsuite/27_io/filesystem/operations/relative.cc: Likewise.
5686 * testsuite/27_io/filesystem/operations/remove.cc: Likewise.
5687 * testsuite/27_io/filesystem/operations/remove_all.cc: Likewise.
5688 * testsuite/27_io/filesystem/operations/space.cc: Likewise.
5689 * testsuite/27_io/filesystem/operations/status.cc: Likewise.
5690 * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
5691 * testsuite/27_io/filesystem/operations/temp_directory_path.cc:
5693 * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Likewise.
5697 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Make various patterns for
5698 typeinfo and vtables less greedy.
5699 (GLIBCXX_3.4.26): Export symbols for std::filesystem::path.
5700 * src/c++17/Makefile.am: Add fs_path.cc and cow-fs_path.cc.
5701 * src/c++17/Makefile.in: Regenerate.
5702 * src/c++17/cow-fs_path.cc: Move src/filesystem/cow-std-path.cc to
5703 here, and change name of included file.
5704 * src/c++17/fs_path.cc: Move src/filesystem/std-path.cc to here.
5705 * src/filesystem/Makefile.am: Remove std-path.cc and cow-std-path.cc
5707 * src/filesystem/Makefile.in: Regenerate.
5708 * src/filesystem/cow-std-path.cc: Move to src/c++17/cow-fs_path.cc.
5709 * src/filesystem/std-path.cc: Move to src/c++17/fs_path.cc.
5710 * testsuite/27_io/filesystem/path/append/path.cc: Remove -lstdc++fs
5711 from dg-options and remove dg-require-filesystem-ts.
5712 * testsuite/27_io/filesystem/path/append/source.cc: Likewise.
5713 * testsuite/27_io/filesystem/path/assign/assign.cc: Likewise.
5714 * testsuite/27_io/filesystem/path/assign/copy.cc: Likewise.
5715 * testsuite/27_io/filesystem/path/compare/compare.cc: Likewise.
5716 * testsuite/27_io/filesystem/path/compare/lwg2936.cc: Likewise.
5717 * testsuite/27_io/filesystem/path/compare/path.cc: Likewise.
5718 * testsuite/27_io/filesystem/path/compare/strings.cc: Likewise.
5719 * testsuite/27_io/filesystem/path/concat/path.cc: Likewise.
5720 * testsuite/27_io/filesystem/path/concat/strings.cc: Likewise.
5721 * testsuite/27_io/filesystem/path/construct/80762.cc: Likewise.
5722 * testsuite/27_io/filesystem/path/construct/copy.cc: Likewise.
5723 * testsuite/27_io/filesystem/path/construct/default.cc: Likewise.
5724 * testsuite/27_io/filesystem/path/construct/format.cc: Likewise.
5725 * testsuite/27_io/filesystem/path/construct/locale.cc: Likewise.
5726 * testsuite/27_io/filesystem/path/construct/range.cc: Likewise.
5727 * testsuite/27_io/filesystem/path/construct/string_view.cc: Likewise.
5728 * testsuite/27_io/filesystem/path/decompose/extension.cc: Likewise.
5729 * testsuite/27_io/filesystem/path/decompose/filename.cc: Likewise.
5730 * testsuite/27_io/filesystem/path/decompose/parent_path.cc: Likewise.
5731 * testsuite/27_io/filesystem/path/decompose/relative_path.cc: Likewise.
5732 * testsuite/27_io/filesystem/path/decompose/root_directory.cc:
5734 * testsuite/27_io/filesystem/path/decompose/root_name.cc: Likewise.
5735 * testsuite/27_io/filesystem/path/decompose/root_path.cc: Likewise.
5736 * testsuite/27_io/filesystem/path/decompose/stem.cc: Likewise.
5737 * testsuite/27_io/filesystem/path/generation/normal.cc: Likewise.
5738 * testsuite/27_io/filesystem/path/generation/normal2.cc: Likewise.
5739 * testsuite/27_io/filesystem/path/generation/proximate.cc: Likewise.
5740 * testsuite/27_io/filesystem/path/generation/relative.cc: Likewise.
5741 * testsuite/27_io/filesystem/path/generic/generic_string.cc: Likewise.
5742 * testsuite/27_io/filesystem/path/itr/components.cc: Likewise.
5743 * testsuite/27_io/filesystem/path/itr/traversal.cc: Likewise.
5744 * testsuite/27_io/filesystem/path/modifiers/clear.cc: Likewise.
5745 * testsuite/27_io/filesystem/path/modifiers/make_preferred.cc:
5747 * testsuite/27_io/filesystem/path/modifiers/remove_filename.cc:
5749 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
5751 * testsuite/27_io/filesystem/path/modifiers/replace_filename.cc:
5753 * testsuite/27_io/filesystem/path/modifiers/swap.cc: Likewise.
5754 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
5755 * testsuite/27_io/filesystem/path/nonmember/append.cc: Likewise.
5756 * testsuite/27_io/filesystem/path/nonmember/hash_value.cc: Likewise.
5757 * testsuite/27_io/filesystem/path/query/empty.cc: Likewise.
5758 * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise.
5759 * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise.
5760 * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise.
5761 * testsuite/27_io/filesystem/path/query/has_relative_path.cc: Likewise.
5762 * testsuite/27_io/filesystem/path/query/has_root_directory.cc:
5764 * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise.
5765 * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise.
5766 * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise.
5767 * testsuite/27_io/filesystem/path/query/is_absolute.cc: Likewise.
5768 * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise.
5771 * include/std/variant (_Variant_storage<true, _Types...>::_M_valid):
5772 Check is_trivially_copyable instead of is_scalar.
5773 (variant::emplace<N, Args>(Args&&...)): If construction of the new
5774 contained value can throw and its type is trivially copyable then
5775 construct into a temporary variant and move from it, to provide the
5776 strong exception safety guarantee.
5777 (variant::emplace<N, U, Args>(initializer_list<U>, Args&&...)):
5779 * testsuite/20_util/variant/87431.cc: New test.
5780 * testsuite/20_util/variant/run.cc: Adjust test so that throwing
5781 conversion causes valueless state.
5784 * testsuite/17_intro/headers/c++1998/charset.cc: New test.
5785 * testsuite/17_intro/headers/c++2011/charset.cc: New test.
5786 * testsuite/17_intro/headers/c++2014/charset.cc: New test.
5787 * testsuite/17_intro/headers/c++2017/charset.cc: New test.
5788 * testsuite/17_intro/headers/c++2020/charset.cc: New test.
5790 2019-01-05 Jonathan Wakely <jwakely@redhat.com>
5792 * include/bits/fs_fwd.h (__file_clock): Define new clock.
5793 (file_time_type): Redefine in terms of __file_clock.
5794 * src/filesystem/ops-common.h (file_time): Add FIXME comment about
5796 * src/filesystem/std-ops.cc (is_set(perm_options, perm_options)): Give
5798 (internal_file_lock): New helper type for accessing __file_clock.
5799 (do_copy_file): Use internal_file_lock to convert system time to
5801 (last_write_time(const path&, error_code&)): Likewise.
5802 (last_write_time(const path&, file_time_type, error_code&)): Likewise.
5804 2019-01-04 Jonathan Wakely <jwakely@redhat.com>
5806 * config/abi/pre/gnu.ver (GLIBCXX_3.4.21): Make patterns less greedy
5807 for const member functions of std::basic_string.
5808 (GLIBCXX_3.4.26): Export member functions of std::basic_string added
5810 * include/bits/basic_string.h (basic_string(__sv_wrapper, const A&)):
5811 Make non-standard constructor private.
5812 [!_GLIBCXX_USE_CXX11_ABI] (basic_string(__sv_wrapper, const A&)):
5814 * include/bits/basic_string.tcc (std::string, std::wstring): Declare
5815 explicit instantiations for C++17 as well as earlier dialects.
5816 * src/c++17/Makefile.am: Add new source files.
5817 * src/c++17/Makefile.in: Regenerate.
5818 * src/c++17/cow-string-inst.cc: New file defining explicit
5819 instantiations for basic_string member functions added in C++17.
5820 * src/c++17/string-inst.cc: Likewise.
5822 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export allocator-extended
5823 copy/move constructors for old std::basic_string.
5824 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
5825 (basic_string::reference, basic_string::const_reference): Define
5826 as plain references for C++11 and later.
5827 (basic_string::basic_string()): Put constructor body outside
5828 preprocessor conditional groups.
5829 (basic_string::basic_string(basic_string&&)): Move _Alloc_hider
5830 instead of copying it.
5831 (basic_string::basic_string(const basic_string&, const _Alloc&)):
5833 (basic_string::basic_string(basic_string&&, const _Alloc&)):
5835 * include/bits/fs_path.h [!_GLIBCXX_USE_CXX11_ABI]: Remove special
5836 cases for old basic_string.
5837 * testsuite/21_strings/basic_string/cons/char/8.cc: Test
5838 allocator-extended constructors unconditionally. Add extra members to
5839 allocator type when using old string ABI.
5840 * testsuite/21_strings/basic_string/allocator/71964.cc: Enable test
5842 * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise.
5844 * testsuite/23_containers/list/61347.cc: Avoid spurious failure when
5845 -fno-inline added to test flags.
5847 * testsuite/21_strings/basic_string/requirements/
5848 explicit_instantiation/debug.cc: Remove XFAIL for old ABI.
5850 * testsuite/27_io/filesystem/filesystem_error/copy.cc: Fix static
5851 assertion failures with old std::string ABI.
5853 * include/bits/fs_path.h (path::_List::erase): Replace both overloads
5855 (path::pop_back(), path::_M_erase_from(const_iterator)): New member
5856 functions that will only erase elements at the end.
5857 * src/filesystem/std-path.cc (path::_List::_Impl::pop_back()): Define.
5858 (path::_List::_Impl::_M_erase_from(const_iterator)): Define.
5859 (path::_List::operator=(const _List&)): Use _M_erase_from(p) instead
5861 (path::_List::pop_back()): Define.
5862 (path::_List::_M_erase_from(const_iterator)): Define.
5863 (path::operator/=(const path&)): Use pop_back to remove last component
5864 and _M_erase_from to remove multiple components.
5865 (path::_M_append(basic_string_view<value_type>)): Likewise.
5866 (path::operator+=(const path&)): Likewise.
5867 (path::_M_concat(basic_string_view<value_type>)): Likewise.
5868 (path::remove_filename()): Likewise.
5869 (path::lexically_normal()): Use _List::_Impl iterators instead of
5870 path::iterator. Use pop_back to remove components from the end. Clear
5871 trailing filename, instead of using erase(const_iterator) to remove
5872 a non-final component.
5873 * testsuite/27_io/filesystem/path/generation/normal.cc: Test
5875 * testsuite/27_io/filesystem/path/generation/normal2.cc: New test.
5877 * src/filesystem/std-path.cc (path::operator+=(const path&)): Fix
5878 incorrect treatment of empty filename after trailing slash.
5879 * testsuite/27_io/filesystem/path/concat/path.cc: Test problem case.
5881 * testsuite/21_strings/basic_string/modifiers/assign/char/
5882 move_assign_optim.cc: Avoid spurious failure when -fno-inline added
5884 * testsuite/21_strings/basic_string/modifiers/assign/wchar_t/
5885 move_assign_optim.cc: Likewise.
5887 2019-01-03 Jonathan Wakely <jwakely@redhat.com>
5888 Jakub Jelinek <jakub@redhat.com>
5891 * include/experimental/memory: Replace UTF-8 quote characters.
5892 * include/std/future: Replace UTF-8 "em dash" characters.
5894 2019-01-03 Jonathan Wakely <jwakely@redhat.com>
5897 * include/bits/forward_list.h: Replace UTF-8 "ligature fi" character.
5898 * include/debug/forward_list: Likewise.
5899 * include/experimental/bits/shared_ptr.h: Remove UTF-8 "section sign"
5901 * include/experimental/chrono: Likewise.
5902 * include/experimental/functional: Likewise.
5903 * include/experimental/ratio: Likewise.
5904 * include/experimental/system_error: Likewise.
5905 * include/experimental/tuple: Likewise.
5906 * include/experimental/type_traits: Likewise.
5907 * include/parallel/workstealing.h: Replace UTF-8 "en dash" character.
5908 * include/parallel/multiseq_selection.h: Likewise.
5911 * config/abi/pre/gnu.ver: Add missing exports.
5912 * testsuite/22_locale/collate_byname/88681.cc: New test.
5913 * testsuite/22_locale/time_get/get/char/88681.cc: New test.
5914 * testsuite/22_locale/time_get/get/wchar_t/88681.cc: New test.
5916 2019-01-02 Jonathan Wakely <jwakely@redhat.com>
5918 * testsuite/23_containers/map/cons/deduction.cc: Test deduction from
5919 initializer_list<value_type> and from input iterator ranges.
5920 * testsuite/23_containers/multimap/cons/deduction.cc: Likewise.
5922 * testsuite/experimental/string_view/element_access/char/empty.cc:
5923 Fix year range in copyright header.
5925 2019-01-02 Joel Brobecker <brobecker@adacore.com>
5927 * testsuite/21_strings/basic_string_view/element_access/char/empty.cc:
5928 Fix year range in copyright header.
5930 2019-01-01 Jakub Jelinek <jakub@redhat.com>
5932 Update copyright years.
5934 Copyright (C) 2019 Free Software Foundation, Inc.
5936 Copying and distribution of this file, with or without modification,
5937 are permitted in any medium without royalty provided the copyright
5938 notice and this notice are preserved.