1 2019-07-17 Andreas Schwab <schwab@suse.de>
3 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
5 2019-07-16 Jason Merrill <jason@redhat.com>
7 * include/std/memory (uses_allocator_construction_args): Add parens
10 2019-07-12 Jonathan Wakely <jwakely@redhat.com>
12 * testsuite/29_atomics/atomic_float/1.cc: Fix comment.
14 * include/experimental/string_view (__detail::__idt): Remove.
15 (operator==, operator!=, operator<, operator>, operator<=, operator>=):
16 Use __type_identity_t instead of __detail::__idt;
17 * include/std/string_view (__detail::__idt): Remove.
18 (operator==, operator!=, operator<, operator>, operator<=, operator>=):
19 Use __type_identity_t instead of __detail::__idt;
20 * include/std/type_traits (__type_identity_t): New alias template.
22 * doc/xml/manual/status_cxx2020.xml: Update status for atomic_ref
23 and floating point atomics.
25 2019-07-11 Jonathan Wakely <jwakely@redhat.com>
27 * doc/xml/manual/configure.xml: Improve documentation of
28 --enable-libstdcxx-time option.
30 * include/bits/atomic_base.h (__atomic_impl): New namespace for
31 wrappers around atomic built-ins.
32 (__atomic_float, __atomic_ref): New class templates for use as base
34 * include/std/atomic (atomic<float>, atomic<double>)
35 (atomic<long double>): New explicit specializations.
36 (atomic_ref): New class template.
37 (__cpp_lib_atomic_ref): Define.
38 * include/std/version (__cpp_lib_atomic_ref): Define.
39 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error.
40 * testsuite/29_atomics/atomic_float/1.cc: New test.
41 * testsuite/29_atomics/atomic_float/requirements.cc: New test.
42 * testsuite/29_atomics/atomic_ref/deduction.cc: New test.
43 * testsuite/29_atomics/atomic_ref/float.cc: New test.
44 * testsuite/29_atomics/atomic_ref/generic.cc: New test.
45 * testsuite/29_atomics/atomic_ref/integral.cc: New test.
46 * testsuite/29_atomics/atomic_ref/pointer.cc: New test.
47 * testsuite/29_atomics/atomic_ref/requirements.cc: New test.
49 2019-07-06 Jonathan Wakely <jwakely@redhat.com>
51 * include/ext/atomicity.h (__exchange_and_add, __atomic_add): Replace
52 throw() with _GLIBCXX_NOTHROW.
53 (__atomic_add_dispatch): Return after performing atomic increment.
55 2019-07-05 Jonathan Wakely <jwakely@redhat.com>
57 * include/ext/atomicity.h [_GLIBCXX_ATOMIC_BUILTINS] (__atomic_add)
58 (__exchange_and_add): Replace static specifier with always_inline
60 (__exchange_and_add_single, __atomic_add_single): Likewise.
61 (__exchange_and_add_dispatch, __atomic_add_dispatch): Likewise. Also
62 combine !__gthread_active_p() and !__GTHREADS branches.
64 2019-07-03 Jonathan Wakely <jwakely@redhat.com>
67 * acinclude.m4 (libtool_VERSION): Bump to 6:27:0.
68 * configure: Regenerate.
69 * config/abi/pre/gnu.ver (GLIBCXX_3.4.27): Add new version. Export
71 * testsuite/27_io/filesystem/iterators/91067.cc: New test.
72 * testsuite/util/testsuite_abi.cc: Add new symbol version.
74 2019-07-02 Jonathan Wakely <jwakely@redhat.com>
76 * include/bits/c++config (_GLIBCXX_HAVE_BUILTIN_LAUNDER)
77 (_GLIBCXX_HAVE_BUILTIN_IS_CONSTANT_EVALUATED): Use __has_builtin
78 instead of __is_identifier to detect Clang support.
80 2019-07-02 Jim Wilson <jimw@sifive.com>
82 * configure.ac (BUILD_PDF): Also test for doxygen, dot, xsltproc,
84 * configure: Regenerate.
86 2019-06-27 Jonathan Wakely <jwakely@redhat.com>
89 * src/c++17/fs_path.cc (filesystem_error::_Impl): Use a string_view
90 for the what_arg parameters.
91 (filesystem_error::filesystem_error): Pass system_error::what() to
92 the _Impl constructor.
93 * testsuite/27_io/filesystem/filesystem_error/cons.cc: Ensure that
94 filesystem_error::what() contains system_error::what().
96 2019-06-26 Jonathan Wakely <jwakely@redhat.com>
98 * include/std/charconv (chars_format): Define bitmask type.
99 * testsuite/20_util/to_chars/chars_format.cc: New test.
101 * include/bits/fs_path.h (path::__is_encoded_char): Use __is_one_of.
102 * include/std/bit (_If_is_unsigned_integer_type): Remove.
103 (_If_is_unsigned_integer): Use __is_unsigned_integer.
104 (rotl(byte, unsigned), rotr(byte, unsigned), countl_zero(byte))
105 (countl_one(byte), countr_zero(byte), countr_one(byte))
106 (popcount(byte), ispow2(byte), ceil2(byte), floor2(byte))
107 (log2p1(byte)): Remove.
108 * include/std/charconv (__detail::__is_one_of): Move to <type_traits>.
109 (__detail::__is_int_to_chars_type): Remove.
110 (__detail::__integer_to_chars_result_type): Use __is_signed_integer
111 and __is_unsigned_integer.
112 * include/std/type_traits (__is_one_of): Move here from <charconv>.
113 (__is_signed_integer, __is_unsigned_integer): New helpers.
114 * testsuite/26_numerics/bit/bit.pow.two/ceil2.cc: Remove test for
116 * testsuite/26_numerics/bit/bit.pow.two/floor2.cc: Likewise.
117 * testsuite/26_numerics/bit/bit.pow.two/ispow2.cc: Likewise.
118 * testsuite/26_numerics/bit/bit.pow.two/log2p1.cc: Likewise.
119 * testsuite/26_numerics/bit/bitops.count/countl_one.cc: Likewise.
120 * testsuite/26_numerics/bit/bitops.count/countl_zero.cc: Likewise.
121 * testsuite/26_numerics/bit/bitops.count/countr_one.cc: Likewise.
122 * testsuite/26_numerics/bit/bitops.count/countr_zero.cc: Likewise.
123 * testsuite/26_numerics/bit/bitops.count/popcount.cc: Likewise.
124 * testsuite/26_numerics/bit/bitops.rot/rotl.cc: Likewise.
125 * testsuite/26_numerics/bit/bitops.rot/rotr.cc: Likewise.
127 2019-06-25 Jonathan Wakely <jwakely@redhat.com>
129 * include/std/numeric (midpoint(T, T)): Avoid std::abs in constexpr
132 2019-06-25 Jakub Jelinek <jakub@redhat.com>
134 * include/pstl/pstl_config.h (_PSTL_PRAGMA_SIMD_SCAN,
135 _PSTL_PRAGMA_SIMD_INCLUSIVE_SCAN, _PSTL_PRAGMA_SIMD_EXCLUSIVE_SCAN):
136 Define to OpenMP 5.0 pragmas even for GCC 10.0+.
137 (_PSTL_UDS_PRESENT): Define to 1 for GCC 10.0+.
139 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
141 * include/std/numeric (midpoint(T, T)): Change implementation for
142 floating-point types to avoid incorrect rounding of denormals.
143 * testsuite/26_numerics/midpoint/floating.cc: Add check for correct
144 rounding with denormals.
145 * testsuite/26_numerics/gcd/gcd_neg.cc: Adjust dg-error line numbers.
146 * testsuite/26_numerics/lcm/lcm_neg.cc: Likewise.
148 * testsuite/18_support/headers/cfloat/values_c++17.cc: New test.
150 2019-06-20 Jonathan Wakely <jwakely@redhat.com>
152 * acinclude.m4 (GLIBCXX_ENABLE_DEBUG): Only do debug build for final
154 * configure: Regenerate.
156 * include/std/variant (_Variant_storage, _Extra_visit_slot_needed):
157 Qualify calls to __never_valueless.
159 * doc/xml/manual/status_cxx2017.xml: Fix outdated reference to
162 * testsuite/libstdc++-prettyprinters/simple.cc: Use non-palindromic
163 vector<bool> for test.
164 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
166 2019-06-19 Jonathan Wakely <jwakely@redhat.com>
168 * include/bits/stream_iterator.h (istream_iterator::_M_equal()): Make
170 (istream_iterator::_M_read()): Do not check stream state before
171 attempting extraction. Set stream pointer to null when extraction
173 (operator==(const istream_iterator&, const istream_iterator&)): Change
174 to be a hidden friend of istream_iterator.
175 (operator!=(const istream_iterator&, const istream_iterator&)):
177 (ostream_iterator::ostream_iterator()): Add default constructor.
178 (ostream_iterator::ostream_iterator(ostream_type*, const C*)): Use
180 * testsuite/24_iterators/istream_iterator/1.cc: New test.
181 * testsuite/24_iterators/ostream_iterator/1.cc: New test.
182 * testsuite/24_iterators/ostream_iterator/70766.cc: Also check
183 constructor taking a string.
184 * testsuite/24_iterators/ostream_iterator/requirements/constexpr.cc:
187 2019-06-19 Michael Weghorn <m.weghorn@posteo.de>
188 Jonathan Wakely <jwakely@redhat.com>
191 * python/libstdcxx/v6/printers.py (StdVectorPrinter._iterator): Use
192 values of type bool for vector<bool> elements.
193 * testsuite/libstdc++-prettyprinters/simple.cc: Test vector<bool>.
194 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
196 2019-06-19 Jonathan Wakely <jwakely@redhat.com>
198 PR libstdc++/90920 partially revert r263433
199 * include/bits/stl_algo.h (__rotate): Restore checks for empty ranges.
200 (rotate): Remove checks.
201 * testsuite/25_algorithms/rotate/90920.cc: New test.
203 * include/std/numeric (reduce(Iter, Iter, T, BinOp)): Fix value
204 category used in invocable check.
205 (reduce(Iter, Iter, T)): Pass initial value as rvalue.
206 * testsuite/26_numerics/reduce/2.cc: New test.
208 2019-06-18 Jonathan Wakely <jwakely@redhat.com>
210 * include/bits/algorithmfwd.h: Change title of doc group.
211 * include/bits/stl_algo.h (for_each_n): Add new C++17 algorithm from
213 * include/bits/stl_numeric.h: Define doc group and add algos to it.
214 * include/std/numeric (__is_random_access_iter): New internal trait.
215 (reduce, transform_reduce, exclusive_scan, inclusive_scan)
216 (transform_exclusive_scan, transform_inclusive_scan): Likewise.
217 * testsuite/25_algorithms/for_each/for_each_n.cc: New test.
218 * testsuite/26_numerics/exclusive_scan/1.cc: New test.
219 * testsuite/26_numerics/inclusive_scan/1.cc: New test.
220 * testsuite/26_numerics/reduce/1.cc: New test.
221 * testsuite/26_numerics/transform_exclusive_scan/1.cc: New test.
222 * testsuite/26_numerics/transform_inclusive_scan/1.cc: New test.
223 * testsuite/26_numerics/transform_reduce/1.cc: New test.
224 * testsuite/util/testsuite_iterators.h (test_container::size()): New
227 * include/c_global/cstddef (std::byte): Perform arithmetic operations
228 in unsigned int to avoid promotion (LWG 2950).
230 2019-06-17 Jonathan Wakely <jwakely@redhat.com>
232 * testsuite/20_util/allocator/1.cc: Add sized delete, which fixes a
235 * include/c_global/cmath (__lerp, lerp): Add noexcept (LWG 3201).
237 PR libstdc++/90281 Fix string conversions for filesystem::path
238 * include/bits/fs_path.h (u8path) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]:
239 Use codecvt_utf8_utf16 instead of codecvt_utf8. Use
240 __str_codecvt_in_all to fail for partial conversions and throw on
242 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS && _GLIBCXX_USE_CHAR8_T]
243 (path::_Cvt<char8_t>): Add explicit specialization.
244 [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::_Cvt::_S_wconvert): Remove
246 [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::_Cvt::_S_convert): Use
247 if-constexpr instead of dispatching to _S_wconvert. Use codecvt
248 instead of codecvt_utf8. Use __str_codecvt_in_all and
249 __str_codecvt_out_all.
250 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::_Cvt::_S_convert): Use
251 codecvt instead of codecvt_utf8. Use __str_codecvt_out_all.
252 (path::_S_str_convert) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use
253 codecvt_utf8_utf16 instead of codecvt_utf8. Construct return values
254 with allocator. Use __str_codecvt_out_all. Fallthrough to POSIX code
255 after converting to UTF-8.
256 (path::_S_str_convert): Use codecvt instead of codecvt_utf8. Use
257 __str_codecvt_in_all.
258 (path::string): Fix initialization of string types with different
260 (path::u8string) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use
261 codecvt_utf8_utf16 instead of codecvt_utf8. Use __str_codecvt_out_all.
262 * include/bits/locale_conv.h (__do_str_codecvt): Reorder static and
264 (__str_codecvt_out_all, __str_codecvt_in_all): New functions that
265 return false for partial conversions.
266 * include/experimental/bits/fs_path.h (u8path):
267 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Implement correctly for mingw.
268 [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::_Cvt::_S_wconvert): Add
269 missing handling for char8_t. Use codecvt and codecvt_utf8_utf16
270 instead of codecvt_utf8. Use __str_codecvt_in_all and
271 __str_codecvt_out_all.
272 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::_Cvt::_S_convert): Use
273 codecvt instead of codecvt_utf8. Use __str_codecvt_out_all.
274 (path::string) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use
275 codecvt_utf8_utf16 instead of codecvt_utf8. Construct return values
276 with allocator. Use __str_codecvt_out_all and __str_codecvt_in_all.
277 (path::string) [!_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use
278 __str_codecvt_in_all.
279 (path::u8string) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use
280 codecvt_utf8_utf16 instead of codecvt_utf8. Use __str_codecvt_out_all.
281 * src/c++17/fs_path.cc (path::_S_convert_loc): Use
282 __str_codecvt_in_all.
283 * src/filesystem/path.cc (path::_S_convert_loc): Likewise.
284 * testsuite/27_io/filesystem/path/construct/90281.cc: New test.
285 * testsuite/27_io/filesystem/path/factory/u8path.cc: New test.
286 * testsuite/27_io/filesystem/path/native/string.cc: Test with empty
287 strings and with Unicode characters outside the basic multilingual
289 * testsuite/27_io/filesystem/path/native/alloc.cc: New test.
290 * testsuite/experimental/filesystem/path/construct/90281.cc: New test.
291 * testsuite/experimental/filesystem/path/factory/u8path.cc: New test.
292 * testsuite/experimental/filesystem/path/native/alloc.cc: New test.
293 * testsuite/experimental/filesystem/path/native/string.cc: Test with
294 empty strings and with Unicode characters outside the basic
297 2019-06-17 François Dumont <fdumont@gcc.gnu.org>
298 Jonathan Wakely <jwakely@redhat.com>
300 * include/bits/hashtable.h (struct _Hashtable::_Scoped_node): New type.
301 (_Hashtable::_M_insert_unique_node): Add key_type parameter. Don't
302 deallocate node if insertion fails.
303 (_Hashtable::_M_insert_multi_node): Likewise.
304 (_Hashtable::_M_reinsert_node): Pass additional key argument.
305 (_Hashtable::_M_reinsert_node_multi): Likewise. Remove FIXME.
306 (_Hashtable::_M_extract_node(size_t, __node_base*)): New function.
307 (_Hashtable::extract(const_iterator)): Use _M_extract_node.
308 (_Hashtable::extract(const _Key&)): Likewise.
309 (_Hashtable::_M_merge_unique): Pass additional key argument.
310 (_Hashtable::_M_emplace<Args>(true_type, Args&&...)): Likewise. Use
312 (_Hashtable::_M_insert): Likewise.
313 * include/bits/hashtable_policy.h (_Map_base::operator[]): Likewise.
314 (_Hashtable_alloc): Add comments to functions with misleading names.
316 2019-06-17 Jonathan Wakely <jwakely@redhat.com>
318 * testsuite/20_util/bad_function_call/what.cc: Include <string> header
320 * testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc: Likewise.
321 * testsuite/20_util/tuple/cons/allocator_with_any.cc: Include <memory>
322 header for std::allocator.
323 * testsuite/23_containers/array/tuple_interface/tuple_element.cc: Add
324 using-declaration for std::size_t.
325 * testsuite/23_containers/array/tuple_interface/tuple_size.cc:
327 * testsuite/23_containers/deque/cons/55977.cc: Include <istream> for
329 * testsuite/23_containers/vector/cons/55977.cc: Likewise.
330 * testsuite/experimental/map/erasure.cc: Include <string> for
332 * testsuite/experimental/unordered_map/erasure.cc: Likewise.
334 2019-06-14 Jonathan Wakely <jwakely@redhat.com>
336 * include/experimental/type_traits (experimental::nonesuch): Use
337 pragma to disable -Wctor-dtor-privacy warnings.
338 * include/std/type_traits (__is_convertible_helper<From, To, false>)
339 (__is_nt_convertible_helper<From, To, false>, __nonesuch): Likewise.
341 * include/std/version (__cpp_lib_bind_front): Add missing macro.
343 2019-06-12 Jonathan Wakely <jwakely@redhat.com>
345 * include/std/algorithm (__cpp_lib_parallel_algorithm): Fix value.
346 * include/std/memory (__cpp_lib_parallel_algorithm): Likewise.
347 * include/std/numeric (__cpp_lib_parallel_algorithm): Likewise.
348 * testsuite/25_algorithms/pstl/feature_test.cc: New test.
350 * include/std/variant (get<T>, get<N>, get_if<N>, get_if<T>)
351 (variant::emplace): Change static_assert messages from "should be"
353 (hash<monostate>::operator()): Remove name of unused parameter.
355 * include/std/mutex (scoped_lock::~scoped_lock()): Use fold
358 * include/Makefile.am: Add new <bits/charconv.h> header.
359 * include/Makefile.in: Regenerate.
360 * include/bits/basic_string.h (to_string(int), to_string(unsigned))
361 (to_string(long), to_string(unsigned long), to_string(long long))
362 (to_string(unsigned long long)): Rewrite to use __to_chars_10_impl.
363 * include/bits/charconv.h: New header.
364 (__detail::__to_chars_len): Move here from <charconv>.
365 (__detail::__to_chars_10_impl): New function extracted from
366 __detail::__to_chars_10.
367 * include/std/charconv (__cpp_lib_to_chars): Add, but comment out.
368 (__to_chars_unsigned_type): New class template that reuses
369 __make_unsigned_selector_base::__select to pick a type.
370 (__unsigned_least_t): Redefine as __to_chars_unsigned_type<T>::type.
371 (__detail::__to_chars_len): Move to new header.
372 (__detail::__to_chars_10): Add inline specifier. Move code doing the
373 output to __detail::__to_chars_10_impl and call that.
374 * include/std/version (__cpp_lib_to_chars): Add, but comment out.
375 * testsuite/21_strings/basic_string/numeric_conversions/char/
376 to_string.cc: Fix reference in comment. Remove unused variable.
377 * testsuite/21_strings/basic_string/numeric_conversions/char/
378 to_string_int.cc: New test.
380 2019-06-09 Edward Smith-Rowland <3dw4rd@verizon.net>
382 Fix ConstexprIterator requirements tests - No constexpr algorithms!
383 * testsuite/21_strings/basic_string_view/requirements/constexpr_iter.cc:
384 Replace copy with hand-rolled loop.
385 * testsuite/23_containers/array/requirements/constexpr_iter.cc:
388 2019-06-08 Edward Smith-Rowland <3dw4rd@verizon.net>
390 Test for C++20 p0858 - ConstexprIterator requirements.
391 * testsuite/21_strings/basic_string_view/requirements/constexpr_iter.cc:
393 * testsuite/23_containers/array/requirements/constexpr_iter.cc:
396 2019-06-07 Thomas Rodgers <trodgers@redhat.com>
398 Rename PSTL macro's consistent with libstdc++ (and llvm upstream
400 * include/bits/c++config: Rename all macros of the form __PSTL* to
402 * include/std/algorithm: Likewise.
403 * include/std/execution: Likewise.
404 * include/std/numeric: Likewise.
405 * include/std/memory: Likewise.
406 * include/pstl/glue_memory_impl.h: Likewise.
407 * include/pstl/numeric_impl.h: Likewise.
408 * include/pstl/glue_memory_defs.h: Likewise.
409 * include/pstl/execution_defs.h: Likewise.
410 * include/pstl/utils.h: Likewise.
411 * include/pstl/algorithm_fwd.h: Likewise.
412 * include/pstl/unseq_backend_simd.h: Likewise.
413 * include/pstl/glue_execution_defs.h: Likewise.
414 * include/pstl/algorithm_impl.h: Likewise.
415 * include/pstl/parallel_impl.h: Likewise.
416 * include/pstl/memory_impl.h: Likewise.
417 * include/pstl/glue_numeric_defs.h: Likewise.
418 * include/pstl/parallel_backend_utils.h: Likewise.
419 * include/pstl/glue_algorithm_defs.h: Likewise.
420 * include/pstl/parallel_backend.h: Likewise.
421 * include/pstl/glue_numeric_impl.h: Likewise.
422 * include/pstl/parallel_backend_tbb.h: Likewise.
423 * include/pstl/numeric_fwd.h: Likewise.
424 * include/pstl/glue_algorithm_impl.h: Likewise.
425 * include/pstl/execution_impl.h: Likewise.
426 * include/pstl/pstl_config.h: Likewise.
427 * testsuite/util/pstl/pstl_test_config.h: Likewise.
428 * testsuite/util/pstl/test_utils.h: Likewise.
429 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc:
431 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc:
433 * testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc:
435 * testsuite/26_numerics/pstl/numeric_ops/scan.cc: Likewise.
436 * testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: Likewise.
437 * testsuite/26_numerics/pstl/numeric_ops/reduce.cc: Likewise.
438 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: Likewise.
439 * testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc:
441 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: Likewise.
442 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: Likewise.
443 * testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: Likewise.
444 * testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: Likewise.
445 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc:
447 * testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: Likewise.
448 * testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: Likewise.
449 * testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: Likewise.
450 * testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: Likewise.
451 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc:
453 * testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: Likewise.
454 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: Likewise.
455 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc:
457 * testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc:
459 * testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: Likewise.
460 * testsuite/25_algorithms/pstl/alg_merge/merge.cc: Likewise.
461 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc:
463 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc:
465 * testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc:
467 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc:
469 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc:
471 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc:
473 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc:
475 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc:
477 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc:
479 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc:
481 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc:
483 * testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: Likewise.
485 Rename header guards to be consistent with upstream project's
487 * include/pstl/glue_memory_impl.h: Rename all macros of the form
488 _PSTL_(.*)_H to _PSTL_\U\1_H.
489 * include/pstl/numeric_impl.h: Likewise.
490 * include/pstl/glue_memory_defs.h: Likewise.
491 * include/pstl/execution_defs.h: Likewise.
492 * include/pstl/utils.h: Likewise.
493 * include/pstl/algorithm_fwd.h: Likewise.
494 * include/pstl/unseq_backend_simd.h: Likewise.
495 * include/pstl/glue_execution_defs.h: Likewise.
496 * include/pstl/algorithm_impl.h: Likewise.
497 * include/pstl/parallel_impl.h: Likewise.
498 * include/pstl/memory_impl.h: Likewise.
499 * include/pstl/glue_numeric_defs.h: Likewise.
500 * include/pstl/parallel_backend_utils.h: Likewise.
501 * include/pstl/glue_algorithm_defs.h: Likewise.
502 * include/pstl/parallel_backend.h: Likewise.
503 * include/pstl/glue_numeric_impl.h: Likewise.
504 * include/pstl/parallel_backend_tbb.h: Likewise.
505 * include/pstl/numeric_fwd.h: Likewise.
506 * include/pstl/glue_algorithm_impl.h: Likewise.
507 * include/pstl/execution_impl.h: Likewise.
508 * include/pstl/pstl_config.h: Likewise.
509 * testsuite/util/pstl/pstl_test_config.h: Likewise.
511 Synchronize libstdc++ parallel algorithms with upstream
513 * include/pstl/algorithm_fwd.h: Synchronize with
514 upstream PSTL project.
515 * include/pstl/algorithm_impl.h: Likewise.
516 * include/pstl/execution_defs.h: Likewise.
517 * include/pstl/execution_impl.h: Likewise.
518 * include/pstl/glue_algorithm_impl.h: Likewise.
519 * include/pstl/glue_execution_defs.h: Likewise.
520 * include/pstl/numeric_fwd.h: Likewise.
521 * include/pstl/numeric_impl.h: Likewise.
522 * include/pstl/parallel_backend.h: Likewise.
523 * include/pstl/pstl_config.h: Likewise.
524 * include/pstl/unseq_backend_simd.h: Likewise.
525 * include/pstl/parallel_backend_serial.h: New file.
526 * include/Makefile.am (pstl_headers): Add
527 parallel_backend_serial.h.
528 * include/Makefile.in: Regenerate.
530 Clean up non-conforming names
531 * include/pstl/algorithm_impl.h (__parallel_set_union_op):
532 Uglfiy copy_range1 and copy_range2
533 (__pattern_walk2_n): Rename local n to __n
534 * include/pstl/parallel_backend_tbb.h (struct __binary_no_op):
535 Rename parameter _T to _Tp.
537 Integrate non-TBB serial backend support
538 * include/bits/c++config: Adjust TBB detection logic to select serial
539 PSTL backend if no TBB present.
540 * testsuite/utils/pstl/test_utils.h: Remove check for
541 _PSTL_USE_PAR_POLICIES
543 2019-06-07 Jonathan Wakely <jwakely@redhat.com>
545 * testsuite/24_iterators/container_access.cc: Move dg-options before
546 dg-do directive so the target check uses the -std option.
549 * configure: Regenerate.
550 * src/Makefile.am (stamp-debug): Also test for missing makefile.
551 * src/Makefile.in: Regenerate.
553 2019-06-06 Jonathan Wakely <jwakely@redhat.com>
555 * include/std/array: Do not include <stdexcept>.
556 * include/std/optional: Include <exception> and
557 <bits/exception_defines.h> instead of <stdexcept>.
558 * testsuite/20_util/function_objects/searchers.cc: Include <cctype>
560 * testsuite/20_util/tuple/cons/deduction.cc: Include <memory> for
562 * testsuite/23_containers/map/erasure.cc: Include <string>.
563 * testsuite/23_containers/unordered_map/erasure.cc: Likewise.
565 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc: Add
566 dg-prune-output for different C++98 diagnostic.
567 * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc:
569 * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc:
571 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
573 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
575 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
577 * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
579 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
581 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
583 * testsuite/23_containers/vector/requirements/dr438/
584 constructor_1_neg.cc: Likewise.
585 * testsuite/23_containers/vector/requirements/dr438/
586 constructor_2_neg.cc: Likewise.
587 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
589 * testsuite/libstdc++-prettyprinters/compat.cc: Do not run for C++98.
591 * testsuite/23_containers/unordered_map/requirements/debug_container.cc:
592 Do not test allocator rebinding extension for C++2a.
593 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Change
594 dg-do directive for C++17 and C++2a.
596 * testsuite/23_containers/deque/requirements/explicit_instantiation/
597 1_c++0x.cc: Remove redundant test.
598 * testsuite/23_containers/deque/requirements/explicit_instantiation/
599 2.cc: Use target selector instead of preprocessor condition.
600 * testsuite/23_containers/deque/requirements/explicit_instantiation/
601 3.cc: Do not run test for C++2a.
602 * testsuite/23_containers/forward_list/requirements/
603 explicit_instantiation/3.cc: Likewise.
604 * testsuite/23_containers/forward_list/requirements/
605 explicit_instantiation/5.cc: Do not test allocator rebinding extension
607 * testsuite/23_containers/list/requirements/explicit_instantiation/
608 1_c++0x.cc: Remove redundant test.
609 * testsuite/23_containers/list/requirements/explicit_instantiation/
610 2.cc: Use target selector instead of preprocessor condition.
611 * testsuite/23_containers/list/requirements/explicit_instantiation/
612 3.cc: Do not run test for C++2a.
613 * testsuite/23_containers/list/requirements/explicit_instantiation/
614 5.cc: Do not test allocator rebinding extension for C++2a.
615 * testsuite/23_containers/map/requirements/explicit_instantiation/
616 1_c++0x.cc: Remove redundant test.
617 * testsuite/23_containers/map/requirements/explicit_instantiation/
618 2.cc: Adjust comment.
619 * testsuite/23_containers/map/requirements/explicit_instantiation/
620 3.cc: Do not run test for C++2a.
621 * testsuite/23_containers/map/requirements/explicit_instantiation/
622 5.cc: Do not test allocator rebinding extension for C++2a.
623 * testsuite/23_containers/multimap/requirements/explicit_instantiation/
624 1_c++0x.cc: Remove redundant test.
625 * testsuite/23_containers/multimap/requirements/explicit_instantiation/
626 3.cc: Do not run test for C++2a.
627 * testsuite/23_containers/multimap/requirements/explicit_instantiation/
628 5.cc: Do not test allocator rebinding extension for C++2a.
629 * testsuite/23_containers/multiset/requirements/explicit_instantiation/
630 3.cc: Do not run test for C++2a.
631 * testsuite/23_containers/multiset/requirements/explicit_instantiation/
632 5.cc: Do not test allocator rebinding extension for C++2a.
633 * testsuite/23_containers/set/requirements/explicit_instantiation/3.cc:
634 Do not run test for C++2a.
635 * testsuite/23_containers/set/requirements/explicit_instantiation/
636 1_c++0x.cc: Remove redundant test.
637 * testsuite/23_containers/set/requirements/explicit_instantiation/5.cc:
638 Do not test allocator rebinding extension for C++2a.
639 * testsuite/23_containers/unordered_map/requirements/
640 explicit_instantiation/3.cc: Likewise.
641 * testsuite/23_containers/unordered_map/requirements/
642 explicit_instantiation/5.cc: Do not test allocator rebinding extension
644 * testsuite/23_containers/unordered_multimap/requirements/
645 explicit_instantiation/3.cc: Do not run test for C++2a.
646 * testsuite/23_containers/unordered_multimap/requirements/
647 explicit_instantiation/5.cc: Do not test allocator rebinding extension
649 * testsuite/23_containers/unordered_multiset/requirements/
650 explicit_instantiation/3.cc: Do not run test for C++2a.
651 * testsuite/23_containers/unordered_multiset/requirements/
652 explicit_instantiation/5.cc: Do not test allocator rebinding extension
654 * testsuite/23_containers/unordered_set/requirements/
655 explicit_instantiation/3.cc: Do not run test for C++2a.
656 * testsuite/23_containers/unordered_set/requirements/
657 explicit_instantiation/5.cc: Do not test allocator rebinding extension
659 * testsuite/23_containers/vector/ext_pointer/explicit_instantiation/
660 2.cc: Remove redundant test.
661 * testsuite/23_containers/vector/ext_pointer/explicit_instantiation/
662 3.cc: Do not run test for C++2a.
663 * testsuite/23_containers/vector/requirements/explicit_instantiation/
666 * include/std/type_traits (is_empty, is_polymorphic, is_final)
667 (is_abstract, is_aggregate): Remove static_assert.
668 * testsuite/20_util/is_abstract/incomplete_neg.cc: Check for error
670 * testsuite/20_util/is_aggregate/incomplete_neg.cc: Likewise. Add
671 missing -std=gnu++17 option.
672 * testsuite/20_util/is_empty/incomplete_neg.cc: New test.
673 * testsuite/20_util/is_final/incomplete_neg.cc: New test.
674 * testsuite/20_util/is_polymorphic/incomplete_neg.cc: Check for error
677 * testsuite/18_support/set_terminate.cc: Do not run for C++98 mode.
678 * testsuite/18_support/set_unexpected.cc: Likewise.
679 * testsuite/20_util/is_nothrow_invocable/value.cc: Test converting to
681 * testsuite/20_util/is_nothrow_invocable/value_ext.cc: Fix constexpr
682 function to be valid in C++11.
683 * testsuite/26_numerics/complex/proj.cc: Do not run for C++98 mode.
684 * testsuite/experimental/names.cc: Do not run for C++98 mode. Do not
685 include Library Fundamentals or Networking headers in C++11 mode.
686 * testsuite/ext/char8_t/atomic-1.cc: Do not run for C++98 mode.
688 * include/std/tuple (_TC): Replace with _TupleConstraints.
689 (_TupleConstraints): New helper for SFINAE constraints, with more
690 expressive member functions to reduce duplication when used.
691 (tuple::_TC2, tuple::_TMC, tuple::_TNTC): Remove.
692 (tuple::_TCC): Replace dummy type parameter with bool non-type
693 parameter that can be used to check the pack size.
694 (tuple::_ImplicitDefaultCtor, tuple::_ExplicitDefaultCtor)
695 (tuple::_ImplicitCtor, tuple::_ExplicitCtor): New alias templates for
696 checking constraints in constructors.
697 (tuple::__valid_args, tuple::_UseOtherCtor, tuple::__use_other_ctor):
699 (tuple::tuple): Use new helpers to reduce repitition in constraints.
700 (tuple::tuple(allocator_arg_t, const Alloc&)): Constrain.
701 (tuple<T1, T2>::_TCC, tuple<T1, T2>::_ImplicitDefaultCtor)
702 (tuple<T1, T2>::_ExplicitDefaultCtor, tuple<T1, T2>::_ImplicitCtor)
703 (tuple<T1, T2>::_ExplicitCtor): New alias templates for checking
704 constraints in constructors.
705 (tuple::__is_alloc_arg()): New SFINAE helpers.
706 (tuple<T1, T2>::tuple): Use new helpers to reduce repitition in
708 (tuple<T1, T2>::tuple(allocator_arg_t, const Alloc&)): Constrain.
709 * testsuite/20_util/tuple/cons/90700.cc: New test.
710 * testsuite/20_util/tuple/cons/allocators.cc: Add default constructor
711 to meet new constraint on allocator-extended default constructor.
713 2019-06-03 Jonathan Wakely <jwakely@redhat.com>
715 * include/bits/stl_map.h (map): Disable static assert for C++98 mode.
716 * include/bits/stl_multimap.h (multimap): Likewise.
718 2019-06-03 François Dumont <fdumont@gcc.gnu.org>
720 Rename variables and cleanup comments.
721 * include/bits/hashtable_policy.h
722 * include/bits/hashtable.h
724 2019-06-03 Jonathan Wakely <jwakely@redhat.com>
726 * doc/xml/manual/status_cxx2020.xml: Add missing row for P0920R2.
727 Fix bgcolor for P0340R3.
728 * doc/html/*: Regenerate.
731 * doc/xml/manual/status_cxx2014.xml: Document what's missing from
732 <experimental/memory_resource>.
733 * doc/xml/manual/status_cxx2020.xml: Document status of P1285R0,
734 P0339R6, P0340R3, P1164R1 and P1357R1.
735 * doc/html/*: Regenerate.
737 * doc/xml/manual/status_cxx2020.xml: Document P1463R1 status.
738 * include/bits/forward_list.h [__cplusplus > 201703]: Enable
739 allocator::value_type assertion for C++2a.
740 * include/bits/hashtable.h: Likewise.
741 * include/bits/stl_deque.h: Likewise.
742 * include/bits/stl_list.h: Likewise.
743 * include/bits/stl_map.h: Likewise.
744 * include/bits/stl_multimap.h: Likewise.
745 * include/bits/stl_multiset.h: Likewise.
746 * include/bits/stl_set.h: Likewise.
747 * include/bits/stl_vector.h: Likewise.
748 * testsuite/23_containers/deque/48101-3_neg.cc: New test.
749 * testsuite/23_containers/forward_list/48101-3_neg.cc: New test.
750 * testsuite/23_containers/list/48101-3_neg.cc: New test.
751 * testsuite/23_containers/map/48101-3_neg.cc: New test.
752 * testsuite/23_containers/multimap/48101-3_neg.cc: New test.
753 * testsuite/23_containers/multiset/48101-3_neg.cc: New test.
754 * testsuite/23_containers/set/48101-3_neg.cc: New test.
755 * testsuite/23_containers/unordered_map/48101-3_neg.cc: New test.
756 * testsuite/23_containers/unordered_multimap/48101-3_neg.cc: New test.
757 * testsuite/23_containers/unordered_multiset/48101-3_neg.cc: New test.
758 * testsuite/23_containers/unordered_set/48101-3_neg.cc: New test.
759 * testsuite/23_containers/vector/48101-3_neg.cc: New test.
761 2019-05-31 Gerald Pfeifer <gerald@pfeifer.com>
763 * doc/xml/manual/allocator.xml: Move hoard.org back to http.
765 2019-05-31 Jonathan Wakely <jwakely@redhat.com>
767 * include/std/tuple (tuple<>): Add noexcept to allocator-extended
769 (tuple<T1, T2>::__nothrow_default_constructible()): New helper
771 (tuple<T1, T2>::tuple(), explicit tuple<T1, T2>::tuple()): Use helper.
773 2019-05-31 Jonathan Wakely <jwakely@redhat.com>
775 * src/c++98/bitmap_allocator.cc: Add using-declaration for size_t.
778 * libsupc++/eh_term_handler.cc: Include eh_term_handler.h to get
779 definition of _GLIBCXX_DEFAULT_TERM_HANDLER.
780 * libsupc++/eh_term_handler.h: New header defining
781 _GLIBCXX_DEFAULT_TERM_HANDLER.
782 * libsupc++/eh_terminate.cc: Include eh_term_handler.h.
783 (set_terminate): Restore default handler when argument is null.
784 (set_unexpected): Likewise.
785 * testsuite/18_support/set_terminate.cc: New test.
786 * testsuite/18_support/set_unexpected.cc: New test.
788 * include/backward/hashtable.h (size_t, ptrdiff_t)
789 (forward_iterator_tag, input_iterator_tag, _Construct, _Destroy)
790 (distance, vector, pair, __iterator_category): Remove
791 using-declarations that add these names to namespace __gnu_cxx.
792 * include/ext/bitmap_allocator.h (size_t, ptrdiff_t): Likewise.
793 * include/ext/debug_allocator.h (size_t): Likewise.
794 * include/ext/functional (size_t, unary_function, binary_function)
795 (mem_fun1_t, const_mem_fun1_t, mem_fun1_ref_t, const_mem_fun1_ref_t):
797 * include/ext/malloc_allocator.h (size_t, ptrdiff_t): Likewise.
798 * include/ext/memory (ptrdiff_t, pair, __iterator_category): Likewise.
799 * include/ext/mt_allocator.h (size_t, ptrdiff_t): Likewise.
800 * include/ext/new_allocator.h (size_t, ptrdiff_t): Likewise.
801 * include/ext/numeric (iota): Fix outdated comment.
802 * include/ext/pool_allocator.h (size_t, ptrdiff_t): Likewise.
803 * include/ext/rb_tree (_Rb_tree, allocator): Likewise.
804 * include/ext/rope (size_t, ptrdiff_t, allocator, _Destroy): Likewise.
805 * include/ext/ropeimpl.h (size_t, printf, basic_ostream)
806 (__throw_length_error, _Destroy, std::__uninitialized_fill_n_a):
808 * include/ext/slist (size_t, ptrdiff_t, _Construct, _Destroy)
809 (allocator, __true_type, __false_type): Likewise.
811 2019-05-31 Antony Polukhin <antoshkka@gmail.com>
814 * include/std/type_traits __type_identity, __is_complete_or_unbounded):
815 New helpers for checking preconditions in traits.
816 (is_trivial, is_trivially_copyable, is_standard_layout, is_pod)
817 (is_literal_type, is_empty, is_polymorphic, is_final, is_abstract)
818 (is_destructible, is_nothrow_destructible, is_constructible)
819 (is_default_constructible, is_copy_constructible)
820 (is_move_constructible, is_nothrow_default_constructible)
821 (is_nothrow_constructible, is_nothrow_copy_constructible)
822 (is_nothrow_move_constructible, is_copy_assignable, is_move_assignable)
823 (is_nothrow_assignable, is_nothrow_copy_assignable)
824 (is_nothrow_move_assignable, is_trivially_constructible)
825 (is_trivially_copy_constructible, is_trivially_move_constructible)
826 is_trivially_assignable, is_trivially_copy_assignable)
827 (is_trivially_move_assignable, is_trivially_destructible)
828 (alignment_of, is_swappable, is_nothrow_swappable, is_invocable)
829 (is_invocable_r, is_nothrow_invocable)
830 (has_unique_object_representations, is_aggregate): Add static_asserts
831 to make sure that type traits are not misused with incomplete types.
832 (__is_constructible_impl, __is_nothrow_default_constructible_impl)
833 (__is_nothrow_constructible_impl, __is_nothrow_assignable_impl): New
834 base characteristics without assertions that can be reused in other
836 * testsuite/20_util/is_complete_or_unbounded/memoization.cc: New test.
837 * testsuite/20_util/is_complete_or_unbounded/memoization_neg.cc: New
839 * testsuite/20_util/is_complete_or_unbounded/value.cc: New test.
840 * testsuite/20_util/is_abstract/incomplete_neg.cc: New test.
841 * testsuite/20_util/is_aggregate/incomplete_neg.cc: New test.
842 * testsuite/20_util/is_class/value.cc: Check incomplete type.
843 * testsuite/20_util/is_function/value.cc: Likewise.
844 * testsuite/20_util/is_move_constructible/incomplete_neg.cc: New test.
845 * testsuite/20_util/is_nothrow_move_assignable/incomplete_neg.cc: New
847 * testsuite/20_util/is_polymorphic/incomplete_neg.cc: New test.
848 * testsuite/20_util/is_reference/value.cc: Check incomplete types.
849 * testsuite/20_util/is_unbounded_array/value.cc: Likewise.
850 * testsuite/20_util/is_union/value.cc: Likewise.
851 * testsuite/20_util/is_void/value.cc: Likewise.
852 * testsuite/util/testsuite_tr1.h: Add incomplete union type.
854 2019-05-31 Jonathan Wakely <jwakely@redhat.com>
856 * include/bits/random.h (random_device::_M_init(const char*, size_t)):
857 Add new private member function.
858 * src/c++11/cow-string-inst.cc (random_device::_M_init(const string&))
859 (random_device::_M_init_pretr1(const string&)): Call new private
860 member with string data.
861 * src/c++11/random.cc (random_device::_M_init(const char*, size_t)):
863 * testsuite/26_numerics/random/random_device/cons/default-cow.cc: New
864 test using COW strings.
865 * testsuite/26_numerics/random/random_device/cons/default.cc: Generate
866 a value from the device.
867 * testsuite/26_numerics/random/random_device/cons/token.cc: Likewise.
868 Fix typo in token string.
870 2019-05-30 Nina Dinka Ranns <dinka.ranns@gmail.com>
872 LWG2788 basic_string spurious use of a default constructible allocator
873 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
874 (basic_string::_M_replace_dispatch): Construct temporary string with
875 the current allocator.
876 * testsuite/21_strings/basic_string/allocator/char/lwg2788.cc: New.
877 * testsuite/21_strings/basic_string/allocator/wchar_t/lwg2788.cc: New.
879 2019-05-30 Jonathan Wakely <jwakely@redhat.com>
881 * doc/xml/manual/diagnostics.xml: Update list of headers that define
883 * doc/xml/manual/support.xml: Rewrite advice around NULL. Rewrite
884 section about new/delete overloads. Improve section on verbose
886 * doc/html/*: Regenerate.
888 * doc/xml/manual/status_cxx2020.xml: Add feature-test macro for
889 P0811R3. Change status of P1353R0.
890 * doc/html/*: Regenerate.
892 * doc/xml/manual/status_cxx2011.xml: Use <variablelist> for
893 documentation of implementation-defined types for [thread.req.native].
894 * doc/xml/manual/status_cxx2017.xml: Update documentation of
895 implementation-defined strings for [variant.bad.access]. Fix typo in
896 documentation of implementation-defined support for [fs.conform.9945].
897 * doc/html/*: Regenerate.
899 2019-05-29 Jonathan Wakely <jwakely@redhat.com>
902 * testsuite/26_numerics/random/random_device/cons/token.cc: Fix test
903 that fails on mingw-w64.
906 * src/c++17/fs_ops.cc [_GLIBCXX_FILESYSTEM_IS_WINDOWS]
907 (status(const path&, error_code&)): Use parent_path() to remove
909 (symlink_status(const path&, error_code&)): Duplicate workaround for
910 bug in _wstat for paths with trailing slash.
911 * testsuite/27_io/filesystem/operations/remove_all.cc: Check path
913 * testsuite/27_io/filesystem/operations/status.cc: Likewise.
914 * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
916 * src/c++17/fs_path.cc (path::parent_path()): Create whole path at
917 once instead of building it iteratively.
919 * testsuite/util/testsuite_api.h: Remove names of unused parameters.
921 PR libstdc++/85494 use rdseed and rand_s in std::random_device
922 * acinclude.m4 (GLIBCXX_CHECK_X86_RDSEED): Define macro to check if
923 the assembler supports rdseed.
924 * config.h.in: Regenerate.
925 * configure: Regenerate.
926 * configure.ac: Use GLIBCXX_CHECK_X86_RDSEED.
927 * config/os/mingw32-w64/os_defines.h (_GLIBCXX_USE_CRT_RAND_S): Define.
928 * doc/html/*: Regenerate.
929 * doc/xml/manual/status_cxx2011.xml: Document new tokens.
930 * include/bits/random.h (random_device::random_device()): Always call
931 _M_init rather than _M_init_pretr1.
932 (random_device::random_device(const string&)): Likewise.
933 (random_device::operator()()): Always call _M_getval().
934 (random_device::_M_file): Replace first member of union with an
935 anonymous struct, with _M_file as its first member.
936 * src/c++11/random.cc [_GLIBCXX_X86_RDRAND] (USE_RDRAND): Define.
937 [_GLIBCXX_X86_RDSEED] (USE_RDSEED): Define.
938 (USE_MT19937): Define if none of the above are defined.
939 (USE_POSIX_FILE_IO): Define.
940 (_M_strtoul): Remove.
941 [USE_RDSEED] (__x86_rdseed): Define new function.
942 [_GLIBCXX_USE_CRT_RAND_S] (__winxp_rand_s): Define new function.
943 (random_device::_M_init(const string&)): Initialize new union members.
944 Add support for "rdseed" and "rand_s" tokens. Decide what the
945 "default" token does according to which USE_* macros are defined.
946 [USE_POSIX_FILE_IO]: Store a file descriptor.
947 [USE_MT19937]: Forward to _M_init_pretr1 instead.
948 (random_device::_M_init_pretr1(const string&)) [USE_MT19937]: Inline
949 code from _M_strtoul.
950 [!USE_MT19937]: Call _M_init, transforming the old default token or
951 numeric tokens to "default".
952 (random_device::_M_fini()) [USE_POSIX_FILE_IO]: Use close not fclose.
953 (random_device::_M_getval()): Use new union members to obtain a
954 random number from the stored function pointer or file descriptor.
955 [USE_MT19937]: Obtain a value from the mt19937 engine.
956 (random_device::_M_getval_pretr1()): Call _M_getval().
957 (random_device::_M_getentropy()) [USE_POSIX_FILE_IO]: Use _M_fd
959 [!USE_MT19937] (mersenne_twister): Do not instantiate when not needed.
960 * testsuite/26_numerics/random/random_device/85494.cc: New test.
962 2019-05-28 Jonathan Wakely <jwakely@redhat.com>
965 * include/experimental/bits/fs_path.h (path::path(path&&)): Only call
966 _M_split_cmpts() for a path with multiple components.
967 (path::_S_is_dir_sep()): Add missing 'static' keyword to function.
968 * src/filesystem/path.cc (path::_M_split_cmpts()): Count number of
969 components and reserve space in vector. Return early when there is
971 * testsuite/27_io/filesystem/path/construct/90634.cc: New test.
972 * testsuite/experimental/filesystem/path/construct/90634.cc: New test.
974 * testsuite/util/testsuite_fs.h (compare_paths): Use three-argument
975 form of std::equals for C++11 compatibility.
977 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
979 * doc/xml/manual/appendix_contributing.xml: Update pointer to
980 C++ standard at ansi.org.
982 2019-05-24 Jonathan Wakely <jwakely@redhat.com>
984 * include/std/numeric (midpoint(T*, T*)): Fix incorrect result.
985 * testsuite/26_numerics/midpoint/pointer.cc: Change "compile" test
988 * testsuite/20_util/shared_ptr/cons/alias-rval.cc: Fix test.
989 * testsuite/20_util/shared_ptr/cons/alias.cc: Remove unused function.
991 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
993 * testsuite/20_util/function_objects/invoke/1.cc: Move C++17-specific
995 * testsuite/20_util/function_objects/invoke/3.cc: New test.
996 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Change
997 "compile" test to "run".
999 * doc/xml/manual/intro.xml: Document LWG DR 2996 change.
1000 * doc/html/*: Regenerate.
1001 * include/bits/shared_ptr.h (shared_ptr(shared_ptr&&, T*)): Add
1002 rvalue aliasing constructor.
1003 (static_pointer_cast, const_pointer, dynamic_pointer_cast)
1004 (reinterpret_pointer_cast): Add overloads taking rvalues.
1005 * include/bits/shared_ptr_base.h (__shared_ptr(__shared_ptr&&, T*)):
1006 Add rvalue aliasing constructor.
1007 * testsuite/20_util/shared_ptr/casts/1.cc: Change "compile" test to
1008 "run" and check return values as well as types.
1009 * testsuite/20_util/shared_ptr/casts/reinterpret.cc: Likewise.
1010 * testsuite/20_util/shared_ptr/casts/rval.cc: New test.
1011 * testsuite/20_util/shared_ptr/cons/alias-rval.cc: New test.
1012 * testsuite/20_util/shared_ptr/cons/alias.cc: Remove unused return
1015 * doc/xml/manual/evolution.xml: Document LWG DR 2921 change.
1016 * doc/xml/manual/intro.xml: Likewise.
1017 * include/std/future (__create_task_state): Add default arguments
1018 to make providing an allocator optional.
1019 (packaged_task::packaged_task(F&&)): Call __create_task_state directly
1020 instead of delegating to another constructor.
1021 (packaged_task::packaged_task(allocator_arg_t, const A&, ...)): Do not
1022 define allocator-extended constructors for C++17 and later.
1023 * testsuite/30_threads/packaged_task/cons/alloc.cc: Only run test for
1025 * testsuite/30_threads/packaged_task/cons/alloc2.cc: Likewise.
1026 * testsuite/30_threads/packaged_task/cons/alloc_min.cc: Likewise.
1027 * testsuite/30_threads/packaged_task/uses_allocator.cc: Likewise.
1029 2019-05-23 Hans-Peter Nilsson <hp@axis.com>
1031 * testsuite/26_numerics/random/poisson_distribution/operators/values.cc:
1032 Don't run the libstdc++/83237 part on simulator targets.
1034 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
1036 * doc/xml/manual/status_cxx2017.xml: Add feature test macro for
1038 * doc/html/*: Regenerate.
1040 * include/experimental/any (__any_caster): Use RTTI if comparing
1041 addresses fails, to support non-unique addresses in shared libraries.
1042 * include/std/any (__any_caster): Likewise.
1045 * include/experimental/any (__any_caster): Constrain to only be
1046 callable for object types. Use remove_cv_t instead of decay_t.
1047 If the type decays or isn't copy constructible, compare the manager
1048 function to a dummy specialization.
1049 (__any_caster): Add overload constrained for non-object types.
1050 (any::_Manager_internal<_Op>): Add dummy specialization.
1051 * testsuite/experimental/any/misc/any_cast.cc: Test function types
1054 2019-05-22 Jonathan Wakely <jwakely@redhat.com>
1057 * src/c++17/fs_path.cc (path::_List::operator=(const _List&)): Fix
1058 reversed arguments to uninitialized_copy_n.
1059 * testsuite/27_io/filesystem/path/assign/copy.cc: Check that source
1060 is unchanged by copy assignment.
1061 * testsuite/util/testsuite_fs.h (compare_paths): Use std::equal to
1062 compare path components.
1065 * include/experimental/memory_resource: Add system header pragma and
1066 do not define anything unless compiled as C++14 or later.
1067 (__resource_adaptor_common::__guaranteed_alignment): Remove.
1068 (__resource_adaptor_imp::do_allocate): If the requested alignment
1069 is a fundamental alignment then either allocate directly from _M_alloc
1070 or call the new _M_allocate function.
1071 (__resource_adaptor_imp::do_deallocate): Likewise for deallocation.
1072 (__resource_adaptor_imp::_M_allocate): New function that uses a copy
1073 of the allocator rebound to a POD type with the specified alignment.
1074 (__resource_adaptor_imp::_M_deallocate): Likewise for deallocation.
1075 * testsuite/experimental/memory_resource/new_delete_resource.cc:
1076 Adjust expected allocation sizes.
1077 * testsuite/experimental/memory_resource/resource_adaptor.cc: Remove
1078 xfail for Solaris x86.
1080 2019-05-21 Thomas Rodgers <trodgers@redhat.com>
1082 LWG 3062 - Unnecessary decay_t in is_execution_policy_v
1083 * include/pstl/execution_defs.h (__enable_if_execution_policy):
1084 Use std::__remove_cvref_t when building with GCC.
1086 2019-05-21 Jonathan Wakely <jwakely@redhat.com>
1089 * testsuite/lib/libstdc++.exp (check_effective_target_tbb-backend):
1090 Use "additional_flags" to pass -ltbb to v3_target_compile command.
1091 Use check_v3_target_prop_cached to cache the result of the test.
1093 * doc/xml/manual/shared_ptr.xml: Fix names of lock policy constants.
1095 2019-05-20 Thomas Rodgers <trodgers@redhat.com>
1098 * testsuite/lib/libstdc++.exp (check_effective_target_tbb-backend):
1099 Changed v3_target_compile check from preprocess to executable.
1100 Added "-ltbb" to v3_target_compile flags.
1102 2019-05-20 Thomas Rodgers <trodgers@redhat.com>
1104 * testsuite/lib/libstdc++.exp (check_effective_target_tbb-backend):
1105 Add check for Thread Building Blocks 2018 or later.
1107 2019-05-20 Jonathan Wakely <jwakely@redhat.com>
1109 * testsuite/experimental/names.cc: Only include Networking TS headers
1110 on targets with the necessary Gthreads support.
1112 2019-05-20 Marek Polacek <polacek@redhat.com>
1114 CWG 2094 - volatile scalars are trivially copyable.
1116 * testsuite/20_util/is_trivially_copyable/value.cc: Change the expected
1117 result for volatile int.
1119 2019-05-20 Jonathan Wakely <jwakely@redhat.com>
1121 * testsuite/17_intro/names.cc: Do not check 'ptr' on Solaris.
1122 * testsuite/experimental/names.cc: Include <experimental/filesystem>
1125 PR c++/90532 Ensure __is_constructible(T[]) is false
1126 * include/std/type_traits (__do_is_default_constructible_impl)
1127 (__is_default_constructible_atom, __is_default_constructible_safe):
1129 (is_default_constructible): Use is_constructible.
1130 * testsuite/20_util/is_constructible/value.cc: Check int[] case.
1131 * testsuite/20_util/is_default_constructible/value.cc: Likewise.
1132 * testsuite/20_util/is_trivially_constructible/value.cc: Likewise.
1133 * testsuite/20_util/is_trivially_default_constructible/value.cc:
1136 2019-05-20 Pádraig Brady <pbrady@fb.com>
1138 * libstdc++-v3/include/ext/new_allocator.h (deallocate): Pass the size
1139 to the deallocator with -fsized-deallocation.
1141 2019-05-20 Jonathan Wakely <jwakely@redhat.com>
1143 * testsuite/experimental/memory_resource/new_delete_resource.cc: Fix
1144 test by passing correct alignment to deallocate function.
1146 2019-05-18 Jonathan Wakely <jwakely@redhat.com>
1149 * python/libstdcxx/v6/printers.py (UniquePointerPrinter.__init__):
1150 Raise exception if unique_ptr tuple member has unknown structure.
1151 * python/libstdcxx/v6/xmethods.py (UniquePtrGetWorker.__call__):
1152 Adjust worker to support new __uniq_ptr_data base class. Do not
1153 assume field called _M_head_impl is the first tuple element.
1155 2019-05-17 François Dumont <fdumont@gcc.gnu.org>
1157 * include/bits/stl_deque.h
1158 (_Deque_iterator<>::__ptr_to): Remove, use std::__ptr_rebind.
1159 (_Deque_base(_Deque_base&&, const allocator_type&)): New.
1160 (_Deque_base::_Deque_impl_data): New.
1161 (_Deque_base::_Deque_impl): Inherit latter.
1162 (_Deque_base::_Deque_impl::_M_swap_data): Move...
1163 (_Deque_base::_Deque_impl_data::_M_swap_data): ... here.
1164 (_Deque_base::_Deque_impl()): Add noexcept qualification.
1165 (_Deque_base::_Deque_impl(_Deque_impl&&, _Tp_alloc_type&&)): New.
1166 (_Deque_base::_Deque_impl::_M_get_Tp_allocator()): Remove static_cast.
1167 (deque<>::deque()): Default.
1168 (deque<>::deque(deque&&)): Default.
1169 (deque<>::deque(deque&&, const allocator_type&, false_type)): New.
1170 (deque<>::deque(deque&&, const allocator_type&, true_type)): New.
1171 (deque<>::deque(deque&&, const allocator_type&)): Delegate to latters.
1172 (deque<>::deque<_It>(_It, _It, const allocator_type&)): Use
1173 _M_range_initialize.
1174 (deque<>::assign<_It>(_It, _It)): Use _M_assign_aux.
1175 (deque<>::resize(size_type, const value_type&)): Share a single
1177 (deque<>::insert<_It>(const_iterator, _It, _It)): Use
1178 _M_range_insert_aux.
1179 [__cplusplus >= 201103L](_M_initialize_dispatch): Remove.
1180 [__cplusplus >= 201103L](_M_assign_dispatch): Remove.
1181 [__cplusplus >= 201103L](_M_insert_dispatch): Remove.
1182 * testsuite/23_containers/deque/allocator/default_init.cc: New.
1184 2019-05-17 Jonathan Wakely <jwakely@redhat.com>
1187 * include/std/variant (holds_alternative, get, get_if): Improve
1188 static assertion messages.
1189 (bad_variant_access::bad_variant_access()): Change default message.
1190 (__throw_bad_variant_access(bool)): New overload.
1191 (get): Use new overload.
1192 (visit, visit<R>): Improve exception message.
1194 * testsuite/20_util/variant/compile.cc: Fix narrowing test for ILP32
1195 targets. Add more cases from P0608R3.
1196 * testsuite/20_util/variant/run.cc: Add more cases from P0608R3.
1198 * include/bits/random.h (seed_seq::param): Fix non-reserved name.
1199 * include/experimental/type_traits (is_detected_exact)
1200 (is_detected_exact_v): Likewise.
1201 * include/pstl/execution_defs.h (is_execution_policy)
1202 (is_execution_policy_v, __enable_if_execution_policy): Likewise.
1203 * include/pstl/execution_impl.h (__policy_traits): Likewise.
1204 * testsuite/17_intro/names.cc: Check for more non-reserved names.
1205 * testsuite/experimental/names.cc: New test.
1208 * include/bits/hashtable.h (_Hashtable::~_Hashtable()): Remove static
1209 assertions from the destructor.
1210 * include/bits/hashtable_policy.h (_Hash_code_base::_M_hash_code):
1211 Move static_assert for hash function to here.
1212 (_Hash_table_base::_M_equals): Move static_assert for equality
1214 * include/bits/stl_tree.h (_Rb_tree::_S_value(_Const_Link_type)):
1216 (_Rb_tree::_S_key(_Const_Link_type)): Move assertions here. Access
1217 the value directly instead of calling _S_value.
1218 (_Rb_tree::_S_value(_Const_Base_ptr)): Remove.
1219 (_Rb_tree::_S_key(_Const_Base_ptr)): Do downcast and forward to
1220 _S_key(_Const_Link_type).
1221 * testsuite/23_containers/set/85965.cc: Check construction,
1222 destruction, assignment and size() do not trigger the assertions.
1223 * testsuite/23_containers/unordered_set/85965.cc: Likewise.
1224 * testsuite/23_containers/map/48101_neg.cc: Call find and adjust
1226 * testsuite/23_containers/multimap/48101_neg.cc: Likewise.
1227 * testsuite/23_containers/multiset/48101_neg.cc: Likewise.
1228 * testsuite/23_containers/set/48101_neg.cc: Likewise.
1229 * testsuite/23_containers/unordered_map/48101_neg.cc: Likewise.
1230 * testsuite/23_containers/unordered_multimap/48101_neg.cc: Likewise.
1231 * testsuite/23_containers/unordered_multiset/48101_neg.cc: Likewise.
1232 * testsuite/23_containers/unordered_set/48101_neg.cc: Likewise.
1234 * include/bits/invoke.h [__cplusplus < 201703L] (__invoke_r<void>):
1235 Use _GLIBCXX14_CONSTEXPR because void functions cannot be constexpr
1238 * doc/xml/manual/status_cxx2020.xml: Update P0608R3, P0777R1, and
1240 * doc/html/*: Regenerate.
1241 * include/std/tuple (make_from_tuple): Use remove_reference_t instead
1242 of decay_t (P0777R1).
1244 2019-05-17 François Dumont <fdumont@gcc.gnu.org>
1246 Move from state of allocators (LWG2593)
1247 * include/bits/stl_deque.h
1248 (_Deque_base(_Deque_base&&, false_type)): Remove.
1249 (_Deque_base(_Deque_base&&, true_type)): Remove.
1250 (_Deque_base(_Deque_base&&)): Adapt.
1251 (_Deque_base::_M_move_impl()): Remove.
1252 * testsuite/util/testsuite_allocator.h
1253 (propagating_allocator(propagating_allocator&&)): Preserve move from
1255 * testsuite/23_containers/deque/allocator/move_assign.cc (test02):
1257 * testsuite/23_containers/forward_list/allocator/move_assign.cc (test02):
1259 * testsuite/23_containers/list/allocator/move_assign.cc (test02): Adapt.
1260 * testsuite/23_containers/map/allocator/move_assign.cc (test02): Adapt.
1261 * testsuite/23_containers/multimap/allocator/move_assign.cc (test02):
1263 * testsuite/23_containers/multiset/allocator/move_assign.cc (test02):
1265 * testsuite/23_containers/set/allocator/move_assign.cc (test02): Adapt.
1266 * testsuite/23_containers/unordered_map/allocator/move_assign.cc
1268 * testsuite/23_containers/unordered_multimap/allocator/move_assign.cc
1270 * testsuite/23_containers/unordered_multiset/allocator/move_assign.cc
1272 * testsuite/23_containers/unordered_set/allocator/move_assign.cc
1274 * testsuite/23_containers/vector/allocator/move_assign.cc (test02):
1276 * testsuite/23_containers/vector/bool/allocator/move_assign.cc (test02):
1278 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc
1280 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc
1283 2019-05-16 Jonathan Wakely <jwakely@redhat.com>
1285 * src/c++17/fs_ops.cc (absolute(const path&, error_code&))
1286 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Remove bogus assertion.
1288 * include/std/variant (__overload_set): Remove.
1290 (_Build_FUN): New class template to define a single FUN overload,
1291 with specializations to prevent unwanted conversions, as per P0608R3.
1292 (_Build_FUNs): New class template to build an overload set of FUN.
1293 (_FUN_type): New alias template to perform overload resolution.
1294 (__accepted_type): Use integer_constant base for failure case. Use
1295 _FUN_type for successful case.
1296 (variant::__accepted_index): Use _Tp instead of _Tp&&.
1297 (variant::variant(_Tp&&)): Likewise.
1298 (variant::operator=(_Tp&&)): Likewise.
1300 * include/std/variant (_Variant_storage<false, _Types...>::_M_reset):
1301 Replace raw visitation with a runtime check for the valueless state
1302 and a non-raw visitor.
1303 (_Variant_storage<false, _Types...>::_M_reset_impl): Remove.
1304 (variant::index()): Remove branch.
1305 (variant::swap(variant&)): Use valueless_by_exception() instead of
1306 comparing the index to variant_npos, and add likelihood attribute.
1308 * include/bits/hashtable_policy.h (_Equal_helper): Remove.
1309 (_Hashtable_base::_Equal_hash_code): Define new class template.
1310 (_Hashtable_base::_M_equals): Use _Equal_hash_code instead of
1313 * include/bits/hashtable_policy.h (_Hashtable_ebo_helper::_S_get):
1314 Replace with _M_get non-static member function.
1315 (_Hashtable_ebo_helper::_S_cget): Replace with _M_cget non-static
1317 (_Hash_code_base, _Local_iterator_base, _Hashtable_base):
1318 (_Hashtable_alloc): Adjust to use non-static members of EBO helper.
1320 * include/bits/hashtable_policy.h (_Hash_code_base::_M_swap): Use
1321 _S_get accessors for members in EBO helpers.
1322 (_Hash_code_base::_M_extract(), _Hash_code_base::_M_ranged_hash())
1323 (_Hash_code_base::_M_h1(), _Hash_code_base::_M_h2()): Remove non-const
1325 (_Hashtable_base::_M_swap): Use _S_get accessors for members in EBO
1327 (_Hashtable_base::_M_eq()): Remove non-const overload.
1329 2019-05-15 Jonathan Wakely <jwakely@redhat.com>
1331 * include/std/variant (visit, visit<R>): Qualify calls to __do_visit.
1333 2019-05-14 Jonathan Wakely <jwakely@redhat.com>
1335 * testsuite/util/testsuite_allocator.h (NullablePointer::operator bool):
1338 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1340 * config/os/solaris/solaris2.10: Move to ...
1341 * config/os/solaris: ... this.
1342 * configure.host (os_include_dir): Adapt.
1343 (abi_baseline_pair): Remove Solaris 10 handling.
1344 * config/abi/post/i386-solaris2.10: Remove.
1345 * config/abi/post/sparc-solaris2.10: Remove.
1346 * config/abi/post/i386-solaris2.11: Rename to ...
1347 * config/abi/post/i386-solaris: ... this.
1348 * config/abi/post/sparc-solaris2.11: Rename to ...
1349 * config/abi/post/sparc-solaris: ... this.
1351 * libsupc++/new_opa.cc [_GLIBCXX_HAVE_MEMALIGN] [__sun]: Remove
1354 * testsuite/ext/enc_filebuf/char/13598.cc: Remove *-*-solaris2.10
1357 2019-05-14 Jonathan Wakely <jwakely@redhat.com>
1359 * include/std/variant (__visit_with_index): Remove typedef.
1360 (__deduce_visit_result): New tag type.
1361 (__raw_visit, __raw_idx_visit): New helper functions for "raw"
1362 visitation of possibly-valueless variants, forwarding to __do_visit
1363 with the relevant tag type.
1364 (_Variant_storage<false, _Types...>::_M_reset_impl): Use __raw_visit
1365 and make lambda return void.
1366 (__variant_construct): Likewise.
1367 (_Copy_assign_base::operator=, _Move_assign_base::operator=): Use
1368 __raw_idx_visit and make lambda return void.
1369 (_Multi_array::__untag_result): Add metafunction to check the function
1370 pointer type for a tag type that dictates the kind of visitation.
1371 (_Multi_array<_Ret(*)(_Visitor, _Variants...), __first, __rest...>):
1372 Use decltype(auto) instead of tagged function pointer type.
1373 (__gen_vtable_impl): Remove bool non-type parameter and unused
1374 _Variant_tuple parameter.
1375 (__gen_vtable_impl::__visit_invoke_impl): Remove.
1376 (__gen_vtable_impl::__do_visit_invoke): Remove.
1377 (__gen_vtable_impl::__do_visit_invoke_r): Remove.
1378 (__gen_vtable_impl::__visit_invoke): Use if-constexpr and __invoke_r
1379 for the visit<R> case, rather than dispatching to separate functions.
1380 (_VARIANT_RELATION_FUNCTION_TEMPLATE): Use __raw_idx_visit and make
1382 (variant::swap): Likewise.
1383 (__do_visit): Replace two non-type template parameters with a single
1384 type parameter, so that the caller must specify the visitor's return
1385 type (or one of the tag types).
1386 (visit): Deduce a return type from the visitor and use the
1387 __deduce_visit_result tag to enforce that all overloads return the
1389 (visit<R>): Call __do_visit<R> with explicit result type.
1390 (__variant_hash_call_base_impl::operator()): Use __raw_visit and make
1393 2019-05-14 Nina Dinka Ranns <dinka.ranns@gmail.com>
1395 nonesuch is insufficiently useless (lwg2996)
1396 * include/std/type_traits (struct __nonesuch): Added private base
1397 class to make __nonesuch not an aggregate and removed deleted default
1399 * include/bits/stl_pair.h (struct __nonesuch_no_braces): Removed.
1400 (operator=(const pair&)): Use __nonesuch instead of
1401 __nonesuch_no_braces.
1402 (operator=(pair&&)): Likewise
1403 * include/std/tuple (operator=(const tuple&)): Use __nonesuch instead
1404 of __nonesuch_no_braces.
1405 (operator=(tuple&&)): Likewise
1406 * include/experimental/type_traits (struct nonesuch): Added private
1407 base class to make nonesuch not an aggregate and removed deleted
1408 default constructor.
1409 * testsuite/20_util/nonesuch/nonesuch.cc: New.
1410 * testsuite/experimental/type_traits/nonesuch.cc: New.
1412 2019-05-14 Jonathan Wakely <jwakely@redhat.com>
1414 * include/bits/std_function.h (_Simple_type_wrapper): Remove.
1415 (_Function_handler): Remove partial specializations for void return
1416 types and pointers to member.
1417 (_Function_handler::_M_manager): Adapt to removal of
1418 _Simple_type_wrapper.
1419 (_Function_handler::_M_invoke): Use __invoke_r instead of __invoke.
1420 * include/std/functional (_Bind_result::__enable_if_void)
1421 (_Bind_result::__disable_if_void): Remove sfinae helpers.
1422 (_Bind_result::__call): Use __invoke_r and remove overloads for void
1424 * include/std/future (__future_base::_Task_state::_M_run)
1425 (__future_base::_Task_state::_M_run_delayed): Use __invoke_r and
1426 change return type of lambda expressions.
1428 * include/bits/invoke.h (__invoke_r): Define new function implementing
1429 the INVOKE<R> pseudo-function.
1430 * testsuite/20_util/function_objects/invoke/1.cc: Add more tests.
1431 * testsuite/20_util/function_objects/invoke/2.cc: New test.
1433 * include/std/type_traits (__is_nt_convertible_helper): Define it
1434 unconditionally, not only for C++20.
1435 (__is_nothrow_convertible): Define internal trait for use in C++11.
1436 (__is_nt_invocable_impl: Fix by using __is_nothrow_convertible.
1437 (is_invocable_r_v, is_nothrow_invocable_r_v): Add missing parameter.
1438 * testsuite/20_util/is_nothrow_convertible/value_ext.cc: New test.
1439 * testsuite/20_util/is_nothrow_convertible/value.cc: Check with type
1440 that has nothrow explicit conversion but potentially-throwing implicit
1442 * testsuite/20_util/is_nothrow_invocable/value.cc: Likewise.
1443 * testsuite/20_util/is_nothrow_invocable/value_ext.cc: Fix helper
1444 function to only consider implicit conversions.
1445 * testsuite/20_util/tuple/cons/noexcept_specs.cc: Add comment.
1447 * include/std/iterator: Include <iosfwd> instead of <istream> and
1450 * include/bits/stl_tree.h (_Rb_tree::erase(const Key*, const Key*)):
1451 Remove unused, non-standard function.
1453 * include/bits/regex.h (match_results::max_size()): Adjust return
1454 value to account for prefix/suffix/unmatched subs.
1455 (match_results::_M_resize(unsigned int)): Use _Base_type::assign to
1456 reset the contained sub matches.
1457 (match_results::_M_establish_failed_match(_Bi_iter)): Add new member
1458 function to set result state following a failed match.
1459 * include/bits/regex.tcc (__regex_algo_impl): Remove loop to set
1460 sub_match states after _M_resize. Use _M_establish_failed_match.
1463 * include/std/thread (thread::_State_impl, thread::_S_make_state):
1464 Replace single _Callable parameter with variadic _Args pack, to
1465 forward them directly to the tuple of decayed copies.
1466 * testsuite/30_threads/thread/cons/69724.cc: New test.
1468 2019-05-14 Nina Dinka Ranns <dinka.ranns@gmail.com>
1470 Inconsistency wrt Allocators in basic_string assignment (LWG2579)
1471 * include/bits/basic_string.h: (operator=(const basic_string&):
1472 Move allocator decision to assign.
1473 (assign(const basic_string&)): Move allocator decision here.
1474 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1476 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1479 2019-05-14 Jonathan Wakely <jwakely@redhat.com>
1481 * testsuite/util/testsuite_allocator.h (memory_resource)
1482 (default_resource_mgr): Fix indentation.
1484 * testsuite/20_util/allocator_traits/members/allocate_hint_nonpod.cc:
1485 Use operator-> to access raw pointer member.
1486 * testsuite/23_containers/vector/59829.cc: Likewise.
1487 * testsuite/23_containers/vector/bool/80893.cc: Likewise.
1488 * testsuite/libstdc++-prettyprinters/cxx11.cc: Use NullablePointer.
1489 * testsuite/util/testsuite_allocator.h (NullablePointer): New utility
1491 (PointerBase, PointerBase_void): Derive from NullablePointer and use
1492 its constructors and equality operators. Change converting
1493 constructors to use operator-> to access private member of the other
1495 (PointerBase_void::operator->()): Add, for access to private member.
1496 (operator-(PointerBase, PointerBase)): Change to hidden friend.
1497 (operator==(PointerBase, PointerBase)): Remove.
1498 (operator!=(PointerBase, PointerBase)): Remove.
1500 * python/libstdcxx/v6/printers.py (UniquePointerPrinter.__init__): Do
1501 not assume field called _M_head_impl is the first tuple element.
1502 * testsuite/libstdc++-prettyprinters/compat.cc: Make tuple
1503 implementation more accurate.
1504 * testsuite/libstdc++-prettyprinters/cxx11.cc: Check unique_ptr with
1505 empty pointer type and non-empty deleter.
1507 LWG 2899 - Make is_move_constructible correct for unique_ptr
1508 * include/bits/unique_ptr.h (__uniq_ptr_impl): Add move constructor,
1509 move assignment operator.
1510 (__uniq_ptr_impl::release(), __uniq_ptr_impl::reset(pointer)): Add.
1511 (__uniq_ptr_data): New class template with conditionally deleted
1513 (unique_ptr, unique_ptr<T[], D>): Change type of data member from
1514 __uniq_ptr_impl<T, D> to __uniq_ptr_data<T, D>. Define move
1515 constructor and move assignment operator as defaulted.
1516 (unique_ptr::release(), unique_ptr<T[], D>::release()): Forward to
1517 __uniq_ptr_impl::release().
1518 (unique_ptr::reset(pointer), unique_ptr<T[], D>::reset<U>(U)): Forward
1519 to __uniq_ptr_impl::reset(pointer).
1520 * python/libstdcxx/v6/printers.py (UniquePointerPrinter.__init__):
1521 Check for new __uniq_ptr_data type.
1522 * testsuite/20_util/unique_ptr/dr2899.cc: New test.
1524 2019-05-13 Jonathan Wakely <jwakely@redhat.com>
1526 PR libstdc++/90454.cc path construction from void*
1527 * include/bits/fs_path.h (path::_Path): Use remove_pointer so that
1528 pointers to void are rejected as well as void.
1529 * include/experimental/bits/fs_path.h (path::_Path): Likewise.
1530 * testsuite/27_io/filesystem/path/construct/80762.cc: Also check
1532 * testsuite/experimental/filesystem/path/construct/80762.cc: Likewise.
1534 * doc/xml/manual/policy_data_structures.xml: Comment out stray
1535 <remark> elements. Fix formatting of bibliography references.
1537 2019-05-13 Edward Smith-Rowland <3dw4rd@verizon.net>
1539 * doc/xml/manual/status_cxx2020.xml: Document P0811R3 status.
1541 2019-05-13 Jonathan Wakely <jwakely@redhat.com>
1543 Remove Profile Mode, deprecated since 7.1.0
1544 * doc/Makefile.am: Remove XML file for profile mode docs.
1545 * doc/Makefile.in: Regenerate.
1546 * doc/xml/authors.xml: Remove authors of profile mode docs.
1547 * doc/xml/manual/appendix_contributing.xml: Remove mention of profile
1549 * doc/xml/manual/debug.xml: Likewise.
1550 * doc/xml/manual/evolution.xml: Document removal of profile mode.
1551 * doc/xml/manual/profile_mode.xml: Remove profile mode docs.
1552 * doc/xml/manual/spine.xml: Remove profile mode author credit.
1553 * doc/xml/manual/test.xml: Remove docs for dg-require-profile-mode
1555 * doc/xml/manual/using.xml: Remove docs for profile mode headers and
1557 * doc/html/*: Regenerate.
1558 * include/Makefile.am: Remove profile mode headers.
1559 * include/Makefile.in: Regenerate.
1560 * include/bits/c++config (std::__profile): Remove namespace.
1561 [_GLIBCXX_PROFILE]: Remove checks for macro.
1562 * include/profile/array: Remove.
1563 * include/profile/base.h: Remove.
1564 * include/profile/bitset: Remove.
1565 * include/profile/deque: Remove.
1566 * include/profile/forward_list: Remove.
1567 * include/profile/impl/profiler.h: Remove.
1568 * include/profile/impl/profiler_algos.h: Remove.
1569 * include/profile/impl/profiler_container_size.h: Remove.
1570 * include/profile/impl/profiler_hash_func.h: Remove.
1571 * include/profile/impl/profiler_hashtable_size.h: Remove.
1572 * include/profile/impl/profiler_list_to_slist.h: Remove.
1573 * include/profile/impl/profiler_list_to_vector.h: Remove.
1574 * include/profile/impl/profiler_map_to_unordered_map.h: Remove.
1575 * include/profile/impl/profiler_node.h: Remove.
1576 * include/profile/impl/profiler_state.h: Remove.
1577 * include/profile/impl/profiler_trace.h: Remove.
1578 * include/profile/impl/profiler_vector_size.h: Remove.
1579 * include/profile/impl/profiler_vector_to_list.h: Remove.
1580 * include/profile/iterator_tracker.h: Remove.
1581 * include/profile/list: Remove.
1582 * include/profile/map: Remove.
1583 * include/profile/map.h: Remove.
1584 * include/profile/multimap.h: Remove.
1585 * include/profile/multiset.h: Remove.
1586 * include/profile/ordered_base.h: Remove.
1587 * include/profile/set: Remove.
1588 * include/profile/set.h: Remove.
1589 * include/profile/unordered_base.h: Remove.
1590 * include/profile/unordered_map: Remove.
1591 * include/profile/unordered_set: Remove.
1592 * include/profile/vector: Remove.
1593 * scripts/run_doxygen: Do not process profile mode headers.
1594 * testsuite/23_containers/array/element_access/60497.cc: Don't use
1596 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
1597 Remove dg-skip-if for profile mode.
1598 * testsuite/23_containers/forward_list/capacity/1.cc: Remove
1599 preprocessor check for profile mode.
1600 * testsuite/23_containers/list/capacity/29134.cc: Likewise.
1601 * testsuite/23_containers/map/modifiers/extract.cc: Remove dg-skip-if
1603 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
1605 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
1606 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
1607 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
1608 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
1609 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
1611 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc:
1613 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc:
1615 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
1617 * testsuite/23_containers/vector/bool/capacity/29134.cc: Remove
1618 preprocessor check for profile mode.
1619 * testsuite/23_containers/vector/bool/modifiers/insert/31370.cc:
1621 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
1622 Remove dg-skip-if for profile mode.
1623 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
1624 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
1625 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
1626 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
1627 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
1628 * testsuite/Makefile.am: Remove profile_flags variable and
1629 * testsuite/Makefile.am: Remove profile_flags variable and
1630 check-profile target.
1631 * testsuite/Makefile.in: Regenerate.
1632 * testsuite/ext/profile/all.cc: Remove.
1633 * testsuite/ext/profile/mutex_extensions_neg.cc: Remove.
1634 * testsuite/ext/profile/profiler_algos.cc: Remove.
1635 * testsuite/ext/profile/replace_new.cc: Remove.
1636 * testsuite/ext/throw_allocator/deallocate_global.cc: Remove
1637 preprocessor check for profile mode.
1638 * testsuite/ext/throw_allocator/deallocate_local.cc: Likewise.
1639 * testsuite/lib/libstdc++.exp (check_v3_target_profile_mode): Remove.
1640 (check_v3_target_normal_mode): Do not check for profile mode macro.
1641 * testsuite/libstdc++-prettyprinters/80276.cc: Remove dg-skip-if for
1643 * testsuite/libstdc++-prettyprinters/compat.cc: Likewise.
1644 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
1645 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
1646 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
1647 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
1648 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
1649 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
1650 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
1651 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1652 * testsuite/libstdc++-prettyprinters/whatis2.cc: Likewise.
1654 Remove array_allocator extension, deprecated since 4.9.0
1655 * doc/xml/manual/allocator.xml: Remove documentation for
1657 * doc/xml/manual/evolution.xml: Document array_allocator removal.
1658 * doc/xml/manual/using.xml: Remove header from documentation.
1659 * include/Makefile.am: Remove <ext/array_allocator.h> header.
1660 * include/Makefile.in: Regenerate.
1661 * include/ext/array_allocator.h: Remove.
1662 * include/precompiled/extc++.h: Do not include removed header.
1663 * testsuite/ext/array_allocator/1.cc: Remove.
1664 * testsuite/ext/array_allocator/2.cc: Remove.
1665 * testsuite/ext/array_allocator/26875.cc: Remove.
1666 * testsuite/ext/array_allocator/3.cc: Remove.
1667 * testsuite/ext/array_allocator/check_deallocate_null.cc: Remove.
1668 * testsuite/ext/array_allocator/check_delete.cc: Remove.
1669 * testsuite/ext/array_allocator/check_new.cc: Remove.
1670 * testsuite/ext/array_allocator/variadic_construct.cc: Remove.
1671 * testsuite/ext/headers.cc: Do not include removed header.
1673 2019-05-11 François Dumont <fdumont@gcc.gnu.org>
1675 * include/bits/stl_bvector.h
1676 (operator==(const _Bit_iterator_base&, const _Bit_iterator_base&)):
1678 (operator<(const _Bit_iterator_base&, const _Bit_iterator_base&)):
1680 (operator!=(const _Bit_iterator_base&, const _Bit_iterator_base&)):
1682 (operator>(const _Bit_iterator_base&, const _Bit_iterator_base&)):
1684 (operator<=(const _Bit_iterator_base&, const _Bit_iterator_base&)):
1686 (operator>=(const _Bit_iterator_base&, const _Bit_iterator_base&)):
1688 (operator-(const _Bit_iterator_base&, const _Bit_iterator_base&)):
1690 (_Bit_iterator::operator+(difference_type)): Likewise and allow NRVO
1692 (_Bit_iterator::operator-(difference_type)): Likewise.
1693 (operator+(ptrdiff_t, const _Bit_iterator&)): Make hidden friend.
1694 (_Bit_const_iterator::operator+(difference_type)): Likewise and allow
1696 (_Bit_const_iterator::operator-(difference_type)): Likewise.
1697 (operator+(ptrdiff_t, const _Bit_const_iterator&)): Make hidden friend.
1699 2019-05-10 Jonathan Wakely <jwakely@redhat.com>
1702 * testsuite/util/thread/all.h: Do not use remove_pointer for
1703 std::thread::native_handle_type.
1706 * include/std/variant (_Variant_storage<false, Types...>::_M_storage())
1707 (_Variant_storage<true, Types...>::_M_reset()))
1708 (_Variant_storage<true, Types...>::_M_storage())): Add noexcept.
1709 (__get_storage): Likewise.
1710 (variant): Add noexcept to friend declarations for __get and
1714 * include/bits/unique_ptr.h (default_delete, default_delete<T[]>):
1715 Use _Require for constraints.
1716 (operator>(nullptr_t, const unique_ptr<T,D>&)): Implement exactly as
1718 (__uniq_ptr_hash): New base class with conditionally-disabled call
1720 (hash<unique_ptr<T,D>>): Derive from __uniq_ptr_hash.
1721 * testsuite/20_util/default_delete/48631_neg.cc: Adjust dg-error line.
1722 * testsuite/20_util/unique_ptr/hash/90388.cc: New test.
1724 * include/bits/shared_ptr.h: Improve docs.
1725 * include/bits/shared_ptr_base.h: Likewise.
1726 * include/bits/stl_uninitialized.h: Likewise.
1727 * include/bits/unique_ptr.h: Likewise.
1728 * libsupc++/new: Likewise.
1730 2019-05-09 François Dumont <fdumont@gcc.gnu.org>
1732 * include/bits/stl_deque.h
1733 (operator==(const _Deque_iterator<>&, const _Deque_iterator<>&)):
1735 (operator!=(const _Deque_iterator<>&, const _Deque_iterator<>&)):
1737 (operator<(const _Deque_iterator<>&, const _Deque_iterator<>&)):
1739 (operator<=(const _Deque_iterator<>&, const _Deque_iterator<>&)):
1741 (operator>(const _Deque_iterator<>&, const _Deque_iterator<>&)):
1743 (operator>=(const _Deque_iterator<>&, const _Deque_iterator<>&)):
1745 (_Deque_iterator<>::operator+(difference_type)): Likewise and allow NRVO
1747 (_Deque_iterator<>::operator-(difference_type)): Likewise.
1749 2019-05-08 François Dumont <fdumont@gcc.gnu.org>
1752 * testsuite/23_containers/unordered_multiset/insert/24061-multiset.cc
1753 (test01): Reserve for number of insertions to avoid rehash during test.
1754 * testsuite/23_containers/unordered_multimap/insert/24061-multimap.cc
1756 * testsuite/23_containers/unordered_multimap/insert/24061-multimap.cc
1761 2019-05-08 Jonathan Wakely <jwakely@redhat.com>
1763 * include/experimental/bits/fs_path.h: Improve docs.
1764 * include/experimental/bits/net.h: Fix wrong header name in comment.
1765 Do not document implementation details.
1766 * include/experimental/netfwd: Fix doxygen grouping.
1768 2019-05-07 Jonathan Wakely <jwakely@redhat.com>
1770 * include/bits/stl_pair.h: Improve docs.
1771 * include/std/tuple: Likewise.
1773 * doc/doxygen/doxygroups.cc (std::literals): Add documentation for
1775 * include/std/chrono: Improve docs.
1776 * include/std/ratio: Do not document implementation details.
1777 * testsuite/20_util/ratio/cons/cons_overflow_neg.cc: Adjust dg-error
1779 * testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Likewise.
1782 * doc/xml/manual/intro.xml: Document DR 2408 and 2465 changes.
1783 * include/std/chrono (__duration_common_type_wrapper): Replace with ...
1784 (__duration_common_type): New helper.
1785 (common_type<chrono::duration<R1, P2>, chrono::duration<R2, P2>>): Use
1786 __duration_common_type.
1787 (__timepoint_common_type_wrapper): Replace with ...
1788 (__timepoint_common_type): New helper.
1789 (common_type<chrono::time_point<C, D2>, chrono::time_point<C, D2>>):
1790 Use __time_point_common_type.
1791 * include/std/type_traits (common_type<>): Define, as per LWG 2408.
1792 (__common_type_impl): If either argument is transformed by decay,
1793 use the common_type of the decayed types.
1794 (__common_type_impl<_Tp, _Up, _Tp, _Up>): If the types are already
1795 decayed, use __do_common_type_impl to get the common_type.
1796 (common_type<_Tp>): Use common_type<_Tp, _Tp>.
1797 (__do_member_type_wrapper, __member_type_wrapper)
1798 (__expanded_common_type_wrapper): Remove.
1799 (__common_type_pack, __common_type_fold): New helpers.
1800 (common_type<_Tp, _Up, _Vp...>): Use new helpers instead of
1801 __member_type_wrapper and __expanded_common_type_wrapper.
1802 * testsuite/20_util/common_type/requirements/explicit_instantiation.cc:
1803 Test zero-length template argument list.
1804 * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc:
1805 Test single argument cases and argument types that should decay.
1806 * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc:
1807 Adjust expected error.
1808 * testsuite/20_util/duration/literals/range_neg.cc: Use zero for
1810 * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise.
1811 * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
1812 * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
1814 * doc/xml/manual/intro.xml: Fix DR 2537 and DR 2566 confusion.
1816 2019-05-01 Nina Dinka Ranns <dinka.ranns@gmail.com>
1818 Make allocator propagation more consistent for
1819 operator+(basic_string) (P1165R1)
1820 * include/bits/basic_string.h
1821 (operator+(basic_string&&, basic_string&&): Changed resulting
1822 allocator to always be the one from the first parameter.
1823 * include/bits/basic_string.tcc
1824 (operator+(const _CharT*, const basic_string&)): Changed
1825 resulting allocator to be SOCCC on the second parameter's allocator.
1826 (operator+(_CharT, const basic_string&)): Likewise.
1827 * testsuite/21_strings/basic_string/allocator/char/operator_plus.cc:
1829 * testsuite/21_strings/basic_string/allocator/wchar_t/operator_plus.cc:
1832 2019-05-07 Jonathan Wakely <jwakely@redhat.com>
1834 * include/bits/regex.h: Improve docs.
1835 * include/bits/regex.tcc: Do not document implementation details.
1837 * testsuite/19_diagnostics/error_code/hash.cc: New test.
1839 2019-05-06 François Dumont <fdumont@gcc.gnu.org>
1841 * python/libstdcxx/v6/printers.py (add_one_template_type_printer):
1842 Add type printer for container types in std::__debug namespace.
1843 * testsuite/lib/gdb-test.exp (whatis-regexp-test): New.
1844 (gdb-tests): Use distinct parameters for the type of test and use of
1846 (gdb-test): Check for regex test even if 'whatis' test.
1847 * testsuite/libstdc++-prettyprinters/80276.cc: Adapt for _GLIBCXX_DEBUG
1849 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
1850 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
1851 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
1852 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
1853 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
1854 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1855 * testsuite/libstdc++-prettyprinters/whatis2.cc: Likewise.
1857 2019-05-04 Jonathan Wakely <jwakely@redhat.com>
1859 * include/std/system_error (error_category): Fix comment.
1862 * src/c++17/fs_ops.cc (absolute(const path&)): Report an error if the
1863 argument is an empty path.
1864 (absolute(const path&, error_code&)): Use invalid_argument as error
1865 code instead of no_such_file_or_directory.
1866 * testsuite/27_io/filesystem/operations/absolute.cc: Check handling
1867 of non-existent paths and empty paths with both overloads of absolute.
1869 * include/std/system_error (error_category, error_code)
1870 (error_condition): Improve docs.
1871 * libsupc++/exception: Add missing @addtogroup Doxygen command.
1872 * libsupc++/exception_ptr.h (exception_ptr): Link equality operators
1873 to class documentation. Suppress documentation for implementation
1875 * libsupc++/nested_exception.h (throw_with_nested, rethrow_if_nested):
1876 Suppress documentation for implementation details.
1878 * include/std/system_error (error_code): Remove friend declaration
1879 for hash<error_code>.
1880 (hash<error_code>::operator()): Use public member functions to access
1882 (hash<error_condition>::operator()): Use address of category, not
1883 its object representation.
1884 * src/c++11/compatibility-c++0x.cc (hash<error_code>::operator()):
1885 Use public member functions to access value and category.
1886 * testsuite/19_diagnostics/error_condition/hash.cc: New test.
1888 2019-05-04 François Dumont <fdumont@gcc.gnu.org>
1890 * include/bits/hashtable.h (_Hashtable<>::rehash): Review comment.
1891 * include/bits/hashtable_policy.h
1892 (_Prime_rehash_policy::_M_bkt_for_elements): Use __builtin_ceill.
1893 (_Power2_rehash_policy::_M_bkt_for_elements): Likewise.
1894 (_Power2_rehash_policy::_M_next_bkt): Enforce returning a result not
1895 smaller than input value rather than always greater. Preserve
1896 _M_next_resize if called with 0 input. Use __builtin_floorl.
1897 (_Power2_rehash_policy::_M_need_rehash): Rehash only if number of
1898 elements + number of insertions is greater than _M_next_resize. Start
1899 with 11 buckets if not told otherwise. Use __builtin_floorl.
1900 (_Rehash_base<>::reserve): Use rehash policy _M_bkt_for_elements.
1901 * src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt):
1902 Preserve _M_next_resize if called with 0 input. Use __builtin_floorl.
1903 (_Prime_rehash_policy::_M_need_rehash): Start with 11 buckets if not
1904 told otherwise. Use __builtin_floorl.
1905 * testsuite/23_containers/unordered_set/hash_policy/71181.cc: Adapt test
1906 to also validate _Power2_rehash_policy.
1907 * testsuite/23_containers/unordered_set/hash_policy/power2_rehash.cc:
1910 2019-05-03 Jonathan Wakely <jwakely@redhat.com>
1913 * testsuite/26_numerics/complex/proj.cc: Don't assume <cmath> defines
1917 * include/ext/numeric_traits.h (__glibcxx_min): Avoid integer
1918 overflow warning with -Wpedantic -Wsystem-headers.
1920 2019-05-02 Jonathan Wakely <jwakely@redhat.com>
1923 * include/bits/c++config (_GLIBCXX_NOEXCEPT_IF): Use variadic macro.
1924 * include/bits/move.h (swap): Remove extra parentheses.
1926 * include/experimental/bits/lfts_config.h: Improve doc markup.
1927 * include/experimental/optional: Improve docs.
1928 (_Has_addressof_mem, _Has_addressof_free, _Has_addressof)
1929 (__constexpr_addressof): Remove.
1930 (optional::operator->()): Use std::__addressof().
1931 * include/std/optional (optional::operator->()): Adjust whitespace.
1932 * testsuite/experimental/optional/constexpr/observers/2.cc: Check
1933 that operator-> is still constexpr with overloaded operator&. Change
1934 to compile-only test.
1935 * testsuite/experimental/optional/constexpr/observers/3.cc: Change to
1938 * include/bits/shared_ptr.h: Improve docs.
1939 * include/bits/shared_ptr_atomic.h: Likewise.
1940 * include/bits/unique_ptr.h: Likewise. Adjust whitespace.
1942 * include/bits/basic_string.h: Fix iterator/index confusion in
1944 * include/bits/range_access.h: Fix Doxygen warnings.
1945 * include/bits/refwrap.h: Do not document implementation details.
1946 (ref, cref): Group docs with reference_wrapper.
1947 * include/std/fstream: Fix Doxygen markup.
1948 * libsupc++/initializer_list (begin, end): Group docs with
1951 * doc/doxygen/user.cfg.in: Set MARKDOWN_SUPPORT=YES.
1953 * include/bits/unique_lock.h: Fix/improve doxygen markup.
1954 * include/std/mutex: Likewise.
1955 * include/std/shared_mutex: Likewise.
1957 * include/bits/fs_dir.h: Fix/improve doxygen markup.
1958 * include/bits/fs_fwd.h: Likewise.
1959 * include/bits/fs_ops.h: Likewise.
1960 * include/bits/fs_path.h: Likewise.
1961 * include/std/filesystem: Likewise.
1963 * include/experimental/bits/net.h: Fix/improve doxygen markup.
1964 * include/experimental/buffer: Likewise.
1965 * include/experimental/executor: Likewise.
1966 * include/experimental/internet: Likewise.
1967 * include/experimental/io_context: Likewise.
1968 * include/experimental/net: Likewise.
1969 * include/experimental/netfwd: Likewise.
1970 * include/experimental/socket: Likewise.
1971 * include/experimental/timer: Likewise.
1973 * doc/doxygen/doxygroups.cc: Move description of experimental group
1975 * include/experimental/algorithm: Add to libfund-ts doc group.
1976 * include/experimental/any: Likewise. Do not document implementation
1978 * include/experimental/array: Add to libfund-ts doc group.
1979 * include/experimental/bits/lfts_config.h: Define libfund-ts doc group
1980 for Library Fundamentals.
1981 * include/experimental/chrono: Add to libfund-ts doc group.
1982 * include/experimental/deque: Likewise.
1983 * include/experimental/forward_list: Likewise.
1984 * include/experimental/functional: Likewise.
1985 * include/experimental/iterator: Likewise.
1986 * include/experimental/list: Likewise.
1987 * include/experimental/map: Likewise.
1988 * include/experimental/memory: Likewise.
1989 * include/experimental/memory_resource: Likewise. Improve docs.
1991 * include/experimental/numeric: Add to libfund-ts doc group.
1992 * include/experimental/optional: Likewise.
1993 * include/experimental/propagate_const: Likewise.
1994 * include/experimental/random: Likewise.
1995 * include/experimental/ratio: Likewise.
1996 * include/experimental/regex: Likewise.
1997 * include/experimental/set: Likewise.
1998 * include/experimental/source_location: Likewise.
1999 * include/experimental/string: Likewise.
2000 * include/experimental/string_view: Likewise.
2001 * include/experimental/system_error: Likewise.
2002 * include/experimental/tuple: Likewise.
2003 * include/experimental/type_traits: Likewise.
2004 * include/experimental/unordered_map: Likewise.
2005 * include/experimental/unordered_set: Likewise.
2006 * include/experimental/utility: Likewise.
2007 * include/experimental/vector: Likewise.
2008 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
2009 * testsuite/experimental/array/neg.cc: Adjust dg-error.
2010 * testsuite/experimental/propagate_const/assignment/move_neg.cc:
2012 * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
2013 * testsuite/experimental/propagate_const/requirements2.cc: Likewise.
2014 * testsuite/experimental/propagate_const/requirements3.cc: Likewise.
2015 * testsuite/experimental/propagate_const/requirements4.cc: Likewise.
2016 * testsuite/experimental/propagate_const/requirements5.cc: Likewise.
2018 * include/experimental/bits/fs_dir.h: Fix Doxygen markup.
2019 * include/experimental/bits/fs_fwd.h: Improve docs.
2020 * include/experimental/bits/fs_ops.h: fix Doxygen markup.
2021 * include/experimental/bits/fs_path.h: Likewise.
2022 (path, filesystem_error, u8path): Improve docs.
2023 * include/experimental/filesystem: Link to docs for TS.
2025 * config/allocator/new_allocator_base.h (__allocator_base): Add
2026 workaround for Doxygen bug #6945.
2027 * include/std/memory: Improve docs. Define group for pointer safety.
2028 * include/std/scoped_allocator: Improve docs. Use "undocumented"
2029 conditional to suppress documentation for implementation details.
2031 * include/bits/specfun.h: Improve docs.
2032 * include/tr1/cmath: Likewise. Fix nesting of preprocessor conditions
2035 * doc/doxygen/doxygroups.cc (std::tr2, std::__gnu_cxx): Improve docs.
2036 (std::experimental): Add docs.
2037 * doc/doxygen/user.cfg.in (PREDEFINED): Expand macros for __cxx11
2038 namespace to nothing when generating docs.
2039 * include/bits/regex_constants.h (std::regex_constants): Improve docs.
2040 * include/std/chrono (std::chrono): Likewise.
2041 * include/std/functional (std::placeholders): Likewise.
2042 * include/std/thread (std::this_thread): Likewise.
2044 * include/parallel/settings.h: Fix Doxygen markup.
2046 * include/ext/pb_ds/detail/bin_search_tree_/*_imps.hpp: Do not define
2047 anything unless PB_DS_CLASS_C_DEC is defined.
2048 * include/ext/pb_ds/detail/binary_heap_/*_imps.hpp: Likewise.
2049 * include/ext/pb_ds/detail/binomial_heap_/*_imps.hpp: Likewise.
2050 * include/ext/pb_ds/detail/binomial_heap_base_/*_imps.hpp: Likewise.
2051 * include/ext/pb_ds/detail/cc_hash_table_map_/*_imps.hpp: Likewise.
2052 * include/ext/pb_ds/detail/gp_hash_table_map_/*_imps.hpp: Likewise.
2053 * include/ext/pb_ds/detail/hash_fn/*_imp.hpp: Likewise.
2054 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/*_imps.hpp:
2056 * include/ext/pb_ds/detail/list_update_map_/*_imps.hpp: Likewise.
2057 * include/ext/pb_ds/detail/ov_tree_map_/*_imps.hpp: Likewise.
2058 * include/ext/pb_ds/detail/pairing_heap_/*_imps.hpp: Likewise.
2059 * include/ext/pb_ds/detail/pat_trie_/*_imps.hpp: Likewise.
2060 * include/ext/pb_ds/detail/rb_tree_map_/*_imps.hpp: Likewise.
2061 * include/ext/pb_ds/detail/rc_binomial_heap_/*_imps.hpp: Likewise.
2062 * include/ext/pb_ds/detail/resize_policy*_imp.hpp: Likewise.
2063 * include/ext/pb_ds/detail/splay_tree_/*_imps.hpp: Likewise.
2064 * include/ext/pb_ds/detail/thin_heap_/*_imps.hpp: Likewise.
2065 * include/ext/pb_ds/detail/trie_policy*_imp.hpp: Likewise.
2066 * include/ext/pb_ds/detail/unordered_iterator/const_iterator.hpp:
2068 * include/ext/pb_ds/detail/unordered_iterator/iterator.hpp: Likewise.
2069 * include/ext/pb_ds/detail/unordered_iterator/point_const_iterator.hpp:
2071 * include/ext/pb_ds/detail/unordered_iterator/point_iterator.hpp:
2074 * doc/doxygen/user.cfg.in: Regenerate with Doxygen 1.8.14 and set
2075 GROUP_NESTED_COMPOUNDS=YES and SORT_BY_SCOPE_NAME=NO. Add various
2076 _GLIBCXX_xxx macros and __attribute__(X) to PREDEFINED macros that
2079 2019-05-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2081 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: Regenerate.
2082 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: Likewise.
2083 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: Likewise.
2084 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: Likewise.
2085 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: Likewise.
2086 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
2088 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: Likewise.
2089 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
2092 2019-05-01 Jonathan Wakely <jwakely@redhat.com>
2095 * include/std/complex (__complex_proj): Return parameter unchanged.
2096 [_GLIBCXX_USE_C99_COMPLEX] (__complex_proj): Change overloads for
2097 floating-point types to take std::complex arguments.
2098 [_GLIBCXX_USE_C99_MATH_TR1] (__complex_proj): Add overloads for
2099 floating-point types.
2100 * testsuite/26_numerics/complex/proj.cc: New test.
2102 2019-04-30 Jakub Jelinek <jakub@redhat.com>
2104 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Change _Lock_policyE2 exports
2105 to _Lock_policyE[012].
2106 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
2108 2019-04-30 Jonathan Wakely <jwakely@redhat.com>
2110 * testsuite/27_io/filesystem/path/decompose/root_path.cc: Remove
2111 macros accidentally left in.
2112 * testsuite/27_io/filesystem/path/native/string-char8_t.cc: Remove
2113 unnecessary -lstdc++fs option. Fix test for mingw.
2114 * testsuite/experimental/filesystem/path/native/string-char8_t.cc:
2117 2019-04-30 Jakub Jelinek <jakub@redhat.com>
2119 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
2121 2019-04-29 Jonathan Wakely <jwakely@redhat.com>
2123 * include/bits/stl_algo.h (generate_n): Adjust doxygen comment.
2125 * include/bits/move.h (swap(T&, T&), swap(T (&)[N], T (&)[N])): Use
2126 _GLIBCXX_NOEXCEPT_IF to simplify declarations.
2129 * src/c++11/shared_ptr.cc (get_mutex): Align pool mutexes to 64 bytes.
2131 * include/bits/stl_bvector.h (vector<bool>::empty()): Add nodiscard
2134 * include/bits/stl_iterator_base_types.h (_Iter_base): Remove unused
2135 class template and partial specialization.
2138 * include/bits/stl_algo.h (generate_n): Convert _Size parameter to
2140 * include/bits/stl_algobase.h (__size_to_integer): New overloaded
2141 functions to convert a value to an integral type.
2142 (__fill_n_a, __fill_n_a): Assert that __n is already an integral type.
2143 (fill_n): Convert _Size parameter to an integral type.
2144 * testsuite/25_algorithms/fill_n/87982.cc: New test.
2145 * testsuite/25_algorithms/fill_n/87982_neg.cc: New test.
2146 * testsuite/25_algorithms/fill_n/dr426.cc: New test.
2147 * testsuite/25_algorithms/generate_n/87982.cc: New test.
2148 * testsuite/25_algorithms/generate_n/87982_neg.cc: New test.
2149 * testsuite/25_algorithms/generate_n/dr426.cc: New test.
2151 2019-04-28 Nina Dinka Ranns <dinka.ranns@gmail.com>
2153 Adding noexcept-specification on tuple constructors (LWG 2899)
2154 * libstdc++-v3/include/std/tuple:
2155 (tuple()): Add noexcept-specification.
2156 (tuple(const _Elements&...)): Likewise
2157 (tuple(_UElements&&...)): Likewise
2158 (tuple(const tuple<_UElements...>&)): Likewise
2159 (tuple(tuple<_UElements...>&&)): Likewise
2160 (tuple(const _T1&, const _T2&)): Likewise
2161 (tuple(_U1&&, _U2&&)): Likewise
2162 (tuple(const tuple<_U1, _U2>&): Likewise
2163 (tuple(tuple<_U1, _U2>&&): Likewise
2164 (tuple(const pair<_U1, _U2>&): Likewise
2165 (tuple(pair<_U1, _U2>&&): Likewise
2166 * libstdc++-v3/testsuite/20_util/tuple/cons/noexcept_specs.cc: New
2168 2019-04-27 Marc Glisse <marc.glisse@inria.fr>
2171 * include/bits/stl_uninitialized.h (__relocate_object_a): Mark the
2172 arguments with __restrict.
2174 2019-04-26 H.J. Lu <hongjiu.lu@intel.com>
2176 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
2178 2019-04-26 Jonathan Wakely <jwakely@redhat.com>
2180 * include/experimental/bits/fs_path.h
2181 (path::_S_convert_loc<_InputIterator>): Create const std::string to
2182 avoid redundant call to _S_convert_loc with non-const pointers.
2184 * testsuite/20_util/variant/run.cc: Use a new Hashable type to test
2185 hashing, because pmr::string depends on _GLIBCXX_USE_CXX11_ABI==1.
2186 * testsuite/21_strings/basic_string/hash/hash.cc
2187 [!_GLIBCXX_USE_CXX11_ABI]: Don't test pmr strings.
2188 * testsuite/21_strings/basic_string/hash/hash_char8_t.cc
2189 [!_GLIBCXX_USE_CXX11_ABI]: Likewise.
2191 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Replace wildcard that matches
2192 wstring::_M_replace_dispatch with more specific patterns.
2193 * include/bits/fs_path.h (path::_S_convert_loc<_InputIterator>):
2194 Create const std::string to avoid redundant call to _S_convert_loc
2195 with non-const pointers.
2196 * include/bits/locale_conv.h (__do_str_codecvt): Use if-constexpr to
2197 avoid unnecessary basic_string::assign instantiations.
2199 * include/std/memory (__uses_alloc_args): Add string-literal to
2200 static_assert, to match the one in __uses_alloc.
2201 [__cpp_concepts] (_Std_pair): Use C++2a syntax for concept.
2202 * testsuite/20_util/polymorphic_allocator/construct_c++2a.cc: Check
2203 for recursive uses-allocator construction of nested pairs.
2204 * testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc:: Add
2207 2019-04-26 Jakub Jelinek <jakub@redhat.com>
2209 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Update.
2210 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
2211 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
2212 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
2214 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
2215 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
2216 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
2217 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
2218 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
2219 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
2220 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
2222 2019-04-25 Jonathan Wakely <jwakely@redhat.com>
2225 * doc/xml/manual/status_cxx2020.xml: Amend P0591R4 status.
2226 * include/std/scoped_allocator [__cplusplus > 201703L]
2227 (scoped_allocator_adaptor::construct): Define in terms of
2228 uses_allocator_construction_args, as per P0591R4.
2229 * testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc: New test.
2230 * testsuite/util/testsuite_allocator.h: Remove name of unused
2233 2019-04-24 Jonathan Wakely <jwakely@redhat.com>
2235 * doc/xml/manual/status_cxx2017.xml: Document P0024R2 status.
2236 * doc/html/*: Regenerate.
2238 * include/bits/fs_path.h (operator<, operator<=, operator>)
2239 (operator>=, operator==, operator!=): Make hidden friends, as per
2241 * testsuite/27_io/filesystem/path/native/string-char8_t.cc: Fix
2242 string type in test.
2243 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
2245 * include/std/any (any::any(ValueType&&)): Use __and_v.
2246 * include/std/numeric (midpoint(T, T, T), midpoint(T*, T*, T*)):
2249 * include/std/tuple (apply): Use remove_reference_t instead of decay_t
2251 * include/std/type_traits (__result_of_memfun): Use remove_reference
2252 instead of __remove_cvref_t and remove redundant is_same check.
2253 (__inv_unwrap): Use __remove_cvref_t instead of decay_t.
2255 * include/experimental/string_view (basic_string_view::pointer)
2256 (basic_string_view::reference): Fix to refer to non-const value_type.
2257 * include/bits/basic_string.h (basic_string): Use __sv_check and
2258 __sv_limit instead of basic_string_view::_M_check and
2259 basic_string_view::_M_limit.
2260 * include/std/string_view (__sv_check, __sv_limit): New
2261 helper functions to replace basic_string_view::_M_check and
2262 basic_string_view::_M_limit.
2263 (basic_string_view): Add static assertions to enforce ill-formed
2264 requirement for traits_type::char_type from P1148R0, and to enforce
2265 required properties of char-like types.
2266 (basic_string_view::pointer, basic_string_view::reference): Fix to
2267 refer to non-const value_type.
2268 (basic_string_view::operator[], basic_string_view::at)
2269 (basic_string_view::front, basic_string_view::back)
2270 (basic_string_view::data): Use const_reference and const_pointer
2271 typedefs for return types.
2272 (basic_string_view::_M_check, basic_string_view::_M_limit): Remove.
2273 (hash<wstring_view>): Fix argument_type typedef.
2274 * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
2275 char/1.cc: Fix expected return type of basic_string_view::data().
2276 * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
2277 wchar_t/1.cc: Likewise.
2278 * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
2279 char/1.cc: Likewise.
2280 * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
2281 wchar_t/1.cc: Likewise.
2282 * testsuite/21_strings/basic_string_view/requirements/traits_neg.cc:
2284 * testsuite/21_strings/basic_string_view/requirements/typedefs.cc:
2285 Check reference and pointer typedefs.
2286 * testsuite/experimental/string_view/requirements/typedefs.cc:
2288 * testsuite/experimental/string_view/modifiers/remove_prefix/char/1.cc:
2289 Fix expected return type of basic_string_view::data().
2290 * testsuite/experimental/string_view/modifiers/remove_prefix/wchar_t/
2292 * testsuite/experimental/string_view/modifiers/remove_suffix/char/1.cc:
2294 * testsuite/experimental/string_view/modifiers/remove_suffix/wchar_t/
2298 * include/std/any (__any_caster): Use remove_cv_t instead of decay_t.
2299 Avoid a runtime check for types that can never be stored in std::any.
2300 * testsuite/20_util/any/misc/any_cast.cc: Test std::any_cast with
2303 PR libstdc++/90220 (partial)
2304 * include/std/any (any_cast<T>(any*), any_cast<T>(const any*)): Do
2305 not attempt ill-formed static_cast to pointers to non-object types.
2306 * testsuite/20_util/any/misc/any_cast.cc: Test std::any_cast with
2309 * testsuite/20_util/variant/run.cc: Catch exception by reference to
2310 prevent -Wcatch-value warning.
2312 * include/std/variant (__variant_construct): Use template parameter
2313 type instead of equivalent decltype-specifier.
2314 (_Move_ctor_base<false, Types...>::_Move_ctor_base(_Move_ctor_base&&)):
2315 Replace forward with move.
2316 (_Move_ctor_base<false, Types...>::_M_destructive_move)
2317 (_Move_ctor_base<false, Types...>::_M_destructive_copy)
2318 (_Move_ctor_base<true, Types...>::_M_destructive_move)
2319 (_Move_ctor_base<true, Types...>::_M_destructive_copy): Only set the
2320 index after construction succeeds.
2321 (_Copy_assign_base<false, Types...>::operator=): Remove redundant
2322 if-constexpr checks that are always true. Use __remove_cvref_t instead
2323 of remove_reference so that is_nothrow_move_constructible check
2324 doesn't use a const rvalue parameter. In the potentially-throwing case
2325 construct a temporary and move assign it, as per LWG 2904.
2326 (_Move_assign_base<false, Types...>::operator=): Remove redundant
2327 if-constexpr checks that are always true. Use emplace as per LWG 2904.
2328 (variant::operator=(T&&)): Only use emplace conditionally, otherwise
2329 construct a temporary and move assign from it, as per LWG 2904.
2330 * testsuite/20_util/variant/exception_safety.cc: Check that
2331 assignment operators have strong exception safety guarantee.
2333 2019-04-23 Thomas Rodgers <trodgers@redhat.com>
2335 Document PSTL linker flags
2337 * doc/xml/manual/using.xml: Add PSTL linker flags to table 3.1.
2339 2019-04-23 Jonathan Wakely <jwakely@redhat.com>
2341 * include/std/variant (__detail::__variant::_Traits): Make
2342 _S_trivial_copy_assign depend on _S_trivial_copy_ctor and make
2343 _S_trivial_move_assign depend on _S_trivial_move_ctor, as per
2345 (__detail::__variant::_Copy_assign_alias): Only depend on
2346 _S_trivial_copy_assign, which subsumes _S_trivial_copy_ctor now.
2347 * testsuite/20_util/variant/compile.cc: Correct checks for trivial
2348 move assignment operators.
2351 * include/std/variant (variant::__not_self): New helper for the
2352 is_same_v<remove_cvref_t<T>, variant>==false constraints.
2353 (variant::__to_type_impl): Remove.
2354 (variant::__to_type): Add default argument to check pack size, instead
2355 of using __to_type_impl.
2356 (variant::__accepted_type): Add default argument using __not_self.
2357 (variant::__is_in_place_tag, variant::__not_in_place_tag): New helpers
2358 for variant(T&&) constructor constraint.
2359 (variant::variant(T&&)): Use __not_in_place_tag in constraints.
2360 Extract __accepted_type into a named template parameter for reuse in
2361 other constraints and in the exception specification.
2362 (variant::variant(in_place_type_t<T>, Args&&...))
2363 (variant::variant(in_place_type_t<T>, initializer_list<U>, Args&&...))
2364 (variant::variant(in_place_index_t<T>, Args&&...))
2365 (variant::variant(in_place_index_t<T>, initializer_list<U>, Args&&...))
2366 (variant::operator=T&&)): Remove redundant && from trait arguments.
2367 * testsuite/20_util/variant/compile.cc: Check variant(T&&) constructor
2368 isn't used for in_place_type or in_place_index arguments.
2370 * include/std/type_traits (unwrap_reference_t): Define for C++2a.
2371 (unwrap_ref_decay): Remove inheritance from unwrap_reference.
2372 * testsuite/20_util/unwrap_reference/1.cc: Adjust test to use alias.
2374 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2375 Bernd Edlinger <bernd.edlinger@hotmail.de>
2376 Jakub Jelinek <jakub@redhat.com>
2379 * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Add
2380 general-regs-only target attribute for ARM.
2382 2019-04-23 Jonathan Wakely <jwakely@redhat.com>
2385 * include/bits/basic_string.h (_Never_valueless_alt): Make partial
2386 specialization also depend on is_nothrow_move_constructible.
2387 * include/std/variant (__detail::__variant::__never_valueless()):
2388 Only true if the variant would have a move assignment operator.
2389 (__detail::__variant::_Variant_storage<false, T...>::_M_valid()):
2390 Check __never_valueless<T...>().
2391 (variant::emplace): Only perform non-throwing move assignments
2392 for never-valueless alternatives if the variant has a move assignment
2394 * testsuite/20_util/variant/compile.cc: Check that never-valueless
2395 types can be emplaced into non-assignable variants.
2396 * testsuite/20_util/variant/run.cc: Check that never-valueless types
2397 don't get copied when emplaced into non-assignable variants.
2399 * include/std/variant (__detail::__variant::__ref_cast): Remove
2401 (__detail::__variant::_Uninitialized::_M_get)
2402 (__detail::__variant::__get)
2403 (__gen_vtable_impl::__element_by_index_or_cookie): Add noexcept.
2405 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
2407 * testsuite/17_intro/headers/c++1998/charset.cc: Skip for Darwin8
2409 * testsuite/17_intro/headers/c++2011/charset.cc: Likewise.
2410 * testsuite/17_intro/headers/c++2014/charset.cc: Likewise.
2411 * testsuite/17_intro/headers/c++2017/charset.cc: Likewise.
2412 * testsuite/17_intro/headers/c++2020/charset.cc: Likewise.
2414 2019-04-20 Thomas Rodgers <trodgers@redhat.com>
2416 Delegate PSTL configuration to pstl/pstl_config.h
2418 * include/bits/c++config: Remove explicit PSTL configuration
2419 macros and use definitions from <pstl/pstl_config.h>.
2421 2019-04-20 Thomas Rodgers <trodgers@redhat.com>
2423 Cleanup algorithm implementations
2424 * include/pstl/glue_algorithm_impl.h (stable_sort): Forward
2426 (mismatch): Forward execution policy.
2427 (equal): Qualify call to std::equal().
2428 (partial_sort): Forward execution policy.
2429 (inplace_merge): Forward execution policy.
2431 2019-04-19 Thomas Rodgers <trodgers@redhat.com>
2433 Improve implementation of parallel equal()
2434 * include/pstl/algorithm_impl.h
2435 (__internal::__brick_equal): use "4 iterator" version of
2437 (__internal::__brick_equal): use simd for random access
2438 iterators on unsequenced execution policies.
2439 (__internal::__pattern_equal): add "4 iterator" version
2440 (__internal::__pattern_equal): dispatch to simd __brick_equal
2441 for vector-only execution policies.
2442 (__internal::__pattern_equal): dispatch to __parallel_or for
2443 parallel execution policies.
2444 * include/pstl/glue_algorithm_impl.h
2445 (std::equal): dispatch to "4 iterator" version of
2446 __internal::__pattern_equal().
2448 2019-04-17 Jonathan Wakely <jwakely@redhat.com>
2451 * include/bits/forward_list.h (operator==): Do not use operator!= to
2453 (forward_list<T, A>::sort(Comp)): When elements are equal take the one
2454 earlier in the list, so that sort is stable.
2455 * testsuite/23_containers/forward_list/operations/90105.cc: New test.
2456 * testsuite/23_containers/forward_list/comparable.cc: Test with
2457 types that meet the minimum EqualityComparable and LessThanComparable
2458 requirements. Remove irrelevant comment.
2460 * include/std/variant (__detail::__variant::_Traits::_S_copy_assign):
2461 Do not depend on whether all alternative types are move constructible.
2462 (__detail::__variant::_Copy_assign_base::operator=): Remove cv-quals
2463 from the operand when deciding whether to perform the assignment.
2464 * testsuite/20_util/variant/compile.cc (DeletedMoves): Define type
2465 with deleted move constructor and deleted move assignment operator.
2466 (default_ctor, copy_ctor, move_ctor, copy_assign, move_assign): Check
2467 behaviour of variants with DeletedMoves as an alternative.
2468 * testsuite/20_util/variant/run.cc (DeletedMoves): Define same type.
2469 (move_ctor, move_assign): Check that moving a variant with a
2470 DeletedMoves alternative falls back to copying instead of moving.
2472 * testsuite/20_util/variant/compile.cc: Remove empty string literals
2473 from static_assert declarations.
2475 * testsuite/20_util/variant/compile.cc (MoveCtorOnly): Fix type to
2476 actually match its name.
2477 (MoveCtorAndSwapOnly): Define new type that adds swap to MoveCtorOnly.
2478 (test_swap()): Fix result for MoveCtorOnly and check
2479 MoveCtorAndSwapOnly.
2481 * include/std/optional (optional::value_or(U&&) &&): Add missing
2482 constexpr specifier.
2483 * testsuite/20_util/optional/constexpr/observers/4.cc: Check value_or
2484 for disengaged optionals and rvalue optionals.
2485 * testsuite/20_util/optional/observers/4.cc: Likewise.
2487 2019-04-12 Thomas Rodgers <trodgers@redhat.com>
2489 * include/pstl/algorithm_impl.h: Uglify identfiers.
2490 * include/pstl/numeric_impl.h: Uglify identfiers.
2491 * include/pstl/parallel_backend_tbb.h: Uglify identfiers.
2493 2019-04-11 Thomas Rodgers <trodgers@redhat.com>
2495 * include/bits/c++config:
2496 Add definition for __PSTL_ASSERT.
2497 Add definition for __PSTL_ASSERT_MSG.
2498 * include/pstl/algorithm_impl.h: Replace use of assert().
2499 * include/pstl/numeric_impl.h: Replace use of assert().
2500 * include/pstl/parallel_backend_tbb.h:
2501 Replace use of assert().
2502 Replace use of __TBB_ASSERT().
2503 * include/pstl/parallel_backend_utils.h: Replace use of assert().
2505 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
2508 * src/c++17/memory_resource.cc
2509 (monotonic_buffer_resource::_Chunk::allocate): Increase alignment if
2510 needed to allow placing a _Chunk at the end of the buffer.
2511 (monotonic_buffer_resource::_M_new_buffer): Remove static_assert.
2513 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
2515 * doc/xml/faq.xml: Add information about emergency EH pool.
2516 * doc/xml/manual/debug.xml: Update list of memory debugging tools.
2517 Move outdated information on mt_allocator to a separate section.
2518 * doc/xml/manual/evolution.xml: Clarify that GLIBCXX_FORCE_NEW
2519 doesn't affect the default allocator.
2521 * testsuite/lib/libstdc++.exp (check_v3_target_parallel_mode): Fix
2525 * testsuite/20_util/variant/89851.cc: New test.
2527 2019-04-09 Jonathan Wakely <jwakely@redhat.com>
2529 * include/std/variant: Adjust whitespace. Add comments.
2530 (_Multi_array): Leave primary template undefined.
2531 (_Multi_array<_Tp>): Define partial specialization for base case of
2533 (__gen_vtable_impl, __gen_vtable): Remove redundant && from type
2534 which is always a reference.
2535 (__gen_vtable::_S_apply()): Remove function, inline body into
2536 default member initializer.
2537 * testsuite/20_util/variant/visit.cc: Test with noncopyable types.
2539 * include/std/variant (__variant_idx_cookie): Add member type.
2540 (__visitor_result_type): Remove.
2541 (__do_visit): Use invoke_result instead of __visitor_result_type.
2542 * testsuite/20_util/variant/visit.cc: New test.
2545 * include/std/variant (_VARIANT_RELATION_FUNCTION_TEMPLATE): Remove
2547 * testsuite/20_util/variant/90008.cc: New test.
2549 2019-04-09 Thomas Rodgers <trodgers@redhat.com>
2551 * include/pstl/algorithm_impl.h: Add namespace qualification.
2552 * include/pstl/execution_defs.h: Add namespace qualification.
2553 * include/pstl/execution_impl.h: Add namespace qualification.
2554 * include/pstl/numeric_impl.h: Add namespace qualification.
2555 * include/pstl/parallel_backend_tbb.h: Add namespace qualification.
2556 * include/pstl/unseq_backend_simd.h: Add namespace qualification.
2557 * include/pstl/parallel_backend_utils.h: Include <cassert>.
2559 2019-04-08 Ville Voutilainen <ville.voutilainen@gmail.com>
2561 Fix visit<R> for variant.
2562 * include/std/variant (__do_visit): Add a template parameter
2563 for enforcing same return types for visit.
2564 (__gen_vtable_impl): Likewise.
2565 (_S_apply_single_alt): Adjust.
2566 (__visit_invoke_impl): New. Handle casting to void.
2567 (__do_visit_invoke): New. Enforces same return types.
2568 (__do_visit_invoke_r): New. Converts return types.
2569 (__visit_invoke): Adjust.
2570 (__gen_vtable): Add a template parameter for enforcing
2571 same return types for visit.
2572 * testsuite/20_util/variant/visit_r.cc: Add a test for a visitor with
2573 different return types.
2574 * testsuite/20_util/variant/visit_neg.cc: New. Ensures that
2575 visitors with different return types don't accidentally
2576 compile with regular visitation.
2578 2019-04-08 Christophe Lyon <christophe.lyon@linaro.org>
2580 * testsuite/27_io/filesystem/iterators/caching.cc: Add
2581 dg-require-filesystem-ts.
2583 2019-04-05 Jonathan Wakely <jwakely@redhat.com>
2585 * doc/xml/manual/status_cxx2020.xml: Update status.
2586 * include/std/variant (visit<R>): Define for C++2a (P0655R1).
2587 * testsuite/20_util/variant/visit_r.cc: New test.
2589 * include/bits/fs_dir.h (directory_iterator::operator*)
2590 (directory_iterator::operator->): Add noexcept.
2591 (operator==, operator!=): Replace namespace-scope equality operators
2592 for directory iterators with hidden friends.
2595 * config/abi/pre/gnu.ver: Add missing exports.
2596 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Test
2599 * config/abi/pre/gnu.ver: Export new symbols.
2600 * include/bits/fs_dir.h (recursive_directory_iterator::options())
2601 (recursive_directory_iterator::recursion_pending())
2602 (recursive_directory_iterator::disable_recursion_pending()): Remove
2603 inline definitions. Make noexcept.
2604 (recursive_directory_iterator::depth())
2605 (recursive_directory_iterator::operator*())
2606 (recursive_directory_iterator::operator->()): Make noexcept.
2607 (recursive_directory_iterator::_M_options)
2608 (recursive_directory_iterator::_M_pending): Remove data members.
2609 * src/c++17/fs_path.cc (_Dir_stack): Add constructor and data members.
2610 (recursive_directory_iterator::recursive_directory_iterator): Remove
2611 ctor-initializer. Use new constructor for _Dir_stack.
2612 (recursive_directory_iterator::options())
2613 (recursive_directory_iterator::recursion_pending())
2614 (recursive_directory_iterator::disable_recursion_pending()): Add
2615 non-inline definitions.
2616 (recursive_directory_iterator::depth()): Make noexcept.
2617 (recursive_directory_iterator::increment(error_code&))
2618 (recursive_directory_iterator::pop(error_code&)): Adjust to new
2619 location of options and recursion_pending members.
2620 * testsuite/27_io/filesystem/iterators/recursion_pending.cc: New test.
2621 * testsuite/util/testsuite_fs.h (__gnu_test::scoped_file): Add
2622 user-declared move constructor and assignment operator, to make the
2625 * src/c++17/fs_dir.cc (_Dir::advance(bool, error_code&)): Handle
2626 d_type == DT_UNKNOWN immediately.
2627 (_Dir::should_recurse(bool, error_code&)): Remove file_type::unknown
2629 * testsuite/27_io/filesystem/iterators/caching.cc: New test.
2631 * include/bits/fs_path.h (path::operator=(path&&)): Check for self
2633 * src/c++17/fs_path.cc (path::operator=(const path&)): Likewise.
2634 * testsuite/27_io/filesystem/path/assign/copy.cc: Test self
2637 PR libstdc++/87431 (again)
2638 * include/bits/basic_string.h (__variant::_Never_valueless_alt):
2639 Define partial specialization for basic_string.
2640 * include/bits/shared_ptr.h (_Never_valueless_alt): Likewise for
2641 shared_ptr and weak_ptr.
2642 * include/bits/std_function.h (_Never_valueless_alt): Likewise for
2644 * include/bits/stl_vector.h (_Never_valueless_alt): Likewise for
2646 * include/bits/unique_ptr.h (_Never_valueless_alt): Likewise for
2648 * include/debug/vector (_Never_valueless_alt): Likewise for debug
2650 * include/std/any (_Never_valueless_alt): Define explicit
2651 specialization for any.
2652 * include/std/variant (_Never_valueless_alt): Define primary template.
2653 (__never_valueless): Use _Never_valueless_alt instead of
2654 is_trivially_copyable.
2655 (variant::emplace<N>(Args&&...)): Add special case for non-throwing
2656 initializations to avoid try-catch overhead. Add special case for
2657 scalars produced by potentially-throwing conversions. Use
2658 _Never_valueless_alt instead of is_trivially_copyable for the
2659 remaining strong exception-safety cases.
2660 (variant::emplace<N>(initializer_list<U>, Args&&...)): Likewise.
2661 * testsuite/20_util/variant/87431.cc: Run both test functions.
2662 * testsuite/20_util/variant/exception_safety.cc: New test.
2663 * testsuite/20_util/variant/run.cc: Use pmr::string instead of string,
2664 so the variant becomes valueless.
2666 2019-04-03 Jonathan Wakely <jwakely@redhat.com>
2669 * include/std/variant (_Copy_assign_base, _Move_assign_base, variant):
2671 (variant::emplace<_Tp>): Return result of emplace<N> directly.
2673 * include/std/string (__hash_string_base): New class template defining
2674 operator() for hashing strings.
2675 (hash<pmr::string>, hash<pmr::u8string>, hash<pmr::u16string>)
2676 (hash<pmr::u32string>, hash<pmr::wstring>): Define for C++17.
2677 * testsuite/21_strings/basic_string/hash/hash.cc: New test.
2678 * testsuite/21_strings/basic_string/hash/hash_char8_t.cc: New test.
2680 2019-04-01 Ville Voutilainen <ville.voutilainen@gmail.com>
2682 Use single-visitation in variant assignment and swap and relops.
2683 Also use indices instead of types when checking whether
2684 variants hold the same thing.
2685 * include/std/variant (__do_visit): Add a template parameter
2686 for index visitation, invoke with indices if index visitation
2688 (__variant_idx_cookie): New.
2689 (__visit_with_index): Likewise.
2690 (_Copy_assign_base::operator=): Do single-visitation with
2692 (_Move_assign_base::operator=): Likewise.
2693 (_Extra_visit_slot_needed): Adjust.
2694 (__visit_invoke): Call with indices if it's an index visitor.
2695 (relops): Do single-visitation with an index visitor.
2697 (__visitor_result_type): New.
2699 2019-03-30 Eric Botcazou <ebotcazou@adacore.com>
2701 * src/c++17/fs_ops.cc (fs::permissions): Use std::errc::not_supported.
2703 2019-03-28 Ville Voutilainen <ville.voutilainen@gmail.com>
2705 Don't revisit a variant we are already visiting.
2706 * include/std/variant (__variant_construct_single): New.
2707 (__variant_construct): Use it.
2708 (_M_destructive_move): Likewise.
2709 (_M_destructive_copy): Likewise.
2710 (_Copy_assign_base::operator=): Adjust.
2711 (_Move_assign_base::operator=): Likewise.
2714 2019-03-26 Jonathan Wakely <jwakely@redhat.com>
2717 * include/bits/hashtable.h (_Hashtable): Move static assertions to
2718 destructor so they are not evaluated until the _Key type is complete.
2719 * include/bits/stl_tree.h (_Rb_tree): Likewise.
2720 * testsuite/23_containers/set/85965.cc: New test.
2721 * testsuite/23_containers/unordered_set/85965.cc: New test.
2722 * testsuite/23_containers/map/48101_neg.cc: Replace "here" errors
2723 with regexp matching the corresponding _Rb_tree specialization.
2724 * testsuite/23_containers/multimap/48101_neg.cc: Likewise.
2725 * testsuite/23_containers/multiset/48101_neg.cc: Remove "here" error.
2726 * testsuite/23_containers/set/48101_neg.cc: Likewise.
2727 * testsuite/23_containers/unordered_map/48101_neg.cc: Likewise.
2728 * testsuite/23_containers/unordered_multimap/48101_neg.cc: Likewise.
2729 * testsuite/23_containers/unordered_multiset/48101_neg.cc: Likewise.
2730 * testsuite/23_containers/unordered_set/48101_neg.cc: Likewise.
2732 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com>
2735 Fix based on a suggestion by Antony Polukhin.
2736 * include/std/variant (__never_valueless): New.
2738 (_Extra_visit_slot_needed): New.
2739 (_Multi_array): Use it.
2740 (_S_apply_all_alts): Likewise.
2742 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com>
2745 Fix based on a suggestion by Antony Polukhin.
2746 * include/std/variant (__gen_vtable): Don't reserve an
2747 additional table slot, _Multi_array already does that.
2749 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com>
2752 Fix based on a suggestion by Antony Polukhin.
2753 * include/std/variant (__variant_construct): Capture a pointer
2754 to the storage and visit just one variant.
2756 2019-03-22 Jonathan Wakely <jwakely@redhat.com>
2758 * doc/xml/manual/backwards_compatibility.xml: Remove link to
2759 Doxygen-generated pages with unstable URL.
2760 * doc/xml/manual/concurrency_extensions.xml: Likewise.
2761 * doc/xml/manual/extensions.xml: Likewise.
2762 * doc/xml/manual/parallel_mode.xml: Likewise.
2763 * doc/xml/manual/support.xml: Likewise.
2765 * include/bits/stl_algobase.h (__lg): Do arithmetic on type int to
2766 avoid -Wconversion warnings.
2768 2019-03-21 Thomas Rodgers <trodgers@redhat.com>
2770 * include/Makefile.am (std_header): Add ${std_srcdir}/execution.
2771 (pstl_srcdir, pstl_builddir, pstl_headers): New variables.
2772 (allstamped): Add stamp-pstl.
2773 (install-headers): Add ptsl_builddir.
2774 * include/Makefile.in: Regenerate.
2775 * include/bits/c++config: Add pstl configuration.
2776 * include/pstl/LICENSE.txt: New file.
2777 * include/pstl/algorithm_fwd.h: New file.
2778 * include/pstl/algorithm_impl.h: New file.
2779 * include/pstl/execution_defs.h: New file.
2780 * include/pstl/execution_impl.h: New file.
2781 * include/pstl/glue_algorithm_defs.h: New file.
2782 * include/pstl/glue_algorithm_impl.h: New file.
2783 * include/pstl/glue_execution_defs.h: New file.
2784 * include/pstl/glue_memory_defs.h: New file.
2785 * include/pstl/glue_memory_impl.h: New file.
2786 * include/pstl/glue_numeric_defs.h: New file.
2787 * include/pstl/glue_numeric_impl.h: New file.
2788 * include/pstl/memory_impl.h: New file.
2789 * include/pstl/numeric_fwd.h: New file.
2790 * include/pstl/numeric_impl.h: New file.
2791 * include/pstl/parallel_backend.h: New file.
2792 * include/pstl/parallel_backend_tbb.h: New file.
2793 * include/pstl/parallel_backend_utils.h: New file.
2794 * include/pstl/parallel_impl.h: New file.
2795 * include/pstl/pstl_config.h: New file.
2796 * include/pstl/unseq_backend_simd.h: New file.
2797 * include/pstl/utils.h: New file.
2798 * include/std/algorithm: Include parallel algorithm implementations.
2799 * include/std/execution: New file.
2800 * include/std/memory: Include parallel algorithm implementations.
2801 * include/std/numeric: Include parallel algorithm implementations.
2802 * include/std/version: Add parallel algorithms feature test macro.
2803 * testsuite/util/pstl/pstl_test_config.h: New file.
2804 * testsuite/util/pstl/test_utils.h: New file.
2805 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc: New file.
2806 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc: New file.
2807 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc: New file.
2808 * testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: New file.
2809 * testsuite/25_algorithms/pstl/alg_merge/merge.cc: New file.
2810 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc: New file.
2811 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc: New file.
2812 * testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc: New file.
2813 * testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc: New file.
2814 * testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc: New file.
2815 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc: New file.
2816 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc: New file.
2817 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc: New file.
2818 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc: New file.
2819 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc: New file.
2820 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc: New file.
2821 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc: New file.
2822 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc: New file.
2823 * testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc: New file.
2824 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc: New file.
2825 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc: New file.
2826 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc: New file.
2827 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc: New file.
2828 * testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc: New file.
2829 * testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: New file.
2830 * testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: New file.
2831 * testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: New file.
2832 * testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: New file.
2833 * testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: New file.
2834 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: New file.
2835 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc: New file.
2836 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: New file.
2837 * testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc: New file.
2838 * testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc: New file.
2839 * testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: New file.
2840 * testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc: New file.
2841 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: New file.
2842 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc: New file.
2843 * testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: New file.
2844 * testsuite/25_algorithms/pstl/alg_sorting/includes.cc: New file.
2845 * testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: New file.
2846 * testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc: New file.
2847 * testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc: New file.
2848 * testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc: New file.
2849 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: New file.
2850 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc: New file.
2851 * testsuite/25_algorithms/pstl/alg_sorting/set.cc: New file.
2852 * testsuite/25_algorithms/pstl/alg_sorting/sort.cc: New file.
2853 * testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc: New file.
2854 * testsuite/26_numerics/pstl/numeric_ops/reduce.cc: New file.
2855 * testsuite/26_numerics/pstl/numeric_ops/scan.cc: New file.
2856 * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc: New file.
2857 * testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: New file.
2858 * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc: New file.
2859 * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc: New file.
2860 * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc: New file.
2861 * testsuite/testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: New file.
2862 * testsuite/testsuite/25_algorithms/pstl/alg_merge/merge.cc: New file.
2863 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc: New file.
2864 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc: New file.
2865 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc: New file.
2866 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc: New file.
2867 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc: New file.
2868 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc: New file.
2869 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc: New file.
2870 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc: New file.
2871 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc: New file.
2872 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc: New file.
2873 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc: New file.
2874 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc: New file.
2875 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc: New file.
2876 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc: New file.
2877 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc: New file.
2878 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc: New file.
2879 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc: New file.
2880 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc: New file.
2881 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc: New file.
2882 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: New file.
2883 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: New file.
2884 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: New file.
2885 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: New file.
2886 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: New file.
2887 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: New file.
2888 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc: New file.
2889 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: New file.
2890 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc: New file.
2891 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc: New file.
2892 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: New file.
2893 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc: New file.
2894 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: New file.
2895 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc: New file.
2896 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: New file.
2897 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/includes.cc: New file.
2898 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: New file.
2899 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc: New file.
2900 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc: New file.
2901 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc: New file.
2902 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: New file.
2903 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc: New file.
2904 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/set.cc: New file.
2905 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/sort.cc: New file.
2906 * testsuite/testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc: New file.
2907 * testsuite/testsuite/26_numerics/pstl/numeric_ops/reduce.cc: New file.
2908 * testsuite/testsuite/26_numerics/pstl/numeric_ops/scan.cc: New file.
2909 * testsuite/testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc: New file.
2910 * testsuite/testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: New file.
2912 2019-03-21 Jonathan Wakely <jwakely@redhat.com>
2914 * include/c_compatibility/math.h [!__STDCPP_WANT_MATH_SPEC_FUNCS__]
2915 (assoc_laguerre, assoc_laguerref, assoc_laguerrel, assoc_legendre)
2916 (assoc_legendref, assoc_legendrel, beta, betaf, betal, comp_ellint_1)
2917 (comp_ellint_1f, comp_ellint_1l, comp_ellint_2, comp_ellint_2f)
2918 (comp_ellint_2l, comp_ellint_3, comp_ellint_3f, comp_ellint_3l)
2919 (cyl_bessel_i, cyl_bessel_if, cyl_bessel_il, cyl_bessel_j)
2920 (cyl_bessel_jf, cyl_bessel_jl, cyl_bessel_k, cyl_bessel_kf)
2921 (cyl_bessel_kl, cyl_neumann, cyl_neumannf, cyl_neumannl, ellint_1)
2922 (ellint_1f, ellint_1l, ellint_2, ellint_2f, ellint_2l, ellint_3)
2923 (ellint_3f, ellint_3l, expint, expintf, expintl, hermite, hermitef)
2924 (hermitel, laguerre, laguerref, laguerrel, legendre, legendref)
2925 (legendrel, riemann_zeta, riemann_zetaf, riemann_zetal, sph_bessel)
2926 (sph_besself, sph_bessell, sph_legendre, sph_legendref, sph_legendrel)
2927 (sph_neumann, sph_neumannf, sph_neumannl): Only add using-declarations
2928 when the special functions IS is enabled, not for C++17.
2929 * testsuite/26_numerics/headers/cmath/functions_global_c++17.cc:
2931 * testsuite/26_numerics/headers/cmath/functions_global.cc: New test,
2932 without checks for special functions in C++17.
2933 * testsuite/26_numerics/headers/cmath/special_functions_global.cc:
2937 * include/backward/hash_map: Use <> for includes not "".
2938 * include/backward/hash_set: Likewise.
2939 * include/backward/strstream: Likewise.
2940 * include/tr1/bessel_function.tcc: Likewise.
2941 * include/tr1/exp_integral.tcc: Likewise.
2942 * include/tr1/legendre_function.tcc: Likewise.
2943 * include/tr1/modified_bessel_func.tcc: Likewise.
2944 * include/tr1/riemann_zeta.tcc: Likewise.
2946 2019-03-19 Jonathan Wakely <jwakely@redhat.com>
2948 * doc/xml/manual/allocator.xml: Link to table documenting evolution
2949 of extension allocators.
2950 * doc/xml/manual/evolution.xml: Use angle brackets for header names.
2951 Document new headers in 7.2, 8.1 and 9.1 releases.
2952 * doc/xml/manual/using.xml: Adjust link target for new_allocator.
2953 * doc/html/*: Regenerate.
2955 2019-03-12 John David Anglin <dave.anglin@bell.net>
2958 * testsuite/lib/libstdc++.exp: Locate libatomic.
2959 * testsuite/lib/dg-options.exp (add_options_for_libatomic): New.
2960 * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: Add
2962 * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise.
2963 * testsuite/experimental/net/timer/waitable/cons.cc: Likewise.
2964 * testsuite/experimental/net/timer/waitable/dest.cc: Likewise.
2965 * testsuite/experimental/net/timer/waitable/ops.cc: Likewise.
2967 2019-03-11 Jonathan Wakely <jwakely@redhat.com>
2970 * configure.ac: Check for sockatmark.
2971 * crossconfig.m4: Check for sockatmark.
2972 * config.h.in: Regenerate.
2973 * configure: Regenerate.
2974 * include/experimental/internet (address_v4::_S_hton): Rename
2975 overloaded functions to _S_hton_16 and _S_ntoh_16.
2976 (address_v4::_S_ntoh): Rename to _S_ntoh_16 and _S_ntoh_32.
2977 (basic_endpoint): Adjust calls to _S_hton and _S_ntoh.
2978 * include/experimental/socket (basic_socket::at_mark): Check
2979 _GLIBCXX_HAVE_SOCKATMARK.
2981 * testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc: Use
2982 const variables instead of macros.
2985 * libsupc++/hash_bytes.cc [__SIZEOF_SIZE_T__ == 8] (_Hash_bytes):
2986 Use correct type for len_aligned.
2987 * testsuite/20_util/hash/89629.cc: New test.
2989 2019-03-11 Jakub Jelinek <jakub@redhat.com>
2992 * include/std/atomic (atomic<T>::store, atomic<T>::load,
2993 atomic<T>::exchange, atomic<T>::compare_exchange_weak,
2994 atomic<T>::compare_exchange_strong): Cast __m or __s and __f to int.
2995 * include/bits/atomic_base.h (__atomic_base<T>::operator++,
2996 __atomic_base<T>::operator--, __atomic_base<T>::operator+=,
2997 __atomic_base<T>::operator-=, __atomic_base<T>::operator&=,
2998 __atomic_base<T>::operator|=, __atomic_base<T>::operator^=,
2999 __atomic_base<T*>::operator++, __atomic_base<T*>::operator--,
3000 __atomic_base<T*>::operator+=, __atomic_base<T*>::operator-=): Cast
3001 memory_order_seq_cst to int.
3003 2019-03-08 Jonathan Wakely <jwakely@redhat.com>
3005 * doc/xml/manual/using.xml: Use link element instead of xref.
3006 * doc/html/*: Regenerate.
3008 * include/bits/fs_path.h (path::format): Add fixed underlying type.
3010 2019-03-08 François Dumont <fdumont@gcc.gnu.org>
3013 * include/debug/map.h (map): Use _RequireNotAllocator to constrain
3014 parameters in deduction guides.
3015 * include/debug/multimap.h (multimap): Likewise.
3016 * include/debug/set.h (multimap): Likewise.
3017 * include/debug/multiset.h (multimap): Likewise.
3018 * include/debug/unordered_map (unordered_map): Likewise.
3019 (unordered_multimap): Likewise.
3020 * include/debug/unordered_set (unordered_set): Likewise.
3021 (unordered_multiset): Likewise.
3024 * include/debug/unordered_map (unordered_map<>::_M_check_rehashed):
3025 Invalidate all iterators in case of rehash.
3026 (unordered_multimap<>::_M_check_rehashed): Likewise.
3027 * include/debug/unordered_set
3028 (unordered_set<>::_M_check_rehashed): Likewise.
3029 (unordered_multiset<>::_M_check_rehashed): Likewise.
3030 * testsuite/23_containers/unordered_set/debug/89608_neg.cc: New.
3032 2019-03-07 Andreas Schwab <schwab@suse.de>
3034 * config/abi/post/riscv64-linux-gnu: New directory.
3035 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: New file.
3037 2019-03-07 Jonathan Wakely <jwakely@redhat.com>
3039 * testsuite/20_util/function_objects/bind_front/1.cc: Change from
3040 compile test to run. Fix typo.
3042 * doc/xml/manual/status_cxx2020.xml: Update C++20 status.
3043 * doc/html/*: Regenerate.
3045 P0356R5 Simplified partial function application
3046 * include/std/functional [C++20] (_Bind_front, _Bind_front_t): Define
3047 helpers for bind_front.
3048 (bind_front, __cpp_lib_bind_front): Define.
3049 * testsuite/20_util/function_objects/bind_front/1.cc: New test.
3051 2019-03-06 Jonathan Wakely <jwakely@redhat.com>
3053 * include/std/type_traits (__cpp_lib_bounded_array_traits): Define.
3054 * include/std/version (__cpp_lib_bounded_array_traits): Likewise.
3055 * testsuite/20_util/is_bounded_array/value.cc: Check for macro.
3056 * testsuite/20_util/is_unbounded_array/value.cc: Likewise.
3058 2019-03-06 Edward Smith-Rowland <3dw4rd@verizon.net>
3060 PR libstdc++/86655 - std::assoc_legendre should not constrain
3061 the value of m (or x).
3062 * include/tr1/legendre_function.tcc (__assoc_legendre_p,
3063 __sph_legendre): If degree > order Don't throw, return 0.
3064 (__legendre_p, __assoc_legendre_p): Don't constrain x either.
3065 * testsuite/special_functions/02_assoc_legendre/pr86655.cc: New test.
3066 * testsuite/special_functions/20_sph_legendre/pr86655.cc: New test.
3067 * testsuite/tr1/5_numerical_facilities/special_functions/
3068 02_assoc_legendre/pr86655.cc: New test.
3069 * testsuite/tr1/5_numerical_facilities/special_functions/
3070 22_sph_legendre/pr86655.cc: New test.
3072 2019-03-06 Ville Voutilainen <ville.voutilainen@gmail.com>
3075 Also PR libstdc++/85517
3076 * include/std/variant (__do_visit): New.
3077 (__variant_cast): Likewise.
3078 (__variant_cookie): Likewise.
3079 (__erased_*): Remove.
3080 (_Variant_storage::_S_vtable): Likewise.
3081 (_Variant_storage::__M_reset_impl): Adjust to use __do_visit.
3082 (_Variant_storage::__M_reset): Adjust.
3083 (__variant_construct): New.
3084 (_Copy_ctor_base(const _Copy_ctor_base&)): Adjust to use
3085 __variant_construct.
3086 (_Move_ctor_base(_Move_ctor_base&&)): Likewise.
3087 (_Move_ctor_base::__M_destructive_copy): New.
3088 (_Move_ctor_base::__M_destructive_move): Adjust to use
3089 __variant_construct.
3090 (_Copy_assign_base::operator=): Adjust to use __do_visit.
3091 (_Copy_assign_alias): Adjust to check both copy assignment
3092 and copy construction for triviality.
3093 (_Move_assign_base::operator=): Adjust to use __do_visit.
3094 (_Multi_array): Add support for visitors that accept and return
3096 (__gen_vtable_impl::_S_apply_all_alts): Likewise.
3097 (__gen_vtable_impl::_S_apply_single_alt): Likewise.
3098 (__gen_vtable_impl::__element_by_index_or_cookie): New. Generate
3099 a __variant_cookie temporary for a variant that is valueless and..
3100 (__gen_vtable_impl::__visit_invoke): ..adjust here.
3101 (__gen_vtable::_Array_type): Conditionally make space for
3102 the __variant_cookie visitor case.
3103 (__variant_construct_by_index): New.
3104 (get_if): Adjust to use std::addressof.
3105 (relops): Adjust to use __do_visit.
3106 (variant): Add __variant_cast and __variant_construct_by_index
3108 (variant::emplace): Use _M_reset() and __variant_construct_by_index
3109 instead of self-destruction.
3110 (variant::swap): Adjust to use __do_visit.
3111 (visit): Reimplement in terms of __do_visit.
3112 (__variant_hash_call_base_impl::operator()): Adjust to use __do_visit.
3113 * testsuite/20_util/variant/compile.cc: Adjust.
3114 * testsuite/20_util/variant/run.cc: Likewise.
3116 2019-03-06 Jonathan Wakely <jwakely@redhat.com>
3118 * include/bits/c++config.h (_cpp_lib_char8_t): Add L suffix to
3120 * testsuite/experimental/feat-char8_t.cc: Likewise.
3122 * include/std/type_traits [C++20] (is_bounded_array)
3123 (is_unbounded_array, is_bounded_array_v, is_unbounded_array_v):
3125 * testsuite/20_util/is_bounded_array/requirements/
3126 explicit_instantiation.cc: New test.
3127 * testsuite/20_util/is_bounded_array/requirements/typedefs.cc: New
3129 * testsuite/20_util/is_bounded_array/value.cc: New test.
3130 * testsuite/20_util/is_unbounded_array/requirements/
3131 explicit_instantiation.cc: New test.
3132 * testsuite/20_util/is_unbounded_array/requirements/typedefs.cc: New
3134 * testsuite/20_util/is_unbounded_array/value.cc: New test.
3136 * include/bits/ptr_traits.h [C++20] (pointer_traits<T*>::pointer_to):
3138 * testsuite/20_util/pointer_traits/pointer_to_constexpr.cc: New test.
3140 2019-03-05 Jonathan Wakely <jwakely@redhat.com>
3142 * include/c_compatibility/math.h [C++20] (lerp): Add using
3144 * include/c_global/cmath [C++20] (__cpp_lib_interpolate): Define.
3145 (__lerp): Define function template to implement lerp.
3146 (lerp(float, float, float), lerp(double, double, double))
3147 (lerp(long double, long double, long double)): Define for C++20.
3148 * include/std/numeric [C++20] (__cpp_lib_interpolate): Define.
3149 (midpoint(T, T), midpoint(T*, T*)): Define.
3150 * include/std::version [C++20] (__cpp_lib_interpolate): Define.
3151 * testsuite/26_numerics/lerp.cc: New test.
3152 * testsuite/26_numerics/midpoint/floating.cc: New test.
3153 * testsuite/26_numerics/midpoint/integral.cc: New test.
3154 * testsuite/26_numerics/midpoint/pointer.cc: New test.
3156 2019-03-04 Edward Smith-Rowland <3dw4rd@verizon.net>
3158 PR libstdc++/88996 Implement P0439R0
3159 Make std::memory_order a scoped enumeration.
3160 * include/bits/atomic_base.h: For C++20 make memory_order a scoped enum,
3161 add variables for the old enumerators. Adjust calls.
3162 * testsuite/29_atomics/headers/atomic/types_std_c++2a.cc: New test.
3163 * testsuite/29_atomics/headers/atomic/types_std_c++2a_neg.cc: New test.
3165 2019-03-04 Jonathan Wakely <jwakely@redhat.com>
3167 * testsuite/26_numerics/bit/bitops.rot/rotl.cc: Remove bogus dg-do
3170 * include/std/memory_resource (polymorphic_allocator): Add default
3171 template argument for C++20.
3172 (polymorphic_allocator::allocate_bytes)
3173 (polymorphic_allocator::deallocate_bytes)
3174 (polymorphic_allocator::allocate_object)
3175 (polymorphic_allocator::deallocate_object)
3176 (polymorphic_allocator::new_object)
3177 (polymorphic_allocator::delete_object): New member functions for
3179 * testsuite/20_util/polymorphic_allocator/allocate_object.cc: New
3182 2019-03-03 Jonathan Wakely <jwakely@redhat.com>
3185 * src/filesystem/ops-common.h (do_copy_file): Open files in binary
3188 2019-03-01 Jonathan Wakely <jwakely@redhat.com>
3190 * testsuite/util/testsuite_allocator.h (__gnu_test::memory_resource)
3191 [!__cpp_sized_deallocation]: Do not pass size to operator delete.
3193 * include/std/memory (uses_allocator_construction_args): New set of
3194 overloaded functions.
3195 (make_obj_using_allocator, uninitialized_construct_using_allocator):
3197 * include/std/memory_resource (polymorphic_allocator::construct)
3198 [__cplusplus > 201703l]: Replace all overloads with a single function
3199 using uses_allocator_construction_args.
3200 * testsuite/20_util/polymorphic_allocator/construct_c++2a.cc: New
3202 * testsuite/20_util/uses_allocator/make_obj.cc: New test.
3204 2019-02-27 Jonathan Wakely <jwakely@redhat.com>
3207 * acinclude.m4 (GLIBCXX_CONFIGURE_DOCBOOK): Reorder check for local
3208 stylesheet directories before check for xsltproc. Try to use
3209 xmlcatalog to find local stylesheet directory before trying hardcoded
3210 paths. Add path used by suse to hardcoded paths. Adjust xsltproc
3211 check to look for the same stylesheet as doc/Makefile.am uses. Don't
3212 use xsltproc if xmlcatalog fails to find a local stylesheet.
3213 * configure.ac: Check for xmlcatalog.
3214 * Makefile.in: Regenerate.
3215 * configure: Likewise.
3216 * doc/Makefile.in: Likewise.
3217 * include/Makefile.in: Likewise.
3218 * libsupc++/Makefile.in: Likewise.
3219 * po/Makefile.in: Likewise.
3220 * python/Makefile.in: Likewise.
3221 * src/Makefile.in: Likewise.
3222 * src/c++11/Makefile.in: Likewise.
3223 * src/c++17/Makefile.in: Likewise.
3224 * src/c++98/Makefile.in: Likewise.
3225 * src/filesystem/Makefile.in: Likewise.
3226 * testsuite/Makefile.in: Likewise.
3228 2019-02-26 Jonathan Wakely <jwakely@redhat.com>
3231 * include/bits/alloc_traits.h (_RequireNotAllocator): New helper for
3232 container deduction guides.
3233 * include/bits/hashtable.h (_RequireNotAllocatorOrIntegral): Likewise.
3234 * include/bits/stl_map.h (map): Use _RequireNotAllocator to constrain
3235 parameters in deduction guides.
3236 * include/bits/stl_multimap.h (multimap): Likewise.
3237 * include/bits/stl_multiset.h (multiset): Likewise.
3238 * include/bits/stl_queue.h (queue, priority_queue): Likewise.
3239 * include/bits/stl_set.h (set): Likewise.
3240 * include/bits/stl_stack.h (stack): Likewise.
3241 * include/bits/unordered_map.h (unordered_map, unordered_multimap):
3242 use _RequireNotAllocator and _RequireNotAllocatorOrIntegral to
3243 constrain parameters in deduction guides.
3244 * include/bits/unordered_set.h (unordered_set, unordered_multiset):
3246 * testsuite/23_containers/map/cons/deduction.cc: Test additional
3248 * testsuite/23_containers/multiset/cons/deduction.cc: Likewise.
3249 * testsuite/23_containers/set/cons/deduction.cc: Likewise.
3250 * testsuite/23_containers/unordered_map/cons/deduction.cc: Likewise.
3251 * testsuite/23_containers/unordered_multimap/cons/deduction.cc:
3253 * testsuite/23_containers/unordered_multiset/cons/deduction.cc:
3255 * testsuite/23_containers/unordered_set/cons/deduction.cc: Likewise.
3258 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Change
3259 to class template and partial specialization using void_t.
3260 (__is_copy_insertable, __is_move_insertable): Adjust base class.
3262 2019-02-24 Jonathan Wakely <jwakely@redhat.com>
3265 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Make
3266 copy and move members public.
3268 2019-02-23 Jonathan Wakely <jwakely@redhat.com>
3270 * include/std/type_traits (__underlying_type_impl): New helper to
3271 make underlying_type SFINAE-friendly.
3272 (underlying_type): Derive from __underlying_type_impl.
3273 * testsuite/20_util/underlying_type/requirements/typedefs-3.cc: New
3277 * include/bits/char_traits.h (__constant_char_array): Check index is
3278 in range before dereferencing.
3279 (char_traits<char>::compare, char_traits<char>::find)
3280 (char_traits<char8_t>::compare, char_traits<char8_t>::find): Return
3281 immediately if n is zero.
3282 (char_traits<wchar_t>::compare, char_traits<wchar_t>::find): Likewise.
3283 Remove workarounds for PR 67026.
3284 * testsuite/21_strings/basic_string_view/operators/char/89446.cc:
3286 * testsuite/21_strings/basic_string_view/operators/wchar_t/89446.cc:
3289 2019-02-22 Eric Botcazou <ebotcazou@adacore.com>
3291 * config/abi/post/sparc64-linux-gnu/baseline_symbols.txt: Adjust.
3292 * config/abi/post/sparc64-linux-gnu/32/baseline_symbols.txt: Likewise.
3294 2019-02-22 Jakub Jelinek <jakub@redhat.com>
3297 * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Change return
3298 type to std::size_t and argument to type to long double.
3300 2019-02-22 Eric Botcazou <ebotcazou@adacore.com>
3302 * configure.host (abi_baseline_pair): Adjust for SPARC64/Linux.
3303 * config/abi/post/sparc64-linux-gnu: New directory.
3304 * config/abi/post/sparc64-linux-gnu/baseline_symbols.txt: New file.
3305 * config/abi/post/sparc64-linux-gnu/32: New directory.
3306 * config/abi/post/sparc64-linux-gnu/32/baseline_symbols.txt: New file.
3308 2019-02-21 Jonathan Wakely <jwakely@redhat.com>
3310 * testsuite/29_atomics/headers/atomic/types_std_c++20.cc: New test.
3311 * testsuite/29_atomics/headers/atomic/types_std_c++20_neg.cc: New
3314 2019-02-22 Tom Honermann <tom@honermann.net>
3316 * python/libstdcxx/v6/printers.py (register_type_printers): Add type
3317 printers for u8string and u8string_view.
3319 2019-02-22 Tom Honermann <tom@honermann.net>
3321 * testsuite/18_support/byte/ops.cc: Validate
3322 std::to_integer<char8_t>, std::to_integer<char16_t>, and
3323 std::to_integer<char32_t>.
3324 * testsuite/18_support/numeric_limits/dr559.cc: Validate
3325 std::numeric_limits<char8_t>.
3326 * testsuite/18_support/numeric_limits/lowest.cc: Validate
3327 std::numeric_limits<char8_t>::lowest().
3328 * testsuite/18_support/numeric_limits/max_digits10.cc: Validate
3329 std::numeric_limits<char8_t>::max_digits10.
3330 * testsuite/18_support/type_info/fundamental.cc: Validate
3331 typeinfo for char8_t.
3332 * testsuite/20_util/from_chars/1_c++20_neg.cc: New test, validating
3333 std::from_chars with char8_t.
3334 * testsuite/20_util/hash/requirements/explicit_instantiation.cc:
3335 Validate explicit instantiation of std::hash<char8_t>.
3336 * testsuite/20_util/is_integral/value.cc: Validate
3337 std::is_integral<char8_t>.
3338 * testsuite/20_util/make_signed/requirements/typedefs-4.cc:
3339 Validate std::make_signed<char8_t>.
3340 * testsuite/21_strings/basic_string/cons/char/deduction.cc:
3341 Validate u8string construction from char8_t sources.
3342 * testsuite/21_strings/basic_string/types/pmr_typedefs.cc: Validate
3344 * testsuite/21_strings/basic_string_view/operations/compare/
3345 char/70483.cc: Validate substr operations on u8string_view.
3346 * testsuite/21_strings/basic_string_view/typedefs.cc: Validate that
3347 the u8string_view typedef is defined.
3348 * testsuite/21_strings/char_traits/requirements/
3349 constexpr_functions.cc: Validate char_traits<char8_t> constexpr
3351 * testsuite/21_strings/char_traits/requirements/
3352 constexpr_functions_c++17.cc: Validate char_traits<char8_t> C++17
3353 constexpr member functions.
3354 * testsuite/21_strings/headers/string/types_std_c++0x.cc: Validate
3355 that the u8string typedef is defined.
3356 * testsuite/22_locale/locale/cons/unicode.cc: Validate the presence
3357 of the std::codecvt<char16_t, char8_t, std::mbstate_t> and
3358 std::codecvt<char32_t, char8_t, std::mbstate_t> facets.
3359 * testsuite/29_atomics/atomic/cons/assign_neg.cc: Update line
3361 * testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise.
3362 * testsuite/29_atomics/atomic_integral/cons/assign_neg.cc:
3364 * testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Likewise.
3365 * testsuite/29_atomics/atomic_integral/is_always_lock_free.cc:
3366 Validate std::atomic<char8_t>::is_always_lock_free
3367 * testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc:
3368 Update line numbers.
3369 * testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc:
3371 * testsuite/29_atomics/atomic_integral/operators/increment_neg.cc:
3373 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_string.cc:
3374 Validate std::experimental::pmr::u8string.
3375 * testsuite/experimental/string_view/typedefs.cc: Validate that the
3376 u8string_view typedef is defined.
3377 * testsuite/util/testsuite_common_types.h: Add char8_t, char16_t and
3378 char32_t to the typelists.
3380 2019-02-22 Tom Honermann <tom@honermann.net>
3382 * include/ext/typelist.h: Constrain a partial specialization of
3383 typelist::detail::append_ to only match chain<T1,T2>.
3385 2019-02-21 Jonathan Wakely <jwakely@redhat.com>
3388 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Replace
3389 class template with class. Replace move and copy member types with
3390 member alias templates, so they are only instantiated when needed.
3391 (__is_copy_insertable, __is_move_insertable): Adjust base class.
3392 * testsuite/23_containers/vector/modifiers/push_back/89130.cc: Enable
3393 test for C++11/14/17 as well.
3394 * testsuite/23_containers/vector/modifiers/push_back/89416.cc: New
3397 2019-02-20 Jakub Jelinek <jakub@redhat.com>
3400 * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Add
3401 _GLIBCXX_PURE to the alias declaration.
3403 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
3405 * testsuite/21_strings/basic_string/literals/types.cc
3406 [_GLIBCXX_USE_CHAR8_T]: Adjust expected string type for u8 literal.
3407 * testsuite/21_strings/basic_string/literals/values.cc
3408 [_GLIBCXX_USE_CHAR8_T]: Likewise.
3409 * testsuite/22_locale/codecvt/char16_t.cc: Adjust for u8 literals
3410 potentially having different type.
3411 * testsuite/22_locale/codecvt/char32_t.cc: Likewise.
3412 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: Cast u8 literal
3414 * testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc: Likewise.
3415 * testsuite/22_locale/codecvt/utf8.cc: Likewise.
3416 * testsuite/22_locale/conversions/string/2.cc: Remove u8 prefix from
3417 string literals only using basic character set.
3418 * testsuite/22_locale/conversions/string/3.cc: Likewise. Cast other
3419 u8 literals to char.
3420 * testsuite/29_atomics/headers/atomic/macros.cc [_GLIBCXX_USE_CHAR8_T]:
3421 Test ATOMIC_CHAR8_T_LOCK_FREE.
3422 Add missing #error to ATOMIC_CHAR16_T_LOCK_FREE test.
3423 * testsuite/29_atomics/headers/atomic/types_std_c++0x.cc
3424 [_GLIBCXX_USE_CHAR8_T]: Check for std::atomic_char8_t.
3425 * testsuite/experimental/string_view/literals/types.cc
3426 [_GLIBCXX_USE_CHAR8_T]: Adjust expected string_view type for u8
3428 * testsuite/experimental/string_view/literals/values.cc
3429 [_GLIBCXX_USE_CHAR8_T]: Likewise.
3431 2019-02-19 Tom Honermann <tom@honermann.net>
3433 * testsuite/18_support/numeric_limits/char8_t.cc: New test cloned
3434 from char16_32_t.cc; validates numeric_limits<char8_t>.
3435 * testsuite/21_strings/basic_string/literals/types-char8_t.cc: New
3436 test cloned from types.cc; validates operator""s for char8_t
3438 * testsuite/21_strings/basic_string/literals/values-char8_t.cc: New
3439 test cloned from values.cc; validates construction and comparison
3441 * testsuite/21_strings/basic_string/requirements/
3442 /explicit_instantiation/char8_t/1.cc: New test cloned from
3443 char16_t/1.cc; validates explicit instantiation of
3444 basic_string<char8_t>.
3445 * testsuite/21_strings/basic_string_view/literals/types-char8_t.cc:
3446 New test cloned from types.cc; validates operator""sv for char8_t
3447 returns u8string_view.
3448 * testsuite/21_strings/basic_string_view/literals/
3449 values-char8_t.cc: New test cloned from values.cc; validates
3450 construction and comparison of u8string_view values.
3451 * testsuite/21_strings/basic_string_view/requirements/
3452 explicit_instantiation/char8_t/1.cc: New test cloned from
3453 char16_t/1.cc; validates explicit instantiation of
3454 basic_string_view<char8_t>.
3455 * testsuite/21_strings/char_traits/requirements/char8_t/65049.cc:
3456 New test cloned from char16_t/65049.cc; validates that
3457 char_traits<char8_t> is not vulnerable to the concerns in PR65049.
3458 * testsuite/21_strings/char_traits/requirements/char8_t/
3459 typedefs.cc: New test cloned from char16_t/typedefs.cc; validates
3460 that char_traits<char8_t> member typedefs are present and correct.
3461 * testsuite/21_strings/char_traits/requirements/
3462 explicit_instantiation/char8_t/1.cc: New test cloned from
3463 char16_t/1.cc; validates explicit instantiation of
3464 char_traits<char8_t>.
3465 * testsuite/22_locale/codecvt/char16_t-char8_t.cc: New test cloned
3466 from char16_t.cc: validates
3467 codecvt<char16_t, char8_t, mbstate_t>.
3468 * testsuite/22_locale/codecvt/char32_t-char8_t.cc: New test cloned
3469 from char32_t.cc: validates
3470 codecvt<char32_t, char8_t, mbstate_t>.
3471 * testsuite/22_locale/codecvt/utf8-char8_t.cc: New test cloned from
3472 utf8.cc; validates codecvt<char16_t, char8_t, std::mbstate_t> and
3473 codecvt<char32_t, char8_t, std::mbstate_t>.
3474 * testsuite/27_io/filesystem/path/native/string-char8_t.cc: New
3475 test cloned from string.cc; validates filesystem::path construction
3477 * testsuite/experimental/feat-char8_t.cc: New test; validates that
3478 the __cpp_lib_char8_t feature test macro is defined with the
3480 * testsuite/experimental/filesystem/path/native/string-char8_t.cc:
3481 New test cloned from string.cc; validates filesystem::path
3482 construction from char8_t input.
3483 * testsuite/experimental/string_view/literals/types-char8_t.cc: New
3484 test cloned from types.cc; validates operator""sv for char8_t
3485 returns u8string_view.
3486 * testsuite/experimental/string_view/literals/values-char8_t.cc:
3487 New test cloned from values.cc; validates construction and
3488 comparison of u8string_view values.
3489 * testsuite/experimental/string_view/requirements/
3490 explicit_instantiation/char8_t/1.cc: New test cloned from
3491 char16_t/1.cc; validates explicit instantiation of
3492 basic_string_view<char8_t>.
3493 * testsuite/ext/char8_t/atomic-1.cc: New test; validates that
3494 ATOMIC_CHAR8_T_LOCK_FREE is not defined if char8_t support is not
3497 2019-02-19 Tom Honermann <tom@honermann.net>
3499 P0482R5 char8_t: Standard library support
3500 * config/abi/pre/gnu-versioned-namespace.ver (CXXABI_2.0): Add
3501 typeinfo symbols for char8_t.
3502 * config/abi/pre/gnu.ver: Add CXXABI_1.3.12.
3503 (GLIBCXX_3.4.26): Add symbols for specializations of
3504 numeric_limits and codecvt that involve char8_t.
3505 (CXXABI_1.3.12): Add typeinfo symbols for char8_t.
3506 * include/bits/atomic_base.h: Add atomic_char8_t.
3507 * include/bits/basic_string.h: Add std::hash<u8string> and
3508 operator""s(const char8_t*, size_t).
3509 * include/bits/c++config: Define _GLIBCXX_USE_CHAR8_T and
3511 * include/bits/char_traits.h: Add char_traits<char8_t>.
3512 * include/bits/codecvt.h: Add
3513 codecvt<char16_t, char8_t, mbstate_t>,
3514 codecvt<char32_t, char8_t, mbstate_t>,
3515 codecvt_byname<char16_t, char8_t, mbstate_t>, and
3516 codecvt_byname<char32_t, char8_t, mbstate_t>.
3517 * include/bits/cpp_type_traits.h: Add __is_integer<char8_t> to
3518 recognize char8_t as an integral type.
3519 * include/bits/fs_path.h: (path::__is_encoded_char): Recognize
3521 (path::u8string): Return std::u8string when char8_t support is
3523 (path::generic_u8string): Likewise.
3524 (path::_S_convert): Handle conversion from char8_t input.
3525 (path::_S_str_convert): Likewise.
3526 * include/bits/functional_hash.h: Add hash<char8_t>.
3527 * include/bits/locale_conv.h (__str_codecvt_out): Add overloads for
3529 * include/bits/locale_facets.h (_GLIBCXX_NUM_UNICODE_FACETS): Bump
3530 for new char8_t specializations.
3531 * include/bits/localefwd.h: Add missing declarations of
3532 codecvt<char16_t, char, mbstate_t> and
3533 codecvt<char32_t, char, mbstate_t>. Add char8_t declarations
3534 codecvt<char16_t, char8_t, mbstate_t> and
3535 codecvt<char32_t, char8_t, mbstate_t>.
3536 * include/bits/postypes.h: Add u8streampos
3537 * include/bits/stringfwd.h: Add declarations of
3538 char_traits<char8_t> and u8string.
3539 * include/c_global/cstddef: Add __byte_operand<char8_t>.
3540 * include/experimental/bits/fs_path.h (path::__is_encoded_char):
3542 (path::u8string): Return std::u8string when char8_t support is
3544 (path::generic_u8string): Likewise.
3545 (path::_S_convert): Handle conversion from char8_t input.
3546 (path::_S_str_convert): Likewise.
3547 * include/experimental/string: Add u8string.
3548 * include/experimental/string_view: Add u8string_view,
3549 hash<experimental::u8string_view>, and
3550 operator""sv(const char8_t*, size_t).
3551 * include/std/atomic: Add atomic<char8_t> and atomic_char8_t.
3552 * include/std/charconv (__is_int_to_chars_type): Recognize char8_t
3553 as a character type.
3554 * include/std/limits: Add numeric_limits<char8_t>.
3555 * include/std/string_view: Add u8string_view,
3556 hash<experimental::u8string_view>, and
3557 operator""sv(const char8_t*, size_t).
3558 * include/std/type_traits: Add __is_integral_helper<char8_t>,
3559 __make_unsigned<char8_t>, and __make_signed<char8_t>.
3560 * libsupc++/atomic_lockfree_defines.h: Define
3561 ATOMIC_CHAR8_T_LOCK_FREE.
3562 * src/c++11/Makefile.am: Compile with -fchar8_t when compiling
3563 codecvt.cc and limits.cc so that char8_t specializations of
3564 numeric_limits and codecvt and emitted.
3565 * src/c++11/Makefile.in: Likewise.
3566 * src/c++11/codecvt.cc: Define members of
3567 codecvt<char16_t, char8_t, mbstate_t>,
3568 codecvt<char32_t, char8_t, mbstate_t>,
3569 codecvt_byname<char16_t, char8_t, mbstate_t>, and
3570 codecvt_byname<char32_t, char8_t, mbstate_t>.
3571 * src/c++11/limits.cc: Define members of
3572 numeric_limits<char8_t>.
3573 * src/c++98/Makefile.am: Compile with -fchar8_t when compiling
3574 locale_init.cc and localename.cc.
3575 * src/c++98/Makefile.in: Likewise.
3576 * src/c++98/locale_init.cc: Add initialization for the
3577 codecvt<char16_t, char8_t, mbstate_t> and
3578 codecvt<char32_t, char8_t, mbstate_t> facets.
3579 * src/c++98/localename.cc: Likewise.
3580 * testsuite/util/testsuite_abi.cc: Validate ABI bump.
3582 2019-02-18 Wilco Dijkstra <wdijkstr@arm.com>
3584 * 27_io/filesystem/operations/all.cc: Add dg-require-filesystem-ts.
3585 * 27_io/filesystem/operations/resize_file.cc: Likewise.
3586 * 27_io/filesystem/path/generation/normal2.cc: Likewise.
3588 2019-02-14 Jonathan Wakely <jwakely@redhat.com>
3590 * doc/xml/manual/status_cxx2020.xml: Update P0887R1 status.
3591 * doc/html/*: Regenerate.
3593 * doc/xml/manual/status_cxx2017.xml: Add P0063R3 to status table.
3594 * doc/html/*: Regenerate.
3596 * doc/xml/manual/intro.xml: Document LWG 2586 status.
3597 * include/bits/uses_allocator.h (__uses_alloc): Use const lvalue
3598 allocator type in is_constructible checks.
3599 * testsuite/20_util/scoped_allocator/69293_neg.cc: Adjust dg-error.
3600 * testsuite/20_util/scoped_allocator/dr2586.cc: New test.
3601 * testsuite/20_util/tuple/cons/allocators.cc: Add test using
3602 problematic type from LWG 2586 discussion.
3603 * testsuite/20_util/uses_allocator/69293_neg.cc: Adjust dg-error.
3604 * testsuite/20_util/uses_allocator/cons_neg.cc: Likewise.
3606 * configure.ac: Check for C11 timespec_get function.
3607 * crossconfig.m4 (freebsd, linux, gnu, cygwin, solaris, netbsd)
3609 * config.h.in: Regenerate.
3610 * configure: Regenerate.
3611 * include/c_global/ctime (timespec, timespec_get): Add to namespace
3612 std for C++17 and up.
3614 * doc/xml/manual/intro.xml: Document LWG 2537 status.
3615 * include/bits/stl_queue.h
3616 (priority_queue(const Compare&, const Container&, const Alloc&))
3617 (priority_queue(const Compare&, Container&&, const Alloc&)): Call
3619 * testsuite/23_containers/priority_queue/dr2537.cc: New test.
3621 * doc/xml/manual/intro.xml: Document LWG 2566 status.
3622 * include/bits/stl_queue.h (queue, priority_queue): Add static
3623 assertions to enforce LWG 2566 requirement on value_type.
3624 * include/bits/stl_stack.h (stack): Likewise.
3627 * testsuite/20_util/enable_shared_from_this/89303.cc: New test.
3629 * doc/xml/manual/intro.xml: Document LWG 2735 status.
3630 * include/bits/std_abs.h: Add comment about LWG 2735.
3631 * testsuite/26_numerics/headers/cstdlib/dr2735.cc: New test.
3633 2019-02-13 Jonathan Wakely <jwakely@redhat.com>
3636 * include/std/version [__cpp_impl_destroying_delete]
3637 (__cpp_lib_destroying_delete): Only define for C++2a and later.
3638 * libsupc++/new [__cpp_impl_destroying_delete]
3639 (__cpp_lib_destroying_delete): Likewise.
3640 (destroying_delete_t, destroying_delete): Likewise, but define even
3641 when __cpp_impl_destroying_delete is not defined.
3642 * testsuite/18_support/destroying_delete.cc: New test.
3644 2019-02-11 Jonathan Wakely <jwakely@redhat.com>
3647 * testsuite/17_intro/headers/c++2011/parallel_mode.cc: New test.
3648 * testsuite/17_intro/headers/c++2014/parallel_mode.cc: New test.
3649 * testsuite/17_intro/headers/c++2017/parallel_mode.cc: New test.
3650 * testsuite/28_regex/headers/regex/parallel_mode.cc: Remove.
3652 2019-02-09 Jonathan Wakely <jwakely@redhat.com>
3655 * include/bits/fs_path.h (path::has_root_name)
3656 (path::has_root_directory, path::has_root_path)
3657 (path::has_relative_path, path::has_parent_path)
3658 (path::has_filename, path::has_stem, path::has_extension)
3659 (path::is_absolute, path::is_relative, path::_M_find_extension): Add
3661 * src/c++17/fs_path.cc (path::has_root_name)
3662 (path::has_root_directory, path::has_root_path)
3663 (path::has_relative_path, path::has_parent_path)
3664 (path::has_filename, path::_M_find_extension): Add noexcept.
3666 2019-02-06 Jonathan Wakely <jwakely@redhat.com>
3668 PR libstdc++/89102 (partial)
3669 * include/std/type_traits (common_type<>): Define.
3670 (common_type<T>): Derive from common_type<T, T>.
3671 * testsuite/20_util/common_type/requirements/explicit_instantiation.cc:
3672 Test zero-length template argument list.
3673 * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc:
3674 Test additional single argument cases.
3675 * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc:
3676 Adjust expected error.
3678 2019-02-05 Jonathan Wakely <jwakely@redhat.com>
3681 * include/bits/stl_queue.h (queue, priority_queue): Add deduction
3683 * include/bits/stl_stack.h (stack): Likewise.
3684 * testsuite/23_containers/priority_queue/deduction.cc: New test.
3685 * testsuite/23_containers/queue/deduction.cc: New test.
3686 * testsuite/23_containers/stack/deduction.cc: New test.
3689 * include/std/type_traits (__is_convertible_helper)
3690 (__is_convertible_helper<_From, _To, false>): Revert changes to
3691 support is_nothrow_convertible.
3692 (__is_nt_convertible_helper): New helper.
3693 (is_nothrow_convertible): Use __is_nt_convertible_helper.
3695 * testsuite/23_containers/vector/modifiers/push_back/49836.cc: Restore
3696 use of CopyConsOnlyType, but also test DelAnyAssign for completeness.
3699 * include/bits/alloc_traits.h (__is_copy_insertable_impl): Rename to
3700 __is_alloc_insertable_impl. Replace single type member with two
3701 members, one for each of copy and move insertable.
3702 (__is_move_insertable): New trait for internal use.
3703 * include/bits/stl_vector.h (vector::_S_nothrow_relocate(true_type))
3704 (vector::_S_nothrow_relocate(true_type)): New functions to
3705 conditionally check if __relocate_a can throw.
3706 (vector::_S_use_relocate()): Dispatch to _S_nothrow_relocate based
3707 on __is_move_insertable.
3708 (vector::_S_do_relocate): New overloaded functions to conditionally
3710 (vector::_S_relocate): New function that dispatches to _S_do_relocate
3711 based on _S_use_relocate.
3712 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
3713 (vector::_M_default_append): Call _S_relocate instead of __relocate_a.
3714 * testsuite/23_containers/vector/modifiers/push_back/89130.cc: New.
3717 * include/bits/stl_uninitialized.h (__relocate_a_1): Make unused
3718 parameter unnamed. Add message to static assertion.
3719 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
3720 (vector::_M_default_append): Use _GLIBCXX17_CONSTEXPR for if constexpr
3723 2019-02-05 Marc Glisse <marc.glisse@inria.fr>
3726 * include/bits/stl_uninitialized.h (__is_trivially_relocatable):
3728 (__is_bitwise_relocatable): ... to this.
3729 (__relocate_a_1): Adapt.
3730 * include/bits/stl_deque.h (__is_trivially_relocatable): Rename...
3731 (__is_bitwise_relocatable): ... to this.
3733 2019-01-30 Jonathan Wakely <jwakely@redhat.com>
3736 * src/c++17/fs_path.cc (path::replace_extension): Erase extension from
3737 final component as well as from _M_pathname. Append the dot using
3738 operator+= instead of only to _M_pathname.
3739 (path::_M_find_extension): Reformat slightly.
3740 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
3741 Add more test cases.
3743 2019-01-30 Ulrich Drepper <drepper@redhat.com>
3745 * doc/xml/manual/status_cxx2020.xml: Update P0600 entry.
3747 2019-01-29 Jonathan Wakely <jwakely@redhat.com>
3749 * testsuite/26_numerics/headers/complex/synopsis.cc: Remove incorrect
3750 constexpr specifiers from arg and proj.
3752 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add missing exports for
3753 __shared_ptr instantiations used by gcc4-compatible ABI.
3755 * include/experimental/forward_list (experimental::erase): Qualify
3757 * include/experimental/list (experimental::erase): Likewise.
3758 * include/std/forward_list (std::erase): Likewise.
3759 * include/std/list (std::erase): Likewise.
3761 * testsuite/20_util/reference_wrapper/result_type.cc: Disable for
3763 * testsuite/20_util/reference_wrapper/typedefs-2.cc: Likewise.
3764 * testsuite/20_util/reference_wrapper/typedefs-3.cc: Likewise.
3765 * testsuite/20_util/reference_wrapper/typedefs.cc: Likewise.
3766 * testsuite/30_threads/async/54297.cc: Suppress nodiscard warning.
3767 * testsuite/ext/array_allocator/26875.cc: Likewise.
3768 * testsuite/ext/pool_allocator/allocate_chunk.cc: Likewise.
3769 * testsuite/util/replacement_memory_operators.h: Likewise.
3770 * testsuite/util/testsuite_allocator.h: Likewise.
3772 * include/std/memory_resource (__pool_resource::_M_unpooled): Use
3773 normal mode vector, even for debug mode.
3774 * include/std/vector [_GLIBCXX_DEBUG] (_GLIBCXX_STD_C::pmr::vector):
3775 Define alias template for normal mode vector.
3777 2019-01-28 Jonathan Wakely <jwakely@redhat.com>
3780 * config/locale/generic/c_locale.h (__convert_from_v)
3781 [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
3782 * config/os/hpux/os_defines.h: Define _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
3783 * include/bits/locale_facets.tcc (num_put::_M_insert_float)
3784 [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
3786 2019-01-24 Jonathan Wakely <jwakely@redhat.com>
3789 * include/bits/stl_vector.h (vector::__use_relocate): Replace static
3790 data member with static member function _S_use_relocate().
3791 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
3792 (vector::_M_default_append): Use _S_use_relocate() instead of
3795 * testsuite/27_io/filesystem/path/compare/strings.cc: Only compare
3798 2019-01-22 Jonathan Wakely <jwakely@redhat.com>
3801 * testsuite/util/testsuite_hooks.h [stderr] (VERIFY): Use fprintf to
3802 write to stderr instead of using printf.
3804 2019-01-21 Jakub Jelinek <jakub@redhat.com>
3807 * include/bits/char_traits.h (__constant_string_p,
3808 __constant_char_array_p): Use __builtin_is_constant_evaluated if
3811 2019-01-20 Ulrich Drepper <drepper@redhat.com>
3813 Implement C++20 P0600r1.
3814 * include/backward/hash_map: Add nodiscard attribute to empty.
3815 * include/backward/hash_set: Likewise.
3816 * backward/hashtable.h: Likewise.
3817 * include/bits/basic_string.h: Likewise.
3818 * include/bits/forward_list.h: Likewise.
3819 * include/bits/hashtable.h: Likewise.
3820 * include/bits/regex.h: Likewise.
3821 * include/bits/stl_deque.h: Likewise.
3822 * include/bits/stl_list.h: Likewise.
3823 * include/bits/stl_map.h: Likewise.
3824 * include/bits/stl_multimap.h: Likewise.
3825 * include/bits/stl_multiset.h: Likewise.
3826 * include/bits/stl_queue.h: Likewise.
3827 * include/bits/stl_set.h: Likewise.
3828 * include/bits/stl_stack.h: Likewise.
3829 * include/bits/stl_tree.h: Likewise.
3830 * include/bits/stl_vector.h: Likewise.
3831 * include/bits/unordered_map.h: Likewise.
3832 * include/bits/unordered_set.h: Likewise.
3833 * include/debug/array: Likewise.
3834 * include/experimental/any: Likewise.
3835 * include/experimental/bits/fs_path.h: Likewise.
3836 * include/experimental/internet: Likewise.
3837 * include/experimental/string_view: Likewise.
3838 * include/ext/pb_ds/detail/bin_search_tree_/info_fn_imps.hpp:
3840 * include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp:
3842 * include/ext/pb_ds/detail/binary_heap_/info_fn_imps.hpp:
3844 * include/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp:
3846 * include/ext/pb_ds/detail/cc_hash_table_map_/info_fn_imps.hpp:
3848 * include/ext/pb_ds/detail/cc_hash_table_map_/size_fn_imps.hpp:
3850 * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp:
3852 * include/ext/pb_ds/detail/gp_hash_table_map_/info_fn_imps.hpp:
3854 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
3855 info_fn_imps.hpp: Likewise.
3856 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
3857 left_child_next_sibling_heap_.hpp: Likewise.
3858 * include/ext/pb_ds/detail/list_update_map_/info_fn_imps.hpp:
3860 * include/ext/pb_ds/detail/list_update_map_/lu_map_.hpp:
3862 * include/ext/pb_ds/detail/ov_tree_map_/info_fn_imps.hpp:
3864 * include/ext/pb_ds/detail/ov_tree_map_/ov_tree_map_.hp:
3866 * include/ext/pb_ds/detail/pat_trie_/info_fn_imps.hpp:
3868 * include/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp:
3870 * include/ext/pb_ds/detail/rc_binomial_heap_/rc.hpp:
3872 * include/ext/pb_ds/detail/tree_trace_base.hpp: Likewise.
3873 * include/ext/pb_ds/trie_policy.hpp: Likewise.
3874 * include/ext/rope: Likewise.
3875 * include/ext/slist: Likewise.
3876 * include/ext/vstring.h: Likewise.
3877 * include/profile/array: Likewise.
3878 * include/std/array: Likewise.
3879 * include/tr1/array: Likewise.
3880 * include/tr1/hashtable.h: Likewise.
3881 * include/tr1/regex: Likewise.
3882 * include/tr2/dynamic_bitset: Likewise.
3883 * include/bits/alloc_traits.h: Add nodiscard attribute to
3885 * include/experimental/memory_resource: Likewise.
3886 * include/ext/alloc_traits.h: Likewise.
3887 * include/ext/array_allocator.h: Likewise.
3888 * include/ext/bitmap_allocator.h: Likewise.
3889 * include/ext/debug_allocator.h: Likewise.
3890 * include/ext/extptr_allocator.h: Likewise.
3891 * include/ext/mt_allocator.h: Likewise.
3892 * include/ext/new_allocator.h: Likewise.
3893 * include/ext/pool_allocator.h: Likewise.
3894 * include/ext/throw_allocator.h: Likewise.
3895 * include/std/scoped_allocator: Likewise.
3896 * libsupc++/eh_alloc.cc: Likewise.
3897 * include/std/future: Add nodiscard attribute to async.
3898 * libsupc++/new: Add nodiscard attribute to new.
3900 2019-01-18 Jonathan Wakely <jwakely@redhat.com>
3905 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export new symbol.
3906 * include/bits/shared_ptr.h
3907 (shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...))
3908 (allocate_shared): Change to use new tag type.
3909 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_eq):
3910 Declare new member function.
3911 (_Sp_alloc_shared_tag): Define new type.
3912 (_Sp_counted_ptr_inplace): Declare __shared_count<_Lp> as a friend.
3913 (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Use
3914 _Sp_make_shared_tag::_S_eq to check type_info.
3915 (__shared_count(Ptr, Deleter),__shared_count(Ptr, Deleter, Alloc)):
3916 Constrain to prevent being called with _Sp_alloc_shared_tag.
3917 (__shared_count(_Sp_make_shared_tag, const _Alloc&, Args&&...)):
3918 Replace constructor with ...
3919 (__shared_count(Tp*&, _Sp_alloc_shared_tag<_Alloc>, Args&&...)): Use
3920 reference parameter so address of the new object can be returned to
3921 the caller. Obtain the allocator from the tag type.
3922 (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Replace
3923 constructor with ...
3924 (__shared_ptr(_Sp_alloc_shared_tag<Alloc>, Args&&...)): Pass _M_ptr
3925 to the __shared_count constructor.
3926 (__allocate_shared): Change to use new tag type.
3927 * src/c++11/shared_ptr.cc (_Sp_make_shared_tag::_S_eq): Define.
3929 2019-01-17 Jonathan Wakely <jwakely@redhat.com>
3931 * src/c++17/fs_ops.cc
3932 (equivalent(const path&, const path&, error_code&))
3933 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use GetFileInformationByHandle to
3934 compare files instead of relying on incomplete info returned by stat.
3937 * src/c++17/fs_ops.cc (absolute(const path&, error_code&)): Do nothing
3938 if the path is already absolute.
3939 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize root-directory.
3940 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Pass error_code to current_path.
3943 * src/c++17/fs_ops.cc (canonical(const path&, error_code&))
3944 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize path, to match behaviour
3945 of filesystem::exists.
3946 (create_directories(const path&, error_code&)): Add assertions.
3947 (status(const path&, error_code&)) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]:
3948 Add workaround for bug in _wstat for paths with trailing slash.
3949 * testsuite/27_io/filesystem/operations/create_directories.cc: Adjust
3950 for expected behaviour on mingw.
3951 * testsuite/experimental/filesystem/operations/create_directories.cc:
3953 * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Use
3954 "TMP" instead of "TMPDIR" and clean environment before each test. Do
3955 not test permissions on mingw targets.
3957 2019-01-16 Jonathan Wakely <jwakely@redhat.com>
3959 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add exports for fstream
3960 constructors and open members taking wide strings. Fix patterns for
3961 filesystem::path members to match wstring_view parameters. Add
3962 exports for shared_ptr members used by directory iterators.
3963 * src/c++17/fs_ops.cc (remove(const path&, error_code&)): Clear the
3964 error code parameter if the file doesn't exist.
3965 * src/filesystem/ops.cc (remove(const path&, error_code&)):
3967 * testsuite/27_io/filesystem/operations/canonical.cc: Fix expected
3968 values for mingw targets, where "/" is not an absolute path. Do not
3969 test symlinks on mingw targets.
3970 * testsuite/experimental/filesystem/operations/canonical.cc: Likewise.
3971 * testsuite/27_io/filesystem/operations/copy.cc: Do not test symlinks
3973 * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
3974 * testsuite/27_io/filesystem/operations/create_directories.cc: Check
3975 that each component of the path is created.
3976 * testsuite/experimental/filesystem/operations/create_directories.cc:
3978 * testsuite/27_io/filesystem/operations/exists.cc: Do not test
3979 permissions on mingw targets.
3980 * testsuite/experimental/filesystem/operations/exists.cc: Likewise.
3981 * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
3982 * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise.
3983 * testsuite/27_io/filesystem/operations/permissions.cc: XFAIL for
3985 * testsuite/experimental/filesystem/operations/permissions.cc:
3987 * testsuite/27_io/filesystem/operations/remove.cc: Do not test
3988 symlinks or permissions on mingw targets.
3989 * testsuite/experimental/filesystem/operations/remove.cc: Likewise.
3990 * testsuite/27_io/filesystem/operations/remove_all.cc: Do not test
3991 symlinks on mingw targets.
3992 * testsuite/experimental/filesystem/operations/remove_all.cc:
3994 * testsuite/27_io/filesystem/operations/status.cc: Do not test
3995 permissions on mingw targets.
3996 * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Do not
3997 test symlinks on mingw targets.
3998 * testsuite/experimental/filesystem/operations/space.cc: Fix test
4001 2019-02-14 Ulrich Drepper <drepper@redhat.com>
4004 Warn about unused comparisons of shared_ptr/unique_ptr
4005 * include/bits/c++config [_GLIBCXX_NODISCARD]: Define.
4006 * include/bits/shared_ptr.h: Use it for operator ==, !=,
4007 <, <=, >, >= for shared_ptr.
4008 * include/bits/unique_ptr.h: Likewise for unique_ptr.
4010 2019-01-15 Jonathan Wakely <jwakely@redhat.com>
4012 * include/bits/shared_ptr_base.h (__cpp_lib_shared_ptr_arrays): Define
4013 as 201611L, because P0497R0 changes are supported.
4014 * include/std/version (__cpp_lib_shared_ptr_arrays): Likewise.
4016 * include/bits/erase_if.h [__cplusplus > 201703L]
4017 (__cpp_lib_erase_if): Only define for C++2a.
4018 * include/std/iterator [__cplusplus >= 201402L && !_GLIBCXX_DEBUG]
4019 (__cpp_lib_null_iterators): Define.
4020 * include/std/version [__cplusplus >= 201402L && !_GLIBCXX_DEBUG]
4021 (__cpp_lib_null_iterators): Define.
4022 [__cpp_impl_destroying_delete] (__cpp_lib_destroying_delete): Define.
4024 * doc/xml/manual/status_cxx2017.xml: Document P0032R3 and P0307R2
4026 * include/bits/stl_uninitialized.h (__cpp_lib_raw_memory_algorithms):
4028 * include/std/any (__cpp_lib_any): Define as 201606L, because P0032R3
4029 changes are supported.
4030 * include/std/optional (__cpp_lib_optional): Likewise.
4031 * include/std/variant (__cpp_lib_variant): Likewise.
4032 * include/std/version [!__STRICT_ANSI__]
4033 (__cpp_lib_uncaught_exceptions): Define as long integer.
4034 [__cplusplus >= 201703L] (__cpp_lib_any)
4035 (__cpp_lib_raw_memory_algorithms, __cpp_lib_uncaught_exceptions)
4036 (__cpp_lib_variant): Define for C++17.
4037 [__cplusplus >= 201703L] (__cpp_lib_optional): Update value and define
4039 * libsupc++/exception (__cpp_lib_uncaught_exceptions): Define as long
4042 * doc/xml/manual/status_cxx2020.xml: Update P1123R0 status.
4044 2019-01-12 Jonathan Wakely <jwakely@redhat.com>
4048 * src/filesystem/path.cc: Fix typo. If first path is empty, show []
4050 * testsuite/experimental/filesystem/filesystem_error/cons.cc: New
4053 2019-01-11 Jonathan Wakely <jwakely@redhat.com>
4055 * doc/xml/manual/intro.xml: Include new section.
4056 * doc/xml/manual/status_cxx2017.xml: Document more
4057 implementation-defined properties of the library.
4058 * doc/xml/manual/status_cxx2020.xml: Document C++2a status.
4059 * doc/html/*: Regenerate.
4061 * include/bits/refwrap.h [__cplusplus > 201703L]
4062 (_Refwrap_base_arg1, _Refwrap_base_arg2, _Reference_wrapper_base)
4063 (_Reference_wrapper_base_memfun): Do not define for C++2a.
4064 (reference_wrapper): Do not derive from _Reference_wrapper_base_memfun
4066 (reference_wrapper::operator()): Add static assertion.
4067 * testsuite/20_util/reference_wrapper/incomplete.cc: New test.
4069 * include/std/chrono (duration_values::zero(), duration_values::min())
4070 (duration_values::max()): Add noexcept.
4071 (duration::zero(), duration::min(), duration::max()): Likewise.
4072 (time_point::zero(), time_point::min(), time_point::max()): Likewise.
4073 * testsuite/20_util/duration/requirements/noexcept.cc: New test.
4074 * testsuite/20_util/time_point/requirements/noexcept.cc: New test.
4076 * include/std/version (__cpp_lib_erase_if): Move to C++20 group.
4078 2019-01-11 Jakub Jelinek <jakub@redhat.com>
4080 * include/std/type_traits (__cpp_lib_is_constant_evaluated): Define.
4081 * include/std/version (__cpp_lib_is_constant_evaluated): Define.
4083 2019-01-11 Jonathan Wakely <jwakely@redhat.com>
4086 * include/bits/functional_hash.h (hash<nullptr_t>): Define
4087 specialization for C++17 (P0513R0, LWG 2817).
4088 * testsuite/20_util/hash/nullptr.cc: New test.
4091 * config/abi/pre/gnu.ver (GLIBCXX_3.4.6): Remove unused duplicate
4092 pattern for std::basic_stringbuf::str().
4094 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Correct recent changes to
4095 basic_ostream::operator<< patterns.
4097 2019-01-10 Jonathan Wakely <jwakely@redhat.com>
4099 * testsuite/27_io/filesystem/operations/last_write_time.cc: Fix
4100 test failures on targets with 32-bit time_t.
4102 * include/bits/erase_if.h: Define __cpp_lib_erase_if.
4103 * include/std/deque: Likewise.
4104 * include/std/forward_list: Likewise.
4105 * include/std/list: Likewise.
4106 * include/std/string: Likewise.
4107 * include/std/vector: Likewise.
4108 * include/std/version: Likewise.
4109 * testsuite/21_strings/basic_string/erasure.cc: Test macro.
4110 * testsuite/23_containers/deque/erasure.cc: Likewise.
4111 * testsuite/23_containers/forward_list/erasure.cc: Likewise.
4112 * testsuite/23_containers/list/erasure.cc: Likewise.
4113 * testsuite/23_containers/map/erasure.cc: Likewise.
4114 * testsuite/23_containers/set/erasure.cc: Likewise.
4115 * testsuite/23_containers/unordered_map/erasure.cc: Likewise.
4116 * testsuite/23_containers/unordered_set/erasure.cc: Likewise.
4117 * testsuite/23_containers/vector/erasure.cc: Likewise.
4119 * include/experimental/internet [AI_NUMERICSERV]
4120 (resolver_base::numeric_service): Define conditionally.
4121 * testsuite/experimental/net/internet/resolver/base.cc: Test it
4123 * testsuite/experimental/net/internet/resolver/ops/lookup.cc:
4126 2019-01-10 Ville Voutilainen <ville.voutilainen@gmail.com>
4127 Jonathan Wakely <jwakely@redhat.com>
4130 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten patterns.
4131 (GLIBCXX_3.4.26): Add new exports.
4132 * include/Makefile.am: Add ostream-inst.cc. Move string-inst.cc to
4133 correct list of sources.
4134 * include/Makefile.in: Regenerate.
4135 * include/std/ostream (operator<<(nullptr_t)): New member function.
4136 * src/c++17/ostream-inst.cc: New file.
4137 * testsuite/27_io/basic_ostream/inserters_other/char/lwg2221.cc: New
4140 2019-01-10 Jonathan Wakely <jwakely@redhat.com>
4142 * testsuite/util/testsuite_fs.h (nonexistent_path): Include name
4143 of the source file containing the caller.
4144 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Remove
4145 directories created by test.
4146 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
4148 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
4150 * testsuite/experimental/filesystem/iterators/
4151 recursive_directory_iterator.cc: Likewise.
4153 2019-01-10 Jakub Jelinek <jakub@redhat.com>
4155 PR tree-optimization/88775
4156 * include/bits/stl_function.h (greater<_Tp*>::operator(),
4157 less<_Tp*>::operator(), greater_equal<_Tp*>::operator(),
4158 less_equal<_Tp*>::operator()): Use __builtin_is_constant_evaluated
4159 instead of __builtin_constant_p if available. Don't bother with
4160 the pointer comparison in C++11 and earlier.
4162 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
4166 * include/ext/bitmap_allocator.h: Mechanically replace "can not"
4169 2019-01-09 Jonathan Wakely <jwakely@redhat.com>
4171 * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix expected output
4172 for filesystem::path. Give variables more distinctive names.
4174 * include/std/optional (_Optional_payload_base::_M_copy_assign): New
4175 member function to perform non-trivial assignment.
4176 (_Optional_payload_base::_M_move_assign): Likewise.
4177 (_Optional_payload<T, true, false, true>::operator=)
4178 (_Optional_payload<T, true, true, false>::operator=)
4179 (_Optional_payload<T, true, false, false>::operator=): Call
4180 _M_copy_assign and/or _M_move_assign to do non-trivial assignments.
4183 * testsuite/26_numerics/complex/operators/more_constexpr.cc: Do not
4184 test std::complex<long double> if long double format is IBM128.
4185 * testsuite/26_numerics/complex/requirements/more_constexpr.cc:
4188 2019-01-08 Jonathan Wakely <jwakely@redhat.com>
4190 * testsuite/libstdc++-prettyprinters/compat.cc: Test printer support
4191 for old std::unique_ptr layout.
4192 * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix std::variant test
4193 to become valueless. Add filesystem::path tests.
4196 * include/std/optional (_Optional_payload_base): New class template
4197 for common code hoisted from _Optional_payload specializations. Use
4198 a template for the union, to allow a partial specialization for
4199 types with non-trivial destructors. Add constructors for in-place
4200 initialization to the union.
4201 (_Optional_payload(bool, const _Optional_payload&)): Use _M_construct
4202 to perform non-trivial copy construction, instead of relying on
4203 non-standard copy elision in a delegating constructor.
4204 (_Optional_payload(bool, _Optional_payload&&)): Likewise for
4205 non-trivial move construction.
4206 (_Optional_payload): Derive from _Optional_payload_base and use it
4207 for everything except the non-trivial assignment operators, which are
4209 (_Optional_payload<false, C, M>): Derive from the specialization
4210 _Optional_payload<true, false, false> and add a destructor.
4211 (_Optional_base_impl::_M_destruct, _Optional_base_impl::_M_reset):
4212 Forward to corresponding members of _Optional_payload.
4213 (_Optional_base_impl::_M_is_engaged, _Optional_base_impl::_M_get):
4214 Hoist common members from _Optional_base.
4215 (_Optional_base): Make all members and base class public.
4216 (_Optional_base::_M_get, _Optional_base::_M_is_engaged): Move to
4217 _Optional_base_impl.
4218 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter): Add
4219 support for new std::optional layout.
4220 * testsuite/libstdc++-prettyprinters/compat.cc: New test.
4223 * include/bits/locale_conv.h: Use <> for includes not "".
4224 * include/ext/random: Likewise.
4225 * include/ext/vstring.h: Likewise.
4227 2019-01-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4229 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten existing patterns.
4230 (GLIBCXX_3.4.21): Likewise.
4232 2019-01-08 Jonathan Wakely <jwakely@redhat.com>
4235 * src/filesystem/ops.cc (last_write_time): Fix preprocessor condition
4236 to match the one that controls whether utimbuf and utime are declared.
4238 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
4241 * include/bits/char_traits.h (char_traits::move): Do not pass null
4242 pointers to memmove.
4243 * include/bits/locale_facets.h
4244 (ctype<char>::widen(const char*, const char*, char*)): Do not
4245 pass null pointers to memcpy.
4246 (ctype<char>::narrow(const char*, const char*, char, char*)):
4248 (ctype<char>::do_widen(const char*, const char*, char*)):
4250 (ctype<char>::do_narrow(const char*, const char*, char, char*)):
4253 * doc/xml/manual/spine.xml: Update copyright years.
4254 * doc/xml/manual/status_cxx2017.xml: Adjust note about -lstdc++fs.
4255 * doc/xml/manual/using.xml: Remove requirement to link with -lstdc++fs
4256 for C++17 filesystem library.
4257 * doc/html/*: Regenerate.
4259 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for truncate.
4260 * config.h.in: Regenerate.
4261 * config/abi/pre/gnu.ver: Order patterns for filesystem operations
4262 alphabetically and add missing entries for copy_symlink,
4263 hard_link_count, rename, and resize_file.
4264 * configure: Regenerate.
4265 * src/c++17/fs_ops.cc (resize_file): Remove #if so posix::truncate is
4266 used unconditionally.
4267 * src/filesystem/ops-common.h (__gnu_posix::truncate)
4268 [!_GLIBCXX_HAVE_TRUNCATE]: Provide fallback definition that only
4269 supports truncating to zero length.
4270 * testsuite/27_io/filesystem/operations/all.cc: New test.
4271 * testsuite/27_io/filesystem/operations/resize_file.cc: New test.
4273 2019-01-06 Jonathan Wakely <jwakely@redhat.com>
4276 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for utime and
4277 lstat and define _GLIBCXX_USE_UTIME and _GLIBCXX_USE_LSTAT.
4278 * config.h.in: Regenerate.
4279 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export symbols for
4280 remaining std::filesystem types and functions.
4281 * configure: Regenerate.
4282 * src/c++17/Makefile.am: Add C++17 filesystem sources.
4283 * src/c++17/Makefile.in: Regenerate.
4284 * src/c++17/cow-fs_dir.cc: Move src/filesystem/cow-std-dir.cc to
4285 here, and change name of included file.
4286 * src/c++17/cow-fs_ops.cc: Move src/filesystem/cow-std-ops.cc to
4287 here, and change name of included file.
4288 * src/c++17/fs_dir.cc: Move src/filesystem/std-dir.cc to here. Change
4289 path to dir-common.h.
4290 * src/c++17/fs_ops.cc: Move src/filesystem/std-ops.cc to here. Change
4291 path to ops-common.h. Disable -Wunused-parameter warnings.
4292 (internal_file_clock): Define unconditionally.
4293 [!_GLIBCXX_HAVE_SYS_STAT_H] (internal_file_clock::from_stat): Do not
4295 (do_copy_file, do_space): Move definitions to ops.common.h.
4296 (copy, file_size, hard_link_count, last_write_time, space): Only
4297 perform operation when _GLIBCXX_HAVE_SYS_STAT_H is defined, otherwise
4299 (last_write_time, read_symlink): Remove unused attributes from
4301 * src/filesystem/Makefile.am: Remove C++17 filesystem sources.
4302 * src/filesystem/Makefile.in: Regenerate.
4303 * src/filesystem/cow-std-dir.cc: Move to src/c++17/cow-fs_dir.cc.
4304 * src/filesystem/cow-std-ops.cc: Move to src/c++17/cow-fs_ops.cc.
4305 * src/filesystem/std-dir.cc: Move to src/c++17/fs_dir.cc.
4306 * src/filesystem/std-ops.cc: Move to src/c++17/fs_ops.cc.
4307 * src/filesystem/dir-common.h [!_GLIBCXX_HAVE_DIRENT_H]: Define
4308 dummy types and functions instead of using #error.
4309 * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H]: Use #error.
4310 * src/filesystem/ops-common.h [!_GLIBCXX_USE_LSTAT] (lstat): Define
4312 [!_GLIBCXX_HAVE_UNISTD_H]: Define dummy types and functions.
4313 (do_copy_file, do_space): Move definitions here from std-ops.cc.
4314 * src/filesystem/ops.cc: Adjust calls to do_copy_file and do_space
4315 to account for new namespace.
4316 * testsuite/27_io/filesystem/directory_entry/86597.cc: Remove
4317 -lstdc++fs from dg-options.
4318 * testsuite/27_io/filesystem/directory_entry/lwg3171.cc: Likewise.
4319 * testsuite/27_io/filesystem/file_status/1.cc: Likewise.
4320 * testsuite/27_io/filesystem/filesystem_error/cons.cc: Likewise.
4321 * testsuite/27_io/filesystem/filesystem_error/copy.cc: Likewise.
4322 * testsuite/27_io/filesystem/iterators/directory_iterator.cc:
4324 * testsuite/27_io/filesystem/iterators/pop.cc: Likewise.
4325 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
4327 * testsuite/27_io/filesystem/operations/absolute.cc: Likewise.
4328 * testsuite/27_io/filesystem/operations/canonical.cc: Likewise.
4329 * testsuite/27_io/filesystem/operations/copy.cc: Likewise.
4330 * testsuite/27_io/filesystem/operations/copy_file.cc: Likewise.
4331 * testsuite/27_io/filesystem/operations/create_directories.cc:
4333 * testsuite/27_io/filesystem/operations/create_directory.cc: Likewise.
4334 * testsuite/27_io/filesystem/operations/create_symlink.cc: Likewise.
4335 * testsuite/27_io/filesystem/operations/current_path.cc: Likewise.
4336 * testsuite/27_io/filesystem/operations/equivalent.cc: Likewise.
4337 * testsuite/27_io/filesystem/operations/exists.cc: Likewise.
4338 * testsuite/27_io/filesystem/operations/file_size.cc: Likewise.
4339 * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
4340 * testsuite/27_io/filesystem/operations/last_write_time.cc: Likewise.
4341 * testsuite/27_io/filesystem/operations/permissions.cc: Likewise.
4342 * testsuite/27_io/filesystem/operations/proximate.cc: Likewise.
4343 * testsuite/27_io/filesystem/operations/read_symlink.cc: Likewise.
4344 * testsuite/27_io/filesystem/operations/relative.cc: Likewise.
4345 * testsuite/27_io/filesystem/operations/remove.cc: Likewise.
4346 * testsuite/27_io/filesystem/operations/remove_all.cc: Likewise.
4347 * testsuite/27_io/filesystem/operations/space.cc: Likewise.
4348 * testsuite/27_io/filesystem/operations/status.cc: Likewise.
4349 * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
4350 * testsuite/27_io/filesystem/operations/temp_directory_path.cc:
4352 * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Likewise.
4356 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Make various patterns for
4357 typeinfo and vtables less greedy.
4358 (GLIBCXX_3.4.26): Export symbols for std::filesystem::path.
4359 * src/c++17/Makefile.am: Add fs_path.cc and cow-fs_path.cc.
4360 * src/c++17/Makefile.in: Regenerate.
4361 * src/c++17/cow-fs_path.cc: Move src/filesystem/cow-std-path.cc to
4362 here, and change name of included file.
4363 * src/c++17/fs_path.cc: Move src/filesystem/std-path.cc to here.
4364 * src/filesystem/Makefile.am: Remove std-path.cc and cow-std-path.cc
4366 * src/filesystem/Makefile.in: Regenerate.
4367 * src/filesystem/cow-std-path.cc: Move to src/c++17/cow-fs_path.cc.
4368 * src/filesystem/std-path.cc: Move to src/c++17/fs_path.cc.
4369 * testsuite/27_io/filesystem/path/append/path.cc: Remove -lstdc++fs
4370 from dg-options and remove dg-require-filesystem-ts.
4371 * testsuite/27_io/filesystem/path/append/source.cc: Likewise.
4372 * testsuite/27_io/filesystem/path/assign/assign.cc: Likewise.
4373 * testsuite/27_io/filesystem/path/assign/copy.cc: Likewise.
4374 * testsuite/27_io/filesystem/path/compare/compare.cc: Likewise.
4375 * testsuite/27_io/filesystem/path/compare/lwg2936.cc: Likewise.
4376 * testsuite/27_io/filesystem/path/compare/path.cc: Likewise.
4377 * testsuite/27_io/filesystem/path/compare/strings.cc: Likewise.
4378 * testsuite/27_io/filesystem/path/concat/path.cc: Likewise.
4379 * testsuite/27_io/filesystem/path/concat/strings.cc: Likewise.
4380 * testsuite/27_io/filesystem/path/construct/80762.cc: Likewise.
4381 * testsuite/27_io/filesystem/path/construct/copy.cc: Likewise.
4382 * testsuite/27_io/filesystem/path/construct/default.cc: Likewise.
4383 * testsuite/27_io/filesystem/path/construct/format.cc: Likewise.
4384 * testsuite/27_io/filesystem/path/construct/locale.cc: Likewise.
4385 * testsuite/27_io/filesystem/path/construct/range.cc: Likewise.
4386 * testsuite/27_io/filesystem/path/construct/string_view.cc: Likewise.
4387 * testsuite/27_io/filesystem/path/decompose/extension.cc: Likewise.
4388 * testsuite/27_io/filesystem/path/decompose/filename.cc: Likewise.
4389 * testsuite/27_io/filesystem/path/decompose/parent_path.cc: Likewise.
4390 * testsuite/27_io/filesystem/path/decompose/relative_path.cc: Likewise.
4391 * testsuite/27_io/filesystem/path/decompose/root_directory.cc:
4393 * testsuite/27_io/filesystem/path/decompose/root_name.cc: Likewise.
4394 * testsuite/27_io/filesystem/path/decompose/root_path.cc: Likewise.
4395 * testsuite/27_io/filesystem/path/decompose/stem.cc: Likewise.
4396 * testsuite/27_io/filesystem/path/generation/normal.cc: Likewise.
4397 * testsuite/27_io/filesystem/path/generation/normal2.cc: Likewise.
4398 * testsuite/27_io/filesystem/path/generation/proximate.cc: Likewise.
4399 * testsuite/27_io/filesystem/path/generation/relative.cc: Likewise.
4400 * testsuite/27_io/filesystem/path/generic/generic_string.cc: Likewise.
4401 * testsuite/27_io/filesystem/path/itr/components.cc: Likewise.
4402 * testsuite/27_io/filesystem/path/itr/traversal.cc: Likewise.
4403 * testsuite/27_io/filesystem/path/modifiers/clear.cc: Likewise.
4404 * testsuite/27_io/filesystem/path/modifiers/make_preferred.cc:
4406 * testsuite/27_io/filesystem/path/modifiers/remove_filename.cc:
4408 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
4410 * testsuite/27_io/filesystem/path/modifiers/replace_filename.cc:
4412 * testsuite/27_io/filesystem/path/modifiers/swap.cc: Likewise.
4413 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
4414 * testsuite/27_io/filesystem/path/nonmember/append.cc: Likewise.
4415 * testsuite/27_io/filesystem/path/nonmember/hash_value.cc: Likewise.
4416 * testsuite/27_io/filesystem/path/query/empty.cc: Likewise.
4417 * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise.
4418 * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise.
4419 * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise.
4420 * testsuite/27_io/filesystem/path/query/has_relative_path.cc: Likewise.
4421 * testsuite/27_io/filesystem/path/query/has_root_directory.cc:
4423 * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise.
4424 * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise.
4425 * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise.
4426 * testsuite/27_io/filesystem/path/query/is_absolute.cc: Likewise.
4427 * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise.
4430 * include/std/variant (_Variant_storage<true, _Types...>::_M_valid):
4431 Check is_trivially_copyable instead of is_scalar.
4432 (variant::emplace<N, Args>(Args&&...)): If construction of the new
4433 contained value can throw and its type is trivially copyable then
4434 construct into a temporary variant and move from it, to provide the
4435 strong exception safety guarantee.
4436 (variant::emplace<N, U, Args>(initializer_list<U>, Args&&...)):
4438 * testsuite/20_util/variant/87431.cc: New test.
4439 * testsuite/20_util/variant/run.cc: Adjust test so that throwing
4440 conversion causes valueless state.
4443 * testsuite/17_intro/headers/c++1998/charset.cc: New test.
4444 * testsuite/17_intro/headers/c++2011/charset.cc: New test.
4445 * testsuite/17_intro/headers/c++2014/charset.cc: New test.
4446 * testsuite/17_intro/headers/c++2017/charset.cc: New test.
4447 * testsuite/17_intro/headers/c++2020/charset.cc: New test.
4449 2019-01-05 Jonathan Wakely <jwakely@redhat.com>
4451 * include/bits/fs_fwd.h (__file_clock): Define new clock.
4452 (file_time_type): Redefine in terms of __file_clock.
4453 * src/filesystem/ops-common.h (file_time): Add FIXME comment about
4455 * src/filesystem/std-ops.cc (is_set(perm_options, perm_options)): Give
4457 (internal_file_lock): New helper type for accessing __file_clock.
4458 (do_copy_file): Use internal_file_lock to convert system time to
4460 (last_write_time(const path&, error_code&)): Likewise.
4461 (last_write_time(const path&, file_time_type, error_code&)): Likewise.
4463 2019-01-04 Jonathan Wakely <jwakely@redhat.com>
4465 * config/abi/pre/gnu.ver (GLIBCXX_3.4.21): Make patterns less greedy
4466 for const member functions of std::basic_string.
4467 (GLIBCXX_3.4.26): Export member functions of std::basic_string added
4469 * include/bits/basic_string.h (basic_string(__sv_wrapper, const A&)):
4470 Make non-standard constructor private.
4471 [!_GLIBCXX_USE_CXX11_ABI] (basic_string(__sv_wrapper, const A&)):
4473 * include/bits/basic_string.tcc (std::string, std::wstring): Declare
4474 explicit instantiations for C++17 as well as earlier dialects.
4475 * src/c++17/Makefile.am: Add new source files.
4476 * src/c++17/Makefile.in: Regenerate.
4477 * src/c++17/cow-string-inst.cc: New file defining explicit
4478 instantiations for basic_string member functions added in C++17.
4479 * src/c++17/string-inst.cc: Likewise.
4481 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export allocator-extended
4482 copy/move constructors for old std::basic_string.
4483 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
4484 (basic_string::reference, basic_string::const_reference): Define
4485 as plain references for C++11 and later.
4486 (basic_string::basic_string()): Put constructor body outside
4487 preprocessor conditional groups.
4488 (basic_string::basic_string(basic_string&&)): Move _Alloc_hider
4489 instead of copying it.
4490 (basic_string::basic_string(const basic_string&, const _Alloc&)):
4492 (basic_string::basic_string(basic_string&&, const _Alloc&)):
4494 * include/bits/fs_path.h [!_GLIBCXX_USE_CXX11_ABI]: Remove special
4495 cases for old basic_string.
4496 * testsuite/21_strings/basic_string/cons/char/8.cc: Test
4497 allocator-extended constructors unconditionally. Add extra members to
4498 allocator type when using old string ABI.
4499 * testsuite/21_strings/basic_string/allocator/71964.cc: Enable test
4501 * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise.
4503 * testsuite/23_containers/list/61347.cc: Avoid spurious failure when
4504 -fno-inline added to test flags.
4506 * testsuite/21_strings/basic_string/requirements/
4507 explicit_instantiation/debug.cc: Remove XFAIL for old ABI.
4509 * testsuite/27_io/filesystem/filesystem_error/copy.cc: Fix static
4510 assertion failures with old std::string ABI.
4512 * include/bits/fs_path.h (path::_List::erase): Replace both overloads
4514 (path::pop_back(), path::_M_erase_from(const_iterator)): New member
4515 functions that will only erase elements at the end.
4516 * src/filesystem/std-path.cc (path::_List::_Impl::pop_back()): Define.
4517 (path::_List::_Impl::_M_erase_from(const_iterator)): Define.
4518 (path::_List::operator=(const _List&)): Use _M_erase_from(p) instead
4520 (path::_List::pop_back()): Define.
4521 (path::_List::_M_erase_from(const_iterator)): Define.
4522 (path::operator/=(const path&)): Use pop_back to remove last component
4523 and _M_erase_from to remove multiple components.
4524 (path::_M_append(basic_string_view<value_type>)): Likewise.
4525 (path::operator+=(const path&)): Likewise.
4526 (path::_M_concat(basic_string_view<value_type>)): Likewise.
4527 (path::remove_filename()): Likewise.
4528 (path::lexically_normal()): Use _List::_Impl iterators instead of
4529 path::iterator. Use pop_back to remove components from the end. Clear
4530 trailing filename, instead of using erase(const_iterator) to remove
4531 a non-final component.
4532 * testsuite/27_io/filesystem/path/generation/normal.cc: Test
4534 * testsuite/27_io/filesystem/path/generation/normal2.cc: New test.
4536 * src/filesystem/std-path.cc (path::operator+=(const path&)): Fix
4537 incorrect treatment of empty filename after trailing slash.
4538 * testsuite/27_io/filesystem/path/concat/path.cc: Test problem case.
4540 * testsuite/21_strings/basic_string/modifiers/assign/char/
4541 move_assign_optim.cc: Avoid spurious failure when -fno-inline added
4543 * testsuite/21_strings/basic_string/modifiers/assign/wchar_t/
4544 move_assign_optim.cc: Likewise.
4546 2019-01-03 Jonathan Wakely <jwakely@redhat.com>
4547 Jakub Jelinek <jakub@redhat.com>
4550 * include/experimental/memory: Replace UTF-8 quote characters.
4551 * include/std/future: Replace UTF-8 "em dash" characters.
4553 2019-01-03 Jonathan Wakely <jwakely@redhat.com>
4556 * include/bits/forward_list.h: Replace UTF-8 "ligature fi" character.
4557 * include/debug/forward_list: Likewise.
4558 * include/experimental/bits/shared_ptr.h: Remove UTF-8 "section sign"
4560 * include/experimental/chrono: Likewise.
4561 * include/experimental/functional: Likewise.
4562 * include/experimental/ratio: Likewise.
4563 * include/experimental/system_error: Likewise.
4564 * include/experimental/tuple: Likewise.
4565 * include/experimental/type_traits: Likewise.
4566 * include/parallel/workstealing.h: Replace UTF-8 "en dash" character.
4567 * include/parallel/multiseq_selection.h: Likewise.
4570 * config/abi/pre/gnu.ver: Add missing exports.
4571 * testsuite/22_locale/collate_byname/88681.cc: New test.
4572 * testsuite/22_locale/time_get/get/char/88681.cc: New test.
4573 * testsuite/22_locale/time_get/get/wchar_t/88681.cc: New test.
4575 2019-01-02 Jonathan Wakely <jwakely@redhat.com>
4577 * testsuite/23_containers/map/cons/deduction.cc: Test deduction from
4578 initializer_list<value_type> and from input iterator ranges.
4579 * testsuite/23_containers/multimap/cons/deduction.cc: Likewise.
4581 * testsuite/experimental/string_view/element_access/char/empty.cc:
4582 Fix year range in copyright header.
4584 2019-01-02 Joel Brobecker <brobecker@adacore.com>
4586 * testsuite/21_strings/basic_string_view/element_access/char/empty.cc:
4587 Fix year range in copyright header.
4589 2019-01-01 Jakub Jelinek <jakub@redhat.com>
4591 Update copyright years.
4593 Copyright (C) 2019 Free Software Foundation, Inc.
4595 Copying and distribution of this file, with or without modification,
4596 are permitted in any medium without royalty provided the copyright
4597 notice and this notice are preserved.