1 2019-07-18 François Dumont <fdumont@gcc.gnu.org>
3 * include/bits/stl_tempbuf.h (__detail::__return_temporary_buffer): New.
4 (~_Temporary_buffer()): Use latter.
5 (_Temporary_buffer(_FIterator, size_type)): Likewise.
7 2019-07-17 Andreas Schwab <schwab@suse.de>
9 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
11 2019-07-16 Jason Merrill <jason@redhat.com>
13 * include/std/memory (uses_allocator_construction_args): Add parens
16 2019-07-12 Jonathan Wakely <jwakely@redhat.com>
18 * testsuite/29_atomics/atomic_float/1.cc: Fix comment.
20 * include/experimental/string_view (__detail::__idt): Remove.
21 (operator==, operator!=, operator<, operator>, operator<=, operator>=):
22 Use __type_identity_t instead of __detail::__idt;
23 * include/std/string_view (__detail::__idt): Remove.
24 (operator==, operator!=, operator<, operator>, operator<=, operator>=):
25 Use __type_identity_t instead of __detail::__idt;
26 * include/std/type_traits (__type_identity_t): New alias template.
28 * doc/xml/manual/status_cxx2020.xml: Update status for atomic_ref
29 and floating point atomics.
31 2019-07-11 Jonathan Wakely <jwakely@redhat.com>
33 * doc/xml/manual/configure.xml: Improve documentation of
34 --enable-libstdcxx-time option.
36 * include/bits/atomic_base.h (__atomic_impl): New namespace for
37 wrappers around atomic built-ins.
38 (__atomic_float, __atomic_ref): New class templates for use as base
40 * include/std/atomic (atomic<float>, atomic<double>)
41 (atomic<long double>): New explicit specializations.
42 (atomic_ref): New class template.
43 (__cpp_lib_atomic_ref): Define.
44 * include/std/version (__cpp_lib_atomic_ref): Define.
45 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error.
46 * testsuite/29_atomics/atomic_float/1.cc: New test.
47 * testsuite/29_atomics/atomic_float/requirements.cc: New test.
48 * testsuite/29_atomics/atomic_ref/deduction.cc: New test.
49 * testsuite/29_atomics/atomic_ref/float.cc: New test.
50 * testsuite/29_atomics/atomic_ref/generic.cc: New test.
51 * testsuite/29_atomics/atomic_ref/integral.cc: New test.
52 * testsuite/29_atomics/atomic_ref/pointer.cc: New test.
53 * testsuite/29_atomics/atomic_ref/requirements.cc: New test.
55 2019-07-06 Jonathan Wakely <jwakely@redhat.com>
57 * include/ext/atomicity.h (__exchange_and_add, __atomic_add): Replace
58 throw() with _GLIBCXX_NOTHROW.
59 (__atomic_add_dispatch): Return after performing atomic increment.
61 2019-07-05 Jonathan Wakely <jwakely@redhat.com>
63 * include/ext/atomicity.h [_GLIBCXX_ATOMIC_BUILTINS] (__atomic_add)
64 (__exchange_and_add): Replace static specifier with always_inline
66 (__exchange_and_add_single, __atomic_add_single): Likewise.
67 (__exchange_and_add_dispatch, __atomic_add_dispatch): Likewise. Also
68 combine !__gthread_active_p() and !__GTHREADS branches.
70 2019-07-03 Jonathan Wakely <jwakely@redhat.com>
73 * acinclude.m4 (libtool_VERSION): Bump to 6:27:0.
74 * configure: Regenerate.
75 * config/abi/pre/gnu.ver (GLIBCXX_3.4.27): Add new version. Export
77 * testsuite/27_io/filesystem/iterators/91067.cc: New test.
78 * testsuite/util/testsuite_abi.cc: Add new symbol version.
80 2019-07-02 Jonathan Wakely <jwakely@redhat.com>
82 * include/bits/c++config (_GLIBCXX_HAVE_BUILTIN_LAUNDER)
83 (_GLIBCXX_HAVE_BUILTIN_IS_CONSTANT_EVALUATED): Use __has_builtin
84 instead of __is_identifier to detect Clang support.
86 2019-07-02 Jim Wilson <jimw@sifive.com>
88 * configure.ac (BUILD_PDF): Also test for doxygen, dot, xsltproc,
90 * configure: Regenerate.
92 2019-06-27 Jonathan Wakely <jwakely@redhat.com>
95 * src/c++17/fs_path.cc (filesystem_error::_Impl): Use a string_view
96 for the what_arg parameters.
97 (filesystem_error::filesystem_error): Pass system_error::what() to
98 the _Impl constructor.
99 * testsuite/27_io/filesystem/filesystem_error/cons.cc: Ensure that
100 filesystem_error::what() contains system_error::what().
102 2019-06-26 Jonathan Wakely <jwakely@redhat.com>
104 * include/std/charconv (chars_format): Define bitmask type.
105 * testsuite/20_util/to_chars/chars_format.cc: New test.
107 * include/bits/fs_path.h (path::__is_encoded_char): Use __is_one_of.
108 * include/std/bit (_If_is_unsigned_integer_type): Remove.
109 (_If_is_unsigned_integer): Use __is_unsigned_integer.
110 (rotl(byte, unsigned), rotr(byte, unsigned), countl_zero(byte))
111 (countl_one(byte), countr_zero(byte), countr_one(byte))
112 (popcount(byte), ispow2(byte), ceil2(byte), floor2(byte))
113 (log2p1(byte)): Remove.
114 * include/std/charconv (__detail::__is_one_of): Move to <type_traits>.
115 (__detail::__is_int_to_chars_type): Remove.
116 (__detail::__integer_to_chars_result_type): Use __is_signed_integer
117 and __is_unsigned_integer.
118 * include/std/type_traits (__is_one_of): Move here from <charconv>.
119 (__is_signed_integer, __is_unsigned_integer): New helpers.
120 * testsuite/26_numerics/bit/bit.pow.two/ceil2.cc: Remove test for
122 * testsuite/26_numerics/bit/bit.pow.two/floor2.cc: Likewise.
123 * testsuite/26_numerics/bit/bit.pow.two/ispow2.cc: Likewise.
124 * testsuite/26_numerics/bit/bit.pow.two/log2p1.cc: Likewise.
125 * testsuite/26_numerics/bit/bitops.count/countl_one.cc: Likewise.
126 * testsuite/26_numerics/bit/bitops.count/countl_zero.cc: Likewise.
127 * testsuite/26_numerics/bit/bitops.count/countr_one.cc: Likewise.
128 * testsuite/26_numerics/bit/bitops.count/countr_zero.cc: Likewise.
129 * testsuite/26_numerics/bit/bitops.count/popcount.cc: Likewise.
130 * testsuite/26_numerics/bit/bitops.rot/rotl.cc: Likewise.
131 * testsuite/26_numerics/bit/bitops.rot/rotr.cc: Likewise.
133 2019-06-25 Jonathan Wakely <jwakely@redhat.com>
135 * include/std/numeric (midpoint(T, T)): Avoid std::abs in constexpr
138 2019-06-25 Jakub Jelinek <jakub@redhat.com>
140 * include/pstl/pstl_config.h (_PSTL_PRAGMA_SIMD_SCAN,
141 _PSTL_PRAGMA_SIMD_INCLUSIVE_SCAN, _PSTL_PRAGMA_SIMD_EXCLUSIVE_SCAN):
142 Define to OpenMP 5.0 pragmas even for GCC 10.0+.
143 (_PSTL_UDS_PRESENT): Define to 1 for GCC 10.0+.
145 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
147 * include/std/numeric (midpoint(T, T)): Change implementation for
148 floating-point types to avoid incorrect rounding of denormals.
149 * testsuite/26_numerics/midpoint/floating.cc: Add check for correct
150 rounding with denormals.
151 * testsuite/26_numerics/gcd/gcd_neg.cc: Adjust dg-error line numbers.
152 * testsuite/26_numerics/lcm/lcm_neg.cc: Likewise.
154 * testsuite/18_support/headers/cfloat/values_c++17.cc: New test.
156 2019-06-20 Jonathan Wakely <jwakely@redhat.com>
158 * acinclude.m4 (GLIBCXX_ENABLE_DEBUG): Only do debug build for final
160 * configure: Regenerate.
162 * include/std/variant (_Variant_storage, _Extra_visit_slot_needed):
163 Qualify calls to __never_valueless.
165 * doc/xml/manual/status_cxx2017.xml: Fix outdated reference to
168 * testsuite/libstdc++-prettyprinters/simple.cc: Use non-palindromic
169 vector<bool> for test.
170 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
172 2019-06-19 Jonathan Wakely <jwakely@redhat.com>
174 * include/bits/stream_iterator.h (istream_iterator::_M_equal()): Make
176 (istream_iterator::_M_read()): Do not check stream state before
177 attempting extraction. Set stream pointer to null when extraction
179 (operator==(const istream_iterator&, const istream_iterator&)): Change
180 to be a hidden friend of istream_iterator.
181 (operator!=(const istream_iterator&, const istream_iterator&)):
183 (ostream_iterator::ostream_iterator()): Add default constructor.
184 (ostream_iterator::ostream_iterator(ostream_type*, const C*)): Use
186 * testsuite/24_iterators/istream_iterator/1.cc: New test.
187 * testsuite/24_iterators/ostream_iterator/1.cc: New test.
188 * testsuite/24_iterators/ostream_iterator/70766.cc: Also check
189 constructor taking a string.
190 * testsuite/24_iterators/ostream_iterator/requirements/constexpr.cc:
193 2019-06-19 Michael Weghorn <m.weghorn@posteo.de>
194 Jonathan Wakely <jwakely@redhat.com>
197 * python/libstdcxx/v6/printers.py (StdVectorPrinter._iterator): Use
198 values of type bool for vector<bool> elements.
199 * testsuite/libstdc++-prettyprinters/simple.cc: Test vector<bool>.
200 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
202 2019-06-19 Jonathan Wakely <jwakely@redhat.com>
204 PR libstdc++/90920 partially revert r263433
205 * include/bits/stl_algo.h (__rotate): Restore checks for empty ranges.
206 (rotate): Remove checks.
207 * testsuite/25_algorithms/rotate/90920.cc: New test.
209 * include/std/numeric (reduce(Iter, Iter, T, BinOp)): Fix value
210 category used in invocable check.
211 (reduce(Iter, Iter, T)): Pass initial value as rvalue.
212 * testsuite/26_numerics/reduce/2.cc: New test.
214 2019-06-18 Jonathan Wakely <jwakely@redhat.com>
216 * include/bits/algorithmfwd.h: Change title of doc group.
217 * include/bits/stl_algo.h (for_each_n): Add new C++17 algorithm from
219 * include/bits/stl_numeric.h: Define doc group and add algos to it.
220 * include/std/numeric (__is_random_access_iter): New internal trait.
221 (reduce, transform_reduce, exclusive_scan, inclusive_scan)
222 (transform_exclusive_scan, transform_inclusive_scan): Likewise.
223 * testsuite/25_algorithms/for_each/for_each_n.cc: New test.
224 * testsuite/26_numerics/exclusive_scan/1.cc: New test.
225 * testsuite/26_numerics/inclusive_scan/1.cc: New test.
226 * testsuite/26_numerics/reduce/1.cc: New test.
227 * testsuite/26_numerics/transform_exclusive_scan/1.cc: New test.
228 * testsuite/26_numerics/transform_inclusive_scan/1.cc: New test.
229 * testsuite/26_numerics/transform_reduce/1.cc: New test.
230 * testsuite/util/testsuite_iterators.h (test_container::size()): New
233 * include/c_global/cstddef (std::byte): Perform arithmetic operations
234 in unsigned int to avoid promotion (LWG 2950).
236 2019-06-17 Jonathan Wakely <jwakely@redhat.com>
238 * testsuite/20_util/allocator/1.cc: Add sized delete, which fixes a
241 * include/c_global/cmath (__lerp, lerp): Add noexcept (LWG 3201).
243 PR libstdc++/90281 Fix string conversions for filesystem::path
244 * include/bits/fs_path.h (u8path) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]:
245 Use codecvt_utf8_utf16 instead of codecvt_utf8. Use
246 __str_codecvt_in_all to fail for partial conversions and throw on
248 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS && _GLIBCXX_USE_CHAR8_T]
249 (path::_Cvt<char8_t>): Add explicit specialization.
250 [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::_Cvt::_S_wconvert): Remove
252 [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::_Cvt::_S_convert): Use
253 if-constexpr instead of dispatching to _S_wconvert. Use codecvt
254 instead of codecvt_utf8. Use __str_codecvt_in_all and
255 __str_codecvt_out_all.
256 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::_Cvt::_S_convert): Use
257 codecvt instead of codecvt_utf8. Use __str_codecvt_out_all.
258 (path::_S_str_convert) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use
259 codecvt_utf8_utf16 instead of codecvt_utf8. Construct return values
260 with allocator. Use __str_codecvt_out_all. Fallthrough to POSIX code
261 after converting to UTF-8.
262 (path::_S_str_convert): Use codecvt instead of codecvt_utf8. Use
263 __str_codecvt_in_all.
264 (path::string): Fix initialization of string types with different
266 (path::u8string) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use
267 codecvt_utf8_utf16 instead of codecvt_utf8. Use __str_codecvt_out_all.
268 * include/bits/locale_conv.h (__do_str_codecvt): Reorder static and
270 (__str_codecvt_out_all, __str_codecvt_in_all): New functions that
271 return false for partial conversions.
272 * include/experimental/bits/fs_path.h (u8path):
273 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Implement correctly for mingw.
274 [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::_Cvt::_S_wconvert): Add
275 missing handling for char8_t. Use codecvt and codecvt_utf8_utf16
276 instead of codecvt_utf8. Use __str_codecvt_in_all and
277 __str_codecvt_out_all.
278 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::_Cvt::_S_convert): Use
279 codecvt instead of codecvt_utf8. Use __str_codecvt_out_all.
280 (path::string) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use
281 codecvt_utf8_utf16 instead of codecvt_utf8. Construct return values
282 with allocator. Use __str_codecvt_out_all and __str_codecvt_in_all.
283 (path::string) [!_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use
284 __str_codecvt_in_all.
285 (path::u8string) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use
286 codecvt_utf8_utf16 instead of codecvt_utf8. Use __str_codecvt_out_all.
287 * src/c++17/fs_path.cc (path::_S_convert_loc): Use
288 __str_codecvt_in_all.
289 * src/filesystem/path.cc (path::_S_convert_loc): Likewise.
290 * testsuite/27_io/filesystem/path/construct/90281.cc: New test.
291 * testsuite/27_io/filesystem/path/factory/u8path.cc: New test.
292 * testsuite/27_io/filesystem/path/native/string.cc: Test with empty
293 strings and with Unicode characters outside the basic multilingual
295 * testsuite/27_io/filesystem/path/native/alloc.cc: New test.
296 * testsuite/experimental/filesystem/path/construct/90281.cc: New test.
297 * testsuite/experimental/filesystem/path/factory/u8path.cc: New test.
298 * testsuite/experimental/filesystem/path/native/alloc.cc: New test.
299 * testsuite/experimental/filesystem/path/native/string.cc: Test with
300 empty strings and with Unicode characters outside the basic
303 2019-06-17 François Dumont <fdumont@gcc.gnu.org>
304 Jonathan Wakely <jwakely@redhat.com>
306 * include/bits/hashtable.h (struct _Hashtable::_Scoped_node): New type.
307 (_Hashtable::_M_insert_unique_node): Add key_type parameter. Don't
308 deallocate node if insertion fails.
309 (_Hashtable::_M_insert_multi_node): Likewise.
310 (_Hashtable::_M_reinsert_node): Pass additional key argument.
311 (_Hashtable::_M_reinsert_node_multi): Likewise. Remove FIXME.
312 (_Hashtable::_M_extract_node(size_t, __node_base*)): New function.
313 (_Hashtable::extract(const_iterator)): Use _M_extract_node.
314 (_Hashtable::extract(const _Key&)): Likewise.
315 (_Hashtable::_M_merge_unique): Pass additional key argument.
316 (_Hashtable::_M_emplace<Args>(true_type, Args&&...)): Likewise. Use
318 (_Hashtable::_M_insert): Likewise.
319 * include/bits/hashtable_policy.h (_Map_base::operator[]): Likewise.
320 (_Hashtable_alloc): Add comments to functions with misleading names.
322 2019-06-17 Jonathan Wakely <jwakely@redhat.com>
324 * testsuite/20_util/bad_function_call/what.cc: Include <string> header
326 * testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc: Likewise.
327 * testsuite/20_util/tuple/cons/allocator_with_any.cc: Include <memory>
328 header for std::allocator.
329 * testsuite/23_containers/array/tuple_interface/tuple_element.cc: Add
330 using-declaration for std::size_t.
331 * testsuite/23_containers/array/tuple_interface/tuple_size.cc:
333 * testsuite/23_containers/deque/cons/55977.cc: Include <istream> for
335 * testsuite/23_containers/vector/cons/55977.cc: Likewise.
336 * testsuite/experimental/map/erasure.cc: Include <string> for
338 * testsuite/experimental/unordered_map/erasure.cc: Likewise.
340 2019-06-14 Jonathan Wakely <jwakely@redhat.com>
342 * include/experimental/type_traits (experimental::nonesuch): Use
343 pragma to disable -Wctor-dtor-privacy warnings.
344 * include/std/type_traits (__is_convertible_helper<From, To, false>)
345 (__is_nt_convertible_helper<From, To, false>, __nonesuch): Likewise.
347 * include/std/version (__cpp_lib_bind_front): Add missing macro.
349 2019-06-12 Jonathan Wakely <jwakely@redhat.com>
351 * include/std/algorithm (__cpp_lib_parallel_algorithm): Fix value.
352 * include/std/memory (__cpp_lib_parallel_algorithm): Likewise.
353 * include/std/numeric (__cpp_lib_parallel_algorithm): Likewise.
354 * testsuite/25_algorithms/pstl/feature_test.cc: New test.
356 * include/std/variant (get<T>, get<N>, get_if<N>, get_if<T>)
357 (variant::emplace): Change static_assert messages from "should be"
359 (hash<monostate>::operator()): Remove name of unused parameter.
361 * include/std/mutex (scoped_lock::~scoped_lock()): Use fold
364 * include/Makefile.am: Add new <bits/charconv.h> header.
365 * include/Makefile.in: Regenerate.
366 * include/bits/basic_string.h (to_string(int), to_string(unsigned))
367 (to_string(long), to_string(unsigned long), to_string(long long))
368 (to_string(unsigned long long)): Rewrite to use __to_chars_10_impl.
369 * include/bits/charconv.h: New header.
370 (__detail::__to_chars_len): Move here from <charconv>.
371 (__detail::__to_chars_10_impl): New function extracted from
372 __detail::__to_chars_10.
373 * include/std/charconv (__cpp_lib_to_chars): Add, but comment out.
374 (__to_chars_unsigned_type): New class template that reuses
375 __make_unsigned_selector_base::__select to pick a type.
376 (__unsigned_least_t): Redefine as __to_chars_unsigned_type<T>::type.
377 (__detail::__to_chars_len): Move to new header.
378 (__detail::__to_chars_10): Add inline specifier. Move code doing the
379 output to __detail::__to_chars_10_impl and call that.
380 * include/std/version (__cpp_lib_to_chars): Add, but comment out.
381 * testsuite/21_strings/basic_string/numeric_conversions/char/
382 to_string.cc: Fix reference in comment. Remove unused variable.
383 * testsuite/21_strings/basic_string/numeric_conversions/char/
384 to_string_int.cc: New test.
386 2019-06-09 Edward Smith-Rowland <3dw4rd@verizon.net>
388 Fix ConstexprIterator requirements tests - No constexpr algorithms!
389 * testsuite/21_strings/basic_string_view/requirements/constexpr_iter.cc:
390 Replace copy with hand-rolled loop.
391 * testsuite/23_containers/array/requirements/constexpr_iter.cc:
394 2019-06-08 Edward Smith-Rowland <3dw4rd@verizon.net>
396 Test for C++20 p0858 - ConstexprIterator requirements.
397 * testsuite/21_strings/basic_string_view/requirements/constexpr_iter.cc:
399 * testsuite/23_containers/array/requirements/constexpr_iter.cc:
402 2019-06-07 Thomas Rodgers <trodgers@redhat.com>
404 Rename PSTL macro's consistent with libstdc++ (and llvm upstream
406 * include/bits/c++config: Rename all macros of the form __PSTL* to
408 * include/std/algorithm: Likewise.
409 * include/std/execution: Likewise.
410 * include/std/numeric: Likewise.
411 * include/std/memory: Likewise.
412 * include/pstl/glue_memory_impl.h: Likewise.
413 * include/pstl/numeric_impl.h: Likewise.
414 * include/pstl/glue_memory_defs.h: Likewise.
415 * include/pstl/execution_defs.h: Likewise.
416 * include/pstl/utils.h: Likewise.
417 * include/pstl/algorithm_fwd.h: Likewise.
418 * include/pstl/unseq_backend_simd.h: Likewise.
419 * include/pstl/glue_execution_defs.h: Likewise.
420 * include/pstl/algorithm_impl.h: Likewise.
421 * include/pstl/parallel_impl.h: Likewise.
422 * include/pstl/memory_impl.h: Likewise.
423 * include/pstl/glue_numeric_defs.h: Likewise.
424 * include/pstl/parallel_backend_utils.h: Likewise.
425 * include/pstl/glue_algorithm_defs.h: Likewise.
426 * include/pstl/parallel_backend.h: Likewise.
427 * include/pstl/glue_numeric_impl.h: Likewise.
428 * include/pstl/parallel_backend_tbb.h: Likewise.
429 * include/pstl/numeric_fwd.h: Likewise.
430 * include/pstl/glue_algorithm_impl.h: Likewise.
431 * include/pstl/execution_impl.h: Likewise.
432 * include/pstl/pstl_config.h: Likewise.
433 * testsuite/util/pstl/pstl_test_config.h: Likewise.
434 * testsuite/util/pstl/test_utils.h: Likewise.
435 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc:
437 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc:
439 * testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc:
441 * testsuite/26_numerics/pstl/numeric_ops/scan.cc: Likewise.
442 * testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: Likewise.
443 * testsuite/26_numerics/pstl/numeric_ops/reduce.cc: Likewise.
444 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: Likewise.
445 * testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc:
447 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: Likewise.
448 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: Likewise.
449 * testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: Likewise.
450 * testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: Likewise.
451 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc:
453 * testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: Likewise.
454 * testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: Likewise.
455 * testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: Likewise.
456 * testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: Likewise.
457 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc:
459 * testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: Likewise.
460 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: Likewise.
461 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc:
463 * testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc:
465 * testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: Likewise.
466 * testsuite/25_algorithms/pstl/alg_merge/merge.cc: Likewise.
467 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc:
469 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc:
471 * testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc:
473 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc:
475 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc:
477 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc:
479 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc:
481 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc:
483 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc:
485 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc:
487 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc:
489 * testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: Likewise.
491 Rename header guards to be consistent with upstream project's
493 * include/pstl/glue_memory_impl.h: Rename all macros of the form
494 _PSTL_(.*)_H to _PSTL_\U\1_H.
495 * include/pstl/numeric_impl.h: Likewise.
496 * include/pstl/glue_memory_defs.h: Likewise.
497 * include/pstl/execution_defs.h: Likewise.
498 * include/pstl/utils.h: Likewise.
499 * include/pstl/algorithm_fwd.h: Likewise.
500 * include/pstl/unseq_backend_simd.h: Likewise.
501 * include/pstl/glue_execution_defs.h: Likewise.
502 * include/pstl/algorithm_impl.h: Likewise.
503 * include/pstl/parallel_impl.h: Likewise.
504 * include/pstl/memory_impl.h: Likewise.
505 * include/pstl/glue_numeric_defs.h: Likewise.
506 * include/pstl/parallel_backend_utils.h: Likewise.
507 * include/pstl/glue_algorithm_defs.h: Likewise.
508 * include/pstl/parallel_backend.h: Likewise.
509 * include/pstl/glue_numeric_impl.h: Likewise.
510 * include/pstl/parallel_backend_tbb.h: Likewise.
511 * include/pstl/numeric_fwd.h: Likewise.
512 * include/pstl/glue_algorithm_impl.h: Likewise.
513 * include/pstl/execution_impl.h: Likewise.
514 * include/pstl/pstl_config.h: Likewise.
515 * testsuite/util/pstl/pstl_test_config.h: Likewise.
517 Synchronize libstdc++ parallel algorithms with upstream
519 * include/pstl/algorithm_fwd.h: Synchronize with
520 upstream PSTL project.
521 * include/pstl/algorithm_impl.h: Likewise.
522 * include/pstl/execution_defs.h: Likewise.
523 * include/pstl/execution_impl.h: Likewise.
524 * include/pstl/glue_algorithm_impl.h: Likewise.
525 * include/pstl/glue_execution_defs.h: Likewise.
526 * include/pstl/numeric_fwd.h: Likewise.
527 * include/pstl/numeric_impl.h: Likewise.
528 * include/pstl/parallel_backend.h: Likewise.
529 * include/pstl/pstl_config.h: Likewise.
530 * include/pstl/unseq_backend_simd.h: Likewise.
531 * include/pstl/parallel_backend_serial.h: New file.
532 * include/Makefile.am (pstl_headers): Add
533 parallel_backend_serial.h.
534 * include/Makefile.in: Regenerate.
536 Clean up non-conforming names
537 * include/pstl/algorithm_impl.h (__parallel_set_union_op):
538 Uglfiy copy_range1 and copy_range2
539 (__pattern_walk2_n): Rename local n to __n
540 * include/pstl/parallel_backend_tbb.h (struct __binary_no_op):
541 Rename parameter _T to _Tp.
543 Integrate non-TBB serial backend support
544 * include/bits/c++config: Adjust TBB detection logic to select serial
545 PSTL backend if no TBB present.
546 * testsuite/utils/pstl/test_utils.h: Remove check for
547 _PSTL_USE_PAR_POLICIES
549 2019-06-07 Jonathan Wakely <jwakely@redhat.com>
551 * testsuite/24_iterators/container_access.cc: Move dg-options before
552 dg-do directive so the target check uses the -std option.
555 * configure: Regenerate.
556 * src/Makefile.am (stamp-debug): Also test for missing makefile.
557 * src/Makefile.in: Regenerate.
559 2019-06-06 Jonathan Wakely <jwakely@redhat.com>
561 * include/std/array: Do not include <stdexcept>.
562 * include/std/optional: Include <exception> and
563 <bits/exception_defines.h> instead of <stdexcept>.
564 * testsuite/20_util/function_objects/searchers.cc: Include <cctype>
566 * testsuite/20_util/tuple/cons/deduction.cc: Include <memory> for
568 * testsuite/23_containers/map/erasure.cc: Include <string>.
569 * testsuite/23_containers/unordered_map/erasure.cc: Likewise.
571 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc: Add
572 dg-prune-output for different C++98 diagnostic.
573 * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc:
575 * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc:
577 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
579 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
581 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
583 * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
585 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
587 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
589 * testsuite/23_containers/vector/requirements/dr438/
590 constructor_1_neg.cc: Likewise.
591 * testsuite/23_containers/vector/requirements/dr438/
592 constructor_2_neg.cc: Likewise.
593 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
595 * testsuite/libstdc++-prettyprinters/compat.cc: Do not run for C++98.
597 * testsuite/23_containers/unordered_map/requirements/debug_container.cc:
598 Do not test allocator rebinding extension for C++2a.
599 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Change
600 dg-do directive for C++17 and C++2a.
602 * testsuite/23_containers/deque/requirements/explicit_instantiation/
603 1_c++0x.cc: Remove redundant test.
604 * testsuite/23_containers/deque/requirements/explicit_instantiation/
605 2.cc: Use target selector instead of preprocessor condition.
606 * testsuite/23_containers/deque/requirements/explicit_instantiation/
607 3.cc: Do not run test for C++2a.
608 * testsuite/23_containers/forward_list/requirements/
609 explicit_instantiation/3.cc: Likewise.
610 * testsuite/23_containers/forward_list/requirements/
611 explicit_instantiation/5.cc: Do not test allocator rebinding extension
613 * testsuite/23_containers/list/requirements/explicit_instantiation/
614 1_c++0x.cc: Remove redundant test.
615 * testsuite/23_containers/list/requirements/explicit_instantiation/
616 2.cc: Use target selector instead of preprocessor condition.
617 * testsuite/23_containers/list/requirements/explicit_instantiation/
618 3.cc: Do not run test for C++2a.
619 * testsuite/23_containers/list/requirements/explicit_instantiation/
620 5.cc: Do not test allocator rebinding extension for C++2a.
621 * testsuite/23_containers/map/requirements/explicit_instantiation/
622 1_c++0x.cc: Remove redundant test.
623 * testsuite/23_containers/map/requirements/explicit_instantiation/
624 2.cc: Adjust comment.
625 * testsuite/23_containers/map/requirements/explicit_instantiation/
626 3.cc: Do not run test for C++2a.
627 * testsuite/23_containers/map/requirements/explicit_instantiation/
628 5.cc: Do not test allocator rebinding extension for C++2a.
629 * testsuite/23_containers/multimap/requirements/explicit_instantiation/
630 1_c++0x.cc: Remove redundant test.
631 * testsuite/23_containers/multimap/requirements/explicit_instantiation/
632 3.cc: Do not run test for C++2a.
633 * testsuite/23_containers/multimap/requirements/explicit_instantiation/
634 5.cc: Do not test allocator rebinding extension for C++2a.
635 * testsuite/23_containers/multiset/requirements/explicit_instantiation/
636 3.cc: Do not run test for C++2a.
637 * testsuite/23_containers/multiset/requirements/explicit_instantiation/
638 5.cc: Do not test allocator rebinding extension for C++2a.
639 * testsuite/23_containers/set/requirements/explicit_instantiation/3.cc:
640 Do not run test for C++2a.
641 * testsuite/23_containers/set/requirements/explicit_instantiation/
642 1_c++0x.cc: Remove redundant test.
643 * testsuite/23_containers/set/requirements/explicit_instantiation/5.cc:
644 Do not test allocator rebinding extension for C++2a.
645 * testsuite/23_containers/unordered_map/requirements/
646 explicit_instantiation/3.cc: Likewise.
647 * testsuite/23_containers/unordered_map/requirements/
648 explicit_instantiation/5.cc: Do not test allocator rebinding extension
650 * testsuite/23_containers/unordered_multimap/requirements/
651 explicit_instantiation/3.cc: Do not run test for C++2a.
652 * testsuite/23_containers/unordered_multimap/requirements/
653 explicit_instantiation/5.cc: Do not test allocator rebinding extension
655 * testsuite/23_containers/unordered_multiset/requirements/
656 explicit_instantiation/3.cc: Do not run test for C++2a.
657 * testsuite/23_containers/unordered_multiset/requirements/
658 explicit_instantiation/5.cc: Do not test allocator rebinding extension
660 * testsuite/23_containers/unordered_set/requirements/
661 explicit_instantiation/3.cc: Do not run test for C++2a.
662 * testsuite/23_containers/unordered_set/requirements/
663 explicit_instantiation/5.cc: Do not test allocator rebinding extension
665 * testsuite/23_containers/vector/ext_pointer/explicit_instantiation/
666 2.cc: Remove redundant test.
667 * testsuite/23_containers/vector/ext_pointer/explicit_instantiation/
668 3.cc: Do not run test for C++2a.
669 * testsuite/23_containers/vector/requirements/explicit_instantiation/
672 * include/std/type_traits (is_empty, is_polymorphic, is_final)
673 (is_abstract, is_aggregate): Remove static_assert.
674 * testsuite/20_util/is_abstract/incomplete_neg.cc: Check for error
676 * testsuite/20_util/is_aggregate/incomplete_neg.cc: Likewise. Add
677 missing -std=gnu++17 option.
678 * testsuite/20_util/is_empty/incomplete_neg.cc: New test.
679 * testsuite/20_util/is_final/incomplete_neg.cc: New test.
680 * testsuite/20_util/is_polymorphic/incomplete_neg.cc: Check for error
683 * testsuite/18_support/set_terminate.cc: Do not run for C++98 mode.
684 * testsuite/18_support/set_unexpected.cc: Likewise.
685 * testsuite/20_util/is_nothrow_invocable/value.cc: Test converting to
687 * testsuite/20_util/is_nothrow_invocable/value_ext.cc: Fix constexpr
688 function to be valid in C++11.
689 * testsuite/26_numerics/complex/proj.cc: Do not run for C++98 mode.
690 * testsuite/experimental/names.cc: Do not run for C++98 mode. Do not
691 include Library Fundamentals or Networking headers in C++11 mode.
692 * testsuite/ext/char8_t/atomic-1.cc: Do not run for C++98 mode.
694 * include/std/tuple (_TC): Replace with _TupleConstraints.
695 (_TupleConstraints): New helper for SFINAE constraints, with more
696 expressive member functions to reduce duplication when used.
697 (tuple::_TC2, tuple::_TMC, tuple::_TNTC): Remove.
698 (tuple::_TCC): Replace dummy type parameter with bool non-type
699 parameter that can be used to check the pack size.
700 (tuple::_ImplicitDefaultCtor, tuple::_ExplicitDefaultCtor)
701 (tuple::_ImplicitCtor, tuple::_ExplicitCtor): New alias templates for
702 checking constraints in constructors.
703 (tuple::__valid_args, tuple::_UseOtherCtor, tuple::__use_other_ctor):
705 (tuple::tuple): Use new helpers to reduce repitition in constraints.
706 (tuple::tuple(allocator_arg_t, const Alloc&)): Constrain.
707 (tuple<T1, T2>::_TCC, tuple<T1, T2>::_ImplicitDefaultCtor)
708 (tuple<T1, T2>::_ExplicitDefaultCtor, tuple<T1, T2>::_ImplicitCtor)
709 (tuple<T1, T2>::_ExplicitCtor): New alias templates for checking
710 constraints in constructors.
711 (tuple::__is_alloc_arg()): New SFINAE helpers.
712 (tuple<T1, T2>::tuple): Use new helpers to reduce repitition in
714 (tuple<T1, T2>::tuple(allocator_arg_t, const Alloc&)): Constrain.
715 * testsuite/20_util/tuple/cons/90700.cc: New test.
716 * testsuite/20_util/tuple/cons/allocators.cc: Add default constructor
717 to meet new constraint on allocator-extended default constructor.
719 2019-06-03 Jonathan Wakely <jwakely@redhat.com>
721 * include/bits/stl_map.h (map): Disable static assert for C++98 mode.
722 * include/bits/stl_multimap.h (multimap): Likewise.
724 2019-06-03 François Dumont <fdumont@gcc.gnu.org>
726 Rename variables and cleanup comments.
727 * include/bits/hashtable_policy.h
728 * include/bits/hashtable.h
730 2019-06-03 Jonathan Wakely <jwakely@redhat.com>
732 * doc/xml/manual/status_cxx2020.xml: Add missing row for P0920R2.
733 Fix bgcolor for P0340R3.
734 * doc/html/*: Regenerate.
737 * doc/xml/manual/status_cxx2014.xml: Document what's missing from
738 <experimental/memory_resource>.
739 * doc/xml/manual/status_cxx2020.xml: Document status of P1285R0,
740 P0339R6, P0340R3, P1164R1 and P1357R1.
741 * doc/html/*: Regenerate.
743 * doc/xml/manual/status_cxx2020.xml: Document P1463R1 status.
744 * include/bits/forward_list.h [__cplusplus > 201703]: Enable
745 allocator::value_type assertion for C++2a.
746 * include/bits/hashtable.h: Likewise.
747 * include/bits/stl_deque.h: Likewise.
748 * include/bits/stl_list.h: Likewise.
749 * include/bits/stl_map.h: Likewise.
750 * include/bits/stl_multimap.h: Likewise.
751 * include/bits/stl_multiset.h: Likewise.
752 * include/bits/stl_set.h: Likewise.
753 * include/bits/stl_vector.h: Likewise.
754 * testsuite/23_containers/deque/48101-3_neg.cc: New test.
755 * testsuite/23_containers/forward_list/48101-3_neg.cc: New test.
756 * testsuite/23_containers/list/48101-3_neg.cc: New test.
757 * testsuite/23_containers/map/48101-3_neg.cc: New test.
758 * testsuite/23_containers/multimap/48101-3_neg.cc: New test.
759 * testsuite/23_containers/multiset/48101-3_neg.cc: New test.
760 * testsuite/23_containers/set/48101-3_neg.cc: New test.
761 * testsuite/23_containers/unordered_map/48101-3_neg.cc: New test.
762 * testsuite/23_containers/unordered_multimap/48101-3_neg.cc: New test.
763 * testsuite/23_containers/unordered_multiset/48101-3_neg.cc: New test.
764 * testsuite/23_containers/unordered_set/48101-3_neg.cc: New test.
765 * testsuite/23_containers/vector/48101-3_neg.cc: New test.
767 2019-05-31 Gerald Pfeifer <gerald@pfeifer.com>
769 * doc/xml/manual/allocator.xml: Move hoard.org back to http.
771 2019-05-31 Jonathan Wakely <jwakely@redhat.com>
773 * include/std/tuple (tuple<>): Add noexcept to allocator-extended
775 (tuple<T1, T2>::__nothrow_default_constructible()): New helper
777 (tuple<T1, T2>::tuple(), explicit tuple<T1, T2>::tuple()): Use helper.
779 2019-05-31 Jonathan Wakely <jwakely@redhat.com>
781 * src/c++98/bitmap_allocator.cc: Add using-declaration for size_t.
784 * libsupc++/eh_term_handler.cc: Include eh_term_handler.h to get
785 definition of _GLIBCXX_DEFAULT_TERM_HANDLER.
786 * libsupc++/eh_term_handler.h: New header defining
787 _GLIBCXX_DEFAULT_TERM_HANDLER.
788 * libsupc++/eh_terminate.cc: Include eh_term_handler.h.
789 (set_terminate): Restore default handler when argument is null.
790 (set_unexpected): Likewise.
791 * testsuite/18_support/set_terminate.cc: New test.
792 * testsuite/18_support/set_unexpected.cc: New test.
794 * include/backward/hashtable.h (size_t, ptrdiff_t)
795 (forward_iterator_tag, input_iterator_tag, _Construct, _Destroy)
796 (distance, vector, pair, __iterator_category): Remove
797 using-declarations that add these names to namespace __gnu_cxx.
798 * include/ext/bitmap_allocator.h (size_t, ptrdiff_t): Likewise.
799 * include/ext/debug_allocator.h (size_t): Likewise.
800 * include/ext/functional (size_t, unary_function, binary_function)
801 (mem_fun1_t, const_mem_fun1_t, mem_fun1_ref_t, const_mem_fun1_ref_t):
803 * include/ext/malloc_allocator.h (size_t, ptrdiff_t): Likewise.
804 * include/ext/memory (ptrdiff_t, pair, __iterator_category): Likewise.
805 * include/ext/mt_allocator.h (size_t, ptrdiff_t): Likewise.
806 * include/ext/new_allocator.h (size_t, ptrdiff_t): Likewise.
807 * include/ext/numeric (iota): Fix outdated comment.
808 * include/ext/pool_allocator.h (size_t, ptrdiff_t): Likewise.
809 * include/ext/rb_tree (_Rb_tree, allocator): Likewise.
810 * include/ext/rope (size_t, ptrdiff_t, allocator, _Destroy): Likewise.
811 * include/ext/ropeimpl.h (size_t, printf, basic_ostream)
812 (__throw_length_error, _Destroy, std::__uninitialized_fill_n_a):
814 * include/ext/slist (size_t, ptrdiff_t, _Construct, _Destroy)
815 (allocator, __true_type, __false_type): Likewise.
817 2019-05-31 Antony Polukhin <antoshkka@gmail.com>
820 * include/std/type_traits __type_identity, __is_complete_or_unbounded):
821 New helpers for checking preconditions in traits.
822 (is_trivial, is_trivially_copyable, is_standard_layout, is_pod)
823 (is_literal_type, is_empty, is_polymorphic, is_final, is_abstract)
824 (is_destructible, is_nothrow_destructible, is_constructible)
825 (is_default_constructible, is_copy_constructible)
826 (is_move_constructible, is_nothrow_default_constructible)
827 (is_nothrow_constructible, is_nothrow_copy_constructible)
828 (is_nothrow_move_constructible, is_copy_assignable, is_move_assignable)
829 (is_nothrow_assignable, is_nothrow_copy_assignable)
830 (is_nothrow_move_assignable, is_trivially_constructible)
831 (is_trivially_copy_constructible, is_trivially_move_constructible)
832 is_trivially_assignable, is_trivially_copy_assignable)
833 (is_trivially_move_assignable, is_trivially_destructible)
834 (alignment_of, is_swappable, is_nothrow_swappable, is_invocable)
835 (is_invocable_r, is_nothrow_invocable)
836 (has_unique_object_representations, is_aggregate): Add static_asserts
837 to make sure that type traits are not misused with incomplete types.
838 (__is_constructible_impl, __is_nothrow_default_constructible_impl)
839 (__is_nothrow_constructible_impl, __is_nothrow_assignable_impl): New
840 base characteristics without assertions that can be reused in other
842 * testsuite/20_util/is_complete_or_unbounded/memoization.cc: New test.
843 * testsuite/20_util/is_complete_or_unbounded/memoization_neg.cc: New
845 * testsuite/20_util/is_complete_or_unbounded/value.cc: New test.
846 * testsuite/20_util/is_abstract/incomplete_neg.cc: New test.
847 * testsuite/20_util/is_aggregate/incomplete_neg.cc: New test.
848 * testsuite/20_util/is_class/value.cc: Check incomplete type.
849 * testsuite/20_util/is_function/value.cc: Likewise.
850 * testsuite/20_util/is_move_constructible/incomplete_neg.cc: New test.
851 * testsuite/20_util/is_nothrow_move_assignable/incomplete_neg.cc: New
853 * testsuite/20_util/is_polymorphic/incomplete_neg.cc: New test.
854 * testsuite/20_util/is_reference/value.cc: Check incomplete types.
855 * testsuite/20_util/is_unbounded_array/value.cc: Likewise.
856 * testsuite/20_util/is_union/value.cc: Likewise.
857 * testsuite/20_util/is_void/value.cc: Likewise.
858 * testsuite/util/testsuite_tr1.h: Add incomplete union type.
860 2019-05-31 Jonathan Wakely <jwakely@redhat.com>
862 * include/bits/random.h (random_device::_M_init(const char*, size_t)):
863 Add new private member function.
864 * src/c++11/cow-string-inst.cc (random_device::_M_init(const string&))
865 (random_device::_M_init_pretr1(const string&)): Call new private
866 member with string data.
867 * src/c++11/random.cc (random_device::_M_init(const char*, size_t)):
869 * testsuite/26_numerics/random/random_device/cons/default-cow.cc: New
870 test using COW strings.
871 * testsuite/26_numerics/random/random_device/cons/default.cc: Generate
872 a value from the device.
873 * testsuite/26_numerics/random/random_device/cons/token.cc: Likewise.
874 Fix typo in token string.
876 2019-05-30 Nina Dinka Ranns <dinka.ranns@gmail.com>
878 LWG2788 basic_string spurious use of a default constructible allocator
879 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
880 (basic_string::_M_replace_dispatch): Construct temporary string with
881 the current allocator.
882 * testsuite/21_strings/basic_string/allocator/char/lwg2788.cc: New.
883 * testsuite/21_strings/basic_string/allocator/wchar_t/lwg2788.cc: New.
885 2019-05-30 Jonathan Wakely <jwakely@redhat.com>
887 * doc/xml/manual/diagnostics.xml: Update list of headers that define
889 * doc/xml/manual/support.xml: Rewrite advice around NULL. Rewrite
890 section about new/delete overloads. Improve section on verbose
892 * doc/html/*: Regenerate.
894 * doc/xml/manual/status_cxx2020.xml: Add feature-test macro for
895 P0811R3. Change status of P1353R0.
896 * doc/html/*: Regenerate.
898 * doc/xml/manual/status_cxx2011.xml: Use <variablelist> for
899 documentation of implementation-defined types for [thread.req.native].
900 * doc/xml/manual/status_cxx2017.xml: Update documentation of
901 implementation-defined strings for [variant.bad.access]. Fix typo in
902 documentation of implementation-defined support for [fs.conform.9945].
903 * doc/html/*: Regenerate.
905 2019-05-29 Jonathan Wakely <jwakely@redhat.com>
908 * testsuite/26_numerics/random/random_device/cons/token.cc: Fix test
909 that fails on mingw-w64.
912 * src/c++17/fs_ops.cc [_GLIBCXX_FILESYSTEM_IS_WINDOWS]
913 (status(const path&, error_code&)): Use parent_path() to remove
915 (symlink_status(const path&, error_code&)): Duplicate workaround for
916 bug in _wstat for paths with trailing slash.
917 * testsuite/27_io/filesystem/operations/remove_all.cc: Check path
919 * testsuite/27_io/filesystem/operations/status.cc: Likewise.
920 * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
922 * src/c++17/fs_path.cc (path::parent_path()): Create whole path at
923 once instead of building it iteratively.
925 * testsuite/util/testsuite_api.h: Remove names of unused parameters.
927 PR libstdc++/85494 use rdseed and rand_s in std::random_device
928 * acinclude.m4 (GLIBCXX_CHECK_X86_RDSEED): Define macro to check if
929 the assembler supports rdseed.
930 * config.h.in: Regenerate.
931 * configure: Regenerate.
932 * configure.ac: Use GLIBCXX_CHECK_X86_RDSEED.
933 * config/os/mingw32-w64/os_defines.h (_GLIBCXX_USE_CRT_RAND_S): Define.
934 * doc/html/*: Regenerate.
935 * doc/xml/manual/status_cxx2011.xml: Document new tokens.
936 * include/bits/random.h (random_device::random_device()): Always call
937 _M_init rather than _M_init_pretr1.
938 (random_device::random_device(const string&)): Likewise.
939 (random_device::operator()()): Always call _M_getval().
940 (random_device::_M_file): Replace first member of union with an
941 anonymous struct, with _M_file as its first member.
942 * src/c++11/random.cc [_GLIBCXX_X86_RDRAND] (USE_RDRAND): Define.
943 [_GLIBCXX_X86_RDSEED] (USE_RDSEED): Define.
944 (USE_MT19937): Define if none of the above are defined.
945 (USE_POSIX_FILE_IO): Define.
946 (_M_strtoul): Remove.
947 [USE_RDSEED] (__x86_rdseed): Define new function.
948 [_GLIBCXX_USE_CRT_RAND_S] (__winxp_rand_s): Define new function.
949 (random_device::_M_init(const string&)): Initialize new union members.
950 Add support for "rdseed" and "rand_s" tokens. Decide what the
951 "default" token does according to which USE_* macros are defined.
952 [USE_POSIX_FILE_IO]: Store a file descriptor.
953 [USE_MT19937]: Forward to _M_init_pretr1 instead.
954 (random_device::_M_init_pretr1(const string&)) [USE_MT19937]: Inline
955 code from _M_strtoul.
956 [!USE_MT19937]: Call _M_init, transforming the old default token or
957 numeric tokens to "default".
958 (random_device::_M_fini()) [USE_POSIX_FILE_IO]: Use close not fclose.
959 (random_device::_M_getval()): Use new union members to obtain a
960 random number from the stored function pointer or file descriptor.
961 [USE_MT19937]: Obtain a value from the mt19937 engine.
962 (random_device::_M_getval_pretr1()): Call _M_getval().
963 (random_device::_M_getentropy()) [USE_POSIX_FILE_IO]: Use _M_fd
965 [!USE_MT19937] (mersenne_twister): Do not instantiate when not needed.
966 * testsuite/26_numerics/random/random_device/85494.cc: New test.
968 2019-05-28 Jonathan Wakely <jwakely@redhat.com>
971 * include/experimental/bits/fs_path.h (path::path(path&&)): Only call
972 _M_split_cmpts() for a path with multiple components.
973 (path::_S_is_dir_sep()): Add missing 'static' keyword to function.
974 * src/filesystem/path.cc (path::_M_split_cmpts()): Count number of
975 components and reserve space in vector. Return early when there is
977 * testsuite/27_io/filesystem/path/construct/90634.cc: New test.
978 * testsuite/experimental/filesystem/path/construct/90634.cc: New test.
980 * testsuite/util/testsuite_fs.h (compare_paths): Use three-argument
981 form of std::equals for C++11 compatibility.
983 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
985 * doc/xml/manual/appendix_contributing.xml: Update pointer to
986 C++ standard at ansi.org.
988 2019-05-24 Jonathan Wakely <jwakely@redhat.com>
990 * include/std/numeric (midpoint(T*, T*)): Fix incorrect result.
991 * testsuite/26_numerics/midpoint/pointer.cc: Change "compile" test
994 * testsuite/20_util/shared_ptr/cons/alias-rval.cc: Fix test.
995 * testsuite/20_util/shared_ptr/cons/alias.cc: Remove unused function.
997 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
999 * testsuite/20_util/function_objects/invoke/1.cc: Move C++17-specific
1001 * testsuite/20_util/function_objects/invoke/3.cc: New test.
1002 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Change
1003 "compile" test to "run".
1005 * doc/xml/manual/intro.xml: Document LWG DR 2996 change.
1006 * doc/html/*: Regenerate.
1007 * include/bits/shared_ptr.h (shared_ptr(shared_ptr&&, T*)): Add
1008 rvalue aliasing constructor.
1009 (static_pointer_cast, const_pointer, dynamic_pointer_cast)
1010 (reinterpret_pointer_cast): Add overloads taking rvalues.
1011 * include/bits/shared_ptr_base.h (__shared_ptr(__shared_ptr&&, T*)):
1012 Add rvalue aliasing constructor.
1013 * testsuite/20_util/shared_ptr/casts/1.cc: Change "compile" test to
1014 "run" and check return values as well as types.
1015 * testsuite/20_util/shared_ptr/casts/reinterpret.cc: Likewise.
1016 * testsuite/20_util/shared_ptr/casts/rval.cc: New test.
1017 * testsuite/20_util/shared_ptr/cons/alias-rval.cc: New test.
1018 * testsuite/20_util/shared_ptr/cons/alias.cc: Remove unused return
1021 * doc/xml/manual/evolution.xml: Document LWG DR 2921 change.
1022 * doc/xml/manual/intro.xml: Likewise.
1023 * include/std/future (__create_task_state): Add default arguments
1024 to make providing an allocator optional.
1025 (packaged_task::packaged_task(F&&)): Call __create_task_state directly
1026 instead of delegating to another constructor.
1027 (packaged_task::packaged_task(allocator_arg_t, const A&, ...)): Do not
1028 define allocator-extended constructors for C++17 and later.
1029 * testsuite/30_threads/packaged_task/cons/alloc.cc: Only run test for
1031 * testsuite/30_threads/packaged_task/cons/alloc2.cc: Likewise.
1032 * testsuite/30_threads/packaged_task/cons/alloc_min.cc: Likewise.
1033 * testsuite/30_threads/packaged_task/uses_allocator.cc: Likewise.
1035 2019-05-23 Hans-Peter Nilsson <hp@axis.com>
1037 * testsuite/26_numerics/random/poisson_distribution/operators/values.cc:
1038 Don't run the libstdc++/83237 part on simulator targets.
1040 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
1042 * doc/xml/manual/status_cxx2017.xml: Add feature test macro for
1044 * doc/html/*: Regenerate.
1046 * include/experimental/any (__any_caster): Use RTTI if comparing
1047 addresses fails, to support non-unique addresses in shared libraries.
1048 * include/std/any (__any_caster): Likewise.
1051 * include/experimental/any (__any_caster): Constrain to only be
1052 callable for object types. Use remove_cv_t instead of decay_t.
1053 If the type decays or isn't copy constructible, compare the manager
1054 function to a dummy specialization.
1055 (__any_caster): Add overload constrained for non-object types.
1056 (any::_Manager_internal<_Op>): Add dummy specialization.
1057 * testsuite/experimental/any/misc/any_cast.cc: Test function types
1060 2019-05-22 Jonathan Wakely <jwakely@redhat.com>
1063 * src/c++17/fs_path.cc (path::_List::operator=(const _List&)): Fix
1064 reversed arguments to uninitialized_copy_n.
1065 * testsuite/27_io/filesystem/path/assign/copy.cc: Check that source
1066 is unchanged by copy assignment.
1067 * testsuite/util/testsuite_fs.h (compare_paths): Use std::equal to
1068 compare path components.
1071 * include/experimental/memory_resource: Add system header pragma and
1072 do not define anything unless compiled as C++14 or later.
1073 (__resource_adaptor_common::__guaranteed_alignment): Remove.
1074 (__resource_adaptor_imp::do_allocate): If the requested alignment
1075 is a fundamental alignment then either allocate directly from _M_alloc
1076 or call the new _M_allocate function.
1077 (__resource_adaptor_imp::do_deallocate): Likewise for deallocation.
1078 (__resource_adaptor_imp::_M_allocate): New function that uses a copy
1079 of the allocator rebound to a POD type with the specified alignment.
1080 (__resource_adaptor_imp::_M_deallocate): Likewise for deallocation.
1081 * testsuite/experimental/memory_resource/new_delete_resource.cc:
1082 Adjust expected allocation sizes.
1083 * testsuite/experimental/memory_resource/resource_adaptor.cc: Remove
1084 xfail for Solaris x86.
1086 2019-05-21 Thomas Rodgers <trodgers@redhat.com>
1088 LWG 3062 - Unnecessary decay_t in is_execution_policy_v
1089 * include/pstl/execution_defs.h (__enable_if_execution_policy):
1090 Use std::__remove_cvref_t when building with GCC.
1092 2019-05-21 Jonathan Wakely <jwakely@redhat.com>
1095 * testsuite/lib/libstdc++.exp (check_effective_target_tbb-backend):
1096 Use "additional_flags" to pass -ltbb to v3_target_compile command.
1097 Use check_v3_target_prop_cached to cache the result of the test.
1099 * doc/xml/manual/shared_ptr.xml: Fix names of lock policy constants.
1101 2019-05-20 Thomas Rodgers <trodgers@redhat.com>
1104 * testsuite/lib/libstdc++.exp (check_effective_target_tbb-backend):
1105 Changed v3_target_compile check from preprocess to executable.
1106 Added "-ltbb" to v3_target_compile flags.
1108 2019-05-20 Thomas Rodgers <trodgers@redhat.com>
1110 * testsuite/lib/libstdc++.exp (check_effective_target_tbb-backend):
1111 Add check for Thread Building Blocks 2018 or later.
1113 2019-05-20 Jonathan Wakely <jwakely@redhat.com>
1115 * testsuite/experimental/names.cc: Only include Networking TS headers
1116 on targets with the necessary Gthreads support.
1118 2019-05-20 Marek Polacek <polacek@redhat.com>
1120 CWG 2094 - volatile scalars are trivially copyable.
1122 * testsuite/20_util/is_trivially_copyable/value.cc: Change the expected
1123 result for volatile int.
1125 2019-05-20 Jonathan Wakely <jwakely@redhat.com>
1127 * testsuite/17_intro/names.cc: Do not check 'ptr' on Solaris.
1128 * testsuite/experimental/names.cc: Include <experimental/filesystem>
1131 PR c++/90532 Ensure __is_constructible(T[]) is false
1132 * include/std/type_traits (__do_is_default_constructible_impl)
1133 (__is_default_constructible_atom, __is_default_constructible_safe):
1135 (is_default_constructible): Use is_constructible.
1136 * testsuite/20_util/is_constructible/value.cc: Check int[] case.
1137 * testsuite/20_util/is_default_constructible/value.cc: Likewise.
1138 * testsuite/20_util/is_trivially_constructible/value.cc: Likewise.
1139 * testsuite/20_util/is_trivially_default_constructible/value.cc:
1142 2019-05-20 Pádraig Brady <pbrady@fb.com>
1144 * libstdc++-v3/include/ext/new_allocator.h (deallocate): Pass the size
1145 to the deallocator with -fsized-deallocation.
1147 2019-05-20 Jonathan Wakely <jwakely@redhat.com>
1149 * testsuite/experimental/memory_resource/new_delete_resource.cc: Fix
1150 test by passing correct alignment to deallocate function.
1152 2019-05-18 Jonathan Wakely <jwakely@redhat.com>
1155 * python/libstdcxx/v6/printers.py (UniquePointerPrinter.__init__):
1156 Raise exception if unique_ptr tuple member has unknown structure.
1157 * python/libstdcxx/v6/xmethods.py (UniquePtrGetWorker.__call__):
1158 Adjust worker to support new __uniq_ptr_data base class. Do not
1159 assume field called _M_head_impl is the first tuple element.
1161 2019-05-17 François Dumont <fdumont@gcc.gnu.org>
1163 * include/bits/stl_deque.h
1164 (_Deque_iterator<>::__ptr_to): Remove, use std::__ptr_rebind.
1165 (_Deque_base(_Deque_base&&, const allocator_type&)): New.
1166 (_Deque_base::_Deque_impl_data): New.
1167 (_Deque_base::_Deque_impl): Inherit latter.
1168 (_Deque_base::_Deque_impl::_M_swap_data): Move...
1169 (_Deque_base::_Deque_impl_data::_M_swap_data): ... here.
1170 (_Deque_base::_Deque_impl()): Add noexcept qualification.
1171 (_Deque_base::_Deque_impl(_Deque_impl&&, _Tp_alloc_type&&)): New.
1172 (_Deque_base::_Deque_impl::_M_get_Tp_allocator()): Remove static_cast.
1173 (deque<>::deque()): Default.
1174 (deque<>::deque(deque&&)): Default.
1175 (deque<>::deque(deque&&, const allocator_type&, false_type)): New.
1176 (deque<>::deque(deque&&, const allocator_type&, true_type)): New.
1177 (deque<>::deque(deque&&, const allocator_type&)): Delegate to latters.
1178 (deque<>::deque<_It>(_It, _It, const allocator_type&)): Use
1179 _M_range_initialize.
1180 (deque<>::assign<_It>(_It, _It)): Use _M_assign_aux.
1181 (deque<>::resize(size_type, const value_type&)): Share a single
1183 (deque<>::insert<_It>(const_iterator, _It, _It)): Use
1184 _M_range_insert_aux.
1185 [__cplusplus >= 201103L](_M_initialize_dispatch): Remove.
1186 [__cplusplus >= 201103L](_M_assign_dispatch): Remove.
1187 [__cplusplus >= 201103L](_M_insert_dispatch): Remove.
1188 * testsuite/23_containers/deque/allocator/default_init.cc: New.
1190 2019-05-17 Jonathan Wakely <jwakely@redhat.com>
1193 * include/std/variant (holds_alternative, get, get_if): Improve
1194 static assertion messages.
1195 (bad_variant_access::bad_variant_access()): Change default message.
1196 (__throw_bad_variant_access(bool)): New overload.
1197 (get): Use new overload.
1198 (visit, visit<R>): Improve exception message.
1200 * testsuite/20_util/variant/compile.cc: Fix narrowing test for ILP32
1201 targets. Add more cases from P0608R3.
1202 * testsuite/20_util/variant/run.cc: Add more cases from P0608R3.
1204 * include/bits/random.h (seed_seq::param): Fix non-reserved name.
1205 * include/experimental/type_traits (is_detected_exact)
1206 (is_detected_exact_v): Likewise.
1207 * include/pstl/execution_defs.h (is_execution_policy)
1208 (is_execution_policy_v, __enable_if_execution_policy): Likewise.
1209 * include/pstl/execution_impl.h (__policy_traits): Likewise.
1210 * testsuite/17_intro/names.cc: Check for more non-reserved names.
1211 * testsuite/experimental/names.cc: New test.
1214 * include/bits/hashtable.h (_Hashtable::~_Hashtable()): Remove static
1215 assertions from the destructor.
1216 * include/bits/hashtable_policy.h (_Hash_code_base::_M_hash_code):
1217 Move static_assert for hash function to here.
1218 (_Hash_table_base::_M_equals): Move static_assert for equality
1220 * include/bits/stl_tree.h (_Rb_tree::_S_value(_Const_Link_type)):
1222 (_Rb_tree::_S_key(_Const_Link_type)): Move assertions here. Access
1223 the value directly instead of calling _S_value.
1224 (_Rb_tree::_S_value(_Const_Base_ptr)): Remove.
1225 (_Rb_tree::_S_key(_Const_Base_ptr)): Do downcast and forward to
1226 _S_key(_Const_Link_type).
1227 * testsuite/23_containers/set/85965.cc: Check construction,
1228 destruction, assignment and size() do not trigger the assertions.
1229 * testsuite/23_containers/unordered_set/85965.cc: Likewise.
1230 * testsuite/23_containers/map/48101_neg.cc: Call find and adjust
1232 * testsuite/23_containers/multimap/48101_neg.cc: Likewise.
1233 * testsuite/23_containers/multiset/48101_neg.cc: Likewise.
1234 * testsuite/23_containers/set/48101_neg.cc: Likewise.
1235 * testsuite/23_containers/unordered_map/48101_neg.cc: Likewise.
1236 * testsuite/23_containers/unordered_multimap/48101_neg.cc: Likewise.
1237 * testsuite/23_containers/unordered_multiset/48101_neg.cc: Likewise.
1238 * testsuite/23_containers/unordered_set/48101_neg.cc: Likewise.
1240 * include/bits/invoke.h [__cplusplus < 201703L] (__invoke_r<void>):
1241 Use _GLIBCXX14_CONSTEXPR because void functions cannot be constexpr
1244 * doc/xml/manual/status_cxx2020.xml: Update P0608R3, P0777R1, and
1246 * doc/html/*: Regenerate.
1247 * include/std/tuple (make_from_tuple): Use remove_reference_t instead
1248 of decay_t (P0777R1).
1250 2019-05-17 François Dumont <fdumont@gcc.gnu.org>
1252 Move from state of allocators (LWG2593)
1253 * include/bits/stl_deque.h
1254 (_Deque_base(_Deque_base&&, false_type)): Remove.
1255 (_Deque_base(_Deque_base&&, true_type)): Remove.
1256 (_Deque_base(_Deque_base&&)): Adapt.
1257 (_Deque_base::_M_move_impl()): Remove.
1258 * testsuite/util/testsuite_allocator.h
1259 (propagating_allocator(propagating_allocator&&)): Preserve move from
1261 * testsuite/23_containers/deque/allocator/move_assign.cc (test02):
1263 * testsuite/23_containers/forward_list/allocator/move_assign.cc (test02):
1265 * testsuite/23_containers/list/allocator/move_assign.cc (test02): Adapt.
1266 * testsuite/23_containers/map/allocator/move_assign.cc (test02): Adapt.
1267 * testsuite/23_containers/multimap/allocator/move_assign.cc (test02):
1269 * testsuite/23_containers/multiset/allocator/move_assign.cc (test02):
1271 * testsuite/23_containers/set/allocator/move_assign.cc (test02): Adapt.
1272 * testsuite/23_containers/unordered_map/allocator/move_assign.cc
1274 * testsuite/23_containers/unordered_multimap/allocator/move_assign.cc
1276 * testsuite/23_containers/unordered_multiset/allocator/move_assign.cc
1278 * testsuite/23_containers/unordered_set/allocator/move_assign.cc
1280 * testsuite/23_containers/vector/allocator/move_assign.cc (test02):
1282 * testsuite/23_containers/vector/bool/allocator/move_assign.cc (test02):
1284 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc
1286 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc
1289 2019-05-16 Jonathan Wakely <jwakely@redhat.com>
1291 * src/c++17/fs_ops.cc (absolute(const path&, error_code&))
1292 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Remove bogus assertion.
1294 * include/std/variant (__overload_set): Remove.
1296 (_Build_FUN): New class template to define a single FUN overload,
1297 with specializations to prevent unwanted conversions, as per P0608R3.
1298 (_Build_FUNs): New class template to build an overload set of FUN.
1299 (_FUN_type): New alias template to perform overload resolution.
1300 (__accepted_type): Use integer_constant base for failure case. Use
1301 _FUN_type for successful case.
1302 (variant::__accepted_index): Use _Tp instead of _Tp&&.
1303 (variant::variant(_Tp&&)): Likewise.
1304 (variant::operator=(_Tp&&)): Likewise.
1306 * include/std/variant (_Variant_storage<false, _Types...>::_M_reset):
1307 Replace raw visitation with a runtime check for the valueless state
1308 and a non-raw visitor.
1309 (_Variant_storage<false, _Types...>::_M_reset_impl): Remove.
1310 (variant::index()): Remove branch.
1311 (variant::swap(variant&)): Use valueless_by_exception() instead of
1312 comparing the index to variant_npos, and add likelihood attribute.
1314 * include/bits/hashtable_policy.h (_Equal_helper): Remove.
1315 (_Hashtable_base::_Equal_hash_code): Define new class template.
1316 (_Hashtable_base::_M_equals): Use _Equal_hash_code instead of
1319 * include/bits/hashtable_policy.h (_Hashtable_ebo_helper::_S_get):
1320 Replace with _M_get non-static member function.
1321 (_Hashtable_ebo_helper::_S_cget): Replace with _M_cget non-static
1323 (_Hash_code_base, _Local_iterator_base, _Hashtable_base):
1324 (_Hashtable_alloc): Adjust to use non-static members of EBO helper.
1326 * include/bits/hashtable_policy.h (_Hash_code_base::_M_swap): Use
1327 _S_get accessors for members in EBO helpers.
1328 (_Hash_code_base::_M_extract(), _Hash_code_base::_M_ranged_hash())
1329 (_Hash_code_base::_M_h1(), _Hash_code_base::_M_h2()): Remove non-const
1331 (_Hashtable_base::_M_swap): Use _S_get accessors for members in EBO
1333 (_Hashtable_base::_M_eq()): Remove non-const overload.
1335 2019-05-15 Jonathan Wakely <jwakely@redhat.com>
1337 * include/std/variant (visit, visit<R>): Qualify calls to __do_visit.
1339 2019-05-14 Jonathan Wakely <jwakely@redhat.com>
1341 * testsuite/util/testsuite_allocator.h (NullablePointer::operator bool):
1344 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1346 * config/os/solaris/solaris2.10: Move to ...
1347 * config/os/solaris: ... this.
1348 * configure.host (os_include_dir): Adapt.
1349 (abi_baseline_pair): Remove Solaris 10 handling.
1350 * config/abi/post/i386-solaris2.10: Remove.
1351 * config/abi/post/sparc-solaris2.10: Remove.
1352 * config/abi/post/i386-solaris2.11: Rename to ...
1353 * config/abi/post/i386-solaris: ... this.
1354 * config/abi/post/sparc-solaris2.11: Rename to ...
1355 * config/abi/post/sparc-solaris: ... this.
1357 * libsupc++/new_opa.cc [_GLIBCXX_HAVE_MEMALIGN] [__sun]: Remove
1360 * testsuite/ext/enc_filebuf/char/13598.cc: Remove *-*-solaris2.10
1363 2019-05-14 Jonathan Wakely <jwakely@redhat.com>
1365 * include/std/variant (__visit_with_index): Remove typedef.
1366 (__deduce_visit_result): New tag type.
1367 (__raw_visit, __raw_idx_visit): New helper functions for "raw"
1368 visitation of possibly-valueless variants, forwarding to __do_visit
1369 with the relevant tag type.
1370 (_Variant_storage<false, _Types...>::_M_reset_impl): Use __raw_visit
1371 and make lambda return void.
1372 (__variant_construct): Likewise.
1373 (_Copy_assign_base::operator=, _Move_assign_base::operator=): Use
1374 __raw_idx_visit and make lambda return void.
1375 (_Multi_array::__untag_result): Add metafunction to check the function
1376 pointer type for a tag type that dictates the kind of visitation.
1377 (_Multi_array<_Ret(*)(_Visitor, _Variants...), __first, __rest...>):
1378 Use decltype(auto) instead of tagged function pointer type.
1379 (__gen_vtable_impl): Remove bool non-type parameter and unused
1380 _Variant_tuple parameter.
1381 (__gen_vtable_impl::__visit_invoke_impl): Remove.
1382 (__gen_vtable_impl::__do_visit_invoke): Remove.
1383 (__gen_vtable_impl::__do_visit_invoke_r): Remove.
1384 (__gen_vtable_impl::__visit_invoke): Use if-constexpr and __invoke_r
1385 for the visit<R> case, rather than dispatching to separate functions.
1386 (_VARIANT_RELATION_FUNCTION_TEMPLATE): Use __raw_idx_visit and make
1388 (variant::swap): Likewise.
1389 (__do_visit): Replace two non-type template parameters with a single
1390 type parameter, so that the caller must specify the visitor's return
1391 type (or one of the tag types).
1392 (visit): Deduce a return type from the visitor and use the
1393 __deduce_visit_result tag to enforce that all overloads return the
1395 (visit<R>): Call __do_visit<R> with explicit result type.
1396 (__variant_hash_call_base_impl::operator()): Use __raw_visit and make
1399 2019-05-14 Nina Dinka Ranns <dinka.ranns@gmail.com>
1401 nonesuch is insufficiently useless (lwg2996)
1402 * include/std/type_traits (struct __nonesuch): Added private base
1403 class to make __nonesuch not an aggregate and removed deleted default
1405 * include/bits/stl_pair.h (struct __nonesuch_no_braces): Removed.
1406 (operator=(const pair&)): Use __nonesuch instead of
1407 __nonesuch_no_braces.
1408 (operator=(pair&&)): Likewise
1409 * include/std/tuple (operator=(const tuple&)): Use __nonesuch instead
1410 of __nonesuch_no_braces.
1411 (operator=(tuple&&)): Likewise
1412 * include/experimental/type_traits (struct nonesuch): Added private
1413 base class to make nonesuch not an aggregate and removed deleted
1414 default constructor.
1415 * testsuite/20_util/nonesuch/nonesuch.cc: New.
1416 * testsuite/experimental/type_traits/nonesuch.cc: New.
1418 2019-05-14 Jonathan Wakely <jwakely@redhat.com>
1420 * include/bits/std_function.h (_Simple_type_wrapper): Remove.
1421 (_Function_handler): Remove partial specializations for void return
1422 types and pointers to member.
1423 (_Function_handler::_M_manager): Adapt to removal of
1424 _Simple_type_wrapper.
1425 (_Function_handler::_M_invoke): Use __invoke_r instead of __invoke.
1426 * include/std/functional (_Bind_result::__enable_if_void)
1427 (_Bind_result::__disable_if_void): Remove sfinae helpers.
1428 (_Bind_result::__call): Use __invoke_r and remove overloads for void
1430 * include/std/future (__future_base::_Task_state::_M_run)
1431 (__future_base::_Task_state::_M_run_delayed): Use __invoke_r and
1432 change return type of lambda expressions.
1434 * include/bits/invoke.h (__invoke_r): Define new function implementing
1435 the INVOKE<R> pseudo-function.
1436 * testsuite/20_util/function_objects/invoke/1.cc: Add more tests.
1437 * testsuite/20_util/function_objects/invoke/2.cc: New test.
1439 * include/std/type_traits (__is_nt_convertible_helper): Define it
1440 unconditionally, not only for C++20.
1441 (__is_nothrow_convertible): Define internal trait for use in C++11.
1442 (__is_nt_invocable_impl: Fix by using __is_nothrow_convertible.
1443 (is_invocable_r_v, is_nothrow_invocable_r_v): Add missing parameter.
1444 * testsuite/20_util/is_nothrow_convertible/value_ext.cc: New test.
1445 * testsuite/20_util/is_nothrow_convertible/value.cc: Check with type
1446 that has nothrow explicit conversion but potentially-throwing implicit
1448 * testsuite/20_util/is_nothrow_invocable/value.cc: Likewise.
1449 * testsuite/20_util/is_nothrow_invocable/value_ext.cc: Fix helper
1450 function to only consider implicit conversions.
1451 * testsuite/20_util/tuple/cons/noexcept_specs.cc: Add comment.
1453 * include/std/iterator: Include <iosfwd> instead of <istream> and
1456 * include/bits/stl_tree.h (_Rb_tree::erase(const Key*, const Key*)):
1457 Remove unused, non-standard function.
1459 * include/bits/regex.h (match_results::max_size()): Adjust return
1460 value to account for prefix/suffix/unmatched subs.
1461 (match_results::_M_resize(unsigned int)): Use _Base_type::assign to
1462 reset the contained sub matches.
1463 (match_results::_M_establish_failed_match(_Bi_iter)): Add new member
1464 function to set result state following a failed match.
1465 * include/bits/regex.tcc (__regex_algo_impl): Remove loop to set
1466 sub_match states after _M_resize. Use _M_establish_failed_match.
1469 * include/std/thread (thread::_State_impl, thread::_S_make_state):
1470 Replace single _Callable parameter with variadic _Args pack, to
1471 forward them directly to the tuple of decayed copies.
1472 * testsuite/30_threads/thread/cons/69724.cc: New test.
1474 2019-05-14 Nina Dinka Ranns <dinka.ranns@gmail.com>
1476 Inconsistency wrt Allocators in basic_string assignment (LWG2579)
1477 * include/bits/basic_string.h: (operator=(const basic_string&):
1478 Move allocator decision to assign.
1479 (assign(const basic_string&)): Move allocator decision here.
1480 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1482 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1485 2019-05-14 Jonathan Wakely <jwakely@redhat.com>
1487 * testsuite/util/testsuite_allocator.h (memory_resource)
1488 (default_resource_mgr): Fix indentation.
1490 * testsuite/20_util/allocator_traits/members/allocate_hint_nonpod.cc:
1491 Use operator-> to access raw pointer member.
1492 * testsuite/23_containers/vector/59829.cc: Likewise.
1493 * testsuite/23_containers/vector/bool/80893.cc: Likewise.
1494 * testsuite/libstdc++-prettyprinters/cxx11.cc: Use NullablePointer.
1495 * testsuite/util/testsuite_allocator.h (NullablePointer): New utility
1497 (PointerBase, PointerBase_void): Derive from NullablePointer and use
1498 its constructors and equality operators. Change converting
1499 constructors to use operator-> to access private member of the other
1501 (PointerBase_void::operator->()): Add, for access to private member.
1502 (operator-(PointerBase, PointerBase)): Change to hidden friend.
1503 (operator==(PointerBase, PointerBase)): Remove.
1504 (operator!=(PointerBase, PointerBase)): Remove.
1506 * python/libstdcxx/v6/printers.py (UniquePointerPrinter.__init__): Do
1507 not assume field called _M_head_impl is the first tuple element.
1508 * testsuite/libstdc++-prettyprinters/compat.cc: Make tuple
1509 implementation more accurate.
1510 * testsuite/libstdc++-prettyprinters/cxx11.cc: Check unique_ptr with
1511 empty pointer type and non-empty deleter.
1513 LWG 2899 - Make is_move_constructible correct for unique_ptr
1514 * include/bits/unique_ptr.h (__uniq_ptr_impl): Add move constructor,
1515 move assignment operator.
1516 (__uniq_ptr_impl::release(), __uniq_ptr_impl::reset(pointer)): Add.
1517 (__uniq_ptr_data): New class template with conditionally deleted
1519 (unique_ptr, unique_ptr<T[], D>): Change type of data member from
1520 __uniq_ptr_impl<T, D> to __uniq_ptr_data<T, D>. Define move
1521 constructor and move assignment operator as defaulted.
1522 (unique_ptr::release(), unique_ptr<T[], D>::release()): Forward to
1523 __uniq_ptr_impl::release().
1524 (unique_ptr::reset(pointer), unique_ptr<T[], D>::reset<U>(U)): Forward
1525 to __uniq_ptr_impl::reset(pointer).
1526 * python/libstdcxx/v6/printers.py (UniquePointerPrinter.__init__):
1527 Check for new __uniq_ptr_data type.
1528 * testsuite/20_util/unique_ptr/dr2899.cc: New test.
1530 2019-05-13 Jonathan Wakely <jwakely@redhat.com>
1532 PR libstdc++/90454.cc path construction from void*
1533 * include/bits/fs_path.h (path::_Path): Use remove_pointer so that
1534 pointers to void are rejected as well as void.
1535 * include/experimental/bits/fs_path.h (path::_Path): Likewise.
1536 * testsuite/27_io/filesystem/path/construct/80762.cc: Also check
1538 * testsuite/experimental/filesystem/path/construct/80762.cc: Likewise.
1540 * doc/xml/manual/policy_data_structures.xml: Comment out stray
1541 <remark> elements. Fix formatting of bibliography references.
1543 2019-05-13 Edward Smith-Rowland <3dw4rd@verizon.net>
1545 * doc/xml/manual/status_cxx2020.xml: Document P0811R3 status.
1547 2019-05-13 Jonathan Wakely <jwakely@redhat.com>
1549 Remove Profile Mode, deprecated since 7.1.0
1550 * doc/Makefile.am: Remove XML file for profile mode docs.
1551 * doc/Makefile.in: Regenerate.
1552 * doc/xml/authors.xml: Remove authors of profile mode docs.
1553 * doc/xml/manual/appendix_contributing.xml: Remove mention of profile
1555 * doc/xml/manual/debug.xml: Likewise.
1556 * doc/xml/manual/evolution.xml: Document removal of profile mode.
1557 * doc/xml/manual/profile_mode.xml: Remove profile mode docs.
1558 * doc/xml/manual/spine.xml: Remove profile mode author credit.
1559 * doc/xml/manual/test.xml: Remove docs for dg-require-profile-mode
1561 * doc/xml/manual/using.xml: Remove docs for profile mode headers and
1563 * doc/html/*: Regenerate.
1564 * include/Makefile.am: Remove profile mode headers.
1565 * include/Makefile.in: Regenerate.
1566 * include/bits/c++config (std::__profile): Remove namespace.
1567 [_GLIBCXX_PROFILE]: Remove checks for macro.
1568 * include/profile/array: Remove.
1569 * include/profile/base.h: Remove.
1570 * include/profile/bitset: Remove.
1571 * include/profile/deque: Remove.
1572 * include/profile/forward_list: Remove.
1573 * include/profile/impl/profiler.h: Remove.
1574 * include/profile/impl/profiler_algos.h: Remove.
1575 * include/profile/impl/profiler_container_size.h: Remove.
1576 * include/profile/impl/profiler_hash_func.h: Remove.
1577 * include/profile/impl/profiler_hashtable_size.h: Remove.
1578 * include/profile/impl/profiler_list_to_slist.h: Remove.
1579 * include/profile/impl/profiler_list_to_vector.h: Remove.
1580 * include/profile/impl/profiler_map_to_unordered_map.h: Remove.
1581 * include/profile/impl/profiler_node.h: Remove.
1582 * include/profile/impl/profiler_state.h: Remove.
1583 * include/profile/impl/profiler_trace.h: Remove.
1584 * include/profile/impl/profiler_vector_size.h: Remove.
1585 * include/profile/impl/profiler_vector_to_list.h: Remove.
1586 * include/profile/iterator_tracker.h: Remove.
1587 * include/profile/list: Remove.
1588 * include/profile/map: Remove.
1589 * include/profile/map.h: Remove.
1590 * include/profile/multimap.h: Remove.
1591 * include/profile/multiset.h: Remove.
1592 * include/profile/ordered_base.h: Remove.
1593 * include/profile/set: Remove.
1594 * include/profile/set.h: Remove.
1595 * include/profile/unordered_base.h: Remove.
1596 * include/profile/unordered_map: Remove.
1597 * include/profile/unordered_set: Remove.
1598 * include/profile/vector: Remove.
1599 * scripts/run_doxygen: Do not process profile mode headers.
1600 * testsuite/23_containers/array/element_access/60497.cc: Don't use
1602 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
1603 Remove dg-skip-if for profile mode.
1604 * testsuite/23_containers/forward_list/capacity/1.cc: Remove
1605 preprocessor check for profile mode.
1606 * testsuite/23_containers/list/capacity/29134.cc: Likewise.
1607 * testsuite/23_containers/map/modifiers/extract.cc: Remove dg-skip-if
1609 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
1611 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
1612 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
1613 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
1614 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
1615 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
1617 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc:
1619 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc:
1621 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
1623 * testsuite/23_containers/vector/bool/capacity/29134.cc: Remove
1624 preprocessor check for profile mode.
1625 * testsuite/23_containers/vector/bool/modifiers/insert/31370.cc:
1627 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
1628 Remove dg-skip-if for profile mode.
1629 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
1630 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
1631 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
1632 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
1633 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
1634 * testsuite/Makefile.am: Remove profile_flags variable and
1635 * testsuite/Makefile.am: Remove profile_flags variable and
1636 check-profile target.
1637 * testsuite/Makefile.in: Regenerate.
1638 * testsuite/ext/profile/all.cc: Remove.
1639 * testsuite/ext/profile/mutex_extensions_neg.cc: Remove.
1640 * testsuite/ext/profile/profiler_algos.cc: Remove.
1641 * testsuite/ext/profile/replace_new.cc: Remove.
1642 * testsuite/ext/throw_allocator/deallocate_global.cc: Remove
1643 preprocessor check for profile mode.
1644 * testsuite/ext/throw_allocator/deallocate_local.cc: Likewise.
1645 * testsuite/lib/libstdc++.exp (check_v3_target_profile_mode): Remove.
1646 (check_v3_target_normal_mode): Do not check for profile mode macro.
1647 * testsuite/libstdc++-prettyprinters/80276.cc: Remove dg-skip-if for
1649 * testsuite/libstdc++-prettyprinters/compat.cc: Likewise.
1650 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
1651 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
1652 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
1653 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
1654 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
1655 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
1656 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
1657 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1658 * testsuite/libstdc++-prettyprinters/whatis2.cc: Likewise.
1660 Remove array_allocator extension, deprecated since 4.9.0
1661 * doc/xml/manual/allocator.xml: Remove documentation for
1663 * doc/xml/manual/evolution.xml: Document array_allocator removal.
1664 * doc/xml/manual/using.xml: Remove header from documentation.
1665 * include/Makefile.am: Remove <ext/array_allocator.h> header.
1666 * include/Makefile.in: Regenerate.
1667 * include/ext/array_allocator.h: Remove.
1668 * include/precompiled/extc++.h: Do not include removed header.
1669 * testsuite/ext/array_allocator/1.cc: Remove.
1670 * testsuite/ext/array_allocator/2.cc: Remove.
1671 * testsuite/ext/array_allocator/26875.cc: Remove.
1672 * testsuite/ext/array_allocator/3.cc: Remove.
1673 * testsuite/ext/array_allocator/check_deallocate_null.cc: Remove.
1674 * testsuite/ext/array_allocator/check_delete.cc: Remove.
1675 * testsuite/ext/array_allocator/check_new.cc: Remove.
1676 * testsuite/ext/array_allocator/variadic_construct.cc: Remove.
1677 * testsuite/ext/headers.cc: Do not include removed header.
1679 2019-05-11 François Dumont <fdumont@gcc.gnu.org>
1681 * include/bits/stl_bvector.h
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 (operator<=(const _Bit_iterator_base&, const _Bit_iterator_base&)):
1692 (operator>=(const _Bit_iterator_base&, const _Bit_iterator_base&)):
1694 (operator-(const _Bit_iterator_base&, const _Bit_iterator_base&)):
1696 (_Bit_iterator::operator+(difference_type)): Likewise and allow NRVO
1698 (_Bit_iterator::operator-(difference_type)): Likewise.
1699 (operator+(ptrdiff_t, const _Bit_iterator&)): Make hidden friend.
1700 (_Bit_const_iterator::operator+(difference_type)): Likewise and allow
1702 (_Bit_const_iterator::operator-(difference_type)): Likewise.
1703 (operator+(ptrdiff_t, const _Bit_const_iterator&)): Make hidden friend.
1705 2019-05-10 Jonathan Wakely <jwakely@redhat.com>
1708 * testsuite/util/thread/all.h: Do not use remove_pointer for
1709 std::thread::native_handle_type.
1712 * include/std/variant (_Variant_storage<false, Types...>::_M_storage())
1713 (_Variant_storage<true, Types...>::_M_reset()))
1714 (_Variant_storage<true, Types...>::_M_storage())): Add noexcept.
1715 (__get_storage): Likewise.
1716 (variant): Add noexcept to friend declarations for __get and
1720 * include/bits/unique_ptr.h (default_delete, default_delete<T[]>):
1721 Use _Require for constraints.
1722 (operator>(nullptr_t, const unique_ptr<T,D>&)): Implement exactly as
1724 (__uniq_ptr_hash): New base class with conditionally-disabled call
1726 (hash<unique_ptr<T,D>>): Derive from __uniq_ptr_hash.
1727 * testsuite/20_util/default_delete/48631_neg.cc: Adjust dg-error line.
1728 * testsuite/20_util/unique_ptr/hash/90388.cc: New test.
1730 * include/bits/shared_ptr.h: Improve docs.
1731 * include/bits/shared_ptr_base.h: Likewise.
1732 * include/bits/stl_uninitialized.h: Likewise.
1733 * include/bits/unique_ptr.h: Likewise.
1734 * libsupc++/new: Likewise.
1736 2019-05-09 François Dumont <fdumont@gcc.gnu.org>
1738 * include/bits/stl_deque.h
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 (operator<=(const _Deque_iterator<>&, const _Deque_iterator<>&)):
1747 (operator>(const _Deque_iterator<>&, const _Deque_iterator<>&)):
1749 (operator>=(const _Deque_iterator<>&, const _Deque_iterator<>&)):
1751 (_Deque_iterator<>::operator+(difference_type)): Likewise and allow NRVO
1753 (_Deque_iterator<>::operator-(difference_type)): Likewise.
1755 2019-05-08 François Dumont <fdumont@gcc.gnu.org>
1758 * testsuite/23_containers/unordered_multiset/insert/24061-multiset.cc
1759 (test01): Reserve for number of insertions to avoid rehash during test.
1760 * testsuite/23_containers/unordered_multimap/insert/24061-multimap.cc
1762 * testsuite/23_containers/unordered_multimap/insert/24061-multimap.cc
1767 2019-05-08 Jonathan Wakely <jwakely@redhat.com>
1769 * include/experimental/bits/fs_path.h: Improve docs.
1770 * include/experimental/bits/net.h: Fix wrong header name in comment.
1771 Do not document implementation details.
1772 * include/experimental/netfwd: Fix doxygen grouping.
1774 2019-05-07 Jonathan Wakely <jwakely@redhat.com>
1776 * include/bits/stl_pair.h: Improve docs.
1777 * include/std/tuple: Likewise.
1779 * doc/doxygen/doxygroups.cc (std::literals): Add documentation for
1781 * include/std/chrono: Improve docs.
1782 * include/std/ratio: Do not document implementation details.
1783 * testsuite/20_util/ratio/cons/cons_overflow_neg.cc: Adjust dg-error
1785 * testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Likewise.
1788 * doc/xml/manual/intro.xml: Document DR 2408 and 2465 changes.
1789 * include/std/chrono (__duration_common_type_wrapper): Replace with ...
1790 (__duration_common_type): New helper.
1791 (common_type<chrono::duration<R1, P2>, chrono::duration<R2, P2>>): Use
1792 __duration_common_type.
1793 (__timepoint_common_type_wrapper): Replace with ...
1794 (__timepoint_common_type): New helper.
1795 (common_type<chrono::time_point<C, D2>, chrono::time_point<C, D2>>):
1796 Use __time_point_common_type.
1797 * include/std/type_traits (common_type<>): Define, as per LWG 2408.
1798 (__common_type_impl): If either argument is transformed by decay,
1799 use the common_type of the decayed types.
1800 (__common_type_impl<_Tp, _Up, _Tp, _Up>): If the types are already
1801 decayed, use __do_common_type_impl to get the common_type.
1802 (common_type<_Tp>): Use common_type<_Tp, _Tp>.
1803 (__do_member_type_wrapper, __member_type_wrapper)
1804 (__expanded_common_type_wrapper): Remove.
1805 (__common_type_pack, __common_type_fold): New helpers.
1806 (common_type<_Tp, _Up, _Vp...>): Use new helpers instead of
1807 __member_type_wrapper and __expanded_common_type_wrapper.
1808 * testsuite/20_util/common_type/requirements/explicit_instantiation.cc:
1809 Test zero-length template argument list.
1810 * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc:
1811 Test single argument cases and argument types that should decay.
1812 * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc:
1813 Adjust expected error.
1814 * testsuite/20_util/duration/literals/range_neg.cc: Use zero for
1816 * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise.
1817 * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
1818 * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
1820 * doc/xml/manual/intro.xml: Fix DR 2537 and DR 2566 confusion.
1822 2019-05-01 Nina Dinka Ranns <dinka.ranns@gmail.com>
1824 Make allocator propagation more consistent for
1825 operator+(basic_string) (P1165R1)
1826 * include/bits/basic_string.h
1827 (operator+(basic_string&&, basic_string&&): Changed resulting
1828 allocator to always be the one from the first parameter.
1829 * include/bits/basic_string.tcc
1830 (operator+(const _CharT*, const basic_string&)): Changed
1831 resulting allocator to be SOCCC on the second parameter's allocator.
1832 (operator+(_CharT, const basic_string&)): Likewise.
1833 * testsuite/21_strings/basic_string/allocator/char/operator_plus.cc:
1835 * testsuite/21_strings/basic_string/allocator/wchar_t/operator_plus.cc:
1838 2019-05-07 Jonathan Wakely <jwakely@redhat.com>
1840 * include/bits/regex.h: Improve docs.
1841 * include/bits/regex.tcc: Do not document implementation details.
1843 * testsuite/19_diagnostics/error_code/hash.cc: New test.
1845 2019-05-06 François Dumont <fdumont@gcc.gnu.org>
1847 * python/libstdcxx/v6/printers.py (add_one_template_type_printer):
1848 Add type printer for container types in std::__debug namespace.
1849 * testsuite/lib/gdb-test.exp (whatis-regexp-test): New.
1850 (gdb-tests): Use distinct parameters for the type of test and use of
1852 (gdb-test): Check for regex test even if 'whatis' test.
1853 * testsuite/libstdc++-prettyprinters/80276.cc: Adapt for _GLIBCXX_DEBUG
1855 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
1856 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
1857 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
1858 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
1859 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
1860 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1861 * testsuite/libstdc++-prettyprinters/whatis2.cc: Likewise.
1863 2019-05-04 Jonathan Wakely <jwakely@redhat.com>
1865 * include/std/system_error (error_category): Fix comment.
1868 * src/c++17/fs_ops.cc (absolute(const path&)): Report an error if the
1869 argument is an empty path.
1870 (absolute(const path&, error_code&)): Use invalid_argument as error
1871 code instead of no_such_file_or_directory.
1872 * testsuite/27_io/filesystem/operations/absolute.cc: Check handling
1873 of non-existent paths and empty paths with both overloads of absolute.
1875 * include/std/system_error (error_category, error_code)
1876 (error_condition): Improve docs.
1877 * libsupc++/exception: Add missing @addtogroup Doxygen command.
1878 * libsupc++/exception_ptr.h (exception_ptr): Link equality operators
1879 to class documentation. Suppress documentation for implementation
1881 * libsupc++/nested_exception.h (throw_with_nested, rethrow_if_nested):
1882 Suppress documentation for implementation details.
1884 * include/std/system_error (error_code): Remove friend declaration
1885 for hash<error_code>.
1886 (hash<error_code>::operator()): Use public member functions to access
1888 (hash<error_condition>::operator()): Use address of category, not
1889 its object representation.
1890 * src/c++11/compatibility-c++0x.cc (hash<error_code>::operator()):
1891 Use public member functions to access value and category.
1892 * testsuite/19_diagnostics/error_condition/hash.cc: New test.
1894 2019-05-04 François Dumont <fdumont@gcc.gnu.org>
1896 * include/bits/hashtable.h (_Hashtable<>::rehash): Review comment.
1897 * include/bits/hashtable_policy.h
1898 (_Prime_rehash_policy::_M_bkt_for_elements): Use __builtin_ceill.
1899 (_Power2_rehash_policy::_M_bkt_for_elements): Likewise.
1900 (_Power2_rehash_policy::_M_next_bkt): Enforce returning a result not
1901 smaller than input value rather than always greater. Preserve
1902 _M_next_resize if called with 0 input. Use __builtin_floorl.
1903 (_Power2_rehash_policy::_M_need_rehash): Rehash only if number of
1904 elements + number of insertions is greater than _M_next_resize. Start
1905 with 11 buckets if not told otherwise. Use __builtin_floorl.
1906 (_Rehash_base<>::reserve): Use rehash policy _M_bkt_for_elements.
1907 * src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt):
1908 Preserve _M_next_resize if called with 0 input. Use __builtin_floorl.
1909 (_Prime_rehash_policy::_M_need_rehash): Start with 11 buckets if not
1910 told otherwise. Use __builtin_floorl.
1911 * testsuite/23_containers/unordered_set/hash_policy/71181.cc: Adapt test
1912 to also validate _Power2_rehash_policy.
1913 * testsuite/23_containers/unordered_set/hash_policy/power2_rehash.cc:
1916 2019-05-03 Jonathan Wakely <jwakely@redhat.com>
1919 * testsuite/26_numerics/complex/proj.cc: Don't assume <cmath> defines
1923 * include/ext/numeric_traits.h (__glibcxx_min): Avoid integer
1924 overflow warning with -Wpedantic -Wsystem-headers.
1926 2019-05-02 Jonathan Wakely <jwakely@redhat.com>
1929 * include/bits/c++config (_GLIBCXX_NOEXCEPT_IF): Use variadic macro.
1930 * include/bits/move.h (swap): Remove extra parentheses.
1932 * include/experimental/bits/lfts_config.h: Improve doc markup.
1933 * include/experimental/optional: Improve docs.
1934 (_Has_addressof_mem, _Has_addressof_free, _Has_addressof)
1935 (__constexpr_addressof): Remove.
1936 (optional::operator->()): Use std::__addressof().
1937 * include/std/optional (optional::operator->()): Adjust whitespace.
1938 * testsuite/experimental/optional/constexpr/observers/2.cc: Check
1939 that operator-> is still constexpr with overloaded operator&. Change
1940 to compile-only test.
1941 * testsuite/experimental/optional/constexpr/observers/3.cc: Change to
1944 * include/bits/shared_ptr.h: Improve docs.
1945 * include/bits/shared_ptr_atomic.h: Likewise.
1946 * include/bits/unique_ptr.h: Likewise. Adjust whitespace.
1948 * include/bits/basic_string.h: Fix iterator/index confusion in
1950 * include/bits/range_access.h: Fix Doxygen warnings.
1951 * include/bits/refwrap.h: Do not document implementation details.
1952 (ref, cref): Group docs with reference_wrapper.
1953 * include/std/fstream: Fix Doxygen markup.
1954 * libsupc++/initializer_list (begin, end): Group docs with
1957 * doc/doxygen/user.cfg.in: Set MARKDOWN_SUPPORT=YES.
1959 * include/bits/unique_lock.h: Fix/improve doxygen markup.
1960 * include/std/mutex: Likewise.
1961 * include/std/shared_mutex: Likewise.
1963 * include/bits/fs_dir.h: Fix/improve doxygen markup.
1964 * include/bits/fs_fwd.h: Likewise.
1965 * include/bits/fs_ops.h: Likewise.
1966 * include/bits/fs_path.h: Likewise.
1967 * include/std/filesystem: Likewise.
1969 * include/experimental/bits/net.h: Fix/improve doxygen markup.
1970 * include/experimental/buffer: Likewise.
1971 * include/experimental/executor: Likewise.
1972 * include/experimental/internet: Likewise.
1973 * include/experimental/io_context: Likewise.
1974 * include/experimental/net: Likewise.
1975 * include/experimental/netfwd: Likewise.
1976 * include/experimental/socket: Likewise.
1977 * include/experimental/timer: Likewise.
1979 * doc/doxygen/doxygroups.cc: Move description of experimental group
1981 * include/experimental/algorithm: Add to libfund-ts doc group.
1982 * include/experimental/any: Likewise. Do not document implementation
1984 * include/experimental/array: Add to libfund-ts doc group.
1985 * include/experimental/bits/lfts_config.h: Define libfund-ts doc group
1986 for Library Fundamentals.
1987 * include/experimental/chrono: Add to libfund-ts doc group.
1988 * include/experimental/deque: Likewise.
1989 * include/experimental/forward_list: Likewise.
1990 * include/experimental/functional: Likewise.
1991 * include/experimental/iterator: Likewise.
1992 * include/experimental/list: Likewise.
1993 * include/experimental/map: Likewise.
1994 * include/experimental/memory: Likewise.
1995 * include/experimental/memory_resource: Likewise. Improve docs.
1997 * include/experimental/numeric: Add to libfund-ts doc group.
1998 * include/experimental/optional: Likewise.
1999 * include/experimental/propagate_const: Likewise.
2000 * include/experimental/random: Likewise.
2001 * include/experimental/ratio: Likewise.
2002 * include/experimental/regex: Likewise.
2003 * include/experimental/set: Likewise.
2004 * include/experimental/source_location: Likewise.
2005 * include/experimental/string: Likewise.
2006 * include/experimental/string_view: Likewise.
2007 * include/experimental/system_error: Likewise.
2008 * include/experimental/tuple: Likewise.
2009 * include/experimental/type_traits: Likewise.
2010 * include/experimental/unordered_map: Likewise.
2011 * include/experimental/unordered_set: Likewise.
2012 * include/experimental/utility: Likewise.
2013 * include/experimental/vector: Likewise.
2014 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
2015 * testsuite/experimental/array/neg.cc: Adjust dg-error.
2016 * testsuite/experimental/propagate_const/assignment/move_neg.cc:
2018 * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
2019 * testsuite/experimental/propagate_const/requirements2.cc: Likewise.
2020 * testsuite/experimental/propagate_const/requirements3.cc: Likewise.
2021 * testsuite/experimental/propagate_const/requirements4.cc: Likewise.
2022 * testsuite/experimental/propagate_const/requirements5.cc: Likewise.
2024 * include/experimental/bits/fs_dir.h: Fix Doxygen markup.
2025 * include/experimental/bits/fs_fwd.h: Improve docs.
2026 * include/experimental/bits/fs_ops.h: fix Doxygen markup.
2027 * include/experimental/bits/fs_path.h: Likewise.
2028 (path, filesystem_error, u8path): Improve docs.
2029 * include/experimental/filesystem: Link to docs for TS.
2031 * config/allocator/new_allocator_base.h (__allocator_base): Add
2032 workaround for Doxygen bug #6945.
2033 * include/std/memory: Improve docs. Define group for pointer safety.
2034 * include/std/scoped_allocator: Improve docs. Use "undocumented"
2035 conditional to suppress documentation for implementation details.
2037 * include/bits/specfun.h: Improve docs.
2038 * include/tr1/cmath: Likewise. Fix nesting of preprocessor conditions
2041 * doc/doxygen/doxygroups.cc (std::tr2, std::__gnu_cxx): Improve docs.
2042 (std::experimental): Add docs.
2043 * doc/doxygen/user.cfg.in (PREDEFINED): Expand macros for __cxx11
2044 namespace to nothing when generating docs.
2045 * include/bits/regex_constants.h (std::regex_constants): Improve docs.
2046 * include/std/chrono (std::chrono): Likewise.
2047 * include/std/functional (std::placeholders): Likewise.
2048 * include/std/thread (std::this_thread): Likewise.
2050 * include/parallel/settings.h: Fix Doxygen markup.
2052 * include/ext/pb_ds/detail/bin_search_tree_/*_imps.hpp: Do not define
2053 anything unless PB_DS_CLASS_C_DEC is defined.
2054 * include/ext/pb_ds/detail/binary_heap_/*_imps.hpp: Likewise.
2055 * include/ext/pb_ds/detail/binomial_heap_/*_imps.hpp: Likewise.
2056 * include/ext/pb_ds/detail/binomial_heap_base_/*_imps.hpp: Likewise.
2057 * include/ext/pb_ds/detail/cc_hash_table_map_/*_imps.hpp: Likewise.
2058 * include/ext/pb_ds/detail/gp_hash_table_map_/*_imps.hpp: Likewise.
2059 * include/ext/pb_ds/detail/hash_fn/*_imp.hpp: Likewise.
2060 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/*_imps.hpp:
2062 * include/ext/pb_ds/detail/list_update_map_/*_imps.hpp: Likewise.
2063 * include/ext/pb_ds/detail/ov_tree_map_/*_imps.hpp: Likewise.
2064 * include/ext/pb_ds/detail/pairing_heap_/*_imps.hpp: Likewise.
2065 * include/ext/pb_ds/detail/pat_trie_/*_imps.hpp: Likewise.
2066 * include/ext/pb_ds/detail/rb_tree_map_/*_imps.hpp: Likewise.
2067 * include/ext/pb_ds/detail/rc_binomial_heap_/*_imps.hpp: Likewise.
2068 * include/ext/pb_ds/detail/resize_policy*_imp.hpp: Likewise.
2069 * include/ext/pb_ds/detail/splay_tree_/*_imps.hpp: Likewise.
2070 * include/ext/pb_ds/detail/thin_heap_/*_imps.hpp: Likewise.
2071 * include/ext/pb_ds/detail/trie_policy*_imp.hpp: Likewise.
2072 * include/ext/pb_ds/detail/unordered_iterator/const_iterator.hpp:
2074 * include/ext/pb_ds/detail/unordered_iterator/iterator.hpp: Likewise.
2075 * include/ext/pb_ds/detail/unordered_iterator/point_const_iterator.hpp:
2077 * include/ext/pb_ds/detail/unordered_iterator/point_iterator.hpp:
2080 * doc/doxygen/user.cfg.in: Regenerate with Doxygen 1.8.14 and set
2081 GROUP_NESTED_COMPOUNDS=YES and SORT_BY_SCOPE_NAME=NO. Add various
2082 _GLIBCXX_xxx macros and __attribute__(X) to PREDEFINED macros that
2085 2019-05-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2087 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: Regenerate.
2088 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: Likewise.
2089 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: Likewise.
2090 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: Likewise.
2091 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: Likewise.
2092 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
2094 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: Likewise.
2095 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
2098 2019-05-01 Jonathan Wakely <jwakely@redhat.com>
2101 * include/std/complex (__complex_proj): Return parameter unchanged.
2102 [_GLIBCXX_USE_C99_COMPLEX] (__complex_proj): Change overloads for
2103 floating-point types to take std::complex arguments.
2104 [_GLIBCXX_USE_C99_MATH_TR1] (__complex_proj): Add overloads for
2105 floating-point types.
2106 * testsuite/26_numerics/complex/proj.cc: New test.
2108 2019-04-30 Jakub Jelinek <jakub@redhat.com>
2110 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Change _Lock_policyE2 exports
2111 to _Lock_policyE[012].
2112 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
2114 2019-04-30 Jonathan Wakely <jwakely@redhat.com>
2116 * testsuite/27_io/filesystem/path/decompose/root_path.cc: Remove
2117 macros accidentally left in.
2118 * testsuite/27_io/filesystem/path/native/string-char8_t.cc: Remove
2119 unnecessary -lstdc++fs option. Fix test for mingw.
2120 * testsuite/experimental/filesystem/path/native/string-char8_t.cc:
2123 2019-04-30 Jakub Jelinek <jakub@redhat.com>
2125 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
2127 2019-04-29 Jonathan Wakely <jwakely@redhat.com>
2129 * include/bits/stl_algo.h (generate_n): Adjust doxygen comment.
2131 * include/bits/move.h (swap(T&, T&), swap(T (&)[N], T (&)[N])): Use
2132 _GLIBCXX_NOEXCEPT_IF to simplify declarations.
2135 * src/c++11/shared_ptr.cc (get_mutex): Align pool mutexes to 64 bytes.
2137 * include/bits/stl_bvector.h (vector<bool>::empty()): Add nodiscard
2140 * include/bits/stl_iterator_base_types.h (_Iter_base): Remove unused
2141 class template and partial specialization.
2144 * include/bits/stl_algo.h (generate_n): Convert _Size parameter to
2146 * include/bits/stl_algobase.h (__size_to_integer): New overloaded
2147 functions to convert a value to an integral type.
2148 (__fill_n_a, __fill_n_a): Assert that __n is already an integral type.
2149 (fill_n): Convert _Size parameter to an integral type.
2150 * testsuite/25_algorithms/fill_n/87982.cc: New test.
2151 * testsuite/25_algorithms/fill_n/87982_neg.cc: New test.
2152 * testsuite/25_algorithms/fill_n/dr426.cc: New test.
2153 * testsuite/25_algorithms/generate_n/87982.cc: New test.
2154 * testsuite/25_algorithms/generate_n/87982_neg.cc: New test.
2155 * testsuite/25_algorithms/generate_n/dr426.cc: New test.
2157 2019-04-28 Nina Dinka Ranns <dinka.ranns@gmail.com>
2159 Adding noexcept-specification on tuple constructors (LWG 2899)
2160 * libstdc++-v3/include/std/tuple:
2161 (tuple()): Add noexcept-specification.
2162 (tuple(const _Elements&...)): Likewise
2163 (tuple(_UElements&&...)): Likewise
2164 (tuple(const tuple<_UElements...>&)): Likewise
2165 (tuple(tuple<_UElements...>&&)): Likewise
2166 (tuple(const _T1&, const _T2&)): Likewise
2167 (tuple(_U1&&, _U2&&)): Likewise
2168 (tuple(const tuple<_U1, _U2>&): Likewise
2169 (tuple(tuple<_U1, _U2>&&): Likewise
2170 (tuple(const pair<_U1, _U2>&): Likewise
2171 (tuple(pair<_U1, _U2>&&): Likewise
2172 * libstdc++-v3/testsuite/20_util/tuple/cons/noexcept_specs.cc: New
2174 2019-04-27 Marc Glisse <marc.glisse@inria.fr>
2177 * include/bits/stl_uninitialized.h (__relocate_object_a): Mark the
2178 arguments with __restrict.
2180 2019-04-26 H.J. Lu <hongjiu.lu@intel.com>
2182 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
2184 2019-04-26 Jonathan Wakely <jwakely@redhat.com>
2186 * include/experimental/bits/fs_path.h
2187 (path::_S_convert_loc<_InputIterator>): Create const std::string to
2188 avoid redundant call to _S_convert_loc with non-const pointers.
2190 * testsuite/20_util/variant/run.cc: Use a new Hashable type to test
2191 hashing, because pmr::string depends on _GLIBCXX_USE_CXX11_ABI==1.
2192 * testsuite/21_strings/basic_string/hash/hash.cc
2193 [!_GLIBCXX_USE_CXX11_ABI]: Don't test pmr strings.
2194 * testsuite/21_strings/basic_string/hash/hash_char8_t.cc
2195 [!_GLIBCXX_USE_CXX11_ABI]: Likewise.
2197 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Replace wildcard that matches
2198 wstring::_M_replace_dispatch with more specific patterns.
2199 * include/bits/fs_path.h (path::_S_convert_loc<_InputIterator>):
2200 Create const std::string to avoid redundant call to _S_convert_loc
2201 with non-const pointers.
2202 * include/bits/locale_conv.h (__do_str_codecvt): Use if-constexpr to
2203 avoid unnecessary basic_string::assign instantiations.
2205 * include/std/memory (__uses_alloc_args): Add string-literal to
2206 static_assert, to match the one in __uses_alloc.
2207 [__cpp_concepts] (_Std_pair): Use C++2a syntax for concept.
2208 * testsuite/20_util/polymorphic_allocator/construct_c++2a.cc: Check
2209 for recursive uses-allocator construction of nested pairs.
2210 * testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc:: Add
2213 2019-04-26 Jakub Jelinek <jakub@redhat.com>
2215 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Update.
2216 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
2217 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
2218 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
2220 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
2221 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
2222 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
2223 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
2224 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
2225 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
2226 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
2228 2019-04-25 Jonathan Wakely <jwakely@redhat.com>
2231 * doc/xml/manual/status_cxx2020.xml: Amend P0591R4 status.
2232 * include/std/scoped_allocator [__cplusplus > 201703L]
2233 (scoped_allocator_adaptor::construct): Define in terms of
2234 uses_allocator_construction_args, as per P0591R4.
2235 * testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc: New test.
2236 * testsuite/util/testsuite_allocator.h: Remove name of unused
2239 2019-04-24 Jonathan Wakely <jwakely@redhat.com>
2241 * doc/xml/manual/status_cxx2017.xml: Document P0024R2 status.
2242 * doc/html/*: Regenerate.
2244 * include/bits/fs_path.h (operator<, operator<=, operator>)
2245 (operator>=, operator==, operator!=): Make hidden friends, as per
2247 * testsuite/27_io/filesystem/path/native/string-char8_t.cc: Fix
2248 string type in test.
2249 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
2251 * include/std/any (any::any(ValueType&&)): Use __and_v.
2252 * include/std/numeric (midpoint(T, T, T), midpoint(T*, T*, T*)):
2255 * include/std/tuple (apply): Use remove_reference_t instead of decay_t
2257 * include/std/type_traits (__result_of_memfun): Use remove_reference
2258 instead of __remove_cvref_t and remove redundant is_same check.
2259 (__inv_unwrap): Use __remove_cvref_t instead of decay_t.
2261 * include/experimental/string_view (basic_string_view::pointer)
2262 (basic_string_view::reference): Fix to refer to non-const value_type.
2263 * include/bits/basic_string.h (basic_string): Use __sv_check and
2264 __sv_limit instead of basic_string_view::_M_check and
2265 basic_string_view::_M_limit.
2266 * include/std/string_view (__sv_check, __sv_limit): New
2267 helper functions to replace basic_string_view::_M_check and
2268 basic_string_view::_M_limit.
2269 (basic_string_view): Add static assertions to enforce ill-formed
2270 requirement for traits_type::char_type from P1148R0, and to enforce
2271 required properties of char-like types.
2272 (basic_string_view::pointer, basic_string_view::reference): Fix to
2273 refer to non-const value_type.
2274 (basic_string_view::operator[], basic_string_view::at)
2275 (basic_string_view::front, basic_string_view::back)
2276 (basic_string_view::data): Use const_reference and const_pointer
2277 typedefs for return types.
2278 (basic_string_view::_M_check, basic_string_view::_M_limit): Remove.
2279 (hash<wstring_view>): Fix argument_type typedef.
2280 * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
2281 char/1.cc: Fix expected return type of basic_string_view::data().
2282 * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
2283 wchar_t/1.cc: Likewise.
2284 * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
2285 char/1.cc: Likewise.
2286 * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
2287 wchar_t/1.cc: Likewise.
2288 * testsuite/21_strings/basic_string_view/requirements/traits_neg.cc:
2290 * testsuite/21_strings/basic_string_view/requirements/typedefs.cc:
2291 Check reference and pointer typedefs.
2292 * testsuite/experimental/string_view/requirements/typedefs.cc:
2294 * testsuite/experimental/string_view/modifiers/remove_prefix/char/1.cc:
2295 Fix expected return type of basic_string_view::data().
2296 * testsuite/experimental/string_view/modifiers/remove_prefix/wchar_t/
2298 * testsuite/experimental/string_view/modifiers/remove_suffix/char/1.cc:
2300 * testsuite/experimental/string_view/modifiers/remove_suffix/wchar_t/
2304 * include/std/any (__any_caster): Use remove_cv_t instead of decay_t.
2305 Avoid a runtime check for types that can never be stored in std::any.
2306 * testsuite/20_util/any/misc/any_cast.cc: Test std::any_cast with
2309 PR libstdc++/90220 (partial)
2310 * include/std/any (any_cast<T>(any*), any_cast<T>(const any*)): Do
2311 not attempt ill-formed static_cast to pointers to non-object types.
2312 * testsuite/20_util/any/misc/any_cast.cc: Test std::any_cast with
2315 * testsuite/20_util/variant/run.cc: Catch exception by reference to
2316 prevent -Wcatch-value warning.
2318 * include/std/variant (__variant_construct): Use template parameter
2319 type instead of equivalent decltype-specifier.
2320 (_Move_ctor_base<false, Types...>::_Move_ctor_base(_Move_ctor_base&&)):
2321 Replace forward with move.
2322 (_Move_ctor_base<false, Types...>::_M_destructive_move)
2323 (_Move_ctor_base<false, Types...>::_M_destructive_copy)
2324 (_Move_ctor_base<true, Types...>::_M_destructive_move)
2325 (_Move_ctor_base<true, Types...>::_M_destructive_copy): Only set the
2326 index after construction succeeds.
2327 (_Copy_assign_base<false, Types...>::operator=): Remove redundant
2328 if-constexpr checks that are always true. Use __remove_cvref_t instead
2329 of remove_reference so that is_nothrow_move_constructible check
2330 doesn't use a const rvalue parameter. In the potentially-throwing case
2331 construct a temporary and move assign it, as per LWG 2904.
2332 (_Move_assign_base<false, Types...>::operator=): Remove redundant
2333 if-constexpr checks that are always true. Use emplace as per LWG 2904.
2334 (variant::operator=(T&&)): Only use emplace conditionally, otherwise
2335 construct a temporary and move assign from it, as per LWG 2904.
2336 * testsuite/20_util/variant/exception_safety.cc: Check that
2337 assignment operators have strong exception safety guarantee.
2339 2019-04-23 Thomas Rodgers <trodgers@redhat.com>
2341 Document PSTL linker flags
2343 * doc/xml/manual/using.xml: Add PSTL linker flags to table 3.1.
2345 2019-04-23 Jonathan Wakely <jwakely@redhat.com>
2347 * include/std/variant (__detail::__variant::_Traits): Make
2348 _S_trivial_copy_assign depend on _S_trivial_copy_ctor and make
2349 _S_trivial_move_assign depend on _S_trivial_move_ctor, as per
2351 (__detail::__variant::_Copy_assign_alias): Only depend on
2352 _S_trivial_copy_assign, which subsumes _S_trivial_copy_ctor now.
2353 * testsuite/20_util/variant/compile.cc: Correct checks for trivial
2354 move assignment operators.
2357 * include/std/variant (variant::__not_self): New helper for the
2358 is_same_v<remove_cvref_t<T>, variant>==false constraints.
2359 (variant::__to_type_impl): Remove.
2360 (variant::__to_type): Add default argument to check pack size, instead
2361 of using __to_type_impl.
2362 (variant::__accepted_type): Add default argument using __not_self.
2363 (variant::__is_in_place_tag, variant::__not_in_place_tag): New helpers
2364 for variant(T&&) constructor constraint.
2365 (variant::variant(T&&)): Use __not_in_place_tag in constraints.
2366 Extract __accepted_type into a named template parameter for reuse in
2367 other constraints and in the exception specification.
2368 (variant::variant(in_place_type_t<T>, Args&&...))
2369 (variant::variant(in_place_type_t<T>, initializer_list<U>, Args&&...))
2370 (variant::variant(in_place_index_t<T>, Args&&...))
2371 (variant::variant(in_place_index_t<T>, initializer_list<U>, Args&&...))
2372 (variant::operator=T&&)): Remove redundant && from trait arguments.
2373 * testsuite/20_util/variant/compile.cc: Check variant(T&&) constructor
2374 isn't used for in_place_type or in_place_index arguments.
2376 * include/std/type_traits (unwrap_reference_t): Define for C++2a.
2377 (unwrap_ref_decay): Remove inheritance from unwrap_reference.
2378 * testsuite/20_util/unwrap_reference/1.cc: Adjust test to use alias.
2380 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2381 Bernd Edlinger <bernd.edlinger@hotmail.de>
2382 Jakub Jelinek <jakub@redhat.com>
2385 * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Add
2386 general-regs-only target attribute for ARM.
2388 2019-04-23 Jonathan Wakely <jwakely@redhat.com>
2391 * include/bits/basic_string.h (_Never_valueless_alt): Make partial
2392 specialization also depend on is_nothrow_move_constructible.
2393 * include/std/variant (__detail::__variant::__never_valueless()):
2394 Only true if the variant would have a move assignment operator.
2395 (__detail::__variant::_Variant_storage<false, T...>::_M_valid()):
2396 Check __never_valueless<T...>().
2397 (variant::emplace): Only perform non-throwing move assignments
2398 for never-valueless alternatives if the variant has a move assignment
2400 * testsuite/20_util/variant/compile.cc: Check that never-valueless
2401 types can be emplaced into non-assignable variants.
2402 * testsuite/20_util/variant/run.cc: Check that never-valueless types
2403 don't get copied when emplaced into non-assignable variants.
2405 * include/std/variant (__detail::__variant::__ref_cast): Remove
2407 (__detail::__variant::_Uninitialized::_M_get)
2408 (__detail::__variant::__get)
2409 (__gen_vtable_impl::__element_by_index_or_cookie): Add noexcept.
2411 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
2413 * testsuite/17_intro/headers/c++1998/charset.cc: Skip for Darwin8
2415 * testsuite/17_intro/headers/c++2011/charset.cc: Likewise.
2416 * testsuite/17_intro/headers/c++2014/charset.cc: Likewise.
2417 * testsuite/17_intro/headers/c++2017/charset.cc: Likewise.
2418 * testsuite/17_intro/headers/c++2020/charset.cc: Likewise.
2420 2019-04-20 Thomas Rodgers <trodgers@redhat.com>
2422 Delegate PSTL configuration to pstl/pstl_config.h
2424 * include/bits/c++config: Remove explicit PSTL configuration
2425 macros and use definitions from <pstl/pstl_config.h>.
2427 2019-04-20 Thomas Rodgers <trodgers@redhat.com>
2429 Cleanup algorithm implementations
2430 * include/pstl/glue_algorithm_impl.h (stable_sort): Forward
2432 (mismatch): Forward execution policy.
2433 (equal): Qualify call to std::equal().
2434 (partial_sort): Forward execution policy.
2435 (inplace_merge): Forward execution policy.
2437 2019-04-19 Thomas Rodgers <trodgers@redhat.com>
2439 Improve implementation of parallel equal()
2440 * include/pstl/algorithm_impl.h
2441 (__internal::__brick_equal): use "4 iterator" version of
2443 (__internal::__brick_equal): use simd for random access
2444 iterators on unsequenced execution policies.
2445 (__internal::__pattern_equal): add "4 iterator" version
2446 (__internal::__pattern_equal): dispatch to simd __brick_equal
2447 for vector-only execution policies.
2448 (__internal::__pattern_equal): dispatch to __parallel_or for
2449 parallel execution policies.
2450 * include/pstl/glue_algorithm_impl.h
2451 (std::equal): dispatch to "4 iterator" version of
2452 __internal::__pattern_equal().
2454 2019-04-17 Jonathan Wakely <jwakely@redhat.com>
2457 * include/bits/forward_list.h (operator==): Do not use operator!= to
2459 (forward_list<T, A>::sort(Comp)): When elements are equal take the one
2460 earlier in the list, so that sort is stable.
2461 * testsuite/23_containers/forward_list/operations/90105.cc: New test.
2462 * testsuite/23_containers/forward_list/comparable.cc: Test with
2463 types that meet the minimum EqualityComparable and LessThanComparable
2464 requirements. Remove irrelevant comment.
2466 * include/std/variant (__detail::__variant::_Traits::_S_copy_assign):
2467 Do not depend on whether all alternative types are move constructible.
2468 (__detail::__variant::_Copy_assign_base::operator=): Remove cv-quals
2469 from the operand when deciding whether to perform the assignment.
2470 * testsuite/20_util/variant/compile.cc (DeletedMoves): Define type
2471 with deleted move constructor and deleted move assignment operator.
2472 (default_ctor, copy_ctor, move_ctor, copy_assign, move_assign): Check
2473 behaviour of variants with DeletedMoves as an alternative.
2474 * testsuite/20_util/variant/run.cc (DeletedMoves): Define same type.
2475 (move_ctor, move_assign): Check that moving a variant with a
2476 DeletedMoves alternative falls back to copying instead of moving.
2478 * testsuite/20_util/variant/compile.cc: Remove empty string literals
2479 from static_assert declarations.
2481 * testsuite/20_util/variant/compile.cc (MoveCtorOnly): Fix type to
2482 actually match its name.
2483 (MoveCtorAndSwapOnly): Define new type that adds swap to MoveCtorOnly.
2484 (test_swap()): Fix result for MoveCtorOnly and check
2485 MoveCtorAndSwapOnly.
2487 * include/std/optional (optional::value_or(U&&) &&): Add missing
2488 constexpr specifier.
2489 * testsuite/20_util/optional/constexpr/observers/4.cc: Check value_or
2490 for disengaged optionals and rvalue optionals.
2491 * testsuite/20_util/optional/observers/4.cc: Likewise.
2493 2019-04-12 Thomas Rodgers <trodgers@redhat.com>
2495 * include/pstl/algorithm_impl.h: Uglify identfiers.
2496 * include/pstl/numeric_impl.h: Uglify identfiers.
2497 * include/pstl/parallel_backend_tbb.h: Uglify identfiers.
2499 2019-04-11 Thomas Rodgers <trodgers@redhat.com>
2501 * include/bits/c++config:
2502 Add definition for __PSTL_ASSERT.
2503 Add definition for __PSTL_ASSERT_MSG.
2504 * include/pstl/algorithm_impl.h: Replace use of assert().
2505 * include/pstl/numeric_impl.h: Replace use of assert().
2506 * include/pstl/parallel_backend_tbb.h:
2507 Replace use of assert().
2508 Replace use of __TBB_ASSERT().
2509 * include/pstl/parallel_backend_utils.h: Replace use of assert().
2511 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
2514 * src/c++17/memory_resource.cc
2515 (monotonic_buffer_resource::_Chunk::allocate): Increase alignment if
2516 needed to allow placing a _Chunk at the end of the buffer.
2517 (monotonic_buffer_resource::_M_new_buffer): Remove static_assert.
2519 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
2521 * doc/xml/faq.xml: Add information about emergency EH pool.
2522 * doc/xml/manual/debug.xml: Update list of memory debugging tools.
2523 Move outdated information on mt_allocator to a separate section.
2524 * doc/xml/manual/evolution.xml: Clarify that GLIBCXX_FORCE_NEW
2525 doesn't affect the default allocator.
2527 * testsuite/lib/libstdc++.exp (check_v3_target_parallel_mode): Fix
2531 * testsuite/20_util/variant/89851.cc: New test.
2533 2019-04-09 Jonathan Wakely <jwakely@redhat.com>
2535 * include/std/variant: Adjust whitespace. Add comments.
2536 (_Multi_array): Leave primary template undefined.
2537 (_Multi_array<_Tp>): Define partial specialization for base case of
2539 (__gen_vtable_impl, __gen_vtable): Remove redundant && from type
2540 which is always a reference.
2541 (__gen_vtable::_S_apply()): Remove function, inline body into
2542 default member initializer.
2543 * testsuite/20_util/variant/visit.cc: Test with noncopyable types.
2545 * include/std/variant (__variant_idx_cookie): Add member type.
2546 (__visitor_result_type): Remove.
2547 (__do_visit): Use invoke_result instead of __visitor_result_type.
2548 * testsuite/20_util/variant/visit.cc: New test.
2551 * include/std/variant (_VARIANT_RELATION_FUNCTION_TEMPLATE): Remove
2553 * testsuite/20_util/variant/90008.cc: New test.
2555 2019-04-09 Thomas Rodgers <trodgers@redhat.com>
2557 * include/pstl/algorithm_impl.h: Add namespace qualification.
2558 * include/pstl/execution_defs.h: Add namespace qualification.
2559 * include/pstl/execution_impl.h: Add namespace qualification.
2560 * include/pstl/numeric_impl.h: Add namespace qualification.
2561 * include/pstl/parallel_backend_tbb.h: Add namespace qualification.
2562 * include/pstl/unseq_backend_simd.h: Add namespace qualification.
2563 * include/pstl/parallel_backend_utils.h: Include <cassert>.
2565 2019-04-08 Ville Voutilainen <ville.voutilainen@gmail.com>
2567 Fix visit<R> for variant.
2568 * include/std/variant (__do_visit): Add a template parameter
2569 for enforcing same return types for visit.
2570 (__gen_vtable_impl): Likewise.
2571 (_S_apply_single_alt): Adjust.
2572 (__visit_invoke_impl): New. Handle casting to void.
2573 (__do_visit_invoke): New. Enforces same return types.
2574 (__do_visit_invoke_r): New. Converts return types.
2575 (__visit_invoke): Adjust.
2576 (__gen_vtable): Add a template parameter for enforcing
2577 same return types for visit.
2578 * testsuite/20_util/variant/visit_r.cc: Add a test for a visitor with
2579 different return types.
2580 * testsuite/20_util/variant/visit_neg.cc: New. Ensures that
2581 visitors with different return types don't accidentally
2582 compile with regular visitation.
2584 2019-04-08 Christophe Lyon <christophe.lyon@linaro.org>
2586 * testsuite/27_io/filesystem/iterators/caching.cc: Add
2587 dg-require-filesystem-ts.
2589 2019-04-05 Jonathan Wakely <jwakely@redhat.com>
2591 * doc/xml/manual/status_cxx2020.xml: Update status.
2592 * include/std/variant (visit<R>): Define for C++2a (P0655R1).
2593 * testsuite/20_util/variant/visit_r.cc: New test.
2595 * include/bits/fs_dir.h (directory_iterator::operator*)
2596 (directory_iterator::operator->): Add noexcept.
2597 (operator==, operator!=): Replace namespace-scope equality operators
2598 for directory iterators with hidden friends.
2601 * config/abi/pre/gnu.ver: Add missing exports.
2602 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Test
2605 * config/abi/pre/gnu.ver: Export new symbols.
2606 * include/bits/fs_dir.h (recursive_directory_iterator::options())
2607 (recursive_directory_iterator::recursion_pending())
2608 (recursive_directory_iterator::disable_recursion_pending()): Remove
2609 inline definitions. Make noexcept.
2610 (recursive_directory_iterator::depth())
2611 (recursive_directory_iterator::operator*())
2612 (recursive_directory_iterator::operator->()): Make noexcept.
2613 (recursive_directory_iterator::_M_options)
2614 (recursive_directory_iterator::_M_pending): Remove data members.
2615 * src/c++17/fs_path.cc (_Dir_stack): Add constructor and data members.
2616 (recursive_directory_iterator::recursive_directory_iterator): Remove
2617 ctor-initializer. Use new constructor for _Dir_stack.
2618 (recursive_directory_iterator::options())
2619 (recursive_directory_iterator::recursion_pending())
2620 (recursive_directory_iterator::disable_recursion_pending()): Add
2621 non-inline definitions.
2622 (recursive_directory_iterator::depth()): Make noexcept.
2623 (recursive_directory_iterator::increment(error_code&))
2624 (recursive_directory_iterator::pop(error_code&)): Adjust to new
2625 location of options and recursion_pending members.
2626 * testsuite/27_io/filesystem/iterators/recursion_pending.cc: New test.
2627 * testsuite/util/testsuite_fs.h (__gnu_test::scoped_file): Add
2628 user-declared move constructor and assignment operator, to make the
2631 * src/c++17/fs_dir.cc (_Dir::advance(bool, error_code&)): Handle
2632 d_type == DT_UNKNOWN immediately.
2633 (_Dir::should_recurse(bool, error_code&)): Remove file_type::unknown
2635 * testsuite/27_io/filesystem/iterators/caching.cc: New test.
2637 * include/bits/fs_path.h (path::operator=(path&&)): Check for self
2639 * src/c++17/fs_path.cc (path::operator=(const path&)): Likewise.
2640 * testsuite/27_io/filesystem/path/assign/copy.cc: Test self
2643 PR libstdc++/87431 (again)
2644 * include/bits/basic_string.h (__variant::_Never_valueless_alt):
2645 Define partial specialization for basic_string.
2646 * include/bits/shared_ptr.h (_Never_valueless_alt): Likewise for
2647 shared_ptr and weak_ptr.
2648 * include/bits/std_function.h (_Never_valueless_alt): Likewise for
2650 * include/bits/stl_vector.h (_Never_valueless_alt): Likewise for
2652 * include/bits/unique_ptr.h (_Never_valueless_alt): Likewise for
2654 * include/debug/vector (_Never_valueless_alt): Likewise for debug
2656 * include/std/any (_Never_valueless_alt): Define explicit
2657 specialization for any.
2658 * include/std/variant (_Never_valueless_alt): Define primary template.
2659 (__never_valueless): Use _Never_valueless_alt instead of
2660 is_trivially_copyable.
2661 (variant::emplace<N>(Args&&...)): Add special case for non-throwing
2662 initializations to avoid try-catch overhead. Add special case for
2663 scalars produced by potentially-throwing conversions. Use
2664 _Never_valueless_alt instead of is_trivially_copyable for the
2665 remaining strong exception-safety cases.
2666 (variant::emplace<N>(initializer_list<U>, Args&&...)): Likewise.
2667 * testsuite/20_util/variant/87431.cc: Run both test functions.
2668 * testsuite/20_util/variant/exception_safety.cc: New test.
2669 * testsuite/20_util/variant/run.cc: Use pmr::string instead of string,
2670 so the variant becomes valueless.
2672 2019-04-03 Jonathan Wakely <jwakely@redhat.com>
2675 * include/std/variant (_Copy_assign_base, _Move_assign_base, variant):
2677 (variant::emplace<_Tp>): Return result of emplace<N> directly.
2679 * include/std/string (__hash_string_base): New class template defining
2680 operator() for hashing strings.
2681 (hash<pmr::string>, hash<pmr::u8string>, hash<pmr::u16string>)
2682 (hash<pmr::u32string>, hash<pmr::wstring>): Define for C++17.
2683 * testsuite/21_strings/basic_string/hash/hash.cc: New test.
2684 * testsuite/21_strings/basic_string/hash/hash_char8_t.cc: New test.
2686 2019-04-01 Ville Voutilainen <ville.voutilainen@gmail.com>
2688 Use single-visitation in variant assignment and swap and relops.
2689 Also use indices instead of types when checking whether
2690 variants hold the same thing.
2691 * include/std/variant (__do_visit): Add a template parameter
2692 for index visitation, invoke with indices if index visitation
2694 (__variant_idx_cookie): New.
2695 (__visit_with_index): Likewise.
2696 (_Copy_assign_base::operator=): Do single-visitation with
2698 (_Move_assign_base::operator=): Likewise.
2699 (_Extra_visit_slot_needed): Adjust.
2700 (__visit_invoke): Call with indices if it's an index visitor.
2701 (relops): Do single-visitation with an index visitor.
2703 (__visitor_result_type): New.
2705 2019-03-30 Eric Botcazou <ebotcazou@adacore.com>
2707 * src/c++17/fs_ops.cc (fs::permissions): Use std::errc::not_supported.
2709 2019-03-28 Ville Voutilainen <ville.voutilainen@gmail.com>
2711 Don't revisit a variant we are already visiting.
2712 * include/std/variant (__variant_construct_single): New.
2713 (__variant_construct): Use it.
2714 (_M_destructive_move): Likewise.
2715 (_M_destructive_copy): Likewise.
2716 (_Copy_assign_base::operator=): Adjust.
2717 (_Move_assign_base::operator=): Likewise.
2720 2019-03-26 Jonathan Wakely <jwakely@redhat.com>
2723 * include/bits/hashtable.h (_Hashtable): Move static assertions to
2724 destructor so they are not evaluated until the _Key type is complete.
2725 * include/bits/stl_tree.h (_Rb_tree): Likewise.
2726 * testsuite/23_containers/set/85965.cc: New test.
2727 * testsuite/23_containers/unordered_set/85965.cc: New test.
2728 * testsuite/23_containers/map/48101_neg.cc: Replace "here" errors
2729 with regexp matching the corresponding _Rb_tree specialization.
2730 * testsuite/23_containers/multimap/48101_neg.cc: Likewise.
2731 * testsuite/23_containers/multiset/48101_neg.cc: Remove "here" error.
2732 * testsuite/23_containers/set/48101_neg.cc: Likewise.
2733 * testsuite/23_containers/unordered_map/48101_neg.cc: Likewise.
2734 * testsuite/23_containers/unordered_multimap/48101_neg.cc: Likewise.
2735 * testsuite/23_containers/unordered_multiset/48101_neg.cc: Likewise.
2736 * testsuite/23_containers/unordered_set/48101_neg.cc: Likewise.
2738 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com>
2741 Fix based on a suggestion by Antony Polukhin.
2742 * include/std/variant (__never_valueless): New.
2744 (_Extra_visit_slot_needed): New.
2745 (_Multi_array): Use it.
2746 (_S_apply_all_alts): Likewise.
2748 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com>
2751 Fix based on a suggestion by Antony Polukhin.
2752 * include/std/variant (__gen_vtable): Don't reserve an
2753 additional table slot, _Multi_array already does that.
2755 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com>
2758 Fix based on a suggestion by Antony Polukhin.
2759 * include/std/variant (__variant_construct): Capture a pointer
2760 to the storage and visit just one variant.
2762 2019-03-22 Jonathan Wakely <jwakely@redhat.com>
2764 * doc/xml/manual/backwards_compatibility.xml: Remove link to
2765 Doxygen-generated pages with unstable URL.
2766 * doc/xml/manual/concurrency_extensions.xml: Likewise.
2767 * doc/xml/manual/extensions.xml: Likewise.
2768 * doc/xml/manual/parallel_mode.xml: Likewise.
2769 * doc/xml/manual/support.xml: Likewise.
2771 * include/bits/stl_algobase.h (__lg): Do arithmetic on type int to
2772 avoid -Wconversion warnings.
2774 2019-03-21 Thomas Rodgers <trodgers@redhat.com>
2776 * include/Makefile.am (std_header): Add ${std_srcdir}/execution.
2777 (pstl_srcdir, pstl_builddir, pstl_headers): New variables.
2778 (allstamped): Add stamp-pstl.
2779 (install-headers): Add ptsl_builddir.
2780 * include/Makefile.in: Regenerate.
2781 * include/bits/c++config: Add pstl configuration.
2782 * include/pstl/LICENSE.txt: New file.
2783 * include/pstl/algorithm_fwd.h: New file.
2784 * include/pstl/algorithm_impl.h: New file.
2785 * include/pstl/execution_defs.h: New file.
2786 * include/pstl/execution_impl.h: New file.
2787 * include/pstl/glue_algorithm_defs.h: New file.
2788 * include/pstl/glue_algorithm_impl.h: New file.
2789 * include/pstl/glue_execution_defs.h: New file.
2790 * include/pstl/glue_memory_defs.h: New file.
2791 * include/pstl/glue_memory_impl.h: New file.
2792 * include/pstl/glue_numeric_defs.h: New file.
2793 * include/pstl/glue_numeric_impl.h: New file.
2794 * include/pstl/memory_impl.h: New file.
2795 * include/pstl/numeric_fwd.h: New file.
2796 * include/pstl/numeric_impl.h: New file.
2797 * include/pstl/parallel_backend.h: New file.
2798 * include/pstl/parallel_backend_tbb.h: New file.
2799 * include/pstl/parallel_backend_utils.h: New file.
2800 * include/pstl/parallel_impl.h: New file.
2801 * include/pstl/pstl_config.h: New file.
2802 * include/pstl/unseq_backend_simd.h: New file.
2803 * include/pstl/utils.h: New file.
2804 * include/std/algorithm: Include parallel algorithm implementations.
2805 * include/std/execution: New file.
2806 * include/std/memory: Include parallel algorithm implementations.
2807 * include/std/numeric: Include parallel algorithm implementations.
2808 * include/std/version: Add parallel algorithms feature test macro.
2809 * testsuite/util/pstl/pstl_test_config.h: New file.
2810 * testsuite/util/pstl/test_utils.h: New file.
2811 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc: New file.
2812 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc: New file.
2813 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc: New file.
2814 * testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: New file.
2815 * testsuite/25_algorithms/pstl/alg_merge/merge.cc: New file.
2816 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc: New file.
2817 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc: New file.
2818 * testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc: New file.
2819 * testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc: New file.
2820 * testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc: New file.
2821 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc: New file.
2822 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc: New file.
2823 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc: New file.
2824 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc: New file.
2825 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc: New file.
2826 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc: New file.
2827 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc: New file.
2828 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc: New file.
2829 * testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc: New file.
2830 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc: New file.
2831 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc: New file.
2832 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc: New file.
2833 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc: New file.
2834 * testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc: New file.
2835 * testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: New file.
2836 * testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: New file.
2837 * testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: New file.
2838 * testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: New file.
2839 * testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: New file.
2840 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: New file.
2841 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc: New file.
2842 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: New file.
2843 * testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc: New file.
2844 * testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc: New file.
2845 * testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: New file.
2846 * testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc: New file.
2847 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: New file.
2848 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc: New file.
2849 * testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: New file.
2850 * testsuite/25_algorithms/pstl/alg_sorting/includes.cc: New file.
2851 * testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: New file.
2852 * testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc: New file.
2853 * testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc: New file.
2854 * testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc: New file.
2855 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: New file.
2856 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc: New file.
2857 * testsuite/25_algorithms/pstl/alg_sorting/set.cc: New file.
2858 * testsuite/25_algorithms/pstl/alg_sorting/sort.cc: New file.
2859 * testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc: New file.
2860 * testsuite/26_numerics/pstl/numeric_ops/reduce.cc: New file.
2861 * testsuite/26_numerics/pstl/numeric_ops/scan.cc: New file.
2862 * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc: New file.
2863 * testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: New file.
2864 * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc: New file.
2865 * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc: New file.
2866 * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc: New file.
2867 * testsuite/testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: New file.
2868 * testsuite/testsuite/25_algorithms/pstl/alg_merge/merge.cc: New file.
2869 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc: New file.
2870 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc: New file.
2871 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc: New file.
2872 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc: New file.
2873 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc: New file.
2874 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc: New file.
2875 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc: New file.
2876 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc: New file.
2877 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc: New file.
2878 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc: New file.
2879 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc: New file.
2880 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc: New file.
2881 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc: New file.
2882 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc: New file.
2883 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc: New file.
2884 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc: New file.
2885 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc: New file.
2886 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc: New file.
2887 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc: New file.
2888 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: New file.
2889 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: New file.
2890 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: New file.
2891 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: New file.
2892 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: New file.
2893 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: New file.
2894 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc: New file.
2895 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: New file.
2896 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc: New file.
2897 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc: New file.
2898 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: New file.
2899 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc: New file.
2900 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: New file.
2901 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc: New file.
2902 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: New file.
2903 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/includes.cc: New file.
2904 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: New file.
2905 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc: New file.
2906 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc: New file.
2907 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc: New file.
2908 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: New file.
2909 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc: New file.
2910 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/set.cc: New file.
2911 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/sort.cc: New file.
2912 * testsuite/testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc: New file.
2913 * testsuite/testsuite/26_numerics/pstl/numeric_ops/reduce.cc: New file.
2914 * testsuite/testsuite/26_numerics/pstl/numeric_ops/scan.cc: New file.
2915 * testsuite/testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc: New file.
2916 * testsuite/testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: New file.
2918 2019-03-21 Jonathan Wakely <jwakely@redhat.com>
2920 * include/c_compatibility/math.h [!__STDCPP_WANT_MATH_SPEC_FUNCS__]
2921 (assoc_laguerre, assoc_laguerref, assoc_laguerrel, assoc_legendre)
2922 (assoc_legendref, assoc_legendrel, beta, betaf, betal, comp_ellint_1)
2923 (comp_ellint_1f, comp_ellint_1l, comp_ellint_2, comp_ellint_2f)
2924 (comp_ellint_2l, comp_ellint_3, comp_ellint_3f, comp_ellint_3l)
2925 (cyl_bessel_i, cyl_bessel_if, cyl_bessel_il, cyl_bessel_j)
2926 (cyl_bessel_jf, cyl_bessel_jl, cyl_bessel_k, cyl_bessel_kf)
2927 (cyl_bessel_kl, cyl_neumann, cyl_neumannf, cyl_neumannl, ellint_1)
2928 (ellint_1f, ellint_1l, ellint_2, ellint_2f, ellint_2l, ellint_3)
2929 (ellint_3f, ellint_3l, expint, expintf, expintl, hermite, hermitef)
2930 (hermitel, laguerre, laguerref, laguerrel, legendre, legendref)
2931 (legendrel, riemann_zeta, riemann_zetaf, riemann_zetal, sph_bessel)
2932 (sph_besself, sph_bessell, sph_legendre, sph_legendref, sph_legendrel)
2933 (sph_neumann, sph_neumannf, sph_neumannl): Only add using-declarations
2934 when the special functions IS is enabled, not for C++17.
2935 * testsuite/26_numerics/headers/cmath/functions_global_c++17.cc:
2937 * testsuite/26_numerics/headers/cmath/functions_global.cc: New test,
2938 without checks for special functions in C++17.
2939 * testsuite/26_numerics/headers/cmath/special_functions_global.cc:
2943 * include/backward/hash_map: Use <> for includes not "".
2944 * include/backward/hash_set: Likewise.
2945 * include/backward/strstream: Likewise.
2946 * include/tr1/bessel_function.tcc: Likewise.
2947 * include/tr1/exp_integral.tcc: Likewise.
2948 * include/tr1/legendre_function.tcc: Likewise.
2949 * include/tr1/modified_bessel_func.tcc: Likewise.
2950 * include/tr1/riemann_zeta.tcc: Likewise.
2952 2019-03-19 Jonathan Wakely <jwakely@redhat.com>
2954 * doc/xml/manual/allocator.xml: Link to table documenting evolution
2955 of extension allocators.
2956 * doc/xml/manual/evolution.xml: Use angle brackets for header names.
2957 Document new headers in 7.2, 8.1 and 9.1 releases.
2958 * doc/xml/manual/using.xml: Adjust link target for new_allocator.
2959 * doc/html/*: Regenerate.
2961 2019-03-12 John David Anglin <dave.anglin@bell.net>
2964 * testsuite/lib/libstdc++.exp: Locate libatomic.
2965 * testsuite/lib/dg-options.exp (add_options_for_libatomic): New.
2966 * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: Add
2968 * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise.
2969 * testsuite/experimental/net/timer/waitable/cons.cc: Likewise.
2970 * testsuite/experimental/net/timer/waitable/dest.cc: Likewise.
2971 * testsuite/experimental/net/timer/waitable/ops.cc: Likewise.
2973 2019-03-11 Jonathan Wakely <jwakely@redhat.com>
2976 * configure.ac: Check for sockatmark.
2977 * crossconfig.m4: Check for sockatmark.
2978 * config.h.in: Regenerate.
2979 * configure: Regenerate.
2980 * include/experimental/internet (address_v4::_S_hton): Rename
2981 overloaded functions to _S_hton_16 and _S_ntoh_16.
2982 (address_v4::_S_ntoh): Rename to _S_ntoh_16 and _S_ntoh_32.
2983 (basic_endpoint): Adjust calls to _S_hton and _S_ntoh.
2984 * include/experimental/socket (basic_socket::at_mark): Check
2985 _GLIBCXX_HAVE_SOCKATMARK.
2987 * testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc: Use
2988 const variables instead of macros.
2991 * libsupc++/hash_bytes.cc [__SIZEOF_SIZE_T__ == 8] (_Hash_bytes):
2992 Use correct type for len_aligned.
2993 * testsuite/20_util/hash/89629.cc: New test.
2995 2019-03-11 Jakub Jelinek <jakub@redhat.com>
2998 * include/std/atomic (atomic<T>::store, atomic<T>::load,
2999 atomic<T>::exchange, atomic<T>::compare_exchange_weak,
3000 atomic<T>::compare_exchange_strong): Cast __m or __s and __f to int.
3001 * include/bits/atomic_base.h (__atomic_base<T>::operator++,
3002 __atomic_base<T>::operator--, __atomic_base<T>::operator+=,
3003 __atomic_base<T>::operator-=, __atomic_base<T>::operator&=,
3004 __atomic_base<T>::operator|=, __atomic_base<T>::operator^=,
3005 __atomic_base<T*>::operator++, __atomic_base<T*>::operator--,
3006 __atomic_base<T*>::operator+=, __atomic_base<T*>::operator-=): Cast
3007 memory_order_seq_cst to int.
3009 2019-03-08 Jonathan Wakely <jwakely@redhat.com>
3011 * doc/xml/manual/using.xml: Use link element instead of xref.
3012 * doc/html/*: Regenerate.
3014 * include/bits/fs_path.h (path::format): Add fixed underlying type.
3016 2019-03-08 François Dumont <fdumont@gcc.gnu.org>
3019 * include/debug/map.h (map): Use _RequireNotAllocator to constrain
3020 parameters in deduction guides.
3021 * include/debug/multimap.h (multimap): Likewise.
3022 * include/debug/set.h (multimap): Likewise.
3023 * include/debug/multiset.h (multimap): Likewise.
3024 * include/debug/unordered_map (unordered_map): Likewise.
3025 (unordered_multimap): Likewise.
3026 * include/debug/unordered_set (unordered_set): Likewise.
3027 (unordered_multiset): Likewise.
3030 * include/debug/unordered_map (unordered_map<>::_M_check_rehashed):
3031 Invalidate all iterators in case of rehash.
3032 (unordered_multimap<>::_M_check_rehashed): Likewise.
3033 * include/debug/unordered_set
3034 (unordered_set<>::_M_check_rehashed): Likewise.
3035 (unordered_multiset<>::_M_check_rehashed): Likewise.
3036 * testsuite/23_containers/unordered_set/debug/89608_neg.cc: New.
3038 2019-03-07 Andreas Schwab <schwab@suse.de>
3040 * config/abi/post/riscv64-linux-gnu: New directory.
3041 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: New file.
3043 2019-03-07 Jonathan Wakely <jwakely@redhat.com>
3045 * testsuite/20_util/function_objects/bind_front/1.cc: Change from
3046 compile test to run. Fix typo.
3048 * doc/xml/manual/status_cxx2020.xml: Update C++20 status.
3049 * doc/html/*: Regenerate.
3051 P0356R5 Simplified partial function application
3052 * include/std/functional [C++20] (_Bind_front, _Bind_front_t): Define
3053 helpers for bind_front.
3054 (bind_front, __cpp_lib_bind_front): Define.
3055 * testsuite/20_util/function_objects/bind_front/1.cc: New test.
3057 2019-03-06 Jonathan Wakely <jwakely@redhat.com>
3059 * include/std/type_traits (__cpp_lib_bounded_array_traits): Define.
3060 * include/std/version (__cpp_lib_bounded_array_traits): Likewise.
3061 * testsuite/20_util/is_bounded_array/value.cc: Check for macro.
3062 * testsuite/20_util/is_unbounded_array/value.cc: Likewise.
3064 2019-03-06 Edward Smith-Rowland <3dw4rd@verizon.net>
3066 PR libstdc++/86655 - std::assoc_legendre should not constrain
3067 the value of m (or x).
3068 * include/tr1/legendre_function.tcc (__assoc_legendre_p,
3069 __sph_legendre): If degree > order Don't throw, return 0.
3070 (__legendre_p, __assoc_legendre_p): Don't constrain x either.
3071 * testsuite/special_functions/02_assoc_legendre/pr86655.cc: New test.
3072 * testsuite/special_functions/20_sph_legendre/pr86655.cc: New test.
3073 * testsuite/tr1/5_numerical_facilities/special_functions/
3074 02_assoc_legendre/pr86655.cc: New test.
3075 * testsuite/tr1/5_numerical_facilities/special_functions/
3076 22_sph_legendre/pr86655.cc: New test.
3078 2019-03-06 Ville Voutilainen <ville.voutilainen@gmail.com>
3081 Also PR libstdc++/85517
3082 * include/std/variant (__do_visit): New.
3083 (__variant_cast): Likewise.
3084 (__variant_cookie): Likewise.
3085 (__erased_*): Remove.
3086 (_Variant_storage::_S_vtable): Likewise.
3087 (_Variant_storage::__M_reset_impl): Adjust to use __do_visit.
3088 (_Variant_storage::__M_reset): Adjust.
3089 (__variant_construct): New.
3090 (_Copy_ctor_base(const _Copy_ctor_base&)): Adjust to use
3091 __variant_construct.
3092 (_Move_ctor_base(_Move_ctor_base&&)): Likewise.
3093 (_Move_ctor_base::__M_destructive_copy): New.
3094 (_Move_ctor_base::__M_destructive_move): Adjust to use
3095 __variant_construct.
3096 (_Copy_assign_base::operator=): Adjust to use __do_visit.
3097 (_Copy_assign_alias): Adjust to check both copy assignment
3098 and copy construction for triviality.
3099 (_Move_assign_base::operator=): Adjust to use __do_visit.
3100 (_Multi_array): Add support for visitors that accept and return
3102 (__gen_vtable_impl::_S_apply_all_alts): Likewise.
3103 (__gen_vtable_impl::_S_apply_single_alt): Likewise.
3104 (__gen_vtable_impl::__element_by_index_or_cookie): New. Generate
3105 a __variant_cookie temporary for a variant that is valueless and..
3106 (__gen_vtable_impl::__visit_invoke): ..adjust here.
3107 (__gen_vtable::_Array_type): Conditionally make space for
3108 the __variant_cookie visitor case.
3109 (__variant_construct_by_index): New.
3110 (get_if): Adjust to use std::addressof.
3111 (relops): Adjust to use __do_visit.
3112 (variant): Add __variant_cast and __variant_construct_by_index
3114 (variant::emplace): Use _M_reset() and __variant_construct_by_index
3115 instead of self-destruction.
3116 (variant::swap): Adjust to use __do_visit.
3117 (visit): Reimplement in terms of __do_visit.
3118 (__variant_hash_call_base_impl::operator()): Adjust to use __do_visit.
3119 * testsuite/20_util/variant/compile.cc: Adjust.
3120 * testsuite/20_util/variant/run.cc: Likewise.
3122 2019-03-06 Jonathan Wakely <jwakely@redhat.com>
3124 * include/bits/c++config.h (_cpp_lib_char8_t): Add L suffix to
3126 * testsuite/experimental/feat-char8_t.cc: Likewise.
3128 * include/std/type_traits [C++20] (is_bounded_array)
3129 (is_unbounded_array, is_bounded_array_v, is_unbounded_array_v):
3131 * testsuite/20_util/is_bounded_array/requirements/
3132 explicit_instantiation.cc: New test.
3133 * testsuite/20_util/is_bounded_array/requirements/typedefs.cc: New
3135 * testsuite/20_util/is_bounded_array/value.cc: New test.
3136 * testsuite/20_util/is_unbounded_array/requirements/
3137 explicit_instantiation.cc: New test.
3138 * testsuite/20_util/is_unbounded_array/requirements/typedefs.cc: New
3140 * testsuite/20_util/is_unbounded_array/value.cc: New test.
3142 * include/bits/ptr_traits.h [C++20] (pointer_traits<T*>::pointer_to):
3144 * testsuite/20_util/pointer_traits/pointer_to_constexpr.cc: New test.
3146 2019-03-05 Jonathan Wakely <jwakely@redhat.com>
3148 * include/c_compatibility/math.h [C++20] (lerp): Add using
3150 * include/c_global/cmath [C++20] (__cpp_lib_interpolate): Define.
3151 (__lerp): Define function template to implement lerp.
3152 (lerp(float, float, float), lerp(double, double, double))
3153 (lerp(long double, long double, long double)): Define for C++20.
3154 * include/std/numeric [C++20] (__cpp_lib_interpolate): Define.
3155 (midpoint(T, T), midpoint(T*, T*)): Define.
3156 * include/std::version [C++20] (__cpp_lib_interpolate): Define.
3157 * testsuite/26_numerics/lerp.cc: New test.
3158 * testsuite/26_numerics/midpoint/floating.cc: New test.
3159 * testsuite/26_numerics/midpoint/integral.cc: New test.
3160 * testsuite/26_numerics/midpoint/pointer.cc: New test.
3162 2019-03-04 Edward Smith-Rowland <3dw4rd@verizon.net>
3164 PR libstdc++/88996 Implement P0439R0
3165 Make std::memory_order a scoped enumeration.
3166 * include/bits/atomic_base.h: For C++20 make memory_order a scoped enum,
3167 add variables for the old enumerators. Adjust calls.
3168 * testsuite/29_atomics/headers/atomic/types_std_c++2a.cc: New test.
3169 * testsuite/29_atomics/headers/atomic/types_std_c++2a_neg.cc: New test.
3171 2019-03-04 Jonathan Wakely <jwakely@redhat.com>
3173 * testsuite/26_numerics/bit/bitops.rot/rotl.cc: Remove bogus dg-do
3176 * include/std/memory_resource (polymorphic_allocator): Add default
3177 template argument for C++20.
3178 (polymorphic_allocator::allocate_bytes)
3179 (polymorphic_allocator::deallocate_bytes)
3180 (polymorphic_allocator::allocate_object)
3181 (polymorphic_allocator::deallocate_object)
3182 (polymorphic_allocator::new_object)
3183 (polymorphic_allocator::delete_object): New member functions for
3185 * testsuite/20_util/polymorphic_allocator/allocate_object.cc: New
3188 2019-03-03 Jonathan Wakely <jwakely@redhat.com>
3191 * src/filesystem/ops-common.h (do_copy_file): Open files in binary
3194 2019-03-01 Jonathan Wakely <jwakely@redhat.com>
3196 * testsuite/util/testsuite_allocator.h (__gnu_test::memory_resource)
3197 [!__cpp_sized_deallocation]: Do not pass size to operator delete.
3199 * include/std/memory (uses_allocator_construction_args): New set of
3200 overloaded functions.
3201 (make_obj_using_allocator, uninitialized_construct_using_allocator):
3203 * include/std/memory_resource (polymorphic_allocator::construct)
3204 [__cplusplus > 201703l]: Replace all overloads with a single function
3205 using uses_allocator_construction_args.
3206 * testsuite/20_util/polymorphic_allocator/construct_c++2a.cc: New
3208 * testsuite/20_util/uses_allocator/make_obj.cc: New test.
3210 2019-02-27 Jonathan Wakely <jwakely@redhat.com>
3213 * acinclude.m4 (GLIBCXX_CONFIGURE_DOCBOOK): Reorder check for local
3214 stylesheet directories before check for xsltproc. Try to use
3215 xmlcatalog to find local stylesheet directory before trying hardcoded
3216 paths. Add path used by suse to hardcoded paths. Adjust xsltproc
3217 check to look for the same stylesheet as doc/Makefile.am uses. Don't
3218 use xsltproc if xmlcatalog fails to find a local stylesheet.
3219 * configure.ac: Check for xmlcatalog.
3220 * Makefile.in: Regenerate.
3221 * configure: Likewise.
3222 * doc/Makefile.in: Likewise.
3223 * include/Makefile.in: Likewise.
3224 * libsupc++/Makefile.in: Likewise.
3225 * po/Makefile.in: Likewise.
3226 * python/Makefile.in: Likewise.
3227 * src/Makefile.in: Likewise.
3228 * src/c++11/Makefile.in: Likewise.
3229 * src/c++17/Makefile.in: Likewise.
3230 * src/c++98/Makefile.in: Likewise.
3231 * src/filesystem/Makefile.in: Likewise.
3232 * testsuite/Makefile.in: Likewise.
3234 2019-02-26 Jonathan Wakely <jwakely@redhat.com>
3237 * include/bits/alloc_traits.h (_RequireNotAllocator): New helper for
3238 container deduction guides.
3239 * include/bits/hashtable.h (_RequireNotAllocatorOrIntegral): Likewise.
3240 * include/bits/stl_map.h (map): Use _RequireNotAllocator to constrain
3241 parameters in deduction guides.
3242 * include/bits/stl_multimap.h (multimap): Likewise.
3243 * include/bits/stl_multiset.h (multiset): Likewise.
3244 * include/bits/stl_queue.h (queue, priority_queue): Likewise.
3245 * include/bits/stl_set.h (set): Likewise.
3246 * include/bits/stl_stack.h (stack): Likewise.
3247 * include/bits/unordered_map.h (unordered_map, unordered_multimap):
3248 use _RequireNotAllocator and _RequireNotAllocatorOrIntegral to
3249 constrain parameters in deduction guides.
3250 * include/bits/unordered_set.h (unordered_set, unordered_multiset):
3252 * testsuite/23_containers/map/cons/deduction.cc: Test additional
3254 * testsuite/23_containers/multiset/cons/deduction.cc: Likewise.
3255 * testsuite/23_containers/set/cons/deduction.cc: Likewise.
3256 * testsuite/23_containers/unordered_map/cons/deduction.cc: Likewise.
3257 * testsuite/23_containers/unordered_multimap/cons/deduction.cc:
3259 * testsuite/23_containers/unordered_multiset/cons/deduction.cc:
3261 * testsuite/23_containers/unordered_set/cons/deduction.cc: Likewise.
3264 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Change
3265 to class template and partial specialization using void_t.
3266 (__is_copy_insertable, __is_move_insertable): Adjust base class.
3268 2019-02-24 Jonathan Wakely <jwakely@redhat.com>
3271 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Make
3272 copy and move members public.
3274 2019-02-23 Jonathan Wakely <jwakely@redhat.com>
3276 * include/std/type_traits (__underlying_type_impl): New helper to
3277 make underlying_type SFINAE-friendly.
3278 (underlying_type): Derive from __underlying_type_impl.
3279 * testsuite/20_util/underlying_type/requirements/typedefs-3.cc: New
3283 * include/bits/char_traits.h (__constant_char_array): Check index is
3284 in range before dereferencing.
3285 (char_traits<char>::compare, char_traits<char>::find)
3286 (char_traits<char8_t>::compare, char_traits<char8_t>::find): Return
3287 immediately if n is zero.
3288 (char_traits<wchar_t>::compare, char_traits<wchar_t>::find): Likewise.
3289 Remove workarounds for PR 67026.
3290 * testsuite/21_strings/basic_string_view/operators/char/89446.cc:
3292 * testsuite/21_strings/basic_string_view/operators/wchar_t/89446.cc:
3295 2019-02-22 Eric Botcazou <ebotcazou@adacore.com>
3297 * config/abi/post/sparc64-linux-gnu/baseline_symbols.txt: Adjust.
3298 * config/abi/post/sparc64-linux-gnu/32/baseline_symbols.txt: Likewise.
3300 2019-02-22 Jakub Jelinek <jakub@redhat.com>
3303 * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Change return
3304 type to std::size_t and argument to type to long double.
3306 2019-02-22 Eric Botcazou <ebotcazou@adacore.com>
3308 * configure.host (abi_baseline_pair): Adjust for SPARC64/Linux.
3309 * config/abi/post/sparc64-linux-gnu: New directory.
3310 * config/abi/post/sparc64-linux-gnu/baseline_symbols.txt: New file.
3311 * config/abi/post/sparc64-linux-gnu/32: New directory.
3312 * config/abi/post/sparc64-linux-gnu/32/baseline_symbols.txt: New file.
3314 2019-02-21 Jonathan Wakely <jwakely@redhat.com>
3316 * testsuite/29_atomics/headers/atomic/types_std_c++20.cc: New test.
3317 * testsuite/29_atomics/headers/atomic/types_std_c++20_neg.cc: New
3320 2019-02-22 Tom Honermann <tom@honermann.net>
3322 * python/libstdcxx/v6/printers.py (register_type_printers): Add type
3323 printers for u8string and u8string_view.
3325 2019-02-22 Tom Honermann <tom@honermann.net>
3327 * testsuite/18_support/byte/ops.cc: Validate
3328 std::to_integer<char8_t>, std::to_integer<char16_t>, and
3329 std::to_integer<char32_t>.
3330 * testsuite/18_support/numeric_limits/dr559.cc: Validate
3331 std::numeric_limits<char8_t>.
3332 * testsuite/18_support/numeric_limits/lowest.cc: Validate
3333 std::numeric_limits<char8_t>::lowest().
3334 * testsuite/18_support/numeric_limits/max_digits10.cc: Validate
3335 std::numeric_limits<char8_t>::max_digits10.
3336 * testsuite/18_support/type_info/fundamental.cc: Validate
3337 typeinfo for char8_t.
3338 * testsuite/20_util/from_chars/1_c++20_neg.cc: New test, validating
3339 std::from_chars with char8_t.
3340 * testsuite/20_util/hash/requirements/explicit_instantiation.cc:
3341 Validate explicit instantiation of std::hash<char8_t>.
3342 * testsuite/20_util/is_integral/value.cc: Validate
3343 std::is_integral<char8_t>.
3344 * testsuite/20_util/make_signed/requirements/typedefs-4.cc:
3345 Validate std::make_signed<char8_t>.
3346 * testsuite/21_strings/basic_string/cons/char/deduction.cc:
3347 Validate u8string construction from char8_t sources.
3348 * testsuite/21_strings/basic_string/types/pmr_typedefs.cc: Validate
3350 * testsuite/21_strings/basic_string_view/operations/compare/
3351 char/70483.cc: Validate substr operations on u8string_view.
3352 * testsuite/21_strings/basic_string_view/typedefs.cc: Validate that
3353 the u8string_view typedef is defined.
3354 * testsuite/21_strings/char_traits/requirements/
3355 constexpr_functions.cc: Validate char_traits<char8_t> constexpr
3357 * testsuite/21_strings/char_traits/requirements/
3358 constexpr_functions_c++17.cc: Validate char_traits<char8_t> C++17
3359 constexpr member functions.
3360 * testsuite/21_strings/headers/string/types_std_c++0x.cc: Validate
3361 that the u8string typedef is defined.
3362 * testsuite/22_locale/locale/cons/unicode.cc: Validate the presence
3363 of the std::codecvt<char16_t, char8_t, std::mbstate_t> and
3364 std::codecvt<char32_t, char8_t, std::mbstate_t> facets.
3365 * testsuite/29_atomics/atomic/cons/assign_neg.cc: Update line
3367 * testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise.
3368 * testsuite/29_atomics/atomic_integral/cons/assign_neg.cc:
3370 * testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Likewise.
3371 * testsuite/29_atomics/atomic_integral/is_always_lock_free.cc:
3372 Validate std::atomic<char8_t>::is_always_lock_free
3373 * testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc:
3374 Update line numbers.
3375 * testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc:
3377 * testsuite/29_atomics/atomic_integral/operators/increment_neg.cc:
3379 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_string.cc:
3380 Validate std::experimental::pmr::u8string.
3381 * testsuite/experimental/string_view/typedefs.cc: Validate that the
3382 u8string_view typedef is defined.
3383 * testsuite/util/testsuite_common_types.h: Add char8_t, char16_t and
3384 char32_t to the typelists.
3386 2019-02-22 Tom Honermann <tom@honermann.net>
3388 * include/ext/typelist.h: Constrain a partial specialization of
3389 typelist::detail::append_ to only match chain<T1,T2>.
3391 2019-02-21 Jonathan Wakely <jwakely@redhat.com>
3394 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Replace
3395 class template with class. Replace move and copy member types with
3396 member alias templates, so they are only instantiated when needed.
3397 (__is_copy_insertable, __is_move_insertable): Adjust base class.
3398 * testsuite/23_containers/vector/modifiers/push_back/89130.cc: Enable
3399 test for C++11/14/17 as well.
3400 * testsuite/23_containers/vector/modifiers/push_back/89416.cc: New
3403 2019-02-20 Jakub Jelinek <jakub@redhat.com>
3406 * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Add
3407 _GLIBCXX_PURE to the alias declaration.
3409 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
3411 * testsuite/21_strings/basic_string/literals/types.cc
3412 [_GLIBCXX_USE_CHAR8_T]: Adjust expected string type for u8 literal.
3413 * testsuite/21_strings/basic_string/literals/values.cc
3414 [_GLIBCXX_USE_CHAR8_T]: Likewise.
3415 * testsuite/22_locale/codecvt/char16_t.cc: Adjust for u8 literals
3416 potentially having different type.
3417 * testsuite/22_locale/codecvt/char32_t.cc: Likewise.
3418 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: Cast u8 literal
3420 * testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc: Likewise.
3421 * testsuite/22_locale/codecvt/utf8.cc: Likewise.
3422 * testsuite/22_locale/conversions/string/2.cc: Remove u8 prefix from
3423 string literals only using basic character set.
3424 * testsuite/22_locale/conversions/string/3.cc: Likewise. Cast other
3425 u8 literals to char.
3426 * testsuite/29_atomics/headers/atomic/macros.cc [_GLIBCXX_USE_CHAR8_T]:
3427 Test ATOMIC_CHAR8_T_LOCK_FREE.
3428 Add missing #error to ATOMIC_CHAR16_T_LOCK_FREE test.
3429 * testsuite/29_atomics/headers/atomic/types_std_c++0x.cc
3430 [_GLIBCXX_USE_CHAR8_T]: Check for std::atomic_char8_t.
3431 * testsuite/experimental/string_view/literals/types.cc
3432 [_GLIBCXX_USE_CHAR8_T]: Adjust expected string_view type for u8
3434 * testsuite/experimental/string_view/literals/values.cc
3435 [_GLIBCXX_USE_CHAR8_T]: Likewise.
3437 2019-02-19 Tom Honermann <tom@honermann.net>
3439 * testsuite/18_support/numeric_limits/char8_t.cc: New test cloned
3440 from char16_32_t.cc; validates numeric_limits<char8_t>.
3441 * testsuite/21_strings/basic_string/literals/types-char8_t.cc: New
3442 test cloned from types.cc; validates operator""s for char8_t
3444 * testsuite/21_strings/basic_string/literals/values-char8_t.cc: New
3445 test cloned from values.cc; validates construction and comparison
3447 * testsuite/21_strings/basic_string/requirements/
3448 /explicit_instantiation/char8_t/1.cc: New test cloned from
3449 char16_t/1.cc; validates explicit instantiation of
3450 basic_string<char8_t>.
3451 * testsuite/21_strings/basic_string_view/literals/types-char8_t.cc:
3452 New test cloned from types.cc; validates operator""sv for char8_t
3453 returns u8string_view.
3454 * testsuite/21_strings/basic_string_view/literals/
3455 values-char8_t.cc: New test cloned from values.cc; validates
3456 construction and comparison of u8string_view values.
3457 * testsuite/21_strings/basic_string_view/requirements/
3458 explicit_instantiation/char8_t/1.cc: New test cloned from
3459 char16_t/1.cc; validates explicit instantiation of
3460 basic_string_view<char8_t>.
3461 * testsuite/21_strings/char_traits/requirements/char8_t/65049.cc:
3462 New test cloned from char16_t/65049.cc; validates that
3463 char_traits<char8_t> is not vulnerable to the concerns in PR65049.
3464 * testsuite/21_strings/char_traits/requirements/char8_t/
3465 typedefs.cc: New test cloned from char16_t/typedefs.cc; validates
3466 that char_traits<char8_t> member typedefs are present and correct.
3467 * testsuite/21_strings/char_traits/requirements/
3468 explicit_instantiation/char8_t/1.cc: New test cloned from
3469 char16_t/1.cc; validates explicit instantiation of
3470 char_traits<char8_t>.
3471 * testsuite/22_locale/codecvt/char16_t-char8_t.cc: New test cloned
3472 from char16_t.cc: validates
3473 codecvt<char16_t, char8_t, mbstate_t>.
3474 * testsuite/22_locale/codecvt/char32_t-char8_t.cc: New test cloned
3475 from char32_t.cc: validates
3476 codecvt<char32_t, char8_t, mbstate_t>.
3477 * testsuite/22_locale/codecvt/utf8-char8_t.cc: New test cloned from
3478 utf8.cc; validates codecvt<char16_t, char8_t, std::mbstate_t> and
3479 codecvt<char32_t, char8_t, std::mbstate_t>.
3480 * testsuite/27_io/filesystem/path/native/string-char8_t.cc: New
3481 test cloned from string.cc; validates filesystem::path construction
3483 * testsuite/experimental/feat-char8_t.cc: New test; validates that
3484 the __cpp_lib_char8_t feature test macro is defined with the
3486 * testsuite/experimental/filesystem/path/native/string-char8_t.cc:
3487 New test cloned from string.cc; validates filesystem::path
3488 construction from char8_t input.
3489 * testsuite/experimental/string_view/literals/types-char8_t.cc: New
3490 test cloned from types.cc; validates operator""sv for char8_t
3491 returns u8string_view.
3492 * testsuite/experimental/string_view/literals/values-char8_t.cc:
3493 New test cloned from values.cc; validates construction and
3494 comparison of u8string_view values.
3495 * testsuite/experimental/string_view/requirements/
3496 explicit_instantiation/char8_t/1.cc: New test cloned from
3497 char16_t/1.cc; validates explicit instantiation of
3498 basic_string_view<char8_t>.
3499 * testsuite/ext/char8_t/atomic-1.cc: New test; validates that
3500 ATOMIC_CHAR8_T_LOCK_FREE is not defined if char8_t support is not
3503 2019-02-19 Tom Honermann <tom@honermann.net>
3505 P0482R5 char8_t: Standard library support
3506 * config/abi/pre/gnu-versioned-namespace.ver (CXXABI_2.0): Add
3507 typeinfo symbols for char8_t.
3508 * config/abi/pre/gnu.ver: Add CXXABI_1.3.12.
3509 (GLIBCXX_3.4.26): Add symbols for specializations of
3510 numeric_limits and codecvt that involve char8_t.
3511 (CXXABI_1.3.12): Add typeinfo symbols for char8_t.
3512 * include/bits/atomic_base.h: Add atomic_char8_t.
3513 * include/bits/basic_string.h: Add std::hash<u8string> and
3514 operator""s(const char8_t*, size_t).
3515 * include/bits/c++config: Define _GLIBCXX_USE_CHAR8_T and
3517 * include/bits/char_traits.h: Add char_traits<char8_t>.
3518 * include/bits/codecvt.h: Add
3519 codecvt<char16_t, char8_t, mbstate_t>,
3520 codecvt<char32_t, char8_t, mbstate_t>,
3521 codecvt_byname<char16_t, char8_t, mbstate_t>, and
3522 codecvt_byname<char32_t, char8_t, mbstate_t>.
3523 * include/bits/cpp_type_traits.h: Add __is_integer<char8_t> to
3524 recognize char8_t as an integral type.
3525 * include/bits/fs_path.h: (path::__is_encoded_char): Recognize
3527 (path::u8string): Return std::u8string when char8_t support is
3529 (path::generic_u8string): Likewise.
3530 (path::_S_convert): Handle conversion from char8_t input.
3531 (path::_S_str_convert): Likewise.
3532 * include/bits/functional_hash.h: Add hash<char8_t>.
3533 * include/bits/locale_conv.h (__str_codecvt_out): Add overloads for
3535 * include/bits/locale_facets.h (_GLIBCXX_NUM_UNICODE_FACETS): Bump
3536 for new char8_t specializations.
3537 * include/bits/localefwd.h: Add missing declarations of
3538 codecvt<char16_t, char, mbstate_t> and
3539 codecvt<char32_t, char, mbstate_t>. Add char8_t declarations
3540 codecvt<char16_t, char8_t, mbstate_t> and
3541 codecvt<char32_t, char8_t, mbstate_t>.
3542 * include/bits/postypes.h: Add u8streampos
3543 * include/bits/stringfwd.h: Add declarations of
3544 char_traits<char8_t> and u8string.
3545 * include/c_global/cstddef: Add __byte_operand<char8_t>.
3546 * include/experimental/bits/fs_path.h (path::__is_encoded_char):
3548 (path::u8string): Return std::u8string when char8_t support is
3550 (path::generic_u8string): Likewise.
3551 (path::_S_convert): Handle conversion from char8_t input.
3552 (path::_S_str_convert): Likewise.
3553 * include/experimental/string: Add u8string.
3554 * include/experimental/string_view: Add u8string_view,
3555 hash<experimental::u8string_view>, and
3556 operator""sv(const char8_t*, size_t).
3557 * include/std/atomic: Add atomic<char8_t> and atomic_char8_t.
3558 * include/std/charconv (__is_int_to_chars_type): Recognize char8_t
3559 as a character type.
3560 * include/std/limits: Add numeric_limits<char8_t>.
3561 * include/std/string_view: Add u8string_view,
3562 hash<experimental::u8string_view>, and
3563 operator""sv(const char8_t*, size_t).
3564 * include/std/type_traits: Add __is_integral_helper<char8_t>,
3565 __make_unsigned<char8_t>, and __make_signed<char8_t>.
3566 * libsupc++/atomic_lockfree_defines.h: Define
3567 ATOMIC_CHAR8_T_LOCK_FREE.
3568 * src/c++11/Makefile.am: Compile with -fchar8_t when compiling
3569 codecvt.cc and limits.cc so that char8_t specializations of
3570 numeric_limits and codecvt and emitted.
3571 * src/c++11/Makefile.in: Likewise.
3572 * src/c++11/codecvt.cc: Define members of
3573 codecvt<char16_t, char8_t, mbstate_t>,
3574 codecvt<char32_t, char8_t, mbstate_t>,
3575 codecvt_byname<char16_t, char8_t, mbstate_t>, and
3576 codecvt_byname<char32_t, char8_t, mbstate_t>.
3577 * src/c++11/limits.cc: Define members of
3578 numeric_limits<char8_t>.
3579 * src/c++98/Makefile.am: Compile with -fchar8_t when compiling
3580 locale_init.cc and localename.cc.
3581 * src/c++98/Makefile.in: Likewise.
3582 * src/c++98/locale_init.cc: Add initialization for the
3583 codecvt<char16_t, char8_t, mbstate_t> and
3584 codecvt<char32_t, char8_t, mbstate_t> facets.
3585 * src/c++98/localename.cc: Likewise.
3586 * testsuite/util/testsuite_abi.cc: Validate ABI bump.
3588 2019-02-18 Wilco Dijkstra <wdijkstr@arm.com>
3590 * 27_io/filesystem/operations/all.cc: Add dg-require-filesystem-ts.
3591 * 27_io/filesystem/operations/resize_file.cc: Likewise.
3592 * 27_io/filesystem/path/generation/normal2.cc: Likewise.
3594 2019-02-14 Jonathan Wakely <jwakely@redhat.com>
3596 * doc/xml/manual/status_cxx2020.xml: Update P0887R1 status.
3597 * doc/html/*: Regenerate.
3599 * doc/xml/manual/status_cxx2017.xml: Add P0063R3 to status table.
3600 * doc/html/*: Regenerate.
3602 * doc/xml/manual/intro.xml: Document LWG 2586 status.
3603 * include/bits/uses_allocator.h (__uses_alloc): Use const lvalue
3604 allocator type in is_constructible checks.
3605 * testsuite/20_util/scoped_allocator/69293_neg.cc: Adjust dg-error.
3606 * testsuite/20_util/scoped_allocator/dr2586.cc: New test.
3607 * testsuite/20_util/tuple/cons/allocators.cc: Add test using
3608 problematic type from LWG 2586 discussion.
3609 * testsuite/20_util/uses_allocator/69293_neg.cc: Adjust dg-error.
3610 * testsuite/20_util/uses_allocator/cons_neg.cc: Likewise.
3612 * configure.ac: Check for C11 timespec_get function.
3613 * crossconfig.m4 (freebsd, linux, gnu, cygwin, solaris, netbsd)
3615 * config.h.in: Regenerate.
3616 * configure: Regenerate.
3617 * include/c_global/ctime (timespec, timespec_get): Add to namespace
3618 std for C++17 and up.
3620 * doc/xml/manual/intro.xml: Document LWG 2537 status.
3621 * include/bits/stl_queue.h
3622 (priority_queue(const Compare&, const Container&, const Alloc&))
3623 (priority_queue(const Compare&, Container&&, const Alloc&)): Call
3625 * testsuite/23_containers/priority_queue/dr2537.cc: New test.
3627 * doc/xml/manual/intro.xml: Document LWG 2566 status.
3628 * include/bits/stl_queue.h (queue, priority_queue): Add static
3629 assertions to enforce LWG 2566 requirement on value_type.
3630 * include/bits/stl_stack.h (stack): Likewise.
3633 * testsuite/20_util/enable_shared_from_this/89303.cc: New test.
3635 * doc/xml/manual/intro.xml: Document LWG 2735 status.
3636 * include/bits/std_abs.h: Add comment about LWG 2735.
3637 * testsuite/26_numerics/headers/cstdlib/dr2735.cc: New test.
3639 2019-02-13 Jonathan Wakely <jwakely@redhat.com>
3642 * include/std/version [__cpp_impl_destroying_delete]
3643 (__cpp_lib_destroying_delete): Only define for C++2a and later.
3644 * libsupc++/new [__cpp_impl_destroying_delete]
3645 (__cpp_lib_destroying_delete): Likewise.
3646 (destroying_delete_t, destroying_delete): Likewise, but define even
3647 when __cpp_impl_destroying_delete is not defined.
3648 * testsuite/18_support/destroying_delete.cc: New test.
3650 2019-02-11 Jonathan Wakely <jwakely@redhat.com>
3653 * testsuite/17_intro/headers/c++2011/parallel_mode.cc: New test.
3654 * testsuite/17_intro/headers/c++2014/parallel_mode.cc: New test.
3655 * testsuite/17_intro/headers/c++2017/parallel_mode.cc: New test.
3656 * testsuite/28_regex/headers/regex/parallel_mode.cc: Remove.
3658 2019-02-09 Jonathan Wakely <jwakely@redhat.com>
3661 * include/bits/fs_path.h (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::has_stem, path::has_extension)
3665 (path::is_absolute, path::is_relative, path::_M_find_extension): Add
3667 * src/c++17/fs_path.cc (path::has_root_name)
3668 (path::has_root_directory, path::has_root_path)
3669 (path::has_relative_path, path::has_parent_path)
3670 (path::has_filename, path::_M_find_extension): Add noexcept.
3672 2019-02-06 Jonathan Wakely <jwakely@redhat.com>
3674 PR libstdc++/89102 (partial)
3675 * include/std/type_traits (common_type<>): Define.
3676 (common_type<T>): Derive from common_type<T, T>.
3677 * testsuite/20_util/common_type/requirements/explicit_instantiation.cc:
3678 Test zero-length template argument list.
3679 * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc:
3680 Test additional single argument cases.
3681 * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc:
3682 Adjust expected error.
3684 2019-02-05 Jonathan Wakely <jwakely@redhat.com>
3687 * include/bits/stl_queue.h (queue, priority_queue): Add deduction
3689 * include/bits/stl_stack.h (stack): Likewise.
3690 * testsuite/23_containers/priority_queue/deduction.cc: New test.
3691 * testsuite/23_containers/queue/deduction.cc: New test.
3692 * testsuite/23_containers/stack/deduction.cc: New test.
3695 * include/std/type_traits (__is_convertible_helper)
3696 (__is_convertible_helper<_From, _To, false>): Revert changes to
3697 support is_nothrow_convertible.
3698 (__is_nt_convertible_helper): New helper.
3699 (is_nothrow_convertible): Use __is_nt_convertible_helper.
3701 * testsuite/23_containers/vector/modifiers/push_back/49836.cc: Restore
3702 use of CopyConsOnlyType, but also test DelAnyAssign for completeness.
3705 * include/bits/alloc_traits.h (__is_copy_insertable_impl): Rename to
3706 __is_alloc_insertable_impl. Replace single type member with two
3707 members, one for each of copy and move insertable.
3708 (__is_move_insertable): New trait for internal use.
3709 * include/bits/stl_vector.h (vector::_S_nothrow_relocate(true_type))
3710 (vector::_S_nothrow_relocate(true_type)): New functions to
3711 conditionally check if __relocate_a can throw.
3712 (vector::_S_use_relocate()): Dispatch to _S_nothrow_relocate based
3713 on __is_move_insertable.
3714 (vector::_S_do_relocate): New overloaded functions to conditionally
3716 (vector::_S_relocate): New function that dispatches to _S_do_relocate
3717 based on _S_use_relocate.
3718 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
3719 (vector::_M_default_append): Call _S_relocate instead of __relocate_a.
3720 * testsuite/23_containers/vector/modifiers/push_back/89130.cc: New.
3723 * include/bits/stl_uninitialized.h (__relocate_a_1): Make unused
3724 parameter unnamed. Add message to static assertion.
3725 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
3726 (vector::_M_default_append): Use _GLIBCXX17_CONSTEXPR for if constexpr
3729 2019-02-05 Marc Glisse <marc.glisse@inria.fr>
3732 * include/bits/stl_uninitialized.h (__is_trivially_relocatable):
3734 (__is_bitwise_relocatable): ... to this.
3735 (__relocate_a_1): Adapt.
3736 * include/bits/stl_deque.h (__is_trivially_relocatable): Rename...
3737 (__is_bitwise_relocatable): ... to this.
3739 2019-01-30 Jonathan Wakely <jwakely@redhat.com>
3742 * src/c++17/fs_path.cc (path::replace_extension): Erase extension from
3743 final component as well as from _M_pathname. Append the dot using
3744 operator+= instead of only to _M_pathname.
3745 (path::_M_find_extension): Reformat slightly.
3746 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
3747 Add more test cases.
3749 2019-01-30 Ulrich Drepper <drepper@redhat.com>
3751 * doc/xml/manual/status_cxx2020.xml: Update P0600 entry.
3753 2019-01-29 Jonathan Wakely <jwakely@redhat.com>
3755 * testsuite/26_numerics/headers/complex/synopsis.cc: Remove incorrect
3756 constexpr specifiers from arg and proj.
3758 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add missing exports for
3759 __shared_ptr instantiations used by gcc4-compatible ABI.
3761 * include/experimental/forward_list (experimental::erase): Qualify
3763 * include/experimental/list (experimental::erase): Likewise.
3764 * include/std/forward_list (std::erase): Likewise.
3765 * include/std/list (std::erase): Likewise.
3767 * testsuite/20_util/reference_wrapper/result_type.cc: Disable for
3769 * testsuite/20_util/reference_wrapper/typedefs-2.cc: Likewise.
3770 * testsuite/20_util/reference_wrapper/typedefs-3.cc: Likewise.
3771 * testsuite/20_util/reference_wrapper/typedefs.cc: Likewise.
3772 * testsuite/30_threads/async/54297.cc: Suppress nodiscard warning.
3773 * testsuite/ext/array_allocator/26875.cc: Likewise.
3774 * testsuite/ext/pool_allocator/allocate_chunk.cc: Likewise.
3775 * testsuite/util/replacement_memory_operators.h: Likewise.
3776 * testsuite/util/testsuite_allocator.h: Likewise.
3778 * include/std/memory_resource (__pool_resource::_M_unpooled): Use
3779 normal mode vector, even for debug mode.
3780 * include/std/vector [_GLIBCXX_DEBUG] (_GLIBCXX_STD_C::pmr::vector):
3781 Define alias template for normal mode vector.
3783 2019-01-28 Jonathan Wakely <jwakely@redhat.com>
3786 * config/locale/generic/c_locale.h (__convert_from_v)
3787 [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
3788 * config/os/hpux/os_defines.h: Define _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
3789 * include/bits/locale_facets.tcc (num_put::_M_insert_float)
3790 [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
3792 2019-01-24 Jonathan Wakely <jwakely@redhat.com>
3795 * include/bits/stl_vector.h (vector::__use_relocate): Replace static
3796 data member with static member function _S_use_relocate().
3797 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
3798 (vector::_M_default_append): Use _S_use_relocate() instead of
3801 * testsuite/27_io/filesystem/path/compare/strings.cc: Only compare
3804 2019-01-22 Jonathan Wakely <jwakely@redhat.com>
3807 * testsuite/util/testsuite_hooks.h [stderr] (VERIFY): Use fprintf to
3808 write to stderr instead of using printf.
3810 2019-01-21 Jakub Jelinek <jakub@redhat.com>
3813 * include/bits/char_traits.h (__constant_string_p,
3814 __constant_char_array_p): Use __builtin_is_constant_evaluated if
3817 2019-01-20 Ulrich Drepper <drepper@redhat.com>
3819 Implement C++20 P0600r1.
3820 * include/backward/hash_map: Add nodiscard attribute to empty.
3821 * include/backward/hash_set: Likewise.
3822 * backward/hashtable.h: Likewise.
3823 * include/bits/basic_string.h: Likewise.
3824 * include/bits/forward_list.h: Likewise.
3825 * include/bits/hashtable.h: Likewise.
3826 * include/bits/regex.h: Likewise.
3827 * include/bits/stl_deque.h: Likewise.
3828 * include/bits/stl_list.h: Likewise.
3829 * include/bits/stl_map.h: Likewise.
3830 * include/bits/stl_multimap.h: Likewise.
3831 * include/bits/stl_multiset.h: Likewise.
3832 * include/bits/stl_queue.h: Likewise.
3833 * include/bits/stl_set.h: Likewise.
3834 * include/bits/stl_stack.h: Likewise.
3835 * include/bits/stl_tree.h: Likewise.
3836 * include/bits/stl_vector.h: Likewise.
3837 * include/bits/unordered_map.h: Likewise.
3838 * include/bits/unordered_set.h: Likewise.
3839 * include/debug/array: Likewise.
3840 * include/experimental/any: Likewise.
3841 * include/experimental/bits/fs_path.h: Likewise.
3842 * include/experimental/internet: Likewise.
3843 * include/experimental/string_view: Likewise.
3844 * include/ext/pb_ds/detail/bin_search_tree_/info_fn_imps.hpp:
3846 * include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp:
3848 * include/ext/pb_ds/detail/binary_heap_/info_fn_imps.hpp:
3850 * include/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp:
3852 * include/ext/pb_ds/detail/cc_hash_table_map_/info_fn_imps.hpp:
3854 * include/ext/pb_ds/detail/cc_hash_table_map_/size_fn_imps.hpp:
3856 * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp:
3858 * include/ext/pb_ds/detail/gp_hash_table_map_/info_fn_imps.hpp:
3860 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
3861 info_fn_imps.hpp: Likewise.
3862 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
3863 left_child_next_sibling_heap_.hpp: Likewise.
3864 * include/ext/pb_ds/detail/list_update_map_/info_fn_imps.hpp:
3866 * include/ext/pb_ds/detail/list_update_map_/lu_map_.hpp:
3868 * include/ext/pb_ds/detail/ov_tree_map_/info_fn_imps.hpp:
3870 * include/ext/pb_ds/detail/ov_tree_map_/ov_tree_map_.hp:
3872 * include/ext/pb_ds/detail/pat_trie_/info_fn_imps.hpp:
3874 * include/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp:
3876 * include/ext/pb_ds/detail/rc_binomial_heap_/rc.hpp:
3878 * include/ext/pb_ds/detail/tree_trace_base.hpp: Likewise.
3879 * include/ext/pb_ds/trie_policy.hpp: Likewise.
3880 * include/ext/rope: Likewise.
3881 * include/ext/slist: Likewise.
3882 * include/ext/vstring.h: Likewise.
3883 * include/profile/array: Likewise.
3884 * include/std/array: Likewise.
3885 * include/tr1/array: Likewise.
3886 * include/tr1/hashtable.h: Likewise.
3887 * include/tr1/regex: Likewise.
3888 * include/tr2/dynamic_bitset: Likewise.
3889 * include/bits/alloc_traits.h: Add nodiscard attribute to
3891 * include/experimental/memory_resource: Likewise.
3892 * include/ext/alloc_traits.h: Likewise.
3893 * include/ext/array_allocator.h: Likewise.
3894 * include/ext/bitmap_allocator.h: Likewise.
3895 * include/ext/debug_allocator.h: Likewise.
3896 * include/ext/extptr_allocator.h: Likewise.
3897 * include/ext/mt_allocator.h: Likewise.
3898 * include/ext/new_allocator.h: Likewise.
3899 * include/ext/pool_allocator.h: Likewise.
3900 * include/ext/throw_allocator.h: Likewise.
3901 * include/std/scoped_allocator: Likewise.
3902 * libsupc++/eh_alloc.cc: Likewise.
3903 * include/std/future: Add nodiscard attribute to async.
3904 * libsupc++/new: Add nodiscard attribute to new.
3906 2019-01-18 Jonathan Wakely <jwakely@redhat.com>
3911 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export new symbol.
3912 * include/bits/shared_ptr.h
3913 (shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...))
3914 (allocate_shared): Change to use new tag type.
3915 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_eq):
3916 Declare new member function.
3917 (_Sp_alloc_shared_tag): Define new type.
3918 (_Sp_counted_ptr_inplace): Declare __shared_count<_Lp> as a friend.
3919 (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Use
3920 _Sp_make_shared_tag::_S_eq to check type_info.
3921 (__shared_count(Ptr, Deleter),__shared_count(Ptr, Deleter, Alloc)):
3922 Constrain to prevent being called with _Sp_alloc_shared_tag.
3923 (__shared_count(_Sp_make_shared_tag, const _Alloc&, Args&&...)):
3924 Replace constructor with ...
3925 (__shared_count(Tp*&, _Sp_alloc_shared_tag<_Alloc>, Args&&...)): Use
3926 reference parameter so address of the new object can be returned to
3927 the caller. Obtain the allocator from the tag type.
3928 (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Replace
3929 constructor with ...
3930 (__shared_ptr(_Sp_alloc_shared_tag<Alloc>, Args&&...)): Pass _M_ptr
3931 to the __shared_count constructor.
3932 (__allocate_shared): Change to use new tag type.
3933 * src/c++11/shared_ptr.cc (_Sp_make_shared_tag::_S_eq): Define.
3935 2019-01-17 Jonathan Wakely <jwakely@redhat.com>
3937 * src/c++17/fs_ops.cc
3938 (equivalent(const path&, const path&, error_code&))
3939 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use GetFileInformationByHandle to
3940 compare files instead of relying on incomplete info returned by stat.
3943 * src/c++17/fs_ops.cc (absolute(const path&, error_code&)): Do nothing
3944 if the path is already absolute.
3945 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize root-directory.
3946 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Pass error_code to current_path.
3949 * src/c++17/fs_ops.cc (canonical(const path&, error_code&))
3950 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize path, to match behaviour
3951 of filesystem::exists.
3952 (create_directories(const path&, error_code&)): Add assertions.
3953 (status(const path&, error_code&)) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]:
3954 Add workaround for bug in _wstat for paths with trailing slash.
3955 * testsuite/27_io/filesystem/operations/create_directories.cc: Adjust
3956 for expected behaviour on mingw.
3957 * testsuite/experimental/filesystem/operations/create_directories.cc:
3959 * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Use
3960 "TMP" instead of "TMPDIR" and clean environment before each test. Do
3961 not test permissions on mingw targets.
3963 2019-01-16 Jonathan Wakely <jwakely@redhat.com>
3965 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add exports for fstream
3966 constructors and open members taking wide strings. Fix patterns for
3967 filesystem::path members to match wstring_view parameters. Add
3968 exports for shared_ptr members used by directory iterators.
3969 * src/c++17/fs_ops.cc (remove(const path&, error_code&)): Clear the
3970 error code parameter if the file doesn't exist.
3971 * src/filesystem/ops.cc (remove(const path&, error_code&)):
3973 * testsuite/27_io/filesystem/operations/canonical.cc: Fix expected
3974 values for mingw targets, where "/" is not an absolute path. Do not
3975 test symlinks on mingw targets.
3976 * testsuite/experimental/filesystem/operations/canonical.cc: Likewise.
3977 * testsuite/27_io/filesystem/operations/copy.cc: Do not test symlinks
3979 * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
3980 * testsuite/27_io/filesystem/operations/create_directories.cc: Check
3981 that each component of the path is created.
3982 * testsuite/experimental/filesystem/operations/create_directories.cc:
3984 * testsuite/27_io/filesystem/operations/exists.cc: Do not test
3985 permissions on mingw targets.
3986 * testsuite/experimental/filesystem/operations/exists.cc: Likewise.
3987 * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
3988 * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise.
3989 * testsuite/27_io/filesystem/operations/permissions.cc: XFAIL for
3991 * testsuite/experimental/filesystem/operations/permissions.cc:
3993 * testsuite/27_io/filesystem/operations/remove.cc: Do not test
3994 symlinks or permissions on mingw targets.
3995 * testsuite/experimental/filesystem/operations/remove.cc: Likewise.
3996 * testsuite/27_io/filesystem/operations/remove_all.cc: Do not test
3997 symlinks on mingw targets.
3998 * testsuite/experimental/filesystem/operations/remove_all.cc:
4000 * testsuite/27_io/filesystem/operations/status.cc: Do not test
4001 permissions on mingw targets.
4002 * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Do not
4003 test symlinks on mingw targets.
4004 * testsuite/experimental/filesystem/operations/space.cc: Fix test
4007 2019-02-14 Ulrich Drepper <drepper@redhat.com>
4010 Warn about unused comparisons of shared_ptr/unique_ptr
4011 * include/bits/c++config [_GLIBCXX_NODISCARD]: Define.
4012 * include/bits/shared_ptr.h: Use it for operator ==, !=,
4013 <, <=, >, >= for shared_ptr.
4014 * include/bits/unique_ptr.h: Likewise for unique_ptr.
4016 2019-01-15 Jonathan Wakely <jwakely@redhat.com>
4018 * include/bits/shared_ptr_base.h (__cpp_lib_shared_ptr_arrays): Define
4019 as 201611L, because P0497R0 changes are supported.
4020 * include/std/version (__cpp_lib_shared_ptr_arrays): Likewise.
4022 * include/bits/erase_if.h [__cplusplus > 201703L]
4023 (__cpp_lib_erase_if): Only define for C++2a.
4024 * include/std/iterator [__cplusplus >= 201402L && !_GLIBCXX_DEBUG]
4025 (__cpp_lib_null_iterators): Define.
4026 * include/std/version [__cplusplus >= 201402L && !_GLIBCXX_DEBUG]
4027 (__cpp_lib_null_iterators): Define.
4028 [__cpp_impl_destroying_delete] (__cpp_lib_destroying_delete): Define.
4030 * doc/xml/manual/status_cxx2017.xml: Document P0032R3 and P0307R2
4032 * include/bits/stl_uninitialized.h (__cpp_lib_raw_memory_algorithms):
4034 * include/std/any (__cpp_lib_any): Define as 201606L, because P0032R3
4035 changes are supported.
4036 * include/std/optional (__cpp_lib_optional): Likewise.
4037 * include/std/variant (__cpp_lib_variant): Likewise.
4038 * include/std/version [!__STRICT_ANSI__]
4039 (__cpp_lib_uncaught_exceptions): Define as long integer.
4040 [__cplusplus >= 201703L] (__cpp_lib_any)
4041 (__cpp_lib_raw_memory_algorithms, __cpp_lib_uncaught_exceptions)
4042 (__cpp_lib_variant): Define for C++17.
4043 [__cplusplus >= 201703L] (__cpp_lib_optional): Update value and define
4045 * libsupc++/exception (__cpp_lib_uncaught_exceptions): Define as long
4048 * doc/xml/manual/status_cxx2020.xml: Update P1123R0 status.
4050 2019-01-12 Jonathan Wakely <jwakely@redhat.com>
4054 * src/filesystem/path.cc: Fix typo. If first path is empty, show []
4056 * testsuite/experimental/filesystem/filesystem_error/cons.cc: New
4059 2019-01-11 Jonathan Wakely <jwakely@redhat.com>
4061 * doc/xml/manual/intro.xml: Include new section.
4062 * doc/xml/manual/status_cxx2017.xml: Document more
4063 implementation-defined properties of the library.
4064 * doc/xml/manual/status_cxx2020.xml: Document C++2a status.
4065 * doc/html/*: Regenerate.
4067 * include/bits/refwrap.h [__cplusplus > 201703L]
4068 (_Refwrap_base_arg1, _Refwrap_base_arg2, _Reference_wrapper_base)
4069 (_Reference_wrapper_base_memfun): Do not define for C++2a.
4070 (reference_wrapper): Do not derive from _Reference_wrapper_base_memfun
4072 (reference_wrapper::operator()): Add static assertion.
4073 * testsuite/20_util/reference_wrapper/incomplete.cc: New test.
4075 * include/std/chrono (duration_values::zero(), duration_values::min())
4076 (duration_values::max()): Add noexcept.
4077 (duration::zero(), duration::min(), duration::max()): Likewise.
4078 (time_point::zero(), time_point::min(), time_point::max()): Likewise.
4079 * testsuite/20_util/duration/requirements/noexcept.cc: New test.
4080 * testsuite/20_util/time_point/requirements/noexcept.cc: New test.
4082 * include/std/version (__cpp_lib_erase_if): Move to C++20 group.
4084 2019-01-11 Jakub Jelinek <jakub@redhat.com>
4086 * include/std/type_traits (__cpp_lib_is_constant_evaluated): Define.
4087 * include/std/version (__cpp_lib_is_constant_evaluated): Define.
4089 2019-01-11 Jonathan Wakely <jwakely@redhat.com>
4092 * include/bits/functional_hash.h (hash<nullptr_t>): Define
4093 specialization for C++17 (P0513R0, LWG 2817).
4094 * testsuite/20_util/hash/nullptr.cc: New test.
4097 * config/abi/pre/gnu.ver (GLIBCXX_3.4.6): Remove unused duplicate
4098 pattern for std::basic_stringbuf::str().
4100 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Correct recent changes to
4101 basic_ostream::operator<< patterns.
4103 2019-01-10 Jonathan Wakely <jwakely@redhat.com>
4105 * testsuite/27_io/filesystem/operations/last_write_time.cc: Fix
4106 test failures on targets with 32-bit time_t.
4108 * include/bits/erase_if.h: Define __cpp_lib_erase_if.
4109 * include/std/deque: Likewise.
4110 * include/std/forward_list: Likewise.
4111 * include/std/list: Likewise.
4112 * include/std/string: Likewise.
4113 * include/std/vector: Likewise.
4114 * include/std/version: Likewise.
4115 * testsuite/21_strings/basic_string/erasure.cc: Test macro.
4116 * testsuite/23_containers/deque/erasure.cc: Likewise.
4117 * testsuite/23_containers/forward_list/erasure.cc: Likewise.
4118 * testsuite/23_containers/list/erasure.cc: Likewise.
4119 * testsuite/23_containers/map/erasure.cc: Likewise.
4120 * testsuite/23_containers/set/erasure.cc: Likewise.
4121 * testsuite/23_containers/unordered_map/erasure.cc: Likewise.
4122 * testsuite/23_containers/unordered_set/erasure.cc: Likewise.
4123 * testsuite/23_containers/vector/erasure.cc: Likewise.
4125 * include/experimental/internet [AI_NUMERICSERV]
4126 (resolver_base::numeric_service): Define conditionally.
4127 * testsuite/experimental/net/internet/resolver/base.cc: Test it
4129 * testsuite/experimental/net/internet/resolver/ops/lookup.cc:
4132 2019-01-10 Ville Voutilainen <ville.voutilainen@gmail.com>
4133 Jonathan Wakely <jwakely@redhat.com>
4136 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten patterns.
4137 (GLIBCXX_3.4.26): Add new exports.
4138 * include/Makefile.am: Add ostream-inst.cc. Move string-inst.cc to
4139 correct list of sources.
4140 * include/Makefile.in: Regenerate.
4141 * include/std/ostream (operator<<(nullptr_t)): New member function.
4142 * src/c++17/ostream-inst.cc: New file.
4143 * testsuite/27_io/basic_ostream/inserters_other/char/lwg2221.cc: New
4146 2019-01-10 Jonathan Wakely <jwakely@redhat.com>
4148 * testsuite/util/testsuite_fs.h (nonexistent_path): Include name
4149 of the source file containing the caller.
4150 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Remove
4151 directories created by test.
4152 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
4154 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
4156 * testsuite/experimental/filesystem/iterators/
4157 recursive_directory_iterator.cc: Likewise.
4159 2019-01-10 Jakub Jelinek <jakub@redhat.com>
4161 PR tree-optimization/88775
4162 * include/bits/stl_function.h (greater<_Tp*>::operator(),
4163 less<_Tp*>::operator(), greater_equal<_Tp*>::operator(),
4164 less_equal<_Tp*>::operator()): Use __builtin_is_constant_evaluated
4165 instead of __builtin_constant_p if available. Don't bother with
4166 the pointer comparison in C++11 and earlier.
4168 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
4172 * include/ext/bitmap_allocator.h: Mechanically replace "can not"
4175 2019-01-09 Jonathan Wakely <jwakely@redhat.com>
4177 * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix expected output
4178 for filesystem::path. Give variables more distinctive names.
4180 * include/std/optional (_Optional_payload_base::_M_copy_assign): New
4181 member function to perform non-trivial assignment.
4182 (_Optional_payload_base::_M_move_assign): Likewise.
4183 (_Optional_payload<T, true, false, true>::operator=)
4184 (_Optional_payload<T, true, true, false>::operator=)
4185 (_Optional_payload<T, true, false, false>::operator=): Call
4186 _M_copy_assign and/or _M_move_assign to do non-trivial assignments.
4189 * testsuite/26_numerics/complex/operators/more_constexpr.cc: Do not
4190 test std::complex<long double> if long double format is IBM128.
4191 * testsuite/26_numerics/complex/requirements/more_constexpr.cc:
4194 2019-01-08 Jonathan Wakely <jwakely@redhat.com>
4196 * testsuite/libstdc++-prettyprinters/compat.cc: Test printer support
4197 for old std::unique_ptr layout.
4198 * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix std::variant test
4199 to become valueless. Add filesystem::path tests.
4202 * include/std/optional (_Optional_payload_base): New class template
4203 for common code hoisted from _Optional_payload specializations. Use
4204 a template for the union, to allow a partial specialization for
4205 types with non-trivial destructors. Add constructors for in-place
4206 initialization to the union.
4207 (_Optional_payload(bool, const _Optional_payload&)): Use _M_construct
4208 to perform non-trivial copy construction, instead of relying on
4209 non-standard copy elision in a delegating constructor.
4210 (_Optional_payload(bool, _Optional_payload&&)): Likewise for
4211 non-trivial move construction.
4212 (_Optional_payload): Derive from _Optional_payload_base and use it
4213 for everything except the non-trivial assignment operators, which are
4215 (_Optional_payload<false, C, M>): Derive from the specialization
4216 _Optional_payload<true, false, false> and add a destructor.
4217 (_Optional_base_impl::_M_destruct, _Optional_base_impl::_M_reset):
4218 Forward to corresponding members of _Optional_payload.
4219 (_Optional_base_impl::_M_is_engaged, _Optional_base_impl::_M_get):
4220 Hoist common members from _Optional_base.
4221 (_Optional_base): Make all members and base class public.
4222 (_Optional_base::_M_get, _Optional_base::_M_is_engaged): Move to
4223 _Optional_base_impl.
4224 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter): Add
4225 support for new std::optional layout.
4226 * testsuite/libstdc++-prettyprinters/compat.cc: New test.
4229 * include/bits/locale_conv.h: Use <> for includes not "".
4230 * include/ext/random: Likewise.
4231 * include/ext/vstring.h: Likewise.
4233 2019-01-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4235 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten existing patterns.
4236 (GLIBCXX_3.4.21): Likewise.
4238 2019-01-08 Jonathan Wakely <jwakely@redhat.com>
4241 * src/filesystem/ops.cc (last_write_time): Fix preprocessor condition
4242 to match the one that controls whether utimbuf and utime are declared.
4244 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
4247 * include/bits/char_traits.h (char_traits::move): Do not pass null
4248 pointers to memmove.
4249 * include/bits/locale_facets.h
4250 (ctype<char>::widen(const char*, const char*, char*)): Do not
4251 pass null pointers to memcpy.
4252 (ctype<char>::narrow(const char*, const char*, char, char*)):
4254 (ctype<char>::do_widen(const char*, const char*, char*)):
4256 (ctype<char>::do_narrow(const char*, const char*, char, char*)):
4259 * doc/xml/manual/spine.xml: Update copyright years.
4260 * doc/xml/manual/status_cxx2017.xml: Adjust note about -lstdc++fs.
4261 * doc/xml/manual/using.xml: Remove requirement to link with -lstdc++fs
4262 for C++17 filesystem library.
4263 * doc/html/*: Regenerate.
4265 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for truncate.
4266 * config.h.in: Regenerate.
4267 * config/abi/pre/gnu.ver: Order patterns for filesystem operations
4268 alphabetically and add missing entries for copy_symlink,
4269 hard_link_count, rename, and resize_file.
4270 * configure: Regenerate.
4271 * src/c++17/fs_ops.cc (resize_file): Remove #if so posix::truncate is
4272 used unconditionally.
4273 * src/filesystem/ops-common.h (__gnu_posix::truncate)
4274 [!_GLIBCXX_HAVE_TRUNCATE]: Provide fallback definition that only
4275 supports truncating to zero length.
4276 * testsuite/27_io/filesystem/operations/all.cc: New test.
4277 * testsuite/27_io/filesystem/operations/resize_file.cc: New test.
4279 2019-01-06 Jonathan Wakely <jwakely@redhat.com>
4282 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for utime and
4283 lstat and define _GLIBCXX_USE_UTIME and _GLIBCXX_USE_LSTAT.
4284 * config.h.in: Regenerate.
4285 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export symbols for
4286 remaining std::filesystem types and functions.
4287 * configure: Regenerate.
4288 * src/c++17/Makefile.am: Add C++17 filesystem sources.
4289 * src/c++17/Makefile.in: Regenerate.
4290 * src/c++17/cow-fs_dir.cc: Move src/filesystem/cow-std-dir.cc to
4291 here, and change name of included file.
4292 * src/c++17/cow-fs_ops.cc: Move src/filesystem/cow-std-ops.cc to
4293 here, and change name of included file.
4294 * src/c++17/fs_dir.cc: Move src/filesystem/std-dir.cc to here. Change
4295 path to dir-common.h.
4296 * src/c++17/fs_ops.cc: Move src/filesystem/std-ops.cc to here. Change
4297 path to ops-common.h. Disable -Wunused-parameter warnings.
4298 (internal_file_clock): Define unconditionally.
4299 [!_GLIBCXX_HAVE_SYS_STAT_H] (internal_file_clock::from_stat): Do not
4301 (do_copy_file, do_space): Move definitions to ops.common.h.
4302 (copy, file_size, hard_link_count, last_write_time, space): Only
4303 perform operation when _GLIBCXX_HAVE_SYS_STAT_H is defined, otherwise
4305 (last_write_time, read_symlink): Remove unused attributes from
4307 * src/filesystem/Makefile.am: Remove C++17 filesystem sources.
4308 * src/filesystem/Makefile.in: Regenerate.
4309 * src/filesystem/cow-std-dir.cc: Move to src/c++17/cow-fs_dir.cc.
4310 * src/filesystem/cow-std-ops.cc: Move to src/c++17/cow-fs_ops.cc.
4311 * src/filesystem/std-dir.cc: Move to src/c++17/fs_dir.cc.
4312 * src/filesystem/std-ops.cc: Move to src/c++17/fs_ops.cc.
4313 * src/filesystem/dir-common.h [!_GLIBCXX_HAVE_DIRENT_H]: Define
4314 dummy types and functions instead of using #error.
4315 * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H]: Use #error.
4316 * src/filesystem/ops-common.h [!_GLIBCXX_USE_LSTAT] (lstat): Define
4318 [!_GLIBCXX_HAVE_UNISTD_H]: Define dummy types and functions.
4319 (do_copy_file, do_space): Move definitions here from std-ops.cc.
4320 * src/filesystem/ops.cc: Adjust calls to do_copy_file and do_space
4321 to account for new namespace.
4322 * testsuite/27_io/filesystem/directory_entry/86597.cc: Remove
4323 -lstdc++fs from dg-options.
4324 * testsuite/27_io/filesystem/directory_entry/lwg3171.cc: Likewise.
4325 * testsuite/27_io/filesystem/file_status/1.cc: Likewise.
4326 * testsuite/27_io/filesystem/filesystem_error/cons.cc: Likewise.
4327 * testsuite/27_io/filesystem/filesystem_error/copy.cc: Likewise.
4328 * testsuite/27_io/filesystem/iterators/directory_iterator.cc:
4330 * testsuite/27_io/filesystem/iterators/pop.cc: Likewise.
4331 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
4333 * testsuite/27_io/filesystem/operations/absolute.cc: Likewise.
4334 * testsuite/27_io/filesystem/operations/canonical.cc: Likewise.
4335 * testsuite/27_io/filesystem/operations/copy.cc: Likewise.
4336 * testsuite/27_io/filesystem/operations/copy_file.cc: Likewise.
4337 * testsuite/27_io/filesystem/operations/create_directories.cc:
4339 * testsuite/27_io/filesystem/operations/create_directory.cc: Likewise.
4340 * testsuite/27_io/filesystem/operations/create_symlink.cc: Likewise.
4341 * testsuite/27_io/filesystem/operations/current_path.cc: Likewise.
4342 * testsuite/27_io/filesystem/operations/equivalent.cc: Likewise.
4343 * testsuite/27_io/filesystem/operations/exists.cc: Likewise.
4344 * testsuite/27_io/filesystem/operations/file_size.cc: Likewise.
4345 * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
4346 * testsuite/27_io/filesystem/operations/last_write_time.cc: Likewise.
4347 * testsuite/27_io/filesystem/operations/permissions.cc: Likewise.
4348 * testsuite/27_io/filesystem/operations/proximate.cc: Likewise.
4349 * testsuite/27_io/filesystem/operations/read_symlink.cc: Likewise.
4350 * testsuite/27_io/filesystem/operations/relative.cc: Likewise.
4351 * testsuite/27_io/filesystem/operations/remove.cc: Likewise.
4352 * testsuite/27_io/filesystem/operations/remove_all.cc: Likewise.
4353 * testsuite/27_io/filesystem/operations/space.cc: Likewise.
4354 * testsuite/27_io/filesystem/operations/status.cc: Likewise.
4355 * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
4356 * testsuite/27_io/filesystem/operations/temp_directory_path.cc:
4358 * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Likewise.
4362 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Make various patterns for
4363 typeinfo and vtables less greedy.
4364 (GLIBCXX_3.4.26): Export symbols for std::filesystem::path.
4365 * src/c++17/Makefile.am: Add fs_path.cc and cow-fs_path.cc.
4366 * src/c++17/Makefile.in: Regenerate.
4367 * src/c++17/cow-fs_path.cc: Move src/filesystem/cow-std-path.cc to
4368 here, and change name of included file.
4369 * src/c++17/fs_path.cc: Move src/filesystem/std-path.cc to here.
4370 * src/filesystem/Makefile.am: Remove std-path.cc and cow-std-path.cc
4372 * src/filesystem/Makefile.in: Regenerate.
4373 * src/filesystem/cow-std-path.cc: Move to src/c++17/cow-fs_path.cc.
4374 * src/filesystem/std-path.cc: Move to src/c++17/fs_path.cc.
4375 * testsuite/27_io/filesystem/path/append/path.cc: Remove -lstdc++fs
4376 from dg-options and remove dg-require-filesystem-ts.
4377 * testsuite/27_io/filesystem/path/append/source.cc: Likewise.
4378 * testsuite/27_io/filesystem/path/assign/assign.cc: Likewise.
4379 * testsuite/27_io/filesystem/path/assign/copy.cc: Likewise.
4380 * testsuite/27_io/filesystem/path/compare/compare.cc: Likewise.
4381 * testsuite/27_io/filesystem/path/compare/lwg2936.cc: Likewise.
4382 * testsuite/27_io/filesystem/path/compare/path.cc: Likewise.
4383 * testsuite/27_io/filesystem/path/compare/strings.cc: Likewise.
4384 * testsuite/27_io/filesystem/path/concat/path.cc: Likewise.
4385 * testsuite/27_io/filesystem/path/concat/strings.cc: Likewise.
4386 * testsuite/27_io/filesystem/path/construct/80762.cc: Likewise.
4387 * testsuite/27_io/filesystem/path/construct/copy.cc: Likewise.
4388 * testsuite/27_io/filesystem/path/construct/default.cc: Likewise.
4389 * testsuite/27_io/filesystem/path/construct/format.cc: Likewise.
4390 * testsuite/27_io/filesystem/path/construct/locale.cc: Likewise.
4391 * testsuite/27_io/filesystem/path/construct/range.cc: Likewise.
4392 * testsuite/27_io/filesystem/path/construct/string_view.cc: Likewise.
4393 * testsuite/27_io/filesystem/path/decompose/extension.cc: Likewise.
4394 * testsuite/27_io/filesystem/path/decompose/filename.cc: Likewise.
4395 * testsuite/27_io/filesystem/path/decompose/parent_path.cc: Likewise.
4396 * testsuite/27_io/filesystem/path/decompose/relative_path.cc: Likewise.
4397 * testsuite/27_io/filesystem/path/decompose/root_directory.cc:
4399 * testsuite/27_io/filesystem/path/decompose/root_name.cc: Likewise.
4400 * testsuite/27_io/filesystem/path/decompose/root_path.cc: Likewise.
4401 * testsuite/27_io/filesystem/path/decompose/stem.cc: Likewise.
4402 * testsuite/27_io/filesystem/path/generation/normal.cc: Likewise.
4403 * testsuite/27_io/filesystem/path/generation/normal2.cc: Likewise.
4404 * testsuite/27_io/filesystem/path/generation/proximate.cc: Likewise.
4405 * testsuite/27_io/filesystem/path/generation/relative.cc: Likewise.
4406 * testsuite/27_io/filesystem/path/generic/generic_string.cc: Likewise.
4407 * testsuite/27_io/filesystem/path/itr/components.cc: Likewise.
4408 * testsuite/27_io/filesystem/path/itr/traversal.cc: Likewise.
4409 * testsuite/27_io/filesystem/path/modifiers/clear.cc: Likewise.
4410 * testsuite/27_io/filesystem/path/modifiers/make_preferred.cc:
4412 * testsuite/27_io/filesystem/path/modifiers/remove_filename.cc:
4414 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
4416 * testsuite/27_io/filesystem/path/modifiers/replace_filename.cc:
4418 * testsuite/27_io/filesystem/path/modifiers/swap.cc: Likewise.
4419 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
4420 * testsuite/27_io/filesystem/path/nonmember/append.cc: Likewise.
4421 * testsuite/27_io/filesystem/path/nonmember/hash_value.cc: Likewise.
4422 * testsuite/27_io/filesystem/path/query/empty.cc: Likewise.
4423 * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise.
4424 * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise.
4425 * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise.
4426 * testsuite/27_io/filesystem/path/query/has_relative_path.cc: Likewise.
4427 * testsuite/27_io/filesystem/path/query/has_root_directory.cc:
4429 * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise.
4430 * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise.
4431 * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise.
4432 * testsuite/27_io/filesystem/path/query/is_absolute.cc: Likewise.
4433 * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise.
4436 * include/std/variant (_Variant_storage<true, _Types...>::_M_valid):
4437 Check is_trivially_copyable instead of is_scalar.
4438 (variant::emplace<N, Args>(Args&&...)): If construction of the new
4439 contained value can throw and its type is trivially copyable then
4440 construct into a temporary variant and move from it, to provide the
4441 strong exception safety guarantee.
4442 (variant::emplace<N, U, Args>(initializer_list<U>, Args&&...)):
4444 * testsuite/20_util/variant/87431.cc: New test.
4445 * testsuite/20_util/variant/run.cc: Adjust test so that throwing
4446 conversion causes valueless state.
4449 * testsuite/17_intro/headers/c++1998/charset.cc: New test.
4450 * testsuite/17_intro/headers/c++2011/charset.cc: New test.
4451 * testsuite/17_intro/headers/c++2014/charset.cc: New test.
4452 * testsuite/17_intro/headers/c++2017/charset.cc: New test.
4453 * testsuite/17_intro/headers/c++2020/charset.cc: New test.
4455 2019-01-05 Jonathan Wakely <jwakely@redhat.com>
4457 * include/bits/fs_fwd.h (__file_clock): Define new clock.
4458 (file_time_type): Redefine in terms of __file_clock.
4459 * src/filesystem/ops-common.h (file_time): Add FIXME comment about
4461 * src/filesystem/std-ops.cc (is_set(perm_options, perm_options)): Give
4463 (internal_file_lock): New helper type for accessing __file_clock.
4464 (do_copy_file): Use internal_file_lock to convert system time to
4466 (last_write_time(const path&, error_code&)): Likewise.
4467 (last_write_time(const path&, file_time_type, error_code&)): Likewise.
4469 2019-01-04 Jonathan Wakely <jwakely@redhat.com>
4471 * config/abi/pre/gnu.ver (GLIBCXX_3.4.21): Make patterns less greedy
4472 for const member functions of std::basic_string.
4473 (GLIBCXX_3.4.26): Export member functions of std::basic_string added
4475 * include/bits/basic_string.h (basic_string(__sv_wrapper, const A&)):
4476 Make non-standard constructor private.
4477 [!_GLIBCXX_USE_CXX11_ABI] (basic_string(__sv_wrapper, const A&)):
4479 * include/bits/basic_string.tcc (std::string, std::wstring): Declare
4480 explicit instantiations for C++17 as well as earlier dialects.
4481 * src/c++17/Makefile.am: Add new source files.
4482 * src/c++17/Makefile.in: Regenerate.
4483 * src/c++17/cow-string-inst.cc: New file defining explicit
4484 instantiations for basic_string member functions added in C++17.
4485 * src/c++17/string-inst.cc: Likewise.
4487 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export allocator-extended
4488 copy/move constructors for old std::basic_string.
4489 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
4490 (basic_string::reference, basic_string::const_reference): Define
4491 as plain references for C++11 and later.
4492 (basic_string::basic_string()): Put constructor body outside
4493 preprocessor conditional groups.
4494 (basic_string::basic_string(basic_string&&)): Move _Alloc_hider
4495 instead of copying it.
4496 (basic_string::basic_string(const basic_string&, const _Alloc&)):
4498 (basic_string::basic_string(basic_string&&, const _Alloc&)):
4500 * include/bits/fs_path.h [!_GLIBCXX_USE_CXX11_ABI]: Remove special
4501 cases for old basic_string.
4502 * testsuite/21_strings/basic_string/cons/char/8.cc: Test
4503 allocator-extended constructors unconditionally. Add extra members to
4504 allocator type when using old string ABI.
4505 * testsuite/21_strings/basic_string/allocator/71964.cc: Enable test
4507 * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise.
4509 * testsuite/23_containers/list/61347.cc: Avoid spurious failure when
4510 -fno-inline added to test flags.
4512 * testsuite/21_strings/basic_string/requirements/
4513 explicit_instantiation/debug.cc: Remove XFAIL for old ABI.
4515 * testsuite/27_io/filesystem/filesystem_error/copy.cc: Fix static
4516 assertion failures with old std::string ABI.
4518 * include/bits/fs_path.h (path::_List::erase): Replace both overloads
4520 (path::pop_back(), path::_M_erase_from(const_iterator)): New member
4521 functions that will only erase elements at the end.
4522 * src/filesystem/std-path.cc (path::_List::_Impl::pop_back()): Define.
4523 (path::_List::_Impl::_M_erase_from(const_iterator)): Define.
4524 (path::_List::operator=(const _List&)): Use _M_erase_from(p) instead
4526 (path::_List::pop_back()): Define.
4527 (path::_List::_M_erase_from(const_iterator)): Define.
4528 (path::operator/=(const path&)): Use pop_back to remove last component
4529 and _M_erase_from to remove multiple components.
4530 (path::_M_append(basic_string_view<value_type>)): Likewise.
4531 (path::operator+=(const path&)): Likewise.
4532 (path::_M_concat(basic_string_view<value_type>)): Likewise.
4533 (path::remove_filename()): Likewise.
4534 (path::lexically_normal()): Use _List::_Impl iterators instead of
4535 path::iterator. Use pop_back to remove components from the end. Clear
4536 trailing filename, instead of using erase(const_iterator) to remove
4537 a non-final component.
4538 * testsuite/27_io/filesystem/path/generation/normal.cc: Test
4540 * testsuite/27_io/filesystem/path/generation/normal2.cc: New test.
4542 * src/filesystem/std-path.cc (path::operator+=(const path&)): Fix
4543 incorrect treatment of empty filename after trailing slash.
4544 * testsuite/27_io/filesystem/path/concat/path.cc: Test problem case.
4546 * testsuite/21_strings/basic_string/modifiers/assign/char/
4547 move_assign_optim.cc: Avoid spurious failure when -fno-inline added
4549 * testsuite/21_strings/basic_string/modifiers/assign/wchar_t/
4550 move_assign_optim.cc: Likewise.
4552 2019-01-03 Jonathan Wakely <jwakely@redhat.com>
4553 Jakub Jelinek <jakub@redhat.com>
4556 * include/experimental/memory: Replace UTF-8 quote characters.
4557 * include/std/future: Replace UTF-8 "em dash" characters.
4559 2019-01-03 Jonathan Wakely <jwakely@redhat.com>
4562 * include/bits/forward_list.h: Replace UTF-8 "ligature fi" character.
4563 * include/debug/forward_list: Likewise.
4564 * include/experimental/bits/shared_ptr.h: Remove UTF-8 "section sign"
4566 * include/experimental/chrono: Likewise.
4567 * include/experimental/functional: Likewise.
4568 * include/experimental/ratio: Likewise.
4569 * include/experimental/system_error: Likewise.
4570 * include/experimental/tuple: Likewise.
4571 * include/experimental/type_traits: Likewise.
4572 * include/parallel/workstealing.h: Replace UTF-8 "en dash" character.
4573 * include/parallel/multiseq_selection.h: Likewise.
4576 * config/abi/pre/gnu.ver: Add missing exports.
4577 * testsuite/22_locale/collate_byname/88681.cc: New test.
4578 * testsuite/22_locale/time_get/get/char/88681.cc: New test.
4579 * testsuite/22_locale/time_get/get/wchar_t/88681.cc: New test.
4581 2019-01-02 Jonathan Wakely <jwakely@redhat.com>
4583 * testsuite/23_containers/map/cons/deduction.cc: Test deduction from
4584 initializer_list<value_type> and from input iterator ranges.
4585 * testsuite/23_containers/multimap/cons/deduction.cc: Likewise.
4587 * testsuite/experimental/string_view/element_access/char/empty.cc:
4588 Fix year range in copyright header.
4590 2019-01-02 Joel Brobecker <brobecker@adacore.com>
4592 * testsuite/21_strings/basic_string_view/element_access/char/empty.cc:
4593 Fix year range in copyright header.
4595 2019-01-01 Jakub Jelinek <jakub@redhat.com>
4597 Update copyright years.
4599 Copyright (C) 2019 Free Software Foundation, Inc.
4601 Copying and distribution of this file, with or without modification,
4602 are permitted in any medium without royalty provided the copyright
4603 notice and this notice are preserved.