1 2018-10-19 Jonathan Wakely <jwakely@redhat.com>
3 * testsuite/20_util/scoped_allocator/1.cc: Use allocator with correct
4 value type for the container.
5 * testsuite/23_containers/forward_list/cons/14.cc: Likewise.
6 * testsuite/23_containers/map/56613.cc: Likewise.
7 * testsuite/23_containers/unordered_map/55043.cc: Likewise.
8 * testsuite/23_containers/unordered_map/allocator/copy.cc: Likewise.
9 * testsuite/23_containers/unordered_map/allocator/copy_assign.cc:
11 * testsuite/23_containers/unordered_map/allocator/minimal.cc:
13 * testsuite/23_containers/unordered_map/allocator/move.cc: Likewise.
14 * testsuite/23_containers/unordered_map/allocator/move_assign.cc:
16 * testsuite/23_containers/unordered_map/allocator/noexcept.cc:
18 * testsuite/23_containers/unordered_map/cons/81891.cc: Likewise.
19 * testsuite/23_containers/unordered_map/requirements/exception/
21 * testsuite/23_containers/unordered_map/requirements/exception/
22 generation_prohibited.cc: Likewise.
23 * testsuite/23_containers/unordered_map/requirements/exception/
24 propagation_consistent.cc: Likewise.
25 * testsuite/23_containers/unordered_multimap/55043.cc: Likewise.
26 * testsuite/23_containers/unordered_multimap/allocator/copy.cc:
28 * testsuite/23_containers/unordered_multimap/allocator/copy_assign.cc:
30 * testsuite/23_containers/unordered_multimap/allocator/minimal.cc:
32 * testsuite/23_containers/unordered_multimap/allocator/move.cc:
34 * testsuite/23_containers/unordered_multimap/allocator/move_assign.cc:
36 * testsuite/23_containers/unordered_multimap/allocator/noexcept.cc:
38 * testsuite/23_containers/unordered_multimap/requirements/exception/
40 * testsuite/23_containers/unordered_multimap/requirements/exception/
41 generation_prohibited.cc: Likewise.
42 * testsuite/23_containers/unordered_multimap/requirements/exception/
43 propagation_consistent.cc: Likewise.
44 * testsuite/23_containers/unordered_multimap/requirements/
45 explicit_instantiation/5.cc: Likewise.
46 * testsuite/ext/malloc_allocator/sanity.cc: Likewise.
48 * ext/special_functions/airy_ai/check_nan.cc: Skip test for
49 non-standard extension when a strict -std=c++NN dialect is used.
50 * ext/special_functions/airy_ai/check_value.cc: Likewise.
51 * ext/special_functions/airy_ai/compile.cc: Likewise.
52 * ext/special_functions/airy_bi/check_nan.cc: Likewise.
53 * ext/special_functions/airy_bi/check_value.cc: Likewise.
54 * ext/special_functions/airy_bi/compile.cc: Likewise.
55 * ext/special_functions/conf_hyperg/check_nan.cc: Likewise.
56 * ext/special_functions/conf_hyperg/check_value.cc: Likewise.
57 * ext/special_functions/conf_hyperg/compile.cc: Likewise.
58 * ext/special_functions/hyperg/check_nan.cc: Likewise.
59 * ext/special_functions/hyperg/check_value.cc: Likewise.
60 * ext/special_functions/hyperg/compile.cc: Likewise.
62 * testsuite/23_containers/list/requirements/explicit_instantiation/
63 5_c++0x.cc: Remove redundant test that is functionally identical to
65 * testsuite/23_containers/map/requirements/explicit_instantiation/
67 * testsuite/23_containers/multimap/requirements/explicit_instantiation/
69 * testsuite/23_containers/multiset/requirements/explicit_instantiation/
71 * testsuite/23_containers/set/requirements/explicit_instantiation/
74 * include/bits/regex_executor.tcc (_Backref_matcher::_M_apply): Use
75 _GLIBCXX_STD_A to refer to normal mode algorithms.
76 * testsuite/28_regex/headers/regex/parallel_mode.cc: New test.
77 * testsuite/28_regex/headers/regex/std_c++0x_neg.cc: Remove empty
80 * include/debug/map.h (map::erase(iterator)): Add abi-tag so that
81 C++11 version mangles differently from incompatible C++98 version.
82 * include/debug/multimap.h (multimap::erase(iterator)): Likewise.
83 * include/debug/multiset.h (multiset::erase(iterator))
84 (multiset::erase(const_iterator, const_iterator)): Likewise.
85 * include/debug/set.h (set::erase(iterator))
86 (multiset::erase(const_iterator, const_iterator)): Likewise.
88 2018-10-18 Jonathan Wakely <jwakely@redhat.com>
90 * testsuite/20_util/duration/cons/2.cc: Add -ffloat-store to fix
91 failure when compiled without optimisation.
92 * testsuite/ext/profile/mutex_extensions_neg.cc: Prune additional
93 errors caused by C++17 std::pmr alias templates.
96 * config/locale/gnu/monetary_members.cc
97 (moneypunct<char, true>::_M_initialize_moneypunct): Use
98 __narrow_multibyte_chars to convert multibyte thousands separators
100 * config/locale/gnu/numeric_members.cc
101 (numpunct<char>::_M_initialize_numpunct): Likewise.
102 (__narrow_multibyte_chars): New function.
105 * include/bits/valarray_array.h (__valarray_sum): Use first element
106 to initialize accumulator instead of value-initializing it.
107 (__valarray_product<_Tp>): Move to ...
108 * src/c++98/valarray.cc (__valarray_product<_Tp>): Here. Use first
109 element to initialize accumulator.
110 (__valarray_product(const valarray<size_t>&)): Remove const_cast made
111 unnecessary by LWG 389.
112 * testsuite/26_numerics/valarray/87641.cc: New test.
114 2018-10-18 François Dumont <fdumont@gcc.gnu.org>
117 2018-10-08 François Dumont <fdumont@gcc.gnu.org>
119 * include/debug/list (list<>::cbegin()): Use C++11 direct
121 (list<>::cend()): Likewise.
122 (list<>::erase(const_iterator, const_iterator)): Ensure consistent
123 iterator comparisons.
124 (list<>::splice(const_iterator, list&&, const_iterator,
125 const_iterator)): Likewise.
128 2018-10-15 François Dumont <fdumont@gcc.gnu.org>
130 * include/debug/vector (vector<>::cbegin()): Use C++11 direct
132 (vector<>::cend()): Likewise.
133 (vector<>::insert(const_iterator, const _Tp&)): Use consistent
135 (vector<>::erase(const_iterator)): Likewise.
136 (vector<>::erase(const_iterator, const_iterator)): Likewise.
138 2018-10-17 Ville Voutilainen <ville.voutilainen@gmail.com>
141 * include/std/variant (__select_index): Fix an off-by-one.
142 * testsuite/20_util/variant/87619.cc: New.
144 2018-10-16 Jonathan Wakely <jwakely@redhat.com>
146 * include/bits/random.h (random_device) [!_GLIBCXX_USE_DEV_RANDOM]:
147 Fix default constructor to call correct function.
149 * testsuite/experimental/net/internet/address/v4/creation.cc: Do not
150 declare ip in global namespace, to avoid collision with struct ip
151 defined in <netinet/ip.h>.
153 * include/experimental/bits/net.h: Move versioned namespace macros
155 * include/experimental/buffer: Likewise.
156 * include/experimental/executor: Likewise.
157 * include/experimental/internet: Likewise.
158 * include/experimental/io_context: Likewise.
159 * include/experimental/netfwd: Likewise.
160 * include/experimental/socket: Likewise.
161 * include/experimental/timer: Likewise.
163 * config.h.in: Regenerate.
164 * configure: Regenerate.
165 * configure.ac: Check for headers used by Networking TS.
166 * include/experimental/executor: Include <condition_variable>
168 * include/experimental/internet: Use autoconf macros for available
169 headers. Include <sys/socket.h> for. Remove <cstring> and use
170 __builtin_memcpy and __builtin_strchr.
171 (resolver_errc) [!_GLIBCXX_HAVE_NETDB_H]: Do not define.
172 (address_v4::to_string, address_v6::to_string)
173 [!_GLIBCXX_HAVE_ARPA_INET_H]: Likewise.
174 (basic_resolver_results) [!_GLIBCXX_HAVE_NETDB_H]: Make private
175 constructors report errors.
176 [!_GLIBCXX_HAVE_NETINET_TCP_H] (tcp::no_delay): Do not define.
177 * include/experimental/io_context: Likewise.
178 * include/experimental/socket: Likewise.
179 [!_GLIBCXX_HAVE_SYS_SOCKET_H, !_GLIBCXX_HAVE_POLL_H] (socket_base): Do
180 not define nested types when relevant header not available.
181 (__socket_impl::native_non_blocking) [!_GLIBCXX_HAVE_FCNTL_H]: Report
183 (__basic_socket_impl::open, __basic_socket_impl::local_endpoint)
184 (__basic_socket_impl::bind) [!_GLIBCXX_HAVE_SYS_SOCKET_H]: Likewise.
185 (__basic_socket_impl::io_control) [!_GLIBCXX_HAVE_SYS_IOCTL_H]:
187 (basic_socket::at_mark, basic_socket::shutdown)
188 (basic_socket::remote_endpoint, basic_socket::connect)
189 (basic_socket::async_connect) [!_GLIBCXX_HAVE_SYS_SOCKET_H]: Likewise.
190 (basic_socket::available) [_GLIBCXX_HAVE_SYS_IOCTL_H]: Check macro
191 for <sys/ioctl.h> availability.
192 (basic_socket::wait) [!_GLIBCXX_HAVE_POLL_H]: Likewise.
193 (basic_datagram_socket::receive, basic_datagram_socket::async_receive)
194 (basic_datagram_socket::receive_from)
195 (basic_datagram_socket::async_receive_from)
196 (basic_datagram_socket::send, basic_datagram_socket::async_send)
197 (basic_datagram_socket::send_to, basic_datagram_socket::async_send_to)
198 [!_GLIBCXX_HAVE_SYS_SOCKET_H]: Likewise.
199 (basic_stream_socket::receive, basic_stream_socket::async_receive)
200 (basic_stream_socket::send, basic_stream_socket::async_send)
201 [!_GLIBCXX_HAVE_SYS_SOCKET_H]: Likewise.
202 (basic_socket_acceptor::listen, basic_socket_acceptor::accept)
203 (basic_socket_acceptor::async_accept) [!_GLIBCXX_HAVE_SYS_SOCKET_H]:
205 (basic_socket_acceptor::wait) [!_GLIBCXX_HAVE_POLL_H]: Likewise.
207 * testsuite/experimental/net/headers.cc: Remove dg-options.
208 * testsuite/experimental/net/buffer/arithmetic.cc: Replace dg-options
209 with dg-do using effective target.
210 * testsuite/experimental/net/buffer/const.cc: Likewise.
211 * testsuite/experimental/net/buffer/creation.cc: Likewise.
212 * testsuite/experimental/net/buffer/mutable.cc: Likewise.
213 * testsuite/experimental/net/buffer/size.cc: Likewise.
214 * testsuite/experimental/net/buffer/traits.cc: Likewise.
215 * testsuite/experimental/net/execution_context/use_service.cc:
217 * testsuite/experimental/net/internet/address/v4/comparisons.cc:
219 * testsuite/experimental/net/internet/address/v4/cons.cc: Likewise.
220 * testsuite/experimental/net/internet/address/v4/creation.cc:
222 * testsuite/experimental/net/internet/address/v4/members.cc: Likewise.
223 * testsuite/experimental/net/internet/resolver/base.cc: Likewise.
224 * testsuite/experimental/net/internet/resolver/ops/lookup.cc:
226 * testsuite/experimental/net/internet/resolver/ops/reverse.cc:
228 * testsuite/experimental/net/timer/waitable/cons.cc: Likewise.
229 * testsuite/experimental/net/timer/waitable/dest.cc: Likewise.
230 * testsuite/experimental/net/timer/waitable/ops.cc: Likewise.
232 * include/experimental/socket (basic_socket::at_mark): Add missing
235 * acinclude.m4 (GLIBCXX_CHECK_RANDOM_TR1): Replace with ...
236 (GLIBCXX_CHECK_DEV_RANDOM): New macro with more descriptive name.
237 Define _GLIBCXX_USE_DEV_RANDOM as well as _GLIBCXX_USE_RANDOM_TR1.
238 * config.h.in: Regenerate.
239 * configure: Regenerate.
240 * configure.ac: Use GLIBCXX_CHECK_DEV_RANDOM instead of
241 GLIBCXX_CHECK_RANDOM_TR1.
242 crossconfig.m4: Likewise.
243 * include/bits/random.h (random_device): Use _GLIBCXX_USE_DEV_RANDOM
244 instead of _GLIBCXX_USE_RANDOM_TR1.
245 * testsuite/26_numerics/random/random_device/cons/token.cc: Likewise.
247 2018-10-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
249 * testsuite/lib/dg-options.exp (add_options_for_net_ts): New proc.
250 * testsuite/experimental/net/internet/address/v4/comparisons.cc:
251 Add dg-add-options net_ts.
252 * testsuite/experimental/net/internet/address/v4/cons.cc: Likewise.
253 * testsuite/experimental/net/internet/address/v4/creation.cc: Likewise.
254 * testsuite/experimental/net/internet/address/v4/members.cc: Likewise.
255 * testsuite/experimental/net/internet/resolver/base.cc: Likewise.
256 * testsuite/experimental/net/internet/resolver/ops/lookup.cc: Likewise.
257 * testsuite/experimental/net/internet/resolver/ops/reverse.cc: Likewise.
259 2018-10-16 Jonathan Wakely <jwakely@redhat.com>
261 * testsuite/20_util/duration/literals/range_neg.cc: Adjust pruned
262 diagnostic to account for quotes around 'constexpr'.
263 * testsuite/23_containers/deque/capacity/max_size.cc: Define static
265 * testsuite/23_containers/vector/capacity/max_size.cc: Likewise.
268 * config/abi/pre/gnu.ver: Fix typos in patterns for basic_stringbuf.
269 * testsuite/27_io/basic_stringbuf/cons/char/default.cc: Disable
270 optimisation to check constructor definition can be linked to.
271 * testsuite/27_io/basic_stringbuf/cons/wchar_t/default.cc: Likewise.
273 2018-10-15 Jonathan Wakely <jwakely@redhat.com>
275 * testsuite/22_locale/numpunct/members/char/3.cc: Adjust test to
276 account for change to glibc it_IT localedata (glibc bz#10797).
279 * src/c++11/cxx11-shim_facets.cc: Suppress -Wabi warnings.
281 2018-10-15 François Dumont <fdumont@gcc.gnu.org>
283 * include/debug/vector (vector<>::cbegin()): Use C++11 direct
285 (vector<>::cend()): Likewise.
286 (vector<>::emplace(const_iterator, _Args&&...)): Likewise and use
287 consistent iterator comparison.
288 (vector<>::insert(const_iterator, size_type, const _Tp&)): Likewise.
289 (vector<>::insert(const_iterator, _InputIterator, _InputIterator)):
291 (vector<>::erase(const_iterator)): Likewise.
292 (vector<>::erase(const_iterator, const_iterator)): Likewise.
294 2018-10-12 Jonathan Wakely <jwakely@redhat.com>
296 Initial commit of Networking TS implementation.
297 * include/Makefile.am: Add new headers.
298 * include/Makefile.in: Regenerate.
299 * include/experimental/bits/net.h: New header for common
300 implementation details of Networking TS.
301 * include/experimental/buffer: New header.
302 * include/experimental/executor: New header.
303 * include/experimental/internet: New header.
304 * include/experimental/io_context: New header.
305 * include/experimental/net: New header.
306 * include/experimental/netfwd: New header.
307 * include/experimental/socket: New header.
308 * include/experimental/timer: New header.
309 * testsuite/experimental/net/buffer/arithmetic.cc: New test.
310 * testsuite/experimental/net/buffer/const.cc: New test.
311 * testsuite/experimental/net/buffer/creation.cc: New test.
312 * testsuite/experimental/net/buffer/mutable.cc: New test.
313 * testsuite/experimental/net/buffer/size.cc: New test.
314 * testsuite/experimental/net/buffer/traits.cc: New test.
315 * testsuite/experimental/net/execution_context/use_service.cc: New
317 * testsuite/experimental/net/headers.cc: New test.
318 * testsuite/experimental/net/internet/address/v4/comparisons.cc: New
320 * testsuite/experimental/net/internet/address/v4/cons.cc: New test.
321 * testsuite/experimental/net/internet/address/v4/creation.cc: New
323 * testsuite/experimental/net/internet/address/v4/members.cc: New
325 * testsuite/experimental/net/internet/resolver/base.cc: New test.
326 * testsuite/experimental/net/internet/resolver/ops/lookup.cc: New
328 * testsuite/experimental/net/internet/resolver/ops/reverse.cc: New
330 * testsuite/experimental/net/timer/waitable/cons.cc: New test.
331 * testsuite/experimental/net/timer/waitable/dest.cc: New test.
332 * testsuite/experimental/net/timer/waitable/ops.cc: New test.
335 * include/experimental/memory_resource (__resource_adaptor_imp): Do
336 not allocate sizes smaller than alignment when relying on guaranteed
338 * testsuite/experimental/memory_resource/new_delete_resource.cc:
339 Adjust expected number of bytes allocated for alignof(max_align_t).
341 2018-10-11 François Dumont <fdumont@gcc.gnu.org>
343 * include/debug/forward_list
344 (forward_list<>::before_begin()): Use C++11 direct initialization.
345 (forward_list<>::begin()): Likewise.
346 (forward_list<>::end()): Likewise.
347 (forward_list<>::cbefore_begin()): Likewise.
348 (forward_list<>::cbegin()): Likewise.
349 (forward_list<>::cend()): Likewise.
350 (forward_list<>::emplace_after<>(const_iterator, _Args&&...)): Likewise.
351 (forward_list<>::insert_after(const_iterator, const _Tp&)): Likewise.
352 (forward_list<>::insert_after(const_iterator, _Tp&&)): Likewise.
353 (forward_list<>::insert_after(const_iterator, size_type, const _Tp&)):
355 (forward_list<>::insert_after(const_iterator, initializer_list<>)):
357 (forward_list<>::erase_after(const_iterator)): Likewise.
358 (forward_list<>::erase_after(const_iterator, const_iterator)): Likewise
359 and ensure consistent iterator comparison.
361 * include/bits/forward_list.h
362 (_Fwd_list_iterator<>::operator==): Replace member function with inline
364 (_Fwd_list_iterator<>::operator!=): Likewise.
365 (_Fwd_list_const_iterator<>::operator==): Likewise.
366 (_Fwd_list_const_iterator<>::operator!=): Likewise.
367 (operator==(const _Fwd_list_iterator<>&,
368 const _Fwd_list_const_iterator<>&)): Remove.
369 (operator!=(const _Fwd_list_iterator<>&,
370 const _Fwd_list_const_iterator<>&)): Remove.
371 (forward_list<>::_Node): Take typedef from base type.
372 (forward_list<>::iterator): Likewise.
373 (forward_list<>::const_iterator): Likewise.
375 2018-10-11 Jonathan Wakely <jwakely@redhat.com>
378 * src/c++11/thread.cc (this_thread::__sleep_for)
379 [_GLIBCXX_HAVE_SLEEP]: Only call sleep for non-zero values.
380 Loop while sleep call is interrupted and until steady_clock
381 shows requested duration has elapsed.
382 (!_GLIBCXX_HAVE_USLEEP]: Use the _GLIBCXX_HAVE_SLEEP code path, but
383 avoiding the usleep call.
384 * testsuite/30_threads/this_thread/60421.cc: Test repeated
385 signal interruptions.
387 * include/bits/allocator.h
388 (operator==(const allocator<_Tp>&, const allocator<_Tp>))
389 (operator!=(const allocator<_Tp>&, const allocator<_Tp>)): Replace
391 * include/ext/debug_allocator.h (operator==, operator!=): Replace
392 with inline friend functions that compare to rebound allocators.
393 * include/ext/malloc_allocator.h (operator==, operator!=): Likewise.
394 * include/ext/new_allocator.h (operator==, operator!=): Likewise.
395 * testsuite/ext/debug_allocator/eq.cc: New test.
396 * testsuite/ext/ext_pointer/alloc_eq.cc: New test.
397 * testsuite/ext/malloc_allocator/eq.cc: New test.
398 * testsuite/ext/new_allocator/eq.cc: New test.
400 2018-10-10 Jonathan Wakely <jwakely@redhat.com>
403 * include/bits/stl_vector.h (vector::_S_max_size): Limit size to
404 PTRDIFF_MAX / sizeof(value_type).
405 * include/ext/malloc_allocator.h (malloc_allocator::max_size):
407 * include/ext/new_allocator.h (new_allocator::max_size): Likewise.
408 * testsuite/23_containers/vector/allocator/minimal.cc: Adjust
409 expected value for max_size().
410 * testsuite/23_containers/vector/capacity/87544.cc: New test.
412 2018-10-09 François Dumont <fdumont@gcc.gnu.org>
414 * include/bits/stl_list.h
415 (_List_operator<>::operator==): Replace member function with inline
417 (_List_operator<>::operator!=): Likewise.
418 (_List_const_operator<>::operator==): Likewise.
419 (_List_const_operator<>::operator!=): Likewise.
420 (operator==(const _List_iterator<>&, const _List_const_iterator<>&)):
422 (operator!=(const _List_iterator<>&, const _List_const_iterator<>&)):
425 2018-10-09 Jonathan Wakely <jwakely@redhat.com>
427 * include/bits/stringfwd.h (string, wstring, u16string, u32string):
428 Define typedefs outside of __cxx11 inline namespace.
429 * python/libstdcxx/v6/printers.py (register_type_printers): Also
430 register printers for typedefs in new location.
432 2018-10-08 Jonathan Wakely <jwakely@redhat.com>
435 * testsuite/experimental/functional/87538.cc: New test.
438 * include/std/functional (_Not_fn::operator()): Check value of
439 __is_nothrow_invocable as well.
440 * testsuite/20_util/function_objects/not_fn/87538.cc: New test.
442 2018-10-08 François Dumont <fdumont@gcc.gnu.org>
444 * include/debug/list (list<>::cbegin()): Use C++11 direct
446 (list<>::cend()): Likewise.
447 (list<>::emplace<>(const_iterator, _Args&&...)): Likewise.
448 (list<>::insert(const_iterator, initializer_list<>)): Likewise.
449 (list<>::insert(const_iterator, size_type, const _Tp&)): Likewise.
450 (list<>::erase(const_iterator, const_iterator)): Ensure consistent
451 iterator comparisons.
452 (list<>::splice(const_iterator, list&&, const_iterator,
453 const_iterator)): Likewise.
455 2018-10-05 François Dumont <fdumont@gcc.gnu.org>
457 * include/bits/stl_tree.h
458 (_Rb_tree_iterator<>::operator==): Make inline friend.
459 (_Rb_tree_iterator<>::operator!=): Likewise.
460 (_Rb_tree_const_iterator<>::operator==): Likewise.
461 (_Rb_tree_const_iterator<>::operator!=): Likewise.
462 (operator==(const _Rb_tree_iterator<>&,
463 const _Rb_tree_const_iterator&)): Remove.
464 (operator!=(const _Rb_tree_iterator<>&,
465 const _Rb_tree_const_iterator&)): Remove.
466 (operator==(const _Rb_tree<>&, const _Rb_tree<>&)): Make inline friend.
467 (operator<(const _Rb_tree<>&, const _Rb_tree<>&)): Likewise.
468 (operator!=(const _Rb_tree<>&, const _Rb_tree<>&)): Likewise and
470 (operator>(const _Rb_tree<>&, const _Rb_tree<>&)): Likewise.
471 (operator<=(const _Rb_tree<>&, const _Rb_tree<>&)): Likewise.
472 (operator>=(const _Rb_tree<>&, const _Rb_tree<>&)): Likewise.
473 * include/debug/map.h (map<>::erase(const_iterator, const_iterator)):
474 Compare __victim with _Base::cend().
475 * include/debug/multimap.h
476 (multimap<>::erase(const_iterator, const_iterator)): Likewise.
477 * include/debug/set.h (set<>::erase(const_iterator, const_iterator)):
478 Compare __victim with _Base::cend().
479 * include/debug/multiset.h
480 (multiset<>::erase(const_iterator, const_iterator)): Likewise.
482 2018-10-03 Jonathan Wakely <jwakely@redhat.com>
485 * src/c++98/locale.cc (locale::locale(const locale&)): Bypass
486 reference count updates for the classic locale.
487 (locale::~locale()): Likewise.
488 (locale::operator=(const locale&)): Likewise.
489 * src/c++98/locale_init.cc (locale::locale()): Likewise.
490 (locale::global(const locale&)): Likewise.
492 2018-10-03 François Dumont <fdumont@gcc.gnu.org>
494 * include/debug/map.h
495 (map<>::emplace<>(_Args&&...)): Use C++11 direct initialization.
496 (map<>::emplace_hint<>(const_iterator, _Args&&...)): Likewise.
497 (map<>::insert(value_type&&)): Likewise.
498 (map<>::insert<>(_Pair&&)): Likewise.
499 (map<>::insert<>(const_iterator, _Pair&&)): Likewise.
500 (map<>::try_emplace): Likewise.
501 (map<>::insert_or_assign): Likewise.
502 (map<>::insert(node_type&&)): Likewise.
503 (map<>::insert(const_iterator, node_type&&)): Likewise.
504 (map<>::erase(const_iterator)): Likewise.
505 (map<>::erase(const_iterator, const_iterator)): Likewise.
506 * include/debug/multimap.h
507 (multimap<>::emplace<>(_Args&&...)): Use C++11 direct initialization.
508 (multimap<>::emplace_hint<>(const_iterator, _Args&&...)): Likewise.
509 (multimap<>::insert<>(_Pair&&)): Likewise.
510 (multimap<>::insert<>(const_iterator, _Pair&&)): Likewise.
511 (multimap<>::insert(node_type&&)): Likewise.
512 (multimap<>::insert(const_iterator, node_type&&)): Likewise.
513 (multimap<>::erase(const_iterator)): Likewise.
514 (multimap<>::erase(const_iterator, const_iterator)): Likewise.
515 * include/debug/set.h
516 (set<>::emplace<>(_Args&&...)): Use C++11 direct initialization.
517 (set<>::emplace_hint<>(const_iterator, _Args&&...)): Likewise.
518 (set<>::insert(value_type&&)): Likewise.
519 (set<>::insert<>(const_iterator, value_type&&)): Likewise.
520 (set<>::insert(const_iterator, node_type&&)): Likewise.
521 (set<>::erase(const_iterator)): Likewise.
522 (set<>::erase(const_iterator, const_iterator)): Likewise.
523 * include/debug/multiset.h
524 (multiset<>::emplace<>(_Args&&...)): Use C++11 direct initialization.
525 (multiset<>::emplace_hint<>(const_iterator, _Args&&...)): Likewise.
526 (multiset<>::insert<>(value_type&&)): Likewise.
527 (multiset<>::insert<>(const_iterator, value_type&&)): Likewise.
528 (multiset<>::insert(node_type&&)): Likewise.
529 (multiset<>::insert(const_iterator, node_type&&)): Likewise.
530 (multiset<>::erase(const_iterator)): Likewise.
531 (multiset<>::erase(const_iterator, const_iterator)): Likewise.
533 2018-10-02 Marc Glisse <marc.glisse@inria.fr>
536 * include/bits/stl_bvector.h (vector::begin(), vector::cbegin()):
537 Rebuild _M_start with an explicit 0 offset.
539 2018-10-02 Jonathan Wakely <jwakely@redhat.com>
541 * include/std/variant (__gen_vtable_impl::__visit_invoke): Call __get
542 directly instead of get, as caller ensures correct index is used.
543 (holds_alternative, get, get_if): Remove redundant inline specifiers.
544 (_VARIANT_RELATION_FUNCTION_TEMPLATE): Likewise.
546 2018-10-02 Joseph Myers <joseph@codesourcery.com>
548 * testsuite/lib/libstdc++.exp (libstdc++_init): Use
549 -fno-show-column in default cxxflags.
551 2018-10-01 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
553 * config/os/uclibc/os_defines.h (__NO_STRING_INLINES): Delete.
555 2018-10-01 Gerald Pfeifer <gerald@pfeifer.com>
557 * doc/xml/manual/allocator.xml: Adjust link to "Reconsidering
558 Custom Memory Allocation".
560 2018-10-01 Jonathan Wakely <jwakely@redhat.com>
562 * doc/html/*: Regenerate.
564 2018-09-30 Gerald Pfeifer <gerald@pfeifer.com>
566 * doc/xml/manual/messages.xml: Switch link to www.oracle.com
569 2018-09-30 Gerald Pfeifer <gerald@pfeifer.com>
571 * doc/xml/manual/policy_data_structures_biblio.xml: Update
572 link to Microsoft Component Model Object Technologies.
574 2018-09-29 Gerald Pfeifer <gerald@pfeifer.com>
576 * doc/xml/gnu/fdl-1.3.xml: The Free Software Foundation web
577 site now uses https. Also omit the unnecessary trailing slash.
578 * doc/xml/gnu/gpl-3.0.xml: Ditto.
580 2018-09-28 François Dumont <fdumont@gcc.gnu.org>
582 * include/debug/functions.h
583 (__foreign_iterator_aux3(const _Safe_iterator<>&, const _InputeIter&,
584 const _InputIter&, __true_type)): Use empty() rather than begin() ==
587 2018-09-25 Mike Crowe <mac@mcrowe.com>
589 * include/std/condition_variable (condition_variable::wait_for): Use
590 steady clock in overload that uses a predicate.
592 2018-09-25 Jonathan Wakely <jwakely@redhat.com>
595 * include/std/variant (_Variant_storage<true, _Types...>::_M_valid):
596 Avoid runtime test when all alternatives are scalars and so cannot
597 throw during initialization.
599 2018-09-25 Gerald Pfeifer <gerald@pfeifer.com>
601 * doc/xml/manual/codecvt.xml: Move link to "UTF-8 and Unicode FAQ"
604 2018-09-24 Gerald Pfeifer <gerald@pfeifer.com>
606 * doc/xml/manual/policy_data_structures_biblio.xml: Update link
607 to "Priority Queues and the STL".
609 2018-09-23 Gerald Pfeifer <gerald@pfeifer.com>
611 * doc/xml/manual/using_exceptions.xml: Move boost.orgs link to
614 2018-09-21 François Dumont <fdumont@gcc.gnu.org>
617 * src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt):
618 Use __builtin_floor to compute _M_next_resize.
619 * testsuite/23_containers/unordered_set/hash_policy/71181.cc: Adapt.
620 * testsuite/23_containers/unordered_set/hash_policy/prime_rehash.cc:
623 2018-09-21 Jonathan Wakely <jwakely@redhat.com>
625 * testsuite/26_numerics/headers/cmath/hypot-long-double.cc: Remove.
626 * testsuite/26_numerics/headers/cmath/hypot.cc: Restore test for
627 long double unconditionally, but use lower tolerance when
628 sizeof(long double) == sizeof(double).
630 2018-09-20 Christophe Lyon <christophe.lyon@linaro.org>
632 * testsuite/26_numerics/headers/cmath/hypot-long-double.cc: Skip
635 2018-09-19 Jonathan Wakely <jwakely@redhat.com>
637 * include/bits/regex_automaton.tcc (_StateSeq<_TraitsT>::_M_clone()):
638 Remove __glibcxx_assert statements and use map::find instead of
641 2018-09-18 François Dumont <fdumont@gcc.gnu.org>
644 * src/c++11/hashtable_c++0x.cc:
645 (_Prime_rehash_policy::_M_next_bkt): Return a prime no smaller than
646 requested size, but not necessarily greater.
647 (_Prime_rehash_policy::_M_need_rehash): Rehash only if target size is
648 strictly greater than next resize threshold.
649 * testsuite/23_containers/unordered_map/modifiers/reserve.cc: Adapt test
650 to validate that there is no rehash as long as number of insertion is
651 lower or equal to the reserved number of elements.
653 2018-09-18 Jonathan Wakely <jwakely@redhat.com>
655 * include/bits/unique_ptr.h (__uniq_ptr_impl): Remove static assertion
656 checking invocable condition.
657 (unique_ptr::~unique_ptr, unique_ptr::reset): Restore static assertion
658 here, where types must be complete. Pass pointer to deleter as an
660 * testsuite/20_util/unique_ptr/requirements/incomplete.cc: New test.
662 2018-09-13 Jonathan Wakely <jwakely@redhat.com>
664 * include/std/variant (variant) [__clang__]: Limit workaround to
667 2018-09-11 Jonathan Wakely <jwakely@redhat.com>
670 * include/bits/shared_ptr.h (make_shared): Use remove_cv instead of
672 * testsuite/20_util/shared_ptr/creation/87278.cc: New test.
674 Implement LWG 2905 changes to constrain unique_ptr constructors
675 * include/bits/unique_ptr.h (__uniq_ptr_impl): Add assertions to
677 (unique_ptr::unique_ptr(pointer, const deleter_type&)): Add copy
678 constructible constraint.
679 (unique_ptr::unique_ptr(pointer, deleter_type&&)): Disable for
680 deleters of reference type and add move constructible constraint.
681 (unique_ptr::unique_ptr(pointer, remove_reference_t<deleter_type>&&)):
682 Disable for deleters of non-reference type. Define as deleted.
683 (unique_ptr<T[], D>): Likewise.
684 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Replace dg-error
685 directives with unstable line numbers with dg-prune-output.
686 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
687 * testsuite/20_util/unique_ptr/cons/lwg2905.cc: New test.
688 * testsuite/20_util/unique_ptr/specialized_algorithms/swap_cxx17.cc:
689 Make deleter types invocable.
691 2018-09-05 Jonathan Wakely <jwakely@redhat.com>
693 * libsupc++/cxxabi.h (__cxa_demangle): Clarify doxygen comment.
695 2018-09-03 Jonathan Wakely <jwakely@redhat.com>
698 * testsuite/26_numerics/headers/cmath/hypot-long-double.cc: New test
699 that runs the long double part of hypot.cc.
700 * testsuite/26_numerics/headers/cmath/hypot.cc: Disable long double
701 tests unless TEST_HYPOT_LONG_DOUBLE is defined.
703 * include/bits/stl_vector.h (vector::_Temporary_value::_M_ptr):
704 Return raw pointer not allocator's pointer type.
705 (vector::_Temporary_value::_M_val): Use _M_ptr.
708 * include/bits/stl_map.h
709 (map::map(initializer_list<value_type>, const Compare&, const Alloc&))
710 (map::map(initializer_list<value_type>, const Alloc&))
711 (map::map(InputIterator, InputIterator, const Alloc&))
712 (map::map(InputIterator, InputIterator))
713 (map::map(InputIterator, InputIterator, const Compare&, const Alloc&))
714 (map::insert(InputIterator, InputIterator)):
715 Call _M_insert_range_unique instead of _M_insert_unique.
716 * include/bits/stl_multimap.h
717 (multimap::multimap(initializer_list<value_type>, const C&, const A&))
718 (multimap::multimap(initializer_list<value_type>, const A&))
719 (multimap::multimap(InputIterator, InputIterator, const A&))
720 (multimap::multimap(InputIterator, InputIterator))
721 (multimap::multimap(InputIterator, InputIterator, const C&, const A&))
722 (multimap::insert(InputIterator, InputIterator)): Call
723 _M_insert_range_equal instead of _M_insert_equal.
724 * include/bits/stl_multiset.h
725 (multiset::multiset(InputIterator, InputIterator))
726 (multiset::multiset(InputIterator, InputIterator, const C&, const A&))
727 (multiset::multiset(initializer_list<value_type>, const C&, const A&))
728 (multiset::multiset(initializer_list<value_type>, const A&))
729 (multiset::multiset(InputIterator, InputIterator, const A&))
730 (multiset::insert(InputIterator, InputIterator)): Call
731 _M_insert_range_equal instead of _M_insert_equal.
732 * include/bits/stl_set.h
733 (set::set(InputIterator, InputIterator))
734 (set::set(InputIterator, InputIterator, const Compare&, const Alloc&))
735 (set::set(initializer_list<value_type>, const Compare&, const Alloc&))
736 (set::set(initializer_list<value_type>, const Alloc&))
737 (set::set(InputIterator, InputIterator, const Alloc&))
738 (set::insert(InputIterator, InputIterator)):
739 Call _M_insert_range_unique instead of _M_insert_unique.
740 * include/bits/stl_tree.h
741 [__cplusplus >= 201103L] (_Rb_tree::__same_value_type): New alias
742 template for SFINAE constraints.
743 [__cplusplus >= 201103L] (_Rb_tree::_M_insert_range_unique): Pair of
744 constrained overloads that either insert or emplace, depending on
745 iterator's value_type.
746 [__cplusplus >= 201103L] (_Rb_tree::_M_insert_range_equal): Likewise.
747 [__cplusplus < 201103L] (_Rb_tree::_M_insert_range_unique)
748 (_Rb_tree::_M_insert_range_equal): New functions replacing range
749 versions of _M_insert_unique and _M_insert_equal.
750 (_Rb_tree::_M_insert_unique(_InputIterator, _InputIterator))
751 (_Rb_tree::_M_insert_equal(_InputIterator, _InputIterator)): Remove.
752 * testsuite/23_containers/map/modifiers/insert/87194.cc: New test.
753 * testsuite/23_containers/multimap/modifiers/insert/87194.cc: New test.
754 * testsuite/23_containers/multiset/modifiers/insert/87194.cc: New test.
755 * testsuite/23_containers/set/modifiers/insert/87194.cc: New test.
758 * include/bits/stl_map.h (map::insert(_Pair&&))
759 (map::insert(const_iterator, _Pair&&)): Do emplace instead of insert.
760 * include/bits/stl_multimap.h (multimap::insert(_Pair&&))
761 (multimap::insert(const_iterator, _Pair&&)): Likewise.
762 * include/bits/unordered_map.h (unordered_map::insert(_Pair&&))
763 (unordered_map::insert(const_iterator, _Pair&&))
764 (unordered_multimap::insert(_Pair&&))
765 (unordered_multimap::insert(const_iterator, _Pair&&)): Likewise.
766 * testsuite/23_containers/map/modifiers/insert/78595.cc: New test.
767 * testsuite/23_containers/multimap/modifiers/insert/78595.cc: New test.
768 * testsuite/23_containers/unordered_map/modifiers/78595.cc: New test.
769 * testsuite/23_containers/unordered_multimap/modifiers/78595.cc: New
772 2018-09-02 François Dumont <fdumont@gcc.gnu.org>
774 * include/debug/safe_iterator.h
775 (_Safe_iterator<_It, _Seq, _Cat>::_Self): New.
776 (_Safe_iterator<_It, _Seq, std::random_access_iterator_tag>::_Self):
778 (_Safe_iterator<_It, _Seq, std::random_access_iterator_tag>
780 (_GLIBCXX_DEBUG_VERIFY_OPERANDS, _GLIBCXX_DEBUG_VERIFY_EQ_OPERANDS)
781 (_GLIBCXX_DEBUG_VERIFY_REL_OPERANDS)
782 (_GLIBCXX_DEBUG_VERIFY_DIST_OPERANDS): Define macros.
783 (_Safe_iterator<_It, _Seq, std::random_access_iterator_tag>
784 ::operator+(difference_type)): Use latters, inline as friend.
785 (_Safe_iterator<_It, _Seq, std::random_access_iterator_tag>
786 ::operator-(difference_type)): Likewise.
787 (operator==(const _Safe_iterator<>&, const _Safe_iterator<>&)):
789 (operator!=(const _Safe_iterator<>&, const _Safe_iterator<>&)):
791 (operator<(const _Safe_iterator<>&, const _Safe_iterator<>&)): Likewise.
792 (operator<=(const _Safe_iterator<>&, const _Safe_iterator<>&)):
794 (operator>(const _Safe_iterator<>&, const _Safe_iterator<>&)): Likewise.
795 (operator>=(const _Safe_iterator<>&, const _Safe_iterator<>&)):
797 (operator-(const _Safe_iterator<>&, const _Safe_iterator<>&)): Likewise.
798 (operator+(difference_type, const _Safe_iterator<>&)): Likewise.
799 (operator-(const _Safe_iterator<>&, difference_type)): Likewise.
800 * include/debug/safe_iterator.tcc
801 (_Safe_iterator<>::_M_can_advance(difference_type)): Take parameter by
803 * include/debug/safe_local_iterator.h
804 (_Safe_local_iterator<_It, _Seq>::_Self): New.
805 (_Safe_local_iterator<_It, _Seq>::_OtherSelf): New.
806 (_GLIBCXX_DEBUG_VERIFY_OPERANDS): Define macro.
807 (operator==(const _Safe_local_iterator<>&,
808 const _Safe_local_iterator<>&)): Use latter, inline as friend.
809 (operator!=(const _Safe_local_iterator<>&,
810 const _Safe_local_iterator<>&)): Likewise.
811 * testsuite/util/testsuite_containers.h: Include utility.
812 (struct forward_members_unordered<_Tp, bool>): Remove 2nd template
814 (forward_members_unordered<>::forward_members_unordered(value_type&)):
815 Add using namespace std::rel_ops.
816 Add iterator_concept_checks on local_iterator and const_local_iterator.
817 Add asserts on comparison between const_local_iterator and
819 (struct forward_members_unordered<_Tp, false>): Remove partial
821 * testsuite/23_containers/forward_list/types/1.cc: New.
822 * testsuite/23_containers/list/types/1.cc: New.
824 2018-09-01 Gerald Pfeifer <gerald@pfeifer.com>
826 * doc/xml/manual/profile_mode.xml: Update three ieeexplore.ieee.org
829 2018-08-31 Sandra Loosemore <sandra@codesourcery.com>
831 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
832 Add dg-require-fileio.
833 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
835 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
837 * testsuite/21_strings/basic_string_view/inserters/wchar_t/2.cc:
839 * testsuite/25_algorithms/copy/streambuf_iterators/wchar_t/4.cc:
841 * testsuite/25_algorithms/find/istreambuf_iterators/wchar_t/2.cc:
843 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-1.cc: Likewise.
844 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-2.cc: Likewise.
845 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-3.cc: Likewise.
846 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-4.cc: Likewise.
847 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: Likewise.
848 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-1.cc:
850 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-2.cc:
852 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-3.cc:
854 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-4.cc:
856 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-1.cc:
858 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-2.cc:
860 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-4.cc:
862 * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: Likewise.
863 * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: Likewise.
864 * testsuite/27_io/basic_ifstream/cons/wchar_t/1.cc: Likewise.
865 * testsuite/27_io/basic_ifstream/open/wchar_t/1.cc: Likewise.
866 * testsuite/27_io/basic_istream/extractors_character/wchar_t/4.cc:
868 * testsuite/27_io/basic_istream/extractors_other/wchar_t/2.cc:
870 * testsuite/27_io/basic_istream/get/wchar_t/2.cc: Likewise.
871 * testsuite/27_io/basic_istream/getline/wchar_t/5.cc: Likewise.
872 * testsuite/27_io/basic_istream/ignore/wchar_t/2.cc: Likewise.
873 * testsuite/27_io/basic_istream/ignore/wchar_t/3.cc: Likewise.
874 * testsuite/27_io/basic_istream/seekg/wchar_t/sstream.cc: Likewise.
875 * testsuite/27_io/basic_istream/tellg/wchar_t/sstream.cc: Likewise.
876 * testsuite/27_io/basic_ofstream/cons/wchar_t/1.cc: Likewise.
877 * testsuite/27_io/basic_ofstream/open/wchar_t/1.cc: Likewise.
878 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/1.cc:
880 * testsuite/27_io/objects/wchar_t/10.cc: Likewise.
881 * testsuite/27_io/objects/wchar_t/12048-1.cc: Likewise.
882 * testsuite/27_io/objects/wchar_t/12048-2.cc: Likewise.
883 * testsuite/27_io/objects/wchar_t/12048-3.cc: Likewise.
884 * testsuite/27_io/objects/wchar_t/12048-4.cc: Likewise.
885 * testsuite/27_io/objects/wchar_t/12048-5.cc: Likewise.
886 * testsuite/experimental/string_view/inserters/wchar_t/2.cc:
888 * testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc: Likewise.
890 2018-08-30 Sandra Loosemore <sandra@codesourcery.com>
892 * testsuite/experimental/propagate_const/observers/1.cc: Make
893 dependence on -fdelete-null-pointer-checks explicit.
895 2018-08-30 Jonathan Wakely <jwakely@redhat.com>
897 * include/bits/hashtable_policy.h (__clp2): Fix calculation for LLP64
898 targets where sizeof(size_t) > sizeof(long). Avoid undefined shifts
899 of the number of bits in the type.
900 * include/std/bit (__ceil2): Avoid undefined shifts.
901 * testsuite/26_numerics/bit/bit.pow.two/ceil2.cc: Test values with
902 the most signifiant bit set.
904 * config/abi/pre/gnu.ver: Add missing exports for mingw.
906 * include/ext/pointer.h (_Pointer_adapter): Define operators for
907 pointer arithmetic using long long offsets.
908 * testsuite/ext/ext_pointer/1.cc: Test pointer arithmetic using
911 2018-08-29 Jonathan Wakely <jwakely@redhat.com>
914 * testsuite/22_locale/time_get/get_date/wchar_t/4.cc: Check D_FMT
915 string for alternative format.
917 2018-08-28 Jonathan Wakely <jwakely@redhat.com>
920 * src/filesystem/std-path.cc (path::lexically_normal): When handling
921 a dot-dot filename, preserve an empty final component in the iteration
923 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use preferred-separator for
925 * testsuite/27_io/filesystem/path/generation/normal.cc: Add new tests
926 for more than two adjacent dot-dot filenames.
927 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Replace slashes with
928 preferred-separator in expected normalized strings.
930 2018-08-25 Iain Sandoe <iain@sandoe.co.uk>
933 * configure.host (OPT_LDFLAGS): Don't append
934 -fvisibility-inlines-hidden for newer Darwin.
936 2018-08-24 Marc Glisse <marc.glisse@inria.fr>
939 * libsupc++/new (operator new(size_t, nothrow_t), operator
940 new[](size_t, nothrow_t), operator new(size_t, align_val_t, nothrow_t),
941 operator new[](size_t, align_val_t, nothrow_t)): Add malloc attribute.
943 2018-08-24 Jonathan Wakely <jwakely@redhat.com>
945 * include/debug/deque (std::__debug::deque): Declare.
946 * include/debug/forward_list (std::__debug::forward_list): Declare.
947 * include/debug/list (std::__debug::list): Declare.
948 * include/debug/map (std::__debug::map): Declare.
949 * include/debug/set (std::__debug::set): Declare.
950 * include/debug/unordered_map (std::__debug::unordered_map): Declare.
951 * include/debug/unordered_set (std::__debug::unordered_set): Declare.
952 * include/debug/vector (std::__debug::vector): Declare.
953 * testsuite/23_containers/deque/types/pmr_typedefs_debug.cc: New test.
954 * testsuite/23_containers/forward_list/pmr_typedefs_debug.cc: New
956 * testsuite/23_containers/list/pmr_typedefs_debug.cc: New test.
957 * testsuite/23_containers/map/pmr_typedefs_debug.cc: New test.
958 * testsuite/23_containers/multimap/pmr_typedefs_debug.cc: New test.
959 * testsuite/23_containers/multiset/pmr_typedefs_debug.cc: New test.
960 * testsuite/23_containers/set/pmr_typedefs_debug.cc: New test.
961 * testsuite/23_containers/unordered_map/pmr_typedefs_debug.cc: New
963 * testsuite/23_containers/unordered_multimap/pmr_typedefs_debug.cc:
965 * testsuite/23_containers/unordered_multiset/pmr_typedefs_debug.cc:
967 * testsuite/23_containers/unordered_set/pmr_typedefs_debug.cc: New
969 * testsuite/23_containers/vector/cons/destructible_debug_neg.cc:
970 Adjust dg-error lineno.
971 * testsuite/23_containers/vector/types/pmr_typedefs_debug.cc: New
974 2018-08-23 Jonathan Wakely <jwakely@redhat.com>
976 * testsuite/util/testsuite_allocator.h (__gnu_test::memory_resource):
977 Only define when RTTI is enabled.
979 * include/debug/vector (__niter_base): Define for C++98.
981 * testsuite/25_algorithms/partial_sort_copy/debug/irreflexive_neg.cc:
982 Fix C++98 test to not use C++11 features.
983 * testsuite/25_algorithms/fill_n/2.cc: Likewise.
985 * scripts/check_compile: Fix comments.
987 * include/debug/string (insert(__const_iterator, _InIter, _InIter)):
988 [!_GLIBCXX_USE_CXX11_ABI]: Replace use of C++11-only cbegin() with
989 begin(), for C++98 compatibility.
991 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
992 (basic_string::__const_iterator): Change access to protected.
993 [!_GLIBCXX_USE_CXX11_ABI] (basic_string::__const_iterator): Define
994 as typedef for iterator.
995 * include/debug/string (__const_iterator): Use typedef from base.
996 (insert(const_iterator, _CharT))
997 (replace(const_iterator, const_iterator, const basic_string&))
998 (replace(const_iterator, const_iterator, const _CharT*, size_type))
999 (replace(const_iterator, const_iterator, const CharT*))
1000 (replace(const_iterator, const_iterator, size_type, _CharT))
1001 (replace(const_iterator, const_iterator, _InputIter, _InputIter))
1002 (replace(const_iterator, const_iterator, initializer_list<_CharT>)):
1003 Change const_iterator parameters to __const_iterator.
1004 (insert(iterator, size_type, _CharT)): Add C++98 overload.
1005 (insert(const_iterator, _InputIterator, _InputIterator)): Change
1006 const_iterator parameter to __const_iterator.
1007 [!_GLIBCXX_USE_CXX11_ABI]: Add workaround for incorrect return type
1008 of base's member function.
1009 (insert(const_iterator, size_type, _CharT)) [!_GLIBCXX_USE_CXX11_ABI]:
1011 (insert(const_iterator, initializer_list<_CharT>))
1012 [!_GLIBCXX_USE_CXX11_ABI]: Likewise.
1013 * testsuite/21_strings/basic_string/init-list.cc: Remove effective
1016 * testsuite/20_util/reference_wrapper/lwg2993.cc: Fix C++11 test to
1017 not use C++14 feature.
1018 * testsuite/23_containers/list/68222_neg.cc: Likewise.
1020 * testsuite/21_strings/basic_string/init-list.cc:
1022 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_match.cc:
1024 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_string.cc:
1027 * testsuite/23_containers/deque/capacity/max_size.cc: Fix test for
1029 * testsuite/23_containers/deque/modifiers/assign/1.cc: Likewise.
1030 * testsuite/23_containers/list/modifiers/assign/1.cc: Likewise.
1031 * testsuite/23_containers/vector/bool/modifiers/assign/1.cc: Likewise.
1032 * testsuite/23_containers/vector/capacity/max_size.cc: Likewise.
1033 * testsuite/23_containers/vector/modifiers/assign/1.cc: Likewise.
1035 2018-08-22 Jonathan Wakely <jwakely@redhat.com>
1038 * include/experimental/regex [!_GLIBCXX_USE_CXX11_ABI]
1039 (experimental::pmr::match_results, experimental::pmr::cmatch)
1040 (experimental::pmr::smatch, experimental::pmr::wcmatch)
1041 (experimental::pmr::wsmatch): Do not declare for gcc4-compatible ABI,
1042 because COW strings don't support C++11 allocator model.
1043 * include/experimental/string [!_GLIBCXX_USE_CXX11_ABI]
1044 (experimental::pmr::basic_string, experimental::pmr::string)
1045 (experimental::pmr::u16string, experimental::pmr::u32string)
1046 (experimental::pmr::wstring): Likewise.
1047 * include/std/regex [!_GLIBCXX_USE_CXX11_ABI] (pmr::match_results)
1048 (pmr::cmatch, pmr::smatch, pmr::wcmatch, pmr::wsmatch): Likewise.
1049 * include/std/string [!_GLIBCXX_USE_CXX11_ABI] (pmr::basic_string)
1050 (pmr::string, pmr::u16string, pmr::u32string, pmr::wstring): Likewise.
1051 * testsuite/21_strings/basic_string/types/pmr_typedefs.cc: Require
1053 * testsuite/28_regex/match_results/pmr_typedefs.cc: Likewise.
1056 * include/bits/deque.tcc (deque::_M_range_initialize): Use
1057 _S_check_init_len to check size.
1058 (deque::_M_push_back_aux, deque::_M_push_front_aux): Throw length
1059 error if size would exceed max_size().
1060 * include/bits/stl_deque.h (_Deque_base::size_type): Remove typedef.
1061 (_Deque_base(_Deque_base&&, const allocator_type&, size_t)): Use
1062 size_t instead of size_type.
1063 (deq(size_type, const allocator_type&)
1064 (deq(size_type, const value_type&, const allocator_type&)
1065 (deque::_M_initialize_dispatch): Use _S_check_init_len to check size.
1066 (deque::max_size): Call _S_max_size.
1067 (deque::_S_check_init_len, deque::_S_max_size): New functions.
1068 * include/bits/stl_vector.h (vector(size_type, const allocator_type&))
1069 (vector(size_type, const value_type&, const allocator_type&))
1070 (vector::_M_initialize_dispatch, vector::_M_range_initialize): Use
1071 _S_check_init_len to check size.
1072 (vector::max_size): Call _S_max_size.
1073 (vector::_M_check_len): Prevent max from being expanded as a
1074 function-like macro.
1075 (vector::_S_check_init_len, vector::_S_max_size): New functions.
1076 * include/bits/vector.tcc (vector::_M_assign_aux): Use
1077 _S_check_init_len to check size.
1078 * testsuite/23_containers/deque/capacity/max_size.cc: New test.
1079 * testsuite/23_containers/vector/capacity/max_size.cc: New test.
1081 2018-08-22 François Dumont <fdumont@gcc.gnu.org>
1084 * include/debug/safe_iterator.h
1085 (_Safe_iterator<_It, _Sq, _Cat>): Add category template parameter.
1086 (_Safe_iterator<>::_Const_iterator): Remove.
1087 (_Safe_iterator<>::_IsConstant): New.
1088 (_Safe_iterator<>::_OtherIterator): New.
1089 (_Safe_iterator<_It, _Sq, _Cat>::_Safe_iterator<_MutIte>(
1090 const _Safe_iterator<_MutIte, _Sq, _Cat>&)): Add _IsConstant::__value in
1091 __gnu_cxx::__enable_if condition.
1092 (_Safe_iterator<_It, _Sq, _Cat>::_M_get_distance_to): New.
1093 (_Safe_iterator<_It, _Sq, _Cat>::_M_get_distance_from_begin): New.
1094 (_Safe_iterator<_It, _Sq, _Cat>::_M_get_distance_to_end): New.
1095 (_Safe_iterator<_It, _Sq, std::bidirectional_iterator_tag>): New.
1096 (_Safe_iterator<_It, _Sq, _Cat>::operator--()): Move...
1097 (_Safe_iterator<_It, _Sq, std::bidirectional_iterator_tag>
1098 ::operator--()): ...here.
1099 (_Safe_iterator<_It, _Sq, _Cat>::operator--(int)): Move...
1100 (_Safe_iterator<_It, _Sq, std::bidirectional_iterator_tag>
1101 ::operator--(int)): ...here.
1102 (_Safe_iterator<_It, _Sq, _Cat>::_M_decrementable()): Move...
1103 (_Safe_iterator<_It, _Sq, std::bidirectional_iterator_tag>
1104 ::_M_decrementable()): ...here.
1105 (_Safe_iterator<_It, _Sq, std::random_access_iterator_tag>): New.
1106 (_Safe_iterator<_It, _Sq, _Cat>::operator[](const difference_type&)):
1108 (_Safe_iterator<_It, _Sq, std::random_access_iterator_tag>
1109 ::operator[](const difference_type&)): ...here.
1110 (_Safe_iterator<_It, _Sq, _Cat>::operator+=(const difference_type&)):
1112 (_Safe_iterator<_It, _Sq, std::random_access_iterator_tag>
1113 ::operator+=(const difference_type&)): ...here.
1114 (_Safe_iterator<_It, _Sq, _Cat>::operator+(const difference_type&)):
1116 (_Safe_iterator<_It, _Sq, std::random_access_iterator_tag>
1117 ::operator+(const difference_type&)): ...here.
1118 (_Safe_iterator<_It, _Sq, _Cat>::operator-=(const difference_type&)):
1120 (_Safe_iterator<_It, _Sq, std::random_access_iterator_tag>
1121 ::operator-=(const difference_type&)): ...here.
1122 (_Safe_iterator<_It, _Sq, _Cat>::operator-(const difference_type&)):
1124 (_Safe_iterator<_It, _Sq, std::random_access_iterator_tag>
1125 ::operator-(const difference_type&)): ...here.
1126 (operator<(const _Safe_iterator<>&, const _Safe_iterator<>&)):
1127 Constraint to random access iterators.
1128 (operator<=(const _Safe_iterator<>&, const _Safe_iterator<>&)):
1130 (operator>(const _Safe_iterator<>&, const _Safe_iterator<>&)): Likewise.
1131 (operator>=(const _Safe_iterator<>&, const _Safe_iterator<>&)):
1133 (operator-(const _Safe_iterator<>&, const _Safe_iterator<>&)): Likewise.
1134 (operator+(const difference_type&, const _Safe_iterator<>&)): Likewise.
1135 (__check_dereferenceable(const _Safe_iterator<>&)): Remove.
1136 (__get_distance): Remove.
1137 (__get_distance_from_begin): Remove.
1138 (__get_distance_to_end): Remove.
1139 (struct __is_safe_random_iterator<_Safe_iterator<>>): Remove partial
1141 (__base(const _Safe_iterator<>&, std::input_iterator_tag)): Remove.
1142 (__base(const _Safe_iterator<>&, std::random_access_iterator_tag)): Remove.
1143 (__base(const _Safe_iterator<>&)): Constraint to random access iterator.
1144 * include/debug/safe_iterator.tcc
1145 (_Safe_iterator<>::_M_get_distance_from_begin()): New.
1146 (_Safe_iterator<>::_M_get_distance_to_end()): New.
1147 (_Safe_iterator<>::_M_get_distance_to(const _Safe_iterator<>&)): New.
1148 (_Safe_iterator<_It, _Seq, std::random_access_iterator_tag>
1149 ::_M_valid_range): New.
1150 * include/debug/safe_local_iterator.h
1151 (_Safe_local_iterator<>::_Const_local_iterator): Remove.
1152 (_Safe_local_iterator<>::_IsConstant): New.
1153 (_Safe_local_iterator<>::_OtherIterator): New.
1154 (_Safe_local_iterator<_It, _Cont>::_Safe_local_iterator<_MutIte, _Cont>(
1155 const _Safe_local_iterator<_MutIte, _Seq>&)): Add _IsConstant::__value
1156 in __gnu_cxx::__enable_if condition. If singular compare base iterator
1157 with _MutIte rather than _It.
1158 (_Safe_local_iterator<>::_S_constant): Make constexpr.
1159 (_Safe_local_iterator<>::_M_get_distance_to): New.
1160 (__check_dereferenceable(const _Safe_local_iterator<>&)): Remove.
1161 (__get_distance(const _Safe_local_iterator<>&,
1162 const _Safe_local_iterator<>&, std::input_iterator_tag)): Remove.
1163 (__valid_range(const _Safe_local_iterator<>&,
1164 const _Safe_local_iterator<>&)): New.
1165 * include/debug/safe_local_iterator.tcc
1166 (_Safe_local_iterator<>::_M_get_distance_to): New.
1167 * include/debug/deque (std::__debug::deque<>): Add
1168 ::__gnu_debug::_Safe_iterator<> friend declaration.
1169 * include/debug/forward_list (std::__debug::forward_list<>): Likewise.
1170 * include/debug/list (std::__debug::list<>): Likewise.
1171 * include/debug/map.h (std::__debug::map<>): Likewise.
1172 * include/debug/multimap.h (std::__debug::multimap<>): Likewise.
1173 * include/debug/set.h (std::__debug::set<>): Likewise.
1174 * include/debug/multiset.h (std::__debug::multiset<>): Likewise.
1175 * include/debug/string (std::__debug::basic_string<>): Likewise.
1176 * include/debug/unordered_map (std::__debug::unordered_map<>): Likewise
1177 and add ::__gnu_debug::_Safe_local_iterator<> friend declaration.
1178 (std::__debug::unordered_multimap<>): Likewise.
1179 * include/debug/unordered_set (std::__debug::unordered_set<>): Likewise.
1180 (std::__debug::unordered_multiset<>): Likewise.
1181 * include/debug/formatter.h: Adapt.
1182 * include/debug/helper_functions.h
1183 (__gnu_debug::_Safe_local_iterator<>): Add declaration.
1184 (__get_distance<_Ite>(_Ite, _Ite, std::random_access_iterator_tag):
1185 Pass parameter by copy.
1186 (__get_distance<_Ite>(_Ite, _Ite, std::input_iterator_tag): Likewise.
1187 (__get_distance<_Ite>(_Ite, _Ite): Likewise.
1188 (__valid_range_aux<_Integral>): Pass _Integral by copy.
1189 (__valid_range<_InputIterator>): Pass _InputIterator by copy.
1190 (__valid_range<>(const _Safe_iterator<>&,
1191 const _Safe_iterator<>&, typename _Distance_traits<>::__type&)):
1193 (__valid_range(const _Safe_local_iterator<>&,
1194 const _Safe_local_iterator<>&, typename _Distance_traits<>::__type&)):
1196 (__valid_range<>(const _Safe_iterator<>&, const _Safe_iterator<>&)):
1198 (__valid_range(const _Safe_local_iterator<>&, const _Safe_local_iterator<>&)):
1200 (__can_advance): Adapt.
1201 (struct __is_safe_random_iterator<>): Remove.
1202 (struct _SIter_base<>): Remove.
1203 * include/debug/functions.h: Include <bits/stl_iterator.h>.
1204 (__check_dereferenceable): Remove.
1205 (__foreign_iterator_aux4, __foreign_iterator_aux3): Adapt.
1206 (__foreign_iterator_aux2, __foreign_iterator_aux): Adapt.
1207 (__foreign_iterator): Adapt.
1208 * include/debug/stl_iterator.h
1209 (__is_safe_random_iterator<std::reverse_iterator<>>): Remove.
1210 (__base(const std::reverse_iterator<_Safe_iterator<_It, _Sq>)):
1211 Constraint for random access iterators.
1212 (__niter_base): Adapt.
1213 * testsuite/util/testsuite_containers.h:
1214 Include <bits/boost_concept_check.h>.
1215 (iterator_concept_checks<_It, _Mutable, _Category>): New.
1216 (citerator<_Cont>::forward_members::forward_members()): Instantiate
1217 latter for container iterator and const_iterator.
1218 * testsuite/23_containers/list/68222_neg.cc: New.
1219 * testsuite/23_containers/vector/cons/destructible_debug_neg.cc: Adapt
1221 * testsuite/23_containers/unordered_set/debug/debug_functions.cc:
1223 * testsuite/23_containers/vector/debug/debug_functions.cc (test01):
1226 2018-08-22 Jonathan Wakely <jwakely@redhat.com>
1229 * doc/xml/manual/status_cxx1998.xml: Document size_type and
1230 difference_type for containers.
1231 * doc/html/*: Regenerate.
1233 2018-08-21 François Dumont <fdumont@gcc.gnu.org>
1235 P0646R1 Improving the Return Value of Erase-Like Algorithms I
1236 * include/debug/forward_list (forward_list::__remove_return_type):
1237 Define typedef as size_type or void, according to __cplusplus value.
1238 (_GLIBCXX_FWDLIST_REMOVE_RETURN_TYPE_TAG): Define macro as abi-tag or
1239 empty, according to __cplusplus value.
1240 (_GLIBCXX20_ONLY): Define macro.
1241 (forward_list::remove, forward_list::unique): Use typedef and macro
1242 to change return type and add abi-tag for C++2a. Return number of
1243 removed elements for C++2a.
1244 (forward_list::remove_if<Pred>, forward_list::unique<BinPred>): Use
1245 typedef to change return type for C++2a. Return number of removed
1247 * include/debug/list (list::__remove_return_type): Define typedef as
1248 size_type or void, according to __cplusplus value.
1249 (_GLIBCXX_LIST_REMOVE_RETURN_TYPE_TAG): Define macro as abi-tag or
1250 empty, according to __cplusplus value.
1251 (_GLIBCXX20_ONLY): Define macro.
1252 (list::remove, list::unique): Use typedef and macro to change return
1253 type and add abi-tag for C++2a. Return number of removed elements for
1255 (list::remove_if<Predicate>, list::unique<BinaryPredicate>): Use typedef
1256 to change return type for C++2a. Return number of removed elements for
1259 2018-08-21 David Edelsohn <dje.gcc@gmail.com>
1261 * testsuite/18_support/new_nothrow.cc: XFAIL on AIX.
1263 2018-08-21 Jonathan Wakely <jwakely@redhat.com>
1265 * testsuite/26_numerics/bit/bitops.count/countl_one.cc: Remove
1266 redundant dg-do directive.
1267 * testsuite/26_numerics/bit/bitops.count/countl_zero.cc: Likewise.
1268 * testsuite/26_numerics/bit/bitops.count/countr_one.cc: Likewise.
1269 * testsuite/26_numerics/bit/bitops.count/countr_zero.cc: Likewise.
1270 * testsuite/26_numerics/bit/bitops.count/popcount.cc: Likewise.
1272 2018-08-20 Jonathan Wakely <jwakely@redhat.com>
1275 * include/std/tuple (_Tuple_impl::operator=): Define as deleted.
1276 (_Tuple_impl::_M_assign): New functions to perform assignment instead
1277 of assignment operators.
1278 (_Tuple_impl::_M_swap): Remove exception specification.
1279 (_Tuple_impl<_Idx, _Head>): Likewise.
1280 (_TC::_NonNestedTuple, _TC::_NotSameTuple): Use __remove_cvref_t.
1281 (__tuple_base): Remove.
1282 (tuple, tuple<_T1, _T2>): Remove inheritance from __tuple_base.
1283 (tuple::operator=, tuple<_T1, _T2>::operator=): Call _M_assign.
1284 (tuple::swap, tuple<_T1, _T2>::swap): Define exception specification
1285 using __is_nothrow_swappable.
1286 (tuple<_T1, _T2>::tuple(_U1&&, _U2&&)): Use __remove_cvref_t.
1288 * include/std/optional (_Optional_payload): Use variable templates
1289 for conditions in default template arguments and exception
1291 (optional): Likewise. Adjust indentation.
1292 (optional::__not_self, optional::__not_tag, optional::_Requires): New
1294 (optional::optional): Use new helpers in constructor constraints.
1295 * include/std/type_traits (__or_v, __and_v): New variable templates.
1296 * testsuite/20_util/optional/cons/value_neg.cc: Change dg-error to
1297 dg-prune-output. Remove unused header.
1299 2018-08-18 François Dumont <fdumont@gcc.gnu.org>
1301 * testsuite/25_algorithms/copy/86658.cc: Use dg-options to define
1304 2018-08-17 Jonathan Wakely <jwakely@redhat.com>
1307 * include/std/tuple (__tuple_base): New class template with deleted
1308 copy assignment operator.
1309 (tuple, tuple<_T1, _T2>): Derive from __tuple_base<tuple> so that
1310 implicit copy/move assignment operator will be deleted/suppressed.
1311 (tuple::__assignable, tuple<_T1, _T2>::__assignable): New helper
1312 functions for SFINAE constraints on assignment operators.
1313 (tuple::__nothrow_assignable, tuple<_T1, _T2>::__nothrow_assignable):
1314 New helper functions for exception specifications.
1315 (tuple::operator=(const tuple&), tuple::operator=(tuple&&))
1316 (tuple<_T1, _T2>::operator=(const tuple&))
1317 (tuple<_T1, _T2>::operator=(tuple&&)): Change parameter types to
1318 __nonesuch_no_braces when the operator should be defined implicitly.
1319 Use __nothrow_assignable for exception specifications.
1320 (tuple::operator=(const tuple<_UElements...>&))
1321 (tuple::operator=(tuple<_UElements...>&&))
1322 (tuple<_T1, _T2>::operator=(const tuple<_U1, _U2>&))
1323 (tuple<_T1, _T2>::operator=(tuple<_U1, _U2>&&))
1324 (tuple<_T1, _T2>::operator=(const pair<_U1, _U2>&))
1325 (tuple<_T1, _T2>::operator=(pair<_U1, _U2>&&)): Constrain using
1326 __assignable and use __nothrow_assignable for exception
1328 * python/libstdcxx/v6/printers.py (is_specialization_of): Accept
1329 gdb.Type as first argument, instead of a string.
1330 (StdTuplePrinter._iterator._is_nonempty_tuple): New method to check
1331 tuple for expected structure.
1332 (StdTuplePrinter._iterator.__init__): Use _is_nonempty_tuple.
1333 * testsuite/20_util/tuple/dr2729.cc: New test.
1334 * testsuite/20_util/tuple/element_access/get_neg.cc: Change dg-error
1337 2018-08-16 Jonathan Wakely <jwakely@redhat.com>
1339 * include/tr1/legendre_function.tcc (__sph_legendre): Avoid warning
1340 about signed/unsigned comparison.
1342 * include/std/ostream (basic_ostream::sentry::~sentry): Suppress
1343 deprecation warnings for using uncaught_exception().
1346 * src/c++11/cow-stdexcept.cc [_GLIBCXX_FULLY_DYNAMIC_STRING]
1347 (logic_error::logic_error(logic_error&&))
1348 (logic_error::operator=(logic_error&&))
1349 (runtime_error::runtime_error(runtime_error&&))
1350 (runtime_error::operator=(runtime_error&&)): Copy strings instead of
1351 moving, to avoid allocating empty reps for moved-from strings.
1353 2018-08-15 Jonathan Wakely <jwakely@redhat.com>
1355 * include/experimental/regex: Remove begin/end macros for namespace.
1356 * include/experimental/string: Likewise.
1357 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_deque.cc:
1359 * testsuite/experimental/polymorphic_allocator/
1360 pmr_typedefs_forward_list.cc: New test.
1361 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_list.cc:
1363 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_map.cc:
1365 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_match.cc:
1367 * testsuite/experimental/polymorphic_allocator/
1368 pmr_typedefs_multimap.cc: New test.
1369 * testsuite/experimental/polymorphic_allocator/
1370 pmr_typedefs_multiset.cc: New test.
1371 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_set.cc:
1373 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_string.cc:
1375 * testsuite/experimental/polymorphic_allocator/
1376 pmr_typedefs_unordered_map.cc: New test.
1377 * testsuite/experimental/polymorphic_allocator/
1378 pmr_typedefs_unordered_multimap.cc: New test.
1379 * testsuite/experimental/polymorphic_allocator/
1380 pmr_typedefs_unordered_multiset.cc: New test.
1381 * testsuite/experimental/polymorphic_allocator/
1382 pmr_typedefs_unordered_set.cc: New test.
1383 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_vector.cc:
1386 * include/bits/uses_allocator.h (__uses_allocator_construct): Qualify
1387 calls to __uses_allocator_construct_impl and __use_alloc.
1388 * include/experimental/memory_resource
1389 (polymorphic_allocator::_M_construct): Remove.
1390 (polymorphic_allocator::construct): Call __uses_allocator_construct.
1391 Qualify calls to __use_alloc.
1392 * include/std/memory_resource (polymorphic_allocator::construct): Fix
1393 type in SFINAE constraint. Use constexpr if instead of tag dispatching
1394 to _S_construct overloads.
1395 (polymorphic_allocator::construct(pair<T1, T2>*, ...)): Fix order of
1396 arguments to _S_construct_p.
1397 (polymorphic_allocator::_S_construct): Remove.
1398 (polymorphic_allocator::_S_construct_p): Return allocators by value
1400 * include/std/scoped_allocator (scoped_allocator_adaptor::construct):
1401 Qualify calls to __use_alloc.
1402 * testsuite/20_util/polymorphic_allocator/construct_pair.cc: New test,
1403 copied from testsuite/20_util/scoped_allocator/construct_pair.cc.
1404 * testsuite/experimental/polymorphic_allocator/1.cc: New test.
1405 * testsuite/experimental/polymorphic_allocator/construct_pair.cc:
1408 * src/c++17/memory_resource.cc [!_GLIBCXX_HAS_GTHREADS]
1409 (atomic_mem_res): Add unsynchronized definition for single-threaded.
1411 2018-08-14 Jonathan Wakely <jwakely@redhat.com>
1414 * include/bits/stl_tempbuf.h (return_temporary_buffer): Use
1415 non-placement delete.
1417 * include/std/chrono (__check_overflow): Simplify definition.
1418 (_Checked_integral_constant): Remove.
1421 * src/c++17/default_resource.h: New file, defining default_res.
1422 * src/c++17/memory_resource.cc [ATOMIC_POINTER_LOCK_FREE != 2]
1423 (atomic_mem_res): Define alternative for atomic<memory_resource*>
1424 using a mutex instead of atomics.
1427 * config/abi/pre/gnu.ver: Export new symbol.
1428 * doc/xml/manual/abi.xml: Document new versions.
1429 * include/bits/fstream.tcc (basic_filebuf<C, T>::underflow)
1430 (basic_filebuf<C, T>::xsgetn): Pass errno to __throw_ios_failure.
1431 * include/bits/functexcept.h (__throw_ios_failure(const char*, int)):
1432 Declare new overload.
1433 * src/c++11/cxx11-ios_failure.cc (__ios_failure): Add new constructor
1434 and static member function.
1435 (__throw_ios_failure(const char*, int)): Define.
1436 * src/c++98/ios_failure.cc [!_GLIBCXX_USE_DUAL_ABI]
1437 (__throw_ios_failure(const char*, int)): Define.
1439 2018-08-14 Jeremy Sawicki <jeremy-gcc@sawicki.us>
1441 * include/ext/rope (_Rope_iterator_base(const _Rope_iterator_base&))
1442 (_Rope_const_iterator::operator=(const _Rope_const_iterator&))
1443 (_Rope_iterator::operator=(const _Rope_iterator&)): Ensure
1444 copied/assigned rope iterators don't retain pointers to the iterator
1445 they were copied/assigned from.
1446 * testsuite/ext/rope/7.cc: New.
1448 2018-08-13 Jonathan Wakely <jwakely@redhat.com>
1451 * include/bits/stl_tree.h (_Rb_tree::_M_destroy_node(_Link_type)):
1452 Combine definitions to avoid --detect-odr-violations warning.
1454 * libsupc++/new_opa.cc (operator new(size_t, align_val_t)): Use
1455 __is_pow2 to check for valid alignment. Avoid branching when rounding
1456 size to multiple of alignment.
1458 * include/Makefile.am: Install <bit> and <version> for freestanding.
1459 * include/Makefile.in: Regenerate.
1460 * testsuite/17_intro/freestanding.cc: Check for <bit> and <version>.
1463 2018-08-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
1466 * configure.ac: Define HAVE_ALIGNED_ALLOC if building for
1468 * configure: Regenerate.
1470 2018-08-10 Jonathan Wakely <jwakely@redhat.com>
1473 * doc/xml/manual/intro.xml: Document LWG 206 change.
1474 * libsupc++/del_op.cc: Replace _GLIBCXX_USE_NOEXCEPT with noexcept.
1475 * libsupc++/del_opa.cc: Likewise.
1476 * libsupc++/del_opant.cc: Likewise.
1477 * libsupc++/del_opnt.cc: Likewise. Call operator delete(ptr) instead
1479 * libsupc++/del_ops.cc: Replace _GLIBCXX_USE_NOEXCEPT with noexcept.
1480 * libsupc++/del_opsa.cc: Likewise.
1481 * libsupc++/del_opva.cc: Likewise.
1482 * libsupc++/del_opvant.cc: Likewise.
1483 * libsupc++/del_opvnt.cc: Likewise. Call operator delete[](ptr)
1484 instead of operator delete(ptr).
1485 * libsupc++/del_opvs.cc: Replace _GLIBCXX_USE_NOEXCEPT with noexcept.
1486 * libsupc++/del_opvsa.cc: Likewise.
1487 * libsupc++/new_op.cc: Use __builtin_expect in check for zero size.
1488 * libsupc++/new_opa.cc: Use nullptr instead of literal 0.
1489 * libsupc++/new_opant.cc: Likewise. Replace _GLIBCXX_USE_NOEXCEPT
1491 * libsupc++/new_opnt.cc: Likewise. Call operator new(sz) instead of
1493 * libsupc++/new_opvant.cc: Use nullptr and noexcept.
1494 * libsupc++/new_opvnt.cc: Likewise. Call operator new[](sz) instead of
1495 operator new(sz, nothrow).
1496 * testsuite/18_support/new_nothrow.cc: New test.
1498 2018-08-10 Martin Liska <mliska@suse.cz>
1500 * libsupc++/new_op.cc (new): Remove __builtin_expect as malloc
1501 predictor can handle that.
1502 * libsupc++/new_opa.cc: Likewise.
1503 * libsupc++/new_opnt.cc (new): Likewise.
1505 2018-08-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
1508 * configure.ac: Define HAVE_ALIGNED_ALLOC if building for
1510 * configure: Regenerate.
1512 2018-08-10 Jonathan Wakely <jwakely@redhat.com>
1514 * include/std/deque (std::pmr::deque): Declare alias.
1515 * include/std/forward_list (std::pmr::forward_list): Likewise.
1516 * include/std/list (std::pmr::list): Likewise.
1517 * include/std/map (std::pmr::map, std::pmr::multimap): Likewise.
1518 * include/std/regex (std::pmr::match_results, std::pmr::cmatch)
1519 (std::pmr::smatch, std::pmr::wcmatch, std::pmr::wsmatch): Likewise.
1520 * include/std/set (std::pmr::set, std::pmr::multiset): Likewise.
1521 * include/std/string (std::pmr::basic_string, std::pmr::string)
1522 (std::pmr::u16string, std::pmr::u32string, std::pmr::wstring):
1524 * include/std/unordered_map (std::pmr::unordered_map)
1525 (std::pmr::unordered_multimap): Likewise.
1526 * include/std/unordered_set (std::pmr::unordered_set)
1527 (std::pmr::unordered_multiset): Likewise.
1528 * include/std/vector (std::pmr::vector): Likewise.
1529 * testsuite/21_strings/basic_string/types/pmr_typedefs.cc: New test.
1530 * testsuite/23_containers/deque/types/pmr_typedefs.cc: New test.
1531 * testsuite/23_containers/forward_list/pmr_typedefs.cc: New test.
1532 * testsuite/23_containers/list/pmr_typedefs.cc: New test.
1533 * testsuite/23_containers/map/pmr_typedefs.cc: New test.
1534 * testsuite/23_containers/multimap/pmr_typedefs.cc: New test.
1535 * testsuite/23_containers/multiset/pmr_typedefs.cc: New test.
1536 * testsuite/23_containers/set/pmr_typedefs.cc: New test.
1537 * testsuite/23_containers/unordered_map/pmr_typedefs.cc: New test.
1538 * testsuite/23_containers/unordered_multimap/pmr_typedefs.cc: New
1540 * testsuite/23_containers/unordered_multiset/pmr_typedefs.cc: New
1542 * testsuite/23_containers/unordered_set/pmr_typedefs.cc: New test.
1543 * testsuite/23_containers/vector/pmr_typedefs.cc: New test.
1544 * testsuite/28_regex/match_results/pmr_typedefs.cc: New test.
1546 2018-08-08 François Dumont <fdumont@gcc.gnu.org>
1548 * include/bits/stl_algo.h
1549 (__rotate(_Ite, _Ite, _Ite, forward_iterator_tag))
1550 (__rotate(_Ite, _Ite, _Ite, bidirectional_iterator_tag))
1551 (__rotate(_Ite, _Ite, _Ite, random_access_iterator_tag)): Move code
1553 (rotate(_Ite, _Ite, _Ite)): ...here.
1554 (__stable_partition_adaptive(_FIt, _FIt, _Pred, _Dist, _Pointer, _Dist)):
1555 Simplify rotate call.
1556 (__rotate_adaptive(_BIt1, _BIt1, _BIt1, _Dist, _Dist, _Bit2, _Dist)):
1558 (__merge_without_buffer(_BIt, _BIt, _BIt, _Dist, _Dist, _Comp)):
1561 2018-08-08 Jonathan Wakely <jwakely@redhat.com>
1563 * libsupc++/new_opa.cc (aligned_alloc): Declare inside namespace to
1564 avoid clashing with an ::aligned_alloc function that was not detected
1567 * doc/xml/manual/using.xml: Fix markup for empty table entry.
1568 * doc/html/*: Regenerate.
1570 * doc/xml/manual/using.xml: Add missing header to table and fix typo.
1571 * doc/html/*: Regenerate.
1574 * include/bits/fs_dir.h (directory_entry::_M_file_type(error_code&)):
1575 Clear error_code when cached type is used.
1576 * testsuite/27_io/filesystem/directory_entry/86597.cc: New test.
1578 2018-08-07 Jonathan Wakely <jwakely@redhat.com>
1581 * include/std/variant (_Copy_ctor_base::_M_destructive_move): Define
1582 here instead of in _Move_assign_base.
1583 (_Copy_ctor_base<true, _Types...>::_M_destructive_move): Define.
1584 (_Copy_assign_base::operator=): Use _M_destructive_move when changing
1585 the contained value to another alternative.
1586 (_Move_assign_base::operator=): Likewise.
1587 (_Move_assign_base::_M_destructive_move): Remove.
1588 * testsuite/20_util/variant/86874.cc: New test.
1591 * libsupc++/new_opa.cc [_GLIBCXX_HAVE_MEMALIGN] (aligned_alloc):
1592 Replace macro with inline function.
1593 [__sun]: Increase alignment to meet memalign precondition.
1594 [!HAVE__ALIGNED_MALLOC && !HAVE_POSIX_MEMALIGN && !HAVE_MEMALIGN]
1595 (aligned_alloc): Move check for valid alignment to operator new.
1596 Remove redundant check for non-zero size, it's enforced by the caller.
1597 (operator new): Move check for valid alignment here. Use
1598 __builtin_expect on check for zero size.
1600 * config/abi/pre/gnu.ver: Export monotonic_buffer_resource members.
1601 * include/std/memory_resource (monotonic_buffer_resource::release):
1602 Call _M_release_buffers to free buffers.
1603 (monotonic_buffer_resource::do_allocate): Call _M_new_buffer to
1604 allocate a new buffer from upstream.
1605 (monotonic_buffer_resource::_M_new_buffer): Declare.
1606 (monotonic_buffer_resource::_M_release_buffers): Declare.
1607 (monotonic_buffer_resource::_Chunk): Replace definition with
1608 declaration as opaque type.
1609 * src/c++17/memory_resource.cc (monotonic_buffer_resource::_Chunk):
1611 (monotonic_buffer_resource::_M_new_buffer): Define.
1612 (monotonic_buffer_resource::_M_release_buffers): Define.
1614 2018-08-05 François Dumont <fdumont@gcc.gnu.org>
1616 * include/bits/stl_iterator.h: Fix comment.
1618 2018-08-03 Jonathan Wakely <jwakely@redhat.com>
1620 * src/c++11/system_error.cc
1621 (system_error_category::default_error_condition): Add workaround for
1622 ENOTEMPTY and EEXIST having the same value on AIX.
1623 * testsuite/19_diagnostics/error_category/system_category.cc: Add
1624 extra testcases for EDOM, EILSEQ, ERANGE, EEXIST and ENOTEMPTY.
1626 2018-08-01 Jonathan Wakely <jwakely@redhat.com>
1628 * configure: Regenerate.
1629 * configure.ac: Add -D_GLIBCXX_ASSERTIONS to default DEBUG_FLAGS.
1630 * src/c++11/futex.cc: Use __glibcxx_assert instead of
1631 _GLIBCXX_DEBUG_ASSERT.
1633 2018-08-01 Mike Crowe <mac@mcrowe.com>
1635 * include/std/condition_variable (wait_for): Use steady_clock.
1637 2018-08-01 Mike Crowe <mac@mcrowe.com>
1639 * include/std/condition_variable (wait_until): Only report timeout
1640 if we really have timed out when measured against the
1641 caller-supplied clock.
1642 * testsuite/30_threads/condition_variable/members/2.cc: Add test
1643 case to confirm above behaviour.
1645 2018-08-01 Jonathan Wakely <jwakely@redhat.com>
1648 * src/c++11/system_error.cc
1649 (system_error_category::default_error_condition): New override to
1650 check for POSIX errno values.
1651 * testsuite/19_diagnostics/error_category/generic_category.cc: New
1652 * testsuite/19_diagnostics/error_category/system_category.cc: New
1655 2018-07-31 Jonathan Wakely <jwakely@redhat.com>
1658 * include/bits/stl_pair.h (__pair_base): New class with deleted copy
1659 assignment operator.
1660 (pair): Derive from __pair_base.
1661 (pair::operator=): Remove deleted overload.
1662 * python/libstdcxx/v6/printers.py (StdPairPrinter): New pretty printer
1663 so that new base class isn't shown in GDB.
1664 * testsuite/20_util/pair/86751.cc: New test.
1665 * testsuite/20_util/pair/ref_assign.cc: New test.
1667 * include/bits/c++config (_GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP)
1668 (_GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE): Move definitions here.
1669 (_GLIBCXX_HAVE_BUILTIN_LAUNDER): Likewise. Use !__is_identifier
1670 instead of __has_builtin.
1671 * include/std/type_traits (_GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP)
1672 (_GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE): Remove definitions from here.
1673 * include/std/version [!_GLIBCXX_HAS_GTHREADS]
1674 (__cpp_lib_shared_timed_mutex, __cpp_lib_scoped_lock)
1675 (__cpp_lib_shared_mutex): Don't define when Gthreads not in use.
1676 [!_GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP]
1677 (__cpp_lib_has_unique_object_representations): Don't define when
1678 builtin not available.
1679 [!_GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE] (__cpp_lib_is_aggregate):
1681 [!_GLIBCXX_HAVE_BUILTIN_LAUNDER] (__cpp_lib_launder): Likewise.
1682 * libsupc++/new (_GLIBCXX_HAVE_BUILTIN_LAUNDER): Remove definition
1685 * doc/xml/manual/test.xml: Improve documentation on writing tests for
1687 * doc/xml/manual/using.xml: Document all headers for C++11 and later.
1688 * doc/html/*: Regenerate.
1690 * include/ext/pointer.h [__cplusplus >= 201103L]
1691 (_Pointer_adapter::operator bool): Add explicit conversion operator
1692 to replace safe bool idiom.
1694 2018-07-30 Jonathan Wakely <jwakely@redhat.com>
1697 * include/bits/stl_iterator.h (reverse_iterator::operator->): Call
1698 _S_to_pointer (LWG 1052, LWG 2118).
1699 (reverse_iterator::_S_to_pointer): Define overloaded helper functions.
1700 * testsuite/24_iterators/reverse_iterator/dr1052.cc: New test.
1701 * testsuite/24_iterators/reverse_iterator/dr2188.cc: New test.
1703 * libsupc++/new_opa.cc (operator new(size_t, align_val_t)): Add
1704 workaround for aligned_alloc bug on AIX.
1705 * testsuite/18_support/new_aligned.cc: New test.
1707 2018-07-26 Marek Polacek <polacek@redhat.com>
1709 * testsuite/30_threads/condition_variable_any/cond.cc: New.
1711 2018-07-26 Marek Polacek <polacek@redhat.com>
1713 * src/c++98/locale_init.cc: Fix #ifdef condition.
1715 2018-07-26 Jonathan Wakely <jwakely@redhat.com>
1717 * testsuite/18_support/aligned_alloc/aligned_alloc.cc: Add
1718 dg-require-cstdint directive.
1719 * testsuite/20_util/allocator/overaligned.cc: Likewise.
1720 * testsuite/20_util/any/cons/aligned.cc: Likewise.
1721 * testsuite/20_util/monotonic_buffer_resource/allocate.cc: Likewise.
1722 * testsuite/20_util/monotonic_buffer_resource/deallocate.cc: Likewise.
1723 * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc:
1725 * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise.
1726 * testsuite/23_containers/list/modifiers/insert/25288.cc: Likewise.
1727 * testsuite/23_containers/set/allocator/move_assign.cc: Likewise.
1728 * testsuite/25_algorithms/make_heap/complexity.cc: Likewise.
1729 * testsuite/25_algorithms/pop_heap/complexity.cc: Require cstdint and
1730 random_device effective-target.
1731 * testsuite/25_algorithms/push_heap/complexity.cc: Likewise.
1732 * testsuite/25_algorithms/sample/1.cc: Require cstdint.
1733 * testsuite/25_algorithms/sample/2.cc: Likewise.
1734 * testsuite/25_algorithms/sort_heap/complexity.cc: Require cstdint
1736 * testsuite/26_numerics/headers/random/types_std_c++0x.cc: Require
1738 * testsuite/26_numerics/random/chi_squared_distribution/83833.cc:
1740 * testsuite/26_numerics/random/discard_block_engine/requirements/
1741 constexpr_data.cc: Likewise.
1742 * testsuite/26_numerics/random/discard_block_engine/requirements/
1743 constexpr_functions.cc: Likewise.
1744 * testsuite/26_numerics/random/independent_bits_engine/requirements/
1745 constexpr_functions.cc: Likewise.
1746 * testsuite/26_numerics/random/linear_congruential_engine/requirements/
1747 constexpr_data.cc: Likewise.
1748 * testsuite/26_numerics/random/linear_congruential_engine/requirements/
1749 constexpr_functions.cc: Likewise.
1750 * testsuite/26_numerics/random/mersenne_twister_engine/requirements/
1751 constexpr_data.cc: Likewise.
1752 * testsuite/26_numerics/random/mersenne_twister_engine/requirements/
1753 constexpr_functions.cc: Likewise.
1754 * testsuite/26_numerics/random/pr60037-neg.cc: Likewise.
1755 * testsuite/26_numerics/random/seed_seq/cons/65631.cc: Likewise.
1756 * testsuite/26_numerics/random/shuffle_order_engine/requirements/
1757 constexpr_data.cc: Add dg-require-cstdint directive.
1758 * testsuite/26_numerics/random/shuffle_order_engine/requirements/
1759 constexpr_functions.cc: Likewise.
1760 * testsuite/26_numerics/random/subtract_with_carry_engine/requirements/
1761 constexpr_data.cc: Likewise.
1762 * testsuite/26_numerics/random/subtract_with_carry_engine/requirements/
1763 constexpr_functions.cc: Likewise.
1764 * testsuite/26_numerics/random/uniform_real_distribution/operators/
1766 * testsuite/29_atomics/headers/atomic/types_std_c++0x.cc: Likewise.
1767 * testsuite/experimental/algorithm/sample-2.cc: Likewise.
1768 * testsuite/experimental/algorithm/sample.cc: Likewise.
1769 * testsuite/experimental/algorithm/search.cc: Likewise.
1770 * testsuite/experimental/algorithm/shuffle.cc: Likewise.
1771 * testsuite/experimental/any/cons/aligned.cc: Likewise.
1772 * testsuite/experimental/memory_resource/new_delete_resource.cc:
1774 * testsuite/experimental/memory_resource/resource_adaptor.cc: Likewise.
1775 * testsuite/experimental/random/randint.cc: Likewise.
1776 * testsuite/experimental/source_location/1.cc: Likewise.
1777 * testsuite/ext/bitmap_allocator/overaligned.cc: Likewise.
1778 * testsuite/ext/malloc_allocator/overaligned.cc: Likewise.
1779 * testsuite/ext/mt_allocator/overaligned.cc: Likewise.
1780 * testsuite/ext/new_allocator/overaligned.cc: Likewise.
1781 * testsuite/ext/pb_ds/regression/hash_map_rand.cc: Likewise.
1782 * testsuite/ext/pb_ds/regression/hash_set_rand.cc: Likewise.
1783 * testsuite/ext/pb_ds/regression/list_update_map_rand.cc: Likewise.
1784 * testsuite/ext/pb_ds/regression/list_update_set_rand.cc: Likewise.
1785 * testsuite/ext/pb_ds/regression/priority_queue_rand.cc: Likewise.
1786 * testsuite/ext/pb_ds/regression/tree_map_rand.cc: Likewise.
1787 * testsuite/ext/pb_ds/regression/tree_set_rand.cc: Likewise.
1788 * testsuite/ext/pb_ds/regression/trie_map_rand.cc: Likewise.
1789 * testsuite/ext/pb_ds/regression/trie_set_rand.cc: Likewise.
1790 * testsuite/ext/pool_allocator/overaligned.cc: Likewise.
1791 * testsuite/ext/throw_allocator/check_allocate_max_size.cc: Likewise.
1792 * testsuite/ext/throw_allocator/check_deallocate_null.cc: Likewise.
1793 * testsuite/ext/throw_allocator/check_delete.cc: Likewise.
1794 * testsuite/ext/throw_allocator/check_new.cc: Likewise.
1795 * testsuite/ext/throw_allocator/deallocate_global.cc: Likewise.
1796 * testsuite/ext/throw_allocator/deallocate_local.cc: Likewise.
1797 * testsuite/ext/throw_allocator/explicit_instantiation.cc: Likewise.
1798 * testsuite/ext/throw_allocator/variadic_construct.cc: Likewise.
1799 * testsuite/tr1/8_c_compatibility/cinttypes/functions.cc: Likewise.
1801 * testsuite/30_threads/recursive_mutex/cons/1.cc: Likewise.
1802 * testsuite/30_threads/recursive_mutex/cons/assign_neg.cc: Likewise.
1803 * testsuite/30_threads/recursive_mutex/cons/copy_neg.cc: Likewise.
1804 * testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc:
1806 * testsuite/30_threads/recursive_mutex/lock/1.cc: Likewise.
1807 * testsuite/30_threads/recursive_mutex/native_handle/1.cc: Likewise.
1808 * testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc:
1810 * testsuite/30_threads/recursive_mutex/requirements/standard_layout.cc:
1812 * testsuite/30_threads/recursive_mutex/requirements/typedefs.cc:
1814 * testsuite/30_threads/recursive_mutex/try_lock/1.cc: Likewise.
1815 * testsuite/30_threads/recursive_mutex/try_lock/2.cc: Likewise.
1816 * testsuite/30_threads/recursive_mutex/unlock/1.cc: Likewise.
1817 * testsuite/30_threads/recursive_mutex/unlock/2.cc: Likewise.
1818 * testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Likewise.
1819 * testsuite/30_threads/recursive_timed_mutex/cons/assign_neg.cc:
1821 * testsuite/30_threads/recursive_timed_mutex/cons/copy_neg.cc:
1823 * testsuite/30_threads/recursive_timed_mutex/dest/
1824 destructor_locked.cc: Likewise.
1825 * testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise.
1826 * testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise.
1827 * testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc:
1829 * testsuite/30_threads/recursive_timed_mutex/native_handle/
1830 typesizes.cc: Likewise.
1831 * testsuite/30_threads/recursive_timed_mutex/requirements/typedefs.cc:
1833 * testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc:
1835 * testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc:
1837 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc:
1839 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc:
1841 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc:
1843 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc:
1845 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc:
1847 * testsuite/30_threads/recursive_timed_mutex/unlock/1.cc: Likewise.
1848 * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: Likewise.
1849 * testsuite/30_threads/scoped_lock/cons/1.cc: Likewise.
1850 * testsuite/30_threads/scoped_lock/requirements/
1851 explicit_instantiation.cc: Likewise.
1852 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: Likewise.
1853 * testsuite/30_threads/shared_future/cons/assign.cc: Likewise.
1854 * testsuite/30_threads/shared_future/cons/constexpr.cc: Likewise.
1855 * testsuite/30_threads/shared_future/cons/copy.cc: Likewise.
1856 * testsuite/30_threads/shared_future/cons/default.cc: Likewise.
1857 * testsuite/30_threads/shared_future/cons/move.cc: Likewise.
1858 * testsuite/30_threads/shared_future/cons/move_assign.cc: Likewise.
1859 * testsuite/30_threads/shared_future/members/45133.cc: Likewise.
1860 * testsuite/30_threads/shared_future/members/get.cc: Likewise.
1861 * testsuite/30_threads/shared_future/members/get2.cc: Likewise.
1862 * testsuite/30_threads/shared_future/members/valid.cc: Likewise.
1863 * testsuite/30_threads/shared_future/members/wait.cc: Likewise.
1864 * testsuite/30_threads/shared_future/members/wait_for.cc: Likewise.
1865 * testsuite/30_threads/shared_future/members/wait_until.cc: Likewise.
1866 * testsuite/30_threads/shared_future/requirements/
1867 explicit_instantiation.cc: Likewise.
1868 * testsuite/30_threads/shared_lock/cons/1.cc: Likewise.
1869 * testsuite/30_threads/shared_lock/cons/2.cc: Likewise.
1870 * testsuite/30_threads/shared_lock/cons/3.cc: Likewise.
1871 * testsuite/30_threads/shared_lock/cons/4.cc: Likewise.
1872 * testsuite/30_threads/shared_lock/cons/5.cc: Likewise.
1873 * testsuite/30_threads/shared_lock/cons/6.cc: Likewise.
1874 * testsuite/30_threads/shared_lock/locking/1.cc: Likewise.
1875 * testsuite/30_threads/shared_lock/locking/2.cc: Likewise.
1876 * testsuite/30_threads/shared_lock/locking/3.cc: Likewise.
1877 * testsuite/30_threads/shared_lock/locking/4.cc: Likewise.
1878 * testsuite/30_threads/shared_lock/modifiers/1.cc: Likewise.
1879 * testsuite/30_threads/shared_lock/requirements/
1880 explicit_instantiation.cc: Likewise.
1881 * testsuite/30_threads/shared_lock/requirements/typedefs.cc: Likewise.
1882 * testsuite/30_threads/shared_mutex/cons/1.cc: Likewise.
1883 * testsuite/30_threads/shared_mutex/cons/assign_neg.cc: Likewise.
1884 * testsuite/30_threads/shared_mutex/cons/copy_neg.cc: Likewise.
1885 * testsuite/30_threads/shared_mutex/requirements/standard_layout.cc:
1887 * testsuite/30_threads/shared_mutex/try_lock/1.cc: Likewise.
1888 * testsuite/30_threads/shared_mutex/try_lock/2.cc: Likewise.
1889 * testsuite/30_threads/shared_mutex/unlock/1.cc: Likewise.
1890 * testsuite/30_threads/shared_timed_mutex/cons/1.cc: Likewise.
1891 * testsuite/30_threads/shared_timed_mutex/cons/assign_neg.cc: Likewise.
1892 * testsuite/30_threads/shared_timed_mutex/cons/copy_neg.cc: Likewise.
1893 * testsuite/30_threads/shared_timed_mutex/requirements/
1894 standard_layout.cc: Likewise.
1895 * testsuite/30_threads/shared_timed_mutex/try_lock/1.cc: Likewise.
1896 * testsuite/30_threads/shared_timed_mutex/try_lock/2.cc: Likewise.
1897 * testsuite/30_threads/shared_timed_mutex/try_lock/3.cc: Likewise.
1898 * testsuite/30_threads/shared_timed_mutex/unlock/1.cc: Likewise.
1899 * testsuite/30_threads/this_thread/1.cc: Likewise.
1900 * testsuite/30_threads/this_thread/2.cc: Likewise.
1901 * testsuite/30_threads/this_thread/3.cc: Likewise.
1902 * testsuite/30_threads/this_thread/4.cc: Likewise.
1903 * testsuite/30_threads/this_thread/58038.cc: Likewise.
1904 * testsuite/30_threads/thread/70503.cc: Likewise.
1905 * testsuite/30_threads/thread/84532.cc: Likewise.
1906 * testsuite/30_threads/thread/adl.cc: Likewise.
1907 * testsuite/30_threads/thread/cons/1.cc: Likewise.
1908 * testsuite/30_threads/thread/cons/2.cc: Likewise.
1909 * testsuite/30_threads/thread/cons/3.cc: Likewise.
1910 * testsuite/30_threads/thread/cons/4.cc: Likewise.
1911 * testsuite/30_threads/thread/cons/49668.cc: Likewise.
1912 * testsuite/30_threads/thread/cons/5.cc: Likewise.
1913 * testsuite/30_threads/thread/cons/6.cc: Likewise.
1914 * testsuite/30_threads/thread/cons/7.cc: Likewise.
1915 * testsuite/30_threads/thread/cons/8.cc: Likewise.
1916 * testsuite/30_threads/thread/cons/84535.cc: Likewise.
1917 * testsuite/30_threads/thread/cons/9.cc: Likewise.
1918 * testsuite/30_threads/thread/cons/assign_neg.cc: Likewise.
1919 * testsuite/30_threads/thread/cons/copy_neg.cc: Likewise.
1920 * testsuite/30_threads/thread/cons/lwg2097.cc: Likewise.
1921 * testsuite/30_threads/thread/cons/moveable.cc: Likewise.
1922 * testsuite/30_threads/thread/cons/terminate.cc: Likewise.
1923 * testsuite/30_threads/thread/id/operators.cc: Likewise.
1924 * testsuite/30_threads/thread/members/1.cc: Likewise.
1925 * testsuite/30_threads/thread/members/2.cc: Likewise.
1926 * testsuite/30_threads/thread/members/3.cc: Likewise.
1927 * testsuite/30_threads/thread/members/4.cc: Likewise.
1928 * testsuite/30_threads/thread/members/5.cc: Likewise.
1929 * testsuite/30_threads/thread/members/hardware_concurrency.cc:
1931 * testsuite/30_threads/thread/native_handle/cancel.cc: Likewise.
1932 * testsuite/30_threads/thread/swap/1.cc: Likewise.
1933 * testsuite/30_threads/timed_mutex/cons/1.cc: Likewise.
1934 * testsuite/30_threads/timed_mutex/cons/assign_neg.cc: Likewise.
1935 * testsuite/30_threads/timed_mutex/cons/copy_neg.cc: Likewise.
1936 * testsuite/30_threads/timed_mutex/dest/destructor_locked.cc: Likewise.
1937 * testsuite/30_threads/timed_mutex/lock/1.cc: Likewise.
1938 * testsuite/30_threads/timed_mutex/native_handle/1.cc: Likewise.
1939 * testsuite/30_threads/timed_mutex/native_handle/typesizes.cc:
1941 * testsuite/30_threads/timed_mutex/requirements/
1942 standard_layout.cc: Likewise.
1943 * testsuite/30_threads/timed_mutex/requirements/typedefs.cc: Likewise.
1944 * testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise.
1945 * testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise.
1946 * testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise.
1947 * testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise.
1948 * testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise.
1949 * testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise.
1950 * testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise.
1951 * testsuite/30_threads/timed_mutex/try_lock_until/57641.cc: Likewise.
1952 * testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise.
1953 * testsuite/30_threads/timed_mutex/unlock/2.cc: Likewise.
1954 * testsuite/30_threads/try_lock/1.cc: Likewise.
1955 * testsuite/30_threads/try_lock/2.cc: Likewise.
1956 * testsuite/30_threads/try_lock/3.cc: Likewise.
1957 * testsuite/30_threads/try_lock/4.cc: Likewise.
1958 * testsuite/30_threads/unique_lock/cons/1.cc: Likewise.
1959 * testsuite/30_threads/unique_lock/cons/2.cc: Likewise.
1960 * testsuite/30_threads/unique_lock/cons/3.cc: Likewise.
1961 * testsuite/30_threads/unique_lock/cons/4.cc: Likewise.
1962 * testsuite/30_threads/unique_lock/cons/5.cc: Likewise.
1963 * testsuite/30_threads/unique_lock/cons/6.cc: Likewise.
1964 * testsuite/30_threads/unique_lock/locking/1.cc: Likewise.
1965 * testsuite/30_threads/unique_lock/locking/2.cc: Likewise.
1966 * testsuite/30_threads/unique_lock/locking/3.cc: Likewise.
1967 * testsuite/30_threads/unique_lock/locking/4.cc: Likewise.
1968 * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
1969 * testsuite/30_threads/unique_lock/requirements/
1970 explicit_instantiation.cc: Likewise.
1971 * testsuite/30_threads/unique_lock/requirements/typedefs.cc: Likewise.
1973 * testsuite/30_threads/async/42819.cc: Remove dg-require-cstdint
1975 * testsuite/30_threads/async/49668.cc: Likewise.
1976 * testsuite/30_threads/async/54297.cc: Likewise.
1977 * testsuite/30_threads/async/84532.cc: Likewise.
1978 * testsuite/30_threads/async/any.cc: Likewise.
1979 * testsuite/30_threads/async/async.cc: Likewise.
1980 * testsuite/30_threads/async/except.cc: Likewise.
1981 * testsuite/30_threads/async/forced_unwind.cc: Likewise.
1982 * testsuite/30_threads/async/launch.cc: Likewise.
1983 * testsuite/30_threads/async/lwg2021.cc: Likewise.
1984 * testsuite/30_threads/async/sync.cc: Likewise.
1985 * testsuite/30_threads/call_once/39909.cc: Likewise.
1986 * testsuite/30_threads/call_once/49668.cc: Likewise.
1987 * testsuite/30_threads/call_once/60497.cc: Likewise.
1988 * testsuite/30_threads/call_once/call_once1.cc: Likewise.
1989 * testsuite/30_threads/call_once/constexpr.cc: Likewise.
1990 * testsuite/30_threads/call_once/dr2442.cc: Likewise.
1991 * testsuite/30_threads/call_once/once_flag.cc: Likewise.
1992 * testsuite/30_threads/condition_variable/54185.cc: Likewise.
1993 * testsuite/30_threads/condition_variable/cons/1.cc: Likewise.
1994 * testsuite/30_threads/condition_variable/cons/assign_neg.cc:
1996 * testsuite/30_threads/condition_variable/cons/copy_neg.cc: Likewise.
1997 * testsuite/30_threads/condition_variable/members/1.cc: Likewise.
1998 * testsuite/30_threads/condition_variable/members/2.cc: Likewise.
1999 * testsuite/30_threads/condition_variable/members/3.cc: Likewise.
2000 * testsuite/30_threads/condition_variable/members/53841.cc: Likewise.
2001 * testsuite/30_threads/condition_variable/members/68519.cc: Likewise.
2002 * testsuite/30_threads/condition_variable/native_handle/typesizes.cc:
2004 * testsuite/30_threads/condition_variable/requirements/
2005 standard_layout.cc: Likewise.
2006 * testsuite/30_threads/condition_variable/requirements/typedefs.cc:
2008 * testsuite/30_threads/condition_variable_any/50862.cc: Likewise.
2009 * testsuite/30_threads/condition_variable_any/53830.cc: Likewise.
2010 * testsuite/30_threads/condition_variable_any/cons/1.cc: Likewise.
2011 * testsuite/30_threads/condition_variable_any/cons/assign_neg.cc:
2013 * testsuite/30_threads/condition_variable_any/cons/copy_neg.cc:
2015 * testsuite/30_threads/condition_variable_any/members/1.cc: Likewise.
2016 * testsuite/30_threads/condition_variable_any/members/2.cc: Likewise.
2017 * testsuite/30_threads/future/cons/assign_neg.cc: Likewise.
2018 * testsuite/30_threads/future/cons/constexpr.cc: Likewise.
2019 * testsuite/30_threads/future/cons/copy_neg.cc: Likewise.
2020 * testsuite/30_threads/future/cons/default.cc: Likewise.
2021 * testsuite/30_threads/future/cons/move.cc: Likewise.
2022 * testsuite/30_threads/future/cons/move_assign.cc: Likewise.
2023 * testsuite/30_threads/future/members/45133.cc: Likewise.
2024 * testsuite/30_threads/future/members/get.cc: Likewise.
2025 * testsuite/30_threads/future/members/get2.cc: Likewise.
2026 * testsuite/30_threads/future/members/share.cc: Likewise.
2027 * testsuite/30_threads/future/members/valid.cc: Likewise.
2028 * testsuite/30_threads/future/members/wait.cc: Likewise.
2029 * testsuite/30_threads/future/members/wait_for.cc: Likewise.
2030 * testsuite/30_threads/future/members/wait_until.cc: Likewise.
2031 * testsuite/30_threads/future/requirements/explicit_instantiation.cc:
2033 * testsuite/30_threads/headers/condition_variable/types_std_c++0x.cc:
2035 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
2036 * testsuite/30_threads/headers/mutex/types_std_c++0x.cc: Likewise.
2037 * testsuite/30_threads/headers/thread/std_c++0x_neg.cc: Likewise.
2038 * testsuite/30_threads/headers/thread/types_std_c++0x.cc: Likewise.
2039 * testsuite/30_threads/lock/1.cc: Likewise.
2040 * testsuite/30_threads/lock/2.cc: Likewise.
2041 * testsuite/30_threads/lock/3.cc: Likewise.
2042 * testsuite/30_threads/lock/4.cc: Likewise.
2043 * testsuite/30_threads/lock_guard/cons/1.cc: Likewise.
2044 * testsuite/30_threads/lock_guard/requirements/
2045 explicit_instantiation.cc: Likewise.
2046 * testsuite/30_threads/lock_guard/requirements/typedefs.cc: Likewise.
2047 * testsuite/30_threads/mutex/cons/1.cc: Likewise.
2048 * testsuite/30_threads/mutex/cons/assign_neg.cc: Likewise.
2049 * testsuite/30_threads/mutex/cons/constexpr.cc: Likewise.
2050 * testsuite/30_threads/mutex/cons/copy_neg.cc: Likewise.
2051 * testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise.
2052 * testsuite/30_threads/mutex/lock/1.cc: Likewise.
2053 * testsuite/30_threads/mutex/native_handle/1.cc: Likewise.
2054 * testsuite/30_threads/mutex/native_handle/typesizes.cc: Likewise.
2055 * testsuite/30_threads/mutex/requirements/standard_layout.cc::
2057 * testsuite/30_threads/mutex/requirements/typedefs.cc: Likewise.
2058 * testsuite/30_threads/mutex/try_lock/1.cc: Likewise.
2059 * testsuite/30_threads/mutex/try_lock/2.cc: Likewise.
2060 * testsuite/30_threads/mutex/unlock/1.cc: Likewise.
2061 * testsuite/30_threads/mutex/unlock/2.cc: Likewise.
2062 * testsuite/30_threads/once_flag/cons/constexpr.cc: Likewise.
2063 * testsuite/30_threads/packaged_task/49668.cc: Likewise.
2064 * testsuite/30_threads/packaged_task/60564.cc: Likewise.
2065 * testsuite/30_threads/packaged_task/cons/1.cc: Likewise.
2066 * testsuite/30_threads/packaged_task/cons/2.cc: Likewise.
2067 * testsuite/30_threads/packaged_task/cons/3.cc: Likewise.
2068 * testsuite/30_threads/packaged_task/cons/56492.cc: Likewise.
2069 * testsuite/30_threads/packaged_task/cons/alloc.cc: Likewise.
2070 * testsuite/30_threads/packaged_task/cons/alloc2.cc: Likewise.
2071 * testsuite/30_threads/packaged_task/cons/alloc_min.cc: Likewise.
2072 * testsuite/30_threads/packaged_task/cons/assign_neg.cc: Likewise.
2073 * testsuite/30_threads/packaged_task/cons/copy_neg.cc: Likewise.
2074 * testsuite/30_threads/packaged_task/cons/move.cc: Likewise.
2075 * testsuite/30_threads/packaged_task/cons/move_assign.cc: Likewise.
2076 * testsuite/30_threads/packaged_task/members/at_thread_exit.cc:
2078 * testsuite/30_threads/packaged_task/members/get_future.cc: Likewise.
2079 * testsuite/30_threads/packaged_task/members/get_future2.cc: Likewise.
2080 * testsuite/30_threads/packaged_task/members/invoke.cc: Likewise.
2081 * testsuite/30_threads/packaged_task/members/invoke2.cc: Likewise.
2082 * testsuite/30_threads/packaged_task/members/invoke3.cc: Likewise.
2083 * testsuite/30_threads/packaged_task/members/invoke4.cc: Likewise.
2084 * testsuite/30_threads/packaged_task/members/invoke5.cc: Likewise.
2085 * testsuite/30_threads/packaged_task/members/reset.cc: Likewise.
2086 * testsuite/30_threads/packaged_task/members/reset2.cc: Likewise.
2087 * testsuite/30_threads/packaged_task/members/swap.cc: Likewise.
2088 * testsuite/30_threads/packaged_task/members/valid.cc: Likewise.
2089 * testsuite/30_threads/packaged_task/requirements/
2090 explicit_instantiation.cc: Likewise.
2091 * testsuite/30_threads/packaged_task/uses_allocator.cc: Likewise.
2092 * testsuite/30_threads/promise/60966.cc: Likewise.
2093 * testsuite/30_threads/promise/69106.cc: Likewise.
2094 * testsuite/30_threads/promise/cons/1.cc: Likewise.
2095 * testsuite/30_threads/promise/cons/alloc.cc: Likewise.
2096 * testsuite/30_threads/promise/cons/alloc2.cc: Likewise.
2097 * testsuite/30_threads/promise/cons/alloc_min.cc: Likewise.
2098 * testsuite/30_threads/promise/cons/assign_neg.cc: Likewise.
2099 * testsuite/30_threads/promise/cons/copy_neg.cc: Likewise.
2100 * testsuite/30_threads/promise/cons/move.cc: Likewise.
2101 * testsuite/30_threads/promise/cons/move_assign.cc: Likewise.
2102 * testsuite/30_threads/promise/members/at_thread_exit.cc: Likewise.
2103 * testsuite/30_threads/promise/members/at_thread_exit2.cc: Likewise.
2104 * testsuite/30_threads/promise/members/get_future.cc: Likewise.
2105 * testsuite/30_threads/promise/members/get_future2.cc: Likewise.
2106 * testsuite/30_threads/promise/members/set_exception.cc: Likewise.
2107 * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
2108 * testsuite/30_threads/promise/members/set_value.cc: Likewise.
2109 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
2110 * testsuite/30_threads/promise/members/set_value3.cc: Likewise.
2111 * testsuite/30_threads/promise/members/swap.cc: Likewise.
2112 * testsuite/30_threads/promise/requirements/explicit_instantiation.cc:
2114 * testsuite/30_threads/promise/uses_allocator.cc: Likewise.
2116 * testsuite/18_support/numeric_limits/char16_32_t.cc: Qualify names
2118 * testsuite/20_util/align/2.cc: Remove dg-require-cstdint directive.
2119 * testsuite/20_util/duration/arithmetic/1.cc: Likewise.
2120 * testsuite/20_util/duration/arithmetic/2.cc: Likewise.
2121 * testsuite/20_util/duration/arithmetic/dr2020.cc: Likewise.
2122 * testsuite/20_util/duration/arithmetic/dr934-1.cc: Likewise.
2123 * testsuite/20_util/duration/arithmetic/dr934-2.cc: Likewise.
2124 * testsuite/20_util/duration/comparison_operators/1.cc: Likewise.
2125 * testsuite/20_util/duration/cons/1.cc: Likewise.
2126 * testsuite/20_util/duration/cons/1_neg.cc: Likewise.
2127 * testsuite/20_util/duration/cons/2.cc: Likewise.
2128 * testsuite/20_util/duration/cons/54025.cc: Likewise.
2129 * testsuite/20_util/duration/cons/dr974_neg.cc: Likewise.
2130 * testsuite/20_util/duration/requirements/explicit_instantiation/
2131 explicit_instantiation.cc: Likewise.
2132 * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise.
2133 * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
2134 * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
2135 * testsuite/20_util/make_signed/requirements/typedefs-4.cc: Likewise.
2136 * testsuite/20_util/ratio/comparisons/comp1.cc: Likewise.
2137 * testsuite/20_util/ratio/comparisons/comp2.cc: Likewise.
2138 * testsuite/20_util/ratio/comparisons/comp3.cc: Likewise.
2139 * testsuite/20_util/ratio/cons/cons1.cc: Likewise.
2140 * testsuite/20_util/ratio/operations/45866.cc: Likewise.
2141 * testsuite/20_util/ratio/operations/47913.cc: Likewise.
2142 * testsuite/20_util/ratio/operations/53840.cc: Likewise.
2143 * testsuite/20_util/ratio/operations/ops1.cc: Likewise.
2144 * testsuite/20_util/shared_ptr/atomic/3.cc: Likewise.
2145 * testsuite/20_util/system_clock/1.cc: Likewise.
2146 * testsuite/20_util/time_point/1.cc: Likewise.
2147 * testsuite/20_util/time_point/2.cc: Likewise.
2148 * testsuite/20_util/time_point/3.cc: Likewise.
2149 * testsuite/20_util/time_point/requirements/explicit_instantiation/
2150 explicit_instantiation.cc: Likewise.
2151 * testsuite/21_strings/basic_string/requirements/
2152 explicit_instantiation/char16_t/1.cc: Likewise.
2153 * testsuite/21_strings/basic_string/requirements/
2154 explicit_instantiation/char32_t/1.cc: Likewise.
2155 * testsuite/21_strings/basic_string_view/requirements/
2156 explicit_instantiation/char16_t/1.cc: Likewise.
2157 * testsuite/21_strings/basic_string_view/requirements/
2158 explicit_instantiation/char32_t/1.cc: Likewise.
2159 * testsuite/21_strings/char_traits/requirements/
2160 explicit_instantiation/char16_t/1.cc: Likewise.
2161 * testsuite/21_strings/char_traits/requirements/
2162 explicit_instantiation/char32_t/1.cc: Likewise.
2163 * testsuite/21_strings/headers/string/types_std_c++0x.cc: Likewise.
2164 * testsuite/22_locale/codecvt/char16_t.cc: Likewise.
2165 * testsuite/22_locale/codecvt/char32_t.cc: Likewise.
2166 * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc:
2168 * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc:
2170 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
2172 * testsuite/22_locale/codecvt/utf8.cc: Likewise.
2173 * testsuite/23_containers/vector/bool/72847.cc: Likewise.
2174 * testsuite/23_containers/vector/debug/multithreaded_swap.cc:
2176 * testsuite/experimental/string_view/requirements/
2177 explicit_instantiation/char16_t/1.cc: Likewise.
2178 * testsuite/experimental/string_view/requirements/
2179 explicit_instantiation/char32_t/1.cc: Likewise.
2180 * testsuite/ext/vstring/requirements/explicit_instantiation/char16_t/
2182 * testsuite/ext/vstring/requirements/explicit_instantiation/char32_t/
2185 * include/ext/throw_allocator.h [!_GLIBCXX_USE_C99_STDINT_TR1]
2186 (random_condition, throw_value_random, throw_allocator_random)
2187 (std::hash<throw_value_random>): Do not define when <tr1/random> is
2189 * src/c++11/cow-stdexcept.cc [!_GLIBCXX_USE_C99_STDINT_TR1]: Do not
2190 define transactional memory support when <stdint.h> is not usable.
2192 * include/bits/hashtable_policy.h (__detail::__clp2): Use faster
2193 implementation that doesn't depend on <stdint.h> types.
2194 * include/std/memory (align) [!_GLIBCXX_USE_C99_STDINT_TR1]: Use
2195 std::size_t when std::uintptr_t is not usable.
2196 [!_GLIBCXX_USE_C99_STDINT_TR1] (pointer_safety, declare_reachable)
2197 (undeclare_reachable, declare_no_pointers, undeclare_no_pointers):
2198 Define independent of _GLIBCXX_USE_C99_STDINT_TR1.
2200 * include/bits/basic_string.h [!_GLIBCXX_USE_C99_STDINT_TR1]
2201 (hash<u16string>, hash<u32string>): Remove dependency on
2202 _GLIBCXX_USE_C99_STDINT_TR1.
2203 * include/bits/char_traits.h [!_GLIBCXX_USE_C99_STDINT_TR1]
2204 (char_traits<char16_t>, char_traits<char32_t>): Remove dependency on
2205 _GLIBCXX_USE_C99_STDINT_TR1. Use __UINT_LEAST16_TYPE__ and
2206 __UINT_LEAST32_TYPE__ or make_unsigned when <stdint.h> is not usable.
2207 * include/bits/codecvt.h [!_GLIBCXX_USE_C99_STDINT_TR1]
2208 (codecvt<char16_t, char, mbstate_t>)
2209 (codecvt<char32_t, char, mbstate_t>)
2210 (codecvt_byname<char16_t, char, mbstate_t>)
2211 (codecvt_byname<char32_t, char, mbstate_t>): Remove dependency
2212 on _GLIBCXX_USE_C99_STDINT_TR1.
2213 * include/bits/locale_facets.h [!_GLIBCXX_USE_C99_STDINT_TR1]
2214 (_GLIBCXX_NUM_UNICODE_FACETS): Likewise.
2215 * include/bits/stringfwd.h [!_GLIBCXX_USE_C99_STDINT_TR1]
2216 (char_traits<char16_t>, char_traits<char32_t>)
2217 (basic_string<char16_t>, basic_string<char32_t>): Remove dependency
2218 on _GLIBCXX_USE_C99_STDINT_TR1.
2219 * include/experimental/string_view [!_GLIBCXX_USE_C99_STDINT_TR1]
2220 (u16string_view, u32string_view, hash<u16string_view>)
2221 (hash<u32string_view>, operator""sv(const char16_t, size_t))
2222 (operator""sv(const char32_t, size_t)): Likewise.
2223 * include/ext/vstring.h [!_GLIBCXX_USE_C99_STDINT_TR1]
2224 (hash<__u16vstring>, hash<__u32vstring>): Likewise.
2225 * include/ext/vstring_fwd.h [!_GLIBCXX_USE_C99_STDINT_TR1]
2226 (__u16vstring, __u16sso_string, __u16rc_string, __u32vstring)
2227 (__u32sso_string, __u32rc_string): Likewise.
2228 * include/std/codecvt [!_GLIBCXX_USE_C99_STDINT_TR1] (codecvt_mode)
2229 (codecvt_utf8, codecvt_utf16, codecvt_utf8_utf16): Likewise.
2230 * include/std/string_view [!_GLIBCXX_USE_C99_STDINT_TR1]
2231 (u16string_view, u32string_view, hash<u16string_view>)
2232 (hash<u32string_view>, operator""sv(const char16_t, size_t))
2233 (operator""sv(const char32_t, size_t)): Likewise.
2234 * src/c++11/codecvt.cc: Likewise.
2235 * src/c++98/locale_init.cc: Likewise.
2236 * src/c++98/localename.cc: Likewise.
2238 * include/bits/atomic_futex.h [!_GLIBCXX_USE_C99_STDINT_TR1]
2239 (__atomic_futex_unsigned_base): Remove dependency on
2240 _GLIBCXX_USE_C99_STDINT_TR1 macro.
2241 * include/bits/unique_lock.h [!_GLIBCXX_USE_C99_STDINT_TR1]
2242 (unique_lock): Remove dependency on _GLIBCXX_USE_C99_STDINT_TR1.
2243 * include/c_global/cstdint [!_GLIBCXX_USE_C99_STDINT_TR1] (intmax_t)
2244 (uintmax_t): Define using predefined macros.
2245 * include/std/chrono [!_GLIBCXX_USE_C99_STDINT_TR1] (duration)
2246 (time_point, system_clock, high_resolution_clock, steady_clock): Remove
2247 dependency on _GLIBCXX_USE_C99_STDINT_TR1 macro.
2248 (nanoseconds, microseconds, milliseconds, seconds, minutes, hours):
2249 [!_GLIBCXX_USE_C99_STDINT_TR1]: Define using __INT64_TYPE__ or
2250 long long when <stdint.h> is not usable.
2251 * include/std/condition_variable [!_GLIBCXX_USE_C99_STDINT_TR1]
2252 (condition_variable, condition_variable_any): Remove dependency on
2253 _GLIBCXX_USE_C99_STDINT_TR1.
2254 * include/std/future [!_GLIBCXX_USE_C99_STDINT_TR1] (future, promise)
2255 (packaged_task, async): Likewise.
2256 * include/std/mutex [!_GLIBCXX_USE_C99_STDINT_TR1] (recursive_mutex)
2257 (timed_mutex, recursive_timed_mutex, try_lock, lock, scoped_lock)
2258 (once_flag, call_once): Likewise.
2259 * include/std/ratio [!_GLIBCXX_USE_C99_STDINT_TR1] (ratio): Likewise.
2260 * include/std/shared_mutex [!_GLIBCXX_USE_C99_STDINT_TR1]
2261 (shared_mutex, shared_timed_mutex, shared_lock): Likewise.
2262 * include/std/thread [!_GLIBCXX_USE_C99_STDINT_TR1] (thread)
2263 (this_thread::get_id, this_thread::yield, this_thread::sleep_for)
2264 (this_thread::sleep_until): Likewise.
2265 * src/c++11/chrono.cc: Remove dependency on
2266 _GLIBCXX_USE_C99_STDINT_TR1 macro.
2267 * src/c++11/condition_variable.cc: Likewise.
2268 * src/c++11/futex.cc: Likewise.
2269 * src/c++11/future.cc: Likewise.
2270 * src/c++11/mutex.cc: Likewise.
2271 * src/c++11/thread.cc: Likewise.
2272 * testsuite/20_util/duration/literals/range_neg.cc: Adjust dg-error.
2273 * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise.
2274 * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
2275 * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
2276 * testsuite/20_util/ratio/cons/cons_overflow_neg.cc: Likewise.
2277 * testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Likewise.
2279 2018-07-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2282 * testsuite/experimental/memory_resource/new_delete_resource.cc:
2283 xfail execution on 32-bit Solaris/x86.
2285 2018-07-26 Marc Glisse <marc.glisse@inria.fr>
2287 * include/bits/stl_vector.h (_Vector_impl_data::_M_copy_data): New.
2288 (_Vector_impl_data::_M_swap_data): Use _M_copy_data.
2289 (vector::_M_move_assign): Reorder the swaps.
2291 2018-07-26 Jonathan Wakely <jwakely@redhat.com>
2294 * testsuite/20_util/monotonic_buffer_resource/release.cc: Request
2295 same alignment for post-release allocation.
2297 2018-07-25 Jonathan Wakely <jwakely@redhat.com>
2300 * testsuite/20_util/monotonic_buffer_resource/release.cc: Allow for
2301 buffer being misaligned and so returned pointer not being at start.
2303 * include/experimental/memory_resource: Include <cstddef> header.
2305 * acinclude.m4 (glibcxx_SUBDIRS): Add src/c++17.
2306 * src/Makefile.am: Add comment.
2307 * src/c++17/Makefile.in: Regenerate.
2309 * include/Makefile.am: Add new <bits/unique_lock.h> header.
2310 * include/Makefile.in: Regenerate.
2311 * include/bits/std_mutex.h [!_GLIBCXX_USE_C99_STDINT_TR1] (mutex)
2312 (lock_guard): Define independent of _GLIBCXX_USE_C99_STDINT_TR1.
2313 (unique_lock): Move definition to ...
2314 * include/bits/unique_lock.h: New header.
2315 [!_GLIBCXX_USE_C99_STDINT_TR1] (unique_lock): Define unconditionally.
2316 [_GLIBCXX_USE_C99_STDINT_TR1] (unique_lock(mutex_type&, time_point))
2317 (unique_lock(mutex_type&, duration), unique_lock::try_lock_until)
2318 (unique_lock::try_lock_for): Define only when <chrono> is usable.
2319 * include/std/condition_variable: Include <bits/unique_lock.h>.
2320 * include/std/mutex: Likewise.
2322 2018-07-24 Jonathan Wakely <jwakely@redhat.com>
2324 * config/abi/pre/gnu.ver: Export new symbols.
2325 * configure: Regenerate.
2326 * include/Makefile.am: Add new <memory_resource> header.
2327 * include/Makefile.in: Regenerate.
2328 * include/precompiled/stdc++.h: Include <memory_resource> for C++17.
2329 * include/std/memory_resource: New header.
2330 (memory_resource, polymorphic_allocator, new_delete_resource)
2331 (null_memory_resource, set_default_resource, get_default_resource)
2332 (pool_options, monotonic_buffer_resource): Define.
2333 * src/Makefile.am: Add c++17 directory.
2334 * src/Makefile.in: Regenerate.
2335 * src/c++11/Makefile.am: Fix comment.
2336 * src/c++17/Makefile.am: Add makefile for new sub-directory.
2337 * src/c++17/Makefile.in: Generate.
2338 * src/c++17/memory_resource.cc: New.
2339 (newdel_res_t, null_res_t, constant_init, newdel_res, null_res)
2340 (default_res, new_delete_resource, null_memory_resource)
2341 (set_default_resource, get_default_resource): Define.
2342 * testsuite/20_util/memory_resource/1.cc: New test.
2343 * testsuite/20_util/memory_resource/2.cc: New test.
2344 * testsuite/20_util/monotonic_buffer_resource/1.cc: New test.
2345 * testsuite/20_util/monotonic_buffer_resource/allocate.cc: New test.
2346 * testsuite/20_util/monotonic_buffer_resource/deallocate.cc: New test.
2347 * testsuite/20_util/monotonic_buffer_resource/release.cc: New test.
2348 * testsuite/20_util/monotonic_buffer_resource/upstream_resource.cc:
2350 * testsuite/20_util/polymorphic_allocator/1.cc: New test.
2351 * testsuite/20_util/polymorphic_allocator/resource.cc: New test.
2352 * testsuite/20_util/polymorphic_allocator/select.cc: New test.
2353 * testsuite/util/testsuite_allocator.h (__gnu_test::memory_resource):
2354 Define concrete memory resource for testing.
2355 (__gnu_test::default_resource_mgr): Define RAII helper for changing
2359 * include/bits/stl_algobase.h (__niter_wrap<_Iterator>): Pass unused
2360 parameter by reference, to avoid copying invalid iterators.
2361 * testsuite/25_algorithms/copy/86658.cc: New test.
2363 * include/std/bit (__countl_zero, __countr_zero, __popcount): Use
2364 local variables for number of digits instead of type aliases.
2365 (__log2p1): Remove redundant branch also checked in __countl_zero.
2367 * include/bits/uses_allocator.h (__is_erased_or_convertible): Reorder
2368 conditions. Add comments.
2369 * testsuite/20_util/uses_allocator/69293_neg.cc: Adjust dg-error line.
2370 * testsuite/20_util/uses_allocator/cons_neg.cc: Likewise.
2371 * testsuite/20_util/scoped_allocator/69293_neg.cc: Likewise.
2373 * include/bits/uses_allocator.h (__is_erased_or_convertible): Remove.
2374 (__uses_allocator_helper): Check conditions directly instead of
2375 using __is_erased_or_convertible.
2377 * include/experimental/memory_resource: Adjust comments and
2379 (__resource_adaptor_imp): Add second template parameter for type of
2380 memory resource base class.
2381 (memory_resource): Define default constructor, destructor, copy
2382 constructor and copy assignment operator as defaulted.
2385 * include/experimental/memory_resource (__get_default_resource): Use
2386 placement new to create an object with dynamic storage duration.
2388 2018-07-23 Jonathan Wakely <jwakely@redhat.com>
2391 * include/experimental/memory_resource
2392 (__resource_adaptor_common::_AlignMgr::_M_unadjust): Add assertion.
2393 (__resource_adaptor_common::__guaranteed_alignment): New helper to
2394 give maximum alignment an allocator guarantees. Specialize for known
2395 allocators using new and malloc.
2396 (__resource_adaptor_imp::do_allocate): Use __guaranteed_alignment.
2397 (__resource_adaptor_imp::do_deallocate): Likewise.
2398 * testsuite/experimental/memory_resource/new_delete_resource.cc:
2399 Check that new and delete are called with expected sizes.
2401 2018-07-20 Jonathan Wakely <jwakely@redhat.com>
2404 * include/bits/fs_dir.h (directory_entry::refresh(error_code&)): Add
2407 2018-07-20 Fangrui Song <maskray@google.com>
2409 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Use
2410 _GLIBCXX_VISIBILITY(default).
2412 2018-07-20 Jonathan Wakely <jwakely@redhat.com>
2415 * include/std/version: Move __cpp_lib_list_remove_return_type macro.
2417 2018-07-19 Jonathan Wakely <jwakely@redhat.com>
2419 * include/std/type_traits (__is_member_object_pointer_helper): Use
2420 __not_<is_function<_Tp>>::type instead of integral_constant.
2421 (__is_member_function_pointer_helper): Likewise for
2422 is_function<_Tp>::type.
2423 (is_compund): Likewise for __not_<is_fundamental<_Tp>>::type.
2424 (__do_is_nt_destructible_impl): Use __bool_constant and reindent.
2425 (is_trivially_constructible): Remove redundant use of
2427 (__is_trivially_copy_assignable_impl): Remove redundant use of
2429 (__is_trivially_move_assignable_impl): Remove redundant use of
2431 (is_trivially_destructible): Use __bool_constant.
2432 * testsuite/20_util/is_trivially_assignable/value.cc: Add some more
2433 tests for scalar types.
2435 2018-07-19 Glen Joseph Fernandes <glenjofe@gmail.com>
2437 * include/bits/stl_algobase.h (__copy_move_a): Used
2438 __is_trivially_copyable.
2439 (__copy_move_backward_a): Likewise.
2440 * testsuite/20_util/specialized_algorithms/uninitialized_copy/1.cc:
2443 2018-07-17 Jonathan Wakely <jwakely@redhat.com>
2446 * acinclude.m4 (GLIBCXX_CHECK_COMPILER_FEATURES): Don't define WERROR.
2447 (GLIBCXX_EXPORT_FLAGS): Use -Wabi=2 instead of -Wabi.
2448 * configure: Regenerate.
2449 * configure.ac: Change GLIBCXX_ENABLE_WERROR default to "no".
2450 * doc/Makefile.in: Regenerate.
2451 * fragment.am: Set WERROR_FLAG to -Werror instead of $(WERROR).
2452 * include/Makefile.in: Regenerate.
2453 * libsupc++/Makefile.in: Regenerate.
2454 * po/Makefile.in: Regenerate.
2455 * python/Makefile.in: Regenerate.
2456 * src/Makefile.in: Regenerate.
2457 * src/c++11/Makefile.in: Regenerate.
2458 * src/c++11/debug.cc: Use diagnostic pragmas to suppress warnings
2459 from -Wabi=2 that don't affect exported symbols.
2460 * src/c++98/Makefile.in: Regenerate.
2461 * src/filesystem/Makefile.in: Regenerate.
2462 * testsuite/Makefile.in: Regenerate.
2464 * src/c++11/compatibility-thread-c++0x.cc [_GLIBCXX_SHARED]
2465 (_Async_state_common::_M_join): Simplify use of std::call_once and
2466 corresponding explicit instantiation.
2467 (_Maybe_wrap_member_pointer, _Bind_simple, _Bind_simple_helper)
2468 (__bind_simple): Remove definitions and explicit instantiation that
2469 are not required by exported symbols.
2471 2018-07-16 Jonathan Wakely <jwakely@redhat.com>
2473 * scripts/create_testsuite_files: Fix typo in comment.
2476 * include/bits/shared_ptr.h (less<shared_ptr<_Tp>>): Remove
2477 non-standard partial specialization.
2478 * include/bits/shared_ptr_base.h (_Sp_less): Remove class definition.
2479 (less<__shared_ptr<_Tp, _Lp>): Remove partial specialization.
2480 * testsuite/20_util/shared_ptr/comparison/86537.cc: New test.
2482 2018-07-16 Andreas Krebbel <krebbel@linux.ibm.com>
2484 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
2485 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Update.
2486 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
2488 2018-07-06 François Dumont <fdumont@gcc.gnu.org>
2490 * include/debug/functions.h (__gnu_debug::__check_string): Move...
2491 * include/debug/string (__gnu_debug::__check_string): ... here.
2492 (_GLIBCXX_DEBUG_VERIFY_STR_COND_AT): New.
2493 (__glibcxx_check_string_n_constructor): New.
2494 (__gnu_debug::basic_string<>(const _CharT*, size_type, const _Alloc&)):
2496 (__glibcxx_check_string_constructor): New.
2497 (__gnu_debug::basic_string<>(const _CharT*, const _Alloc&)):
2499 * testsuite/21_strings/basic_string/debug/1_neg.cc: New.
2500 * testsuite/21_strings/basic_string/debug/2_neg.cc: New.
2502 2018-07-06 Jonathan Wakely <jwakely@redhat.com>
2504 PR libstdc++/84928 use std::move in <numeric> algorithms
2505 * include/bits/stl_numeric.h (_GLIBCXX_MOVE_IF_20): Define macro to
2506 conditionally move, according to __cplusplus value.
2507 (accumulate, inner_product, partial_sum, adjacent_difference): Use
2508 _GLIBCXX_MOVE_IF_20.
2509 * testsuite/26_numerics/accumulate/lwg2055.cc: New test.
2510 * testsuite/26_numerics/adjacent_difference/lwg2055.cc: New test.
2511 * testsuite/26_numerics/inner_product/lwg2055.cc: New test.
2512 * testsuite/26_numerics/partial_sum/lwg2055.cc: New test.
2514 * config/abi/pre/gnu.ver: Use wildcards to combine related patterns.
2516 P0935R0 Eradicating unnecessarily explicit default constructors
2517 * config/abi/pre/gnu.ver: Tighten existing patterns and export new
2518 default constructor symbols.
2519 * include/std/sstream (basic_stringbuf, basic_istringstream)
2520 (basic_ostringstream, basic_stringstream): Remove default arguments
2521 from explicit constructors taking ios_base::openmode and add separate
2522 non-explicit default constructors.
2523 * testsuite/27_io/basic_istringstream/cons/default.cc: New.
2524 * testsuite/27_io/basic_ostringstream/cons/default.cc: New.
2525 * testsuite/27_io/basic_stringstream/cons/default.cc: New.
2526 * testsuite/27_io/basic_stringbuf/cons/char/default.cc: New.
2527 * testsuite/27_io/basic_stringbuf/cons/wchar_t/default.cc: New.
2529 * include/std/variant (__accepted_index): Use void_t.
2531 2018-07-05 Jonathan Wakely <jwakely@redhat.com>
2534 * config/abi/pre/gnu.ver: Export move constructors and move
2535 assignment operators for std::logic_error and std::runtime_error.
2536 * include/std/stdexcept: Use _GLIBCXX_NOTHROW instead of
2537 _GLIBCXX_USE_NOEXCEPT.
2538 (logic_error, runtime_error): Declare move constructors and move
2539 assignment operators. When not declared already, define copy
2540 constructors and copy assignment operators as explicit-defaulted.
2541 (domain_error, invalid_argument, length_error, out_of_range)
2542 (overflow_error, underflow_error): Define move constructors and move
2543 assignment operators as explicitly-defaulted.
2544 * libsupc++/exception.h (exception): Likewise.
2545 * src/c++11/cow-stdexcept.cc (logic_error, runtime_error): Define
2546 move constructors and move assignment operators as defaulted.
2547 * testsuite/19_diagnostics/stdexcept.cc: Check that constructors and
2548 assignment operators are defined.
2550 * testsuite/21_strings/basic_string/cons/char/deduction.cc: XFAIL for
2552 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
2554 * testsuite/21_strings/basic_string/requirements/
2555 explicit_instantiation/debug.cc: Likewise.
2558 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
2559 (basic_string::assign(basic_string&&)): Add conditional noexcept
2560 depending on the allocator's is_always_equal property (LWG 2063).
2561 * testsuite/21_strings/basic_string/modifiers/assign/char/
2562 move_assign.cc: Check for non-throwing exception specification.
2563 * testsuite/21_strings/basic_string/modifiers/assign/wchar_t/
2564 move_assign.cc: Likewise.
2567 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
2568 [_GLIBCXX_FULLY_DYNAMIC_STRING==0] (basic_string::basic_string()):
2569 Add GLIBCXX_NOEXCEPT.
2570 (basic_string::operator=(basic_string&&)): Add _GLIBCXX_NOEXCEPT_IF
2571 to depend on the allocator's is_always_equal property (LWG 2063).
2572 (basic_string::swap(basic_string&)): Likewise.
2573 * include/bits/basic_string.tcc [!_GLIBCXX_USE_CXX11_ABI]
2574 (basic_string::swap(basic_string&)): Likewise.
2575 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
2576 Check is_nothrow_move_assignable.
2577 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
2578 Check is_nothrow_move_assignable.
2579 * testsuite/21_strings/basic_string/cons/char/
2580 noexcept_move_construct.cc: Likewise.
2581 * testsuite/21_strings/basic_string/cons/wchar_t/
2582 noexcept_move_construct.cc: Likewise.
2584 2018-07-04 Jonathan Wakely <jwakely@redhat.com>
2586 P0646R1 Improving the Return Value of Erase-Like Algorithms I
2587 * include/bits/forward_list.h (__cpp_lib_list_remove_return_type):
2589 (forward_list::__remove_return_type): Define typedef as size_type or
2590 void, according to __cplusplus value.
2591 (_GLIBCXX_FWDLIST_REMOVE_RETURN_TYPE_TAG): Define macro as abi-tag or
2592 empty, according to __cplusplus value.
2593 (forward_list::remove, forward_list::unique): Use typedef and macro
2594 to change return type and add abi-tag for C++2a.
2595 (forward_list::remove_if<Pred>, forward_list::unique<BinPred>): Use
2596 typedef to change return type for C++2a.
2597 * include/bits/forward_list.tcc (_GLIBCXX20_ONLY): Define macro.
2598 (forward_list::remove, forward_list::remove_if<Pred>)
2599 (forward_list::unique<BinPred>): Return number of removed elements
2601 * include/bits/list.tcc (_GLIBCXX20_ONLY): Define macro.
2602 (list::remove, list::unique, list::remove_if<Predicate>)
2603 (list::unique<BinaryPredicate>): Return number of removed elements
2605 * include/bits/stl_list.h (__cpp_lib_list_remove_return_type): Define.
2606 (list::__remove_return_type): Define typedef as size_type or
2607 void, according to __cplusplus value.
2608 (_GLIBCXX_LIST_REMOVE_RETURN_TYPE_TAG): Define macro as abi-tag or
2609 empty, according to __cplusplus value.
2610 (list::remove, list::unique): Use typedef and macro to change return
2611 type and add abi-tag for C++2a.
2612 (list::remove_if<Predicate>, list::unique<BinaryPredicate>): Use
2613 typedef to change return type for C++2a.
2614 * include/std/version (__cpp_lib_list_remove_return_type): Define.
2615 * testsuite/23_containers/forward_list/operations/
2616 remove_cxx20_return.cc: New.
2617 * testsuite/23_containers/forward_list/operations/
2618 unique_cxx20_return.cc: New.
2620 P0458R2 Checking for Existence of an Element in Associative Containers
2621 * include/bits/stl_map.h (map::contains): Add for C++2a.
2622 * include/bits/stl_multimap.h (multimap::contains): Likewise.
2623 * include/bits/stl_multiset.h (multiset::contains): Likewise.
2624 * include/bits/stl_set.h (set::contains): Likewise.
2625 * include/bits/stl_tree.h (__has_is_transparent_t): Define alias.
2626 (_Rb_tree::_M_find_tr, _Rb_tree::_M_count_tr)
2627 (_Rb_tree::_M_lower_bound_tr, _Rb_tree::_M_upper_bound_tr)
2628 (_Rb_tree::_M_equal_range_tr): Use __has_is_transparent_t.
2629 * include/bits/unordered_map.h (unordered_map::contains)
2630 (unordered_multimap::contains): Add for C++2a.
2631 * include/bits/unordered_set.h (unordered_set::contains)
2632 (unordered_multiset::contains): Likewise.
2633 * testsuite/23_containers/map/operations/contains.cc: New.
2634 * testsuite/23_containers/multimap/operations/contains.cc: New.
2635 * testsuite/23_containers/multiset/operations/contains.cc: New.
2636 * testsuite/23_containers/set/operations/contains.cc: New.
2637 * testsuite/23_containers/unordered_map/operations/contains.cc: New.
2638 * testsuite/23_containers/unordered_multimap/operations/contains.cc:
2640 * testsuite/23_containers/unordered_multiset/operations/contains.cc:
2642 * testsuite/23_containers/unordered_set/operations/contains.cc: New.
2644 2018-07-04 François Dumont <fdumont@gcc.gnu.org>
2647 * include/debug/string
2648 (__gnu_debug::basic_string<>::insert<_Ite>(const_iterator, _Ite, _Ite)):
2649 Use __glibcxx_check_insert_range.
2650 * 21_strings/basic_string/cons/char/1.cc: Adapt test to use
2651 __gnu_debug::string when _GLIBCXX_DEBUG.
2652 * 21_strings/basic_string/init-list.cc: Likewise.
2653 * 21_strings/basic_string/modifiers/insert/char/1.cc: Likewise.
2654 * 21_strings/basic_string/modifiers/insert/char/2.cc: Likewise.
2655 * 21_strings/basic_string/modifiers/insert/char/83328.cc: Likewise.
2656 * 21_strings/basic_string/types/1.cc: Likewise.
2658 2018-07-04 Jonathan Wakely <jwakely@redhat.com>
2660 * testsuite/25_algorithms/make_heap/complexity.cc: Require effective
2661 target for std::random_device.
2662 * testsuite/26_numerics/random/random_device/cons/default.cc:
2664 * testsuite/experimental/algorithm/sample-2.cc: Likewise.
2665 * testsuite/experimental/algorithm/shuffle.cc: Likewise.
2666 * testsuite/experimental/random/randint.cc: Likewise.
2667 * testsuite/lib/libstdc++.exp
2668 (check_effective_target_random_device): New proc.
2670 2018-07-04 Jonathan Wakely <jwakely@redhat.com>
2671 Jakub Jelinek <jakub@redhat.com>
2673 * include/std/bit (__rotl, __rotr): Fix for non-power of two sizes.
2675 2018-07-04 Jonathan Wakely <jwakely@redhat.com>
2678 * include/std/type_traits (is_trivially_constructible): Check
2679 is_constructible before __is_trivially_constructible.
2680 * testsuite/20_util/is_trivially_constructible/value.cc: Add more
2681 tests, including negative cases.
2682 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Use
2683 zero for dg-error lineno.
2684 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
2687 * include/std/bit (__rotl, __rotr): Avoid branch.
2688 (_If_is_unsigned_integer): Use remove_cv_t.
2689 * testsuite/26_numerics/bit/bitops.count/popcount.cc: New.
2691 2018-07-03 Jonathan Wakely <jwakely@redhat.com>
2693 P0556R3 Integral power-of-2 operations, P0553R2 Bit operations
2694 * include/Makefile.am: Add new header.
2695 * include/Makefile.in: Regenerate.
2696 * include/precompiled/stdc++.h: Include new header.
2697 * include/std/bit: New header.
2698 (__rotl, __rotr, __countl_zero, __countl_one, __countr_zero)
2699 (__countr_one, __popcount, __ispow2, __ceil2, __floor2, __log2p1):
2701 [!__STRICT_ANSI__] (rotl, rotr, countl_zero, countl_one, countr_zero)
2702 (countr_one, popcount): Define for C++2a. Also overload for std::byte.
2703 (ispow2, ceil2, floor2, log2p1): Define for C++2a.
2704 [!__STRICT_ANSI__] (ispow2, ceil2, floor2, log2p1): Overload for
2706 * testsuite/26_numerics/bit/bit.pow.two/ceil2.cc: New.
2707 * testsuite/26_numerics/bit/bit.pow.two/floor2.cc: New.
2708 * testsuite/26_numerics/bit/bit.pow.two/ispow2.cc: New.
2709 * testsuite/26_numerics/bit/bit.pow.two/log2p1.cc: New.
2710 * testsuite/26_numerics/bit/bitops.rot/rotl.cc: New.
2711 * testsuite/26_numerics/bit/bitops.rot/rotr.cc: New.
2712 * testsuite/26_numerics/bit/bitops.count/countl_one.cc: New.
2713 * testsuite/26_numerics/bit/bitops.count/countl_zero.cc: New.
2714 * testsuite/26_numerics/bit/bitops.count/countr_one.cc: New.
2715 * testsuite/26_numerics/bit/bitops.count/countr_zero.cc: New.
2717 * include/bits/alloc_traits.h: Remove redundant preprocessor
2720 2018-07-03 François Dumont <fdumont@gcc.gnu.org>
2722 * include/bits/stl_algobase.h (__niter_wrap): New.
2723 (__copy_move_a2(_II, _II, _OI)): Use latter.
2724 (__copy_move_backward_a2(_BI1, _BI1, _BI2)): Likewise.
2725 (fill_n(_OI, _Size, const _Tp&)): Likewise.
2726 (equal(_II1, _II1, _II2)): Use __glibcxx_requires_can_increment.
2727 * include/debug/stl_iterator.h
2728 (std::__niter_base(const __gnu_cxx::_Safe_iterator<
2729 __gnu_cxx::__normal_iterator<>, _Sequence>&)): New declaration.
2730 * include/debug/vector (__niter_base(const __gnu_cxx::_Safe_iterator<
2731 __gnu_cxx::__normal_iterator<>, _Sequence>&)): New.
2733 2018-07-02 Jonathan Wakely <jwakely@redhat.com>
2735 P0758R1 Implicit conversion traits
2736 * include/std/type_traits [__cplusplus > 201703]
2737 (__is_convertible_helper::__is_nothrow_type): Define new member.
2738 (__is_convertible_helper<_From, _To, false>::__test_aux1): Add
2740 (__is_convertible_helper<_From, _To, false>::__test_nothrow)
2741 (__is_convertible_helper<_From, _To, false>::__is_nothrow_type): Add
2743 (is_nothrow_convertible, is_nothrow_convertible_v): Define for C++2a.
2744 * testsuite/20_util/is_nothrow_convertible/value.cc: New.
2745 * testsuite/20_util/is_nothrow_convertible/requirements/
2746 explicit_instantiation.cc: New.
2747 * testsuite/20_util/is_nothrow_convertible/requirements/typedefs.cc:
2750 P0887R1 The identity metafunction
2751 * include/std/type_traits (type_identity, type_identity_t): Define
2753 * testsuite/20_util/type_identity/requirements/alias_decl.cc: New.
2754 * testsuite/20_util/type_identity/requirements/
2755 explicit_instantiation.cc:New.
2756 * testsuite/20_util/type_identity/requirements/typedefs.cc: New.
2758 * include/bits/regex.h (sub_match::operator string_type): Call str().
2759 (sub_match::compare): Use _M_str() instead of str().
2760 (sub_match::_M_compare): New public function.
2761 (sub_match::__string_view): New helper type.
2762 (sub_match::_M_str): New overloaded functions to avoid creating a
2763 string_type object when not needed.
2764 (operator==, operator!=, operator<, operator>, operator<=, operator>=):
2765 Use sub_match::_M_compare instead of creating string_type objects.
2766 Fix Doxygen comments.
2767 * include/bits/regex_compiler.h (__has_contiguous_iter): Remove.
2768 (__is_contiguous_normal_iter): Rename to __is_contiguous_iter and
2770 (__enable_if_contiguous_iter, __disable_if_contiguous_iter): Use
2772 * include/std/type_traits (__enable_if_t): Define for C++11.
2773 * testsuite/28_regex/sub_match/compare.cc: New.
2774 * testsuite/util/testsuite_iterators.h (remove_cv): Add transformation
2776 (input_iterator_wrapper): Use remove_cv for value_type argument of
2777 std::iterator base class.
2779 2018-06-29 Jonathan Wakely <jwakely@redhat.com>
2781 * testsuite/20_util/add_rvalue_reference/requirements/alias_decl.cc:
2782 Add whitespace to dejagnu directive.
2783 * testsuite/23_containers/array/element_access/at_neg.cc: Likewise.
2785 2018-06-27 François Dumont <fdumont@gcc.gnu.org>
2787 * include/bits/stl_vector.h
2788 (struct _Vector_base<>::_Vector_impl_data): New.
2789 (struct _Vector_base<>::_Vector_impl): Inherit from latter.
2790 (_Vector_base<>::_Vector_impl::_M_swap_data): Move...
2791 (_Vector_base<>::_Vector_impl_data::_M_swap_data): ...here.
2792 (_Vector_base<>::_Vector_impl()): Add noexcept qualification.
2793 (_Vector_base<>::_Vector_impl(_Vector_impl&&)): New.
2794 (_Vector_base<>::_Vector_impl(_Tp_alloc_type&&, _Vector_impl&&)): New.
2795 (_Vector_base(const allocator_type&, _Vector_base&&)): New, use latter.
2796 (_Vector_base()): Default.
2797 (_Vector_base(_Vector_base&&)): Default.
2798 (_Vector_base(size_t)) [_GLIBCXX_INLINE_VERSION]: Delete.
2799 (_Vector_base(_Tp_alloc_type&&)) [_GLIBCXX_INLINE_VERSION]: Delete.
2800 (_Vector_base::_M_create_storage(size_t)): Make protected.
2801 (vector()): Default.
2802 (vector(vector&&)): Default.
2803 (vector(vector&&, const allocator_type&, true_type)): New.
2804 (vector(vector&&, const allocator_type&, false_type)): New.
2805 (vector(vector&&, const allocator_type&)): Use latters.
2806 (vector(_InputIte, _InputIte, const allocator_type&)): Call
2807 _M_range_initialize directly.
2808 * include/debug/vector
2809 (vector(vector&&, const allocator_type&)): Add noexcept qualification.
2810 * testsuite/23_containers/vector/allocator/default_init.cc: New.
2811 * testsuite/23_containers/vector/cons/noexcept_move_construct.cc: Add
2814 2018-06-27 Jonathan Wakely <jwakely@redhat.com>
2816 * include/bits/cpp_type_traits.h [__cplusplus >= 201703]
2817 (__is_byte<byte>): Define specialization for std::byte.
2820 * include/bits/basic_string.tcc: [_GLIBCXX_EXTERN_TEMPLATE < 0]
2821 Declare explicit instantiations of COW empty reps and I/O functions.
2823 2018-06-26 David Edelsohn <dje.gcc@gmail.com>
2825 * testsuite/experimental/algorithm/sample-2.cc: Add TLS DejaGNU
2827 * testsuite/experimental/algorithm/shuffle.cc: Likewise.
2829 2018-06-26 Jonathan Wakely <jwakely@redhat.com>
2831 * include/bits/regex.tcc (regex_iterator::operator==): Add missing
2834 2018-06-25 Jonathan Wakely <jwakely@redhat.com>
2837 * python/libstdcxx/v6/printers.py (add_one_template_type_printer):
2838 Replace dict comprehension.
2841 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
2844 * include/bits/stl_vector.h (vector::_M_range_initialize<InputIter>):
2845 Add try-catch block.
2846 * testsuite/23_containers/vector/cons/86292.cc: New.
2848 * doc/xml/manual/status_cxx2017.xml: Document N4531 status.
2850 * include/experimental/algorithm (sample, shuffle): Add new overloads
2851 using per-thread random number engine.
2852 * testsuite/experimental/algorithm/sample.cc: Simpify and reduce
2853 dependencies by using __gnu_test::test_container.
2854 * testsuite/experimental/algorithm/sample-2.cc: New.
2855 * testsuite/experimental/algorithm/shuffle.cc: New.
2857 2018-06-22 Jonathan Wakely <jwakely@redhat.com>
2859 * config/abi/pre/gnu.ver: Fix __cxx11::basic_string patterns for
2860 different size_t mangling on 32-bit targets.
2863 * include/experimental/memory_resource
2864 (__resource_adaptor_common::_AlignMgr::_M_token_size): Use type large
2865 enough for result of left shift.
2868 * include/bits/basic_string.tcc:
2869 [__cplusplus > 201402 && !_GLIBCXX_USE_CXX11_ABI]
2870 (basic_string<char>::_Rep::_S_empty_rep_storage)
2871 (basic_string<wchar_t>::_Rep::_S_empty_rep_storage): Add explicit
2872 instantiation declarations.
2873 [__cplusplus > 201402] (operator>>, operator<<, getline): Re-enable
2874 explicit instantiation declarations.
2875 * testsuite/21_strings/basic_string/cons/char/86138.cc: New.
2876 * testsuite/21_strings/basic_string/cons/wchar_t/86138.cc: New.
2878 2018-06-21 Jonathan Wakely <jwakely@redhat.com>
2881 * acinclude.m4 (libtool_VERSION): Bump to 6:26:0.
2882 * config/abi/pre/gnu.ver: Add GLIBCXX_3.4.26 and export new symbol.
2883 * configure: Regenerate.
2884 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
2885 (basic_string::insert(const_iterator, initializer_list<C>)): Add.
2886 [_GLIBCXX_USE_CXX11_ABI && !_GLIBCXX_DEFINING_STRING_INSTANTIATIONS]
2887 (basic_string::insert(iterator, initializer_list<C>)): Suppress
2889 * include/debug/string (basic_string::insert(iterator, C)): Change
2890 first parameter to const_iterator.
2891 (basic_string::insert(iterator, size_type, C)): Likewise. Change
2892 return type to iterator.
2893 (basic_string::insert(iterator, InputIterator, InputIterator)):
2895 (basic_string::insert(iterator, initializer_list<C>)): Change first
2896 parameter to const_iterator and return type to iterator.
2897 * src/c++11/string-inst.cc: Extend comment.
2898 * testsuite/21_strings/basic_string/modifiers/insert/char/83328.cc:
2900 * testsuite/21_strings/basic_string/modifiers/insert/wchar_t/83328.cc:
2902 * testsuite/util/testsuite_abi.cc: Add new symbol version.
2904 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
2907 * include/experimental/memory_resource
2908 (__resource_adaptor_imp::do_deallocate): Add missing return.
2909 * testsuite/experimental/memory_resource/new_delete_resource.cc: New.
2910 * testsuite/experimental/memory_resource/resource_adaptor.cc: Test
2911 resource_adaptor with std::allocator, __gnu_cxx::new_allocator and
2912 __gnu_cxx::malloc_allocator.
2915 * include/experimental/memory_resource (__resource_adaptor_common):
2917 (__resource_adaptor_common::_AlignMgr): Helper for obtaining aligned
2918 pointer from unaligned, and vice versa.
2919 (__resource_adaptor_imp::do_allocate): Use _AlignMgr to adjust
2920 allocated pointer to meet alignment request.
2921 (__resource_adaptor_imp::do_deallocate): Use _AlignMgr to retrieve
2922 original pointer for deallocation.
2923 (__resource_adaptor_imp::do_is_equal): Reformat.
2924 (__resource_adaptor_imp::_S_aligned_size): Remove.
2925 (__resource_adaptor_imp::_S_supported): Remove.
2926 (new_delete_resource): Use __gnu_cxx::new_allocator.
2927 * testsuite/experimental/memory_resource/resource_adaptor.cc: Test
2928 extended alignments and use debug_allocator to check for matching
2929 allocate/deallocate pairs.
2931 2018-06-21 François Dumont <fdumont@gcc.gnu.org>
2933 * include/debug/safe_iterator.h
2934 (_Safe_iterator<>(const _Safe_iterator<_MutableIterator,>& __x)):
2935 Compare __x base iterator with a value-initialized iterator of the
2938 2018-06-20 Jonathan Wakely <jwakely@redhat.com>
2941 * include/experimental/memory_resource (__resource_adaptor_imp): Add
2942 static assertions to enforce requirements on pointer types.
2943 (__resource_adaptor_imp::get_allocator()): Add noexcept.
2944 (new_delete_resource, null_memory_resource): Return address of an
2945 object with dynamic storage duration.
2946 (__null_memory_resource): Remove.
2947 * testsuite/experimental/memory_resource/70966.cc: New.
2949 * testsuite/20_util/duration/arithmetic/dr3050.cc: Add new test
2950 missed from recent commit.
2952 2018-06-19 Jonathan Wakely <jwakely@redhat.com>
2954 * include/std/utility: Remove unused <exception> header.
2956 2018-06-18 Jonathan Wakely <jwakely@redhat.com>
2958 LWG 2975 ensure construct(pair<T,U>*, ...) used to construct pairs
2959 * include/std/scoped_allocator (__not_pair): Define SFINAE helper.
2960 (construct(_Tp*, _Args&&...)): Remove from overload set when _Tp is
2961 a specialization of std::pair.
2962 * testsuite/20_util/scoped_allocator/construct_pair.cc: Ensure
2963 pair elements are constructed correctly.
2965 LWG 2989 hide path iostream operators from normal lookup
2966 * include/bits/fs_path.h (operator<<, operator>>): Define inline as
2968 * testsuite/27_io/filesystem/path/io/dr2989.cc: New.
2970 LWG 3050 Fix cv-qualification of convertibility constraints
2971 * include/std/chrono (duration, operator*, operator/, operator%): Use
2972 const-qualified type as source type in is_convertible constraints.
2973 * testsuite/20_util/duration/arithmetic/dr3050.cc: New.
2974 * testsuite/20_util/duration/cons/dr3050.cc: New.
2975 * testsuite/20_util/duration/literals/range.cc: Rename to...
2976 * testsuite/20_util/duration/literals/range_neg.cc: Here. Adjust
2979 2018-06-18 Maya Rashish <coypu@sdf.org>
2981 * crossconfig.m4: Handle OpenBSD just like NetBSD.
2982 * configure: Rebuilt.
2984 2018-06-18 Jonathan Wakely <jwakely@redhat.com>
2986 P0754R2 <version> header
2987 * include/Makefile.am: Add new header.
2988 * include/Makefile.in: Regenerate.
2989 * include/bits/c++config: Change doxygen comment to suggest <version>
2990 instead of <iosfwd>.
2991 * include/precompiled/stdc++.h: Include <cwchar> and <cwctype>
2992 unconditionally. Add C++17 and C++20 headers.
2993 * include/std/version: New header.
2994 * testsuite/17_intro/headers/c++2017/all_attributes.cc: New.
2995 * testsuite/17_intro/headers/c++2017/all_no_exceptions.cc: New.
2996 * testsuite/17_intro/headers/c++2017/all_no_rtti.cc: New.
2997 * testsuite/17_intro/headers/c++2017/all_pedantic_errors.cc: New.
2998 * testsuite/17_intro/headers/c++2017/operator_names.cc: New.
2999 * testsuite/17_intro/headers/c++2017/stdc++.cc: New.
3000 * testsuite/17_intro/headers/c++2017/stdc++_multiple_inclusion.cc:
3002 * testsuite/17_intro/headers/c++2020/all_attributes.cc: New.
3003 * testsuite/17_intro/headers/c++2020/all_no_exceptions.cc: New.
3004 * testsuite/17_intro/headers/c++2020/all_no_rtti.cc: New.
3005 * testsuite/17_intro/headers/c++2020/all_pedantic_errors.cc: New.
3006 * testsuite/17_intro/headers/c++2020/operator_names.cc: New.
3007 * testsuite/17_intro/headers/c++2020/stdc++.cc: New.
3008 * testsuite/17_intro/headers/c++2020/stdc++_multiple_inclusion.cc:
3010 * testsuite/18_support/headers/version/macros.cc: New.
3011 * testsuite/18_support/headers/version/macros.cc: New.
3013 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Only check when
3014 enable_libstdcxx_filesystem_ts = yes. Check for link, readlink and
3016 * config.h.in: Regenerate.
3017 * configure: Regenerate.
3018 * configure.ac: Remove AC_CHECK_FUNCS for link, readlink and symlink.
3020 LWG 3035. std::allocator's constructors should be constexpr
3021 * include/bits/allocator.h (allocator): Add constexpr to constructors
3022 for C++2a. Replace dynamic exception specifications with NOTHROW
3024 (allocator, operator==, operator!=): Replace USE_NOEXCEPT macro with
3026 * include/bits/c++config (_GLIBCXX20_CONSTEXPR): Define.
3027 * include/ext/malloc_allocator.h (malloc_allocator): Add constexpr
3028 to constructors for C++2a.
3029 * include/ext/new_allocator.h (new_allocator): Likewise.
3031 2018-06-16 Jonathan Wakely <jwakely@redhat.com>
3033 LWG 3076 basic_string CTAD ambiguity
3034 * doc/xml/manual/intro.xml: Document LWG 3076 change.
3035 * include/bits/basic_string.h
3036 [__cpp_deduction_guides && !_GLIBCXX_DEFINING_STRING_INSTANTIATIONS]
3037 (basic_string(const _CharT*, const _Alloc&)): Turn into a function
3038 template constrained by _RequireAllocator.
3039 (basic_string(size_type, _CharT, const _Alloc&)): Likewise.
3040 * src/c++11/string-inst.cc (_GLIBCXX_DEFINING_STRING_INSTANTIATIONS):
3042 * testsuite/21_strings/basic_string/cons/char/deduction.cc: Test
3044 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
3047 2018-06-15 Jonathan Wakely <jwakely@redhat.com>
3050 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
3051 (basic_string::data()): Unshare string.
3052 * testsuite/21_strings/basic_string/operations/data/char/86169.cc:
3055 * include/std/string_view (basic_string_view(const CharT*)): Remove
3056 check for null pointer and add nonnull attribute.
3057 (compare(const CharT*), compare(size_type, size_type, const CharT*))
3058 (find(const CharT*, size_type), rfind(const CharT*, size_type))
3059 (find_first_of(const CharT*, size_type))
3060 (find_last_of(const CharT*, size_type))
3061 (find_first_not_of(const CharT*, size_type))
3062 (find_last_not_of(const CharT*, size_type)): Add nonnull attribute.
3063 * testsuite/21_strings/basic_string_view/cons/char/nonnull.cc: New.
3064 * testsuite/21_strings/basic_string_view/operations/compare/char/
3066 * testsuite/21_strings/basic_string_view/operations/find/char/
3068 * testsuite/21_strings/basic_string_view/operations/rfind/char/
3072 * include/bits/random.h (random_device(const string&)): Remove
3075 * include/bits/char_traits.h (__cpp_lib_constexpr_char_traits): Only
3076 define for C++17 and above.
3078 LWG 2993 reference_wrapper<T> conversion from T&&
3079 * doc/xml/manual/intro.xml: Document LWG 2993 change.
3080 * include/bits/refwrap.h (reference_wrapper(_Tp&)): Remove.
3081 (reference_wrapper(_Tp&&)): Remove.
3082 (reference_wrapper<_Up>(_Up&&)): Define new constructor as constrained
3084 (reference_wrapper): Add deduction guide.
3085 * testsuite/20_util/reference_wrapper/deduction.cc: New.
3086 * testsuite/20_util/reference_wrapper/lwg2993.cc: New.
3088 LWG 3039 Unnecessary decay in thread and packaged_task
3089 * include/std/future (__constrain_pkgdtask): Replace with ...
3090 (packaged_task::__not_same): New alias template, using
3091 __remove_cvref_t instead of decay.
3092 * include/std/thread (thread::__not_same): Add comment.
3094 2018-06-14 Jonathan Wakely <jwakely@redhat.com>
3096 LWG 3075 basic_string needs deduction guides from basic_string_view
3097 * testsuite/21_strings/basic_string/cons/char/deduction.cc: Test
3098 deduction from string views.
3099 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
3102 LWG 3074 make scalar types non-deduced in valarray non-member functions
3103 * include/bits/valarray_after.h (_DEFINE_EXPR_BINARY_FUNCTION): Change
3104 scalar parameters to be a non-deduced context.
3105 * include/std/valarray (_DEFINE_BINARY_OPERATOR): Likewise. Adjust
3107 * testsuite/26_numerics/valarray/operators.cc: Test scalar operands.
3108 * testsuite/26_numerics/valarray/transcend.cc: New.
3110 * include/std/tuple (__cpp_lib_tuple_element_t, tuple_element_t):
3111 Move back to <utility>.
3112 * include/std/utility (__cpp_lib_tuple_element_t. tuple_element_t):
3115 P0935R0 Eradicating unnecessarily explicit default constructors
3116 * include/backward/strstream (strstreambuf): Add non-explicit default
3118 * include/bits/locale_conv.h (wbuffer_convert, wstring_convert):
3120 * include/bits/regex.h (match_results): Likewise.
3121 * testsuite/22_locale/conversions/buffer/1.cc: Test for non-explicit
3122 default constructor.
3123 * testsuite/22_locale/conversions/string/1.cc: Likewise.
3124 * testsuite/28_regex/match_results/ctors/char/default.cc: Likewise.
3125 * testsuite/28_regex/match_results/ctors/wchar_t/default.cc: Likewise.
3127 * include/std/tuple (__cpp_lib_tuple_element_t): Move feature test
3128 macro from <utility> and change type to long.
3129 * include/std/utility (__cpp_lib_tuple_element_t): Remove.
3130 * testsuite/20_util/tuple/tuple_element_t.cc: Check for feature test
3133 P0935R0 Eradicating unnecessarily explicit default constructors
3134 * include/bits/random.h (uniform_real_distribution::param_type)
3135 (normal_distribution::param_type, lognormal_distribution::param_type)
3136 (gamma_distribution::param_type, chi_squared_distribution::param_type)
3137 (cauchy_distribution::param_type, fisher_f_distribution::param_type)
3138 (student_t_distribution::param_type)
3139 (bernoulli_distribution::param_type)
3140 (binomial_distribution::param_type)
3141 (geometric_distribution::param_type)
3142 (negative_binomial_distribution::param_type)
3143 (poisson_distribution::param_type)
3144 (exponential_distribution::param_type)
3145 (weibull_distribution::param_type)
3146 (extreme_value_distribution::param_type): Add non-explicit default
3147 constructors. Remove default argument for first parameter of explicit
3149 * include/bits/uniform_int_dist.h
3150 (uniform_int_distribution::param_type): Likewise.
3151 * include/ext/random
3152 (beta_distribution::param_type, rice_distribution::param_type)
3153 (nakagami_distribution::param_type, pareto_distribution::param_type)
3154 (k_distribution::param_type, arcsine_distribution::param_type)
3155 (hoyt_distribution::param_type, triangular_distribution::param_type)
3156 (von_mises_distribution::param_type)
3157 (hypergeometric_distribution::param_type)
3158 (logistic_distribution::param_type)
3159 (uniform_inside_sphere_distribution::param_type): Likewise.
3160 (uniform_on_sphere_distribution::param_type): Make default constructor
3162 * testsuite/26_numerics/random/bernoulli_distribution/cons/default.cc:
3163 Test param_type for non-explicit default constructor.
3164 * testsuite/26_numerics/random/binomial_distribution/cons/default.cc:
3166 * testsuite/26_numerics/random/cauchy_distribution/cons/default.cc:
3168 * testsuite/26_numerics/random/chi_squared_distribution/cons/default.cc:
3170 * testsuite/26_numerics/random/discrete_distribution/cons/default.cc:
3172 * testsuite/26_numerics/random/exponential_distribution/cons/default.cc:
3174 * testsuite/26_numerics/random/extreme_value_distribution/cons/default.cc:
3176 * testsuite/26_numerics/random/fisher_f_distribution/cons/default.cc:
3178 * testsuite/26_numerics/random/gamma_distribution/cons/default.cc:
3180 * testsuite/26_numerics/random/geometric_distribution/cons/default.cc:
3182 * testsuite/26_numerics/random/lognormal_distribution/cons/default.cc:
3184 * testsuite/26_numerics/random/negative_binomial_distribution/cons/default.cc:
3186 * testsuite/26_numerics/random/normal_distribution/cons/default.cc:
3188 * testsuite/26_numerics/random/piecewise_constant_distribution/cons/default.cc:
3190 * testsuite/26_numerics/random/piecewise_linear_distribution/cons/default.cc:
3192 * testsuite/26_numerics/random/poisson_distribution/cons/default.cc:
3194 * testsuite/26_numerics/random/student_t_distribution/cons/default.cc:
3196 * testsuite/26_numerics/random/uniform_int_distribution/cons/default.cc:
3198 * testsuite/26_numerics/random/uniform_real_distribution/cons/default.cc:
3200 * testsuite/26_numerics/random/weibull_distribution/cons/default.cc:
3202 * testsuite/ext/random/arcsine_distribution/cons/default.cc: Likewise.
3203 * testsuite/ext/random/beta_distribution/cons/default.cc: Likewise.
3204 * testsuite/ext/random/hoyt_distribution/cons/default.cc: Likewise.
3205 * testsuite/ext/random/hypergeometric_distribution/cons/default.cc:
3207 * testsuite/ext/random/k_distribution/cons/default.cc: Likewise.
3208 * testsuite/ext/random/logistic_distribution/cons/default.cc: Likewise.
3209 * testsuite/ext/random/nakagami_distribution/cons/default.cc: Likewise.
3210 * testsuite/ext/random/normal_mv_distribution/cons/default.cc:
3212 * testsuite/ext/random/pareto_distribution/cons/default.cc: Likewise.
3213 * testsuite/ext/random/rice_distribution/cons/default.cc: Likewise.
3214 * testsuite/ext/random/triangular_distribution/cons/default.cc:
3216 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/default.cc:
3218 * testsuite/ext/random/uniform_on_sphere_distribution/cons/default.cc:
3220 * testsuite/ext/random/von_mises_distribution/cons/default.cc:
3223 2018-06-14 Daniel Trebbien <dtrebbien@gmail.com>
3224 Jonathan Wakely <jwakely@redhat.com>
3227 * include/bits/vector.tcc (vector::_M_default_append(size_type)):
3228 Default-construct new elements before moving existing ones.
3229 * testsuite/23_containers/vector/capacity/resize/strong_guarantee.cc:
3232 2018-06-13 Jonathan Wakely <jwakely@redhat.com>
3235 * include/bits/forward_list.h (_Fwd_list_base::_Tp_alloc_type): Remove
3237 (_Fwd_list_base::_M_create_node, _Fwd_list_base::_M_erase_after):
3238 Use node allocator to create and destroy elements.
3239 (forward_list::_Tp_alloc_type): Remove unused typedef.
3240 (forward_list::_Alloc_traits): Use allocator_traits instead of
3241 __gnu_cxx::__alloc_traits.
3243 2018-06-13 François Dumont <fdumont@gcc.gnu.org>
3245 * include/debug/helper_functions.h
3246 (__gnu_debug::_Safe_iterator<>): Add declaration.
3247 (__can_advance(_Ite, _Size)): New.
3248 (__can_advance(const _Safe_iterator<>&, _Size)): Overload declaration.
3249 * include/debug/functions.h
3250 (__gnu_debug::_Safe_iterator<>): Remove declaration.
3251 * include/debug/stl_iterator.h
3252 (__can_advance(const _Safe_iterator<>&)): New definition.
3253 * include/debug/stl_iterator.h
3254 (__can_advance(const std::reverse_iterator<>&, _Size)): New.
3255 (__can_advance(const std::move_iterator<>&, _Size)): New.
3256 * include/debug/macros.h (__glibcxx_check_can_increment): New.
3257 * include/debug/debug.h (__glibcxx_requires_can_increment): New.
3258 * include/bits/stl_algobase.h (fill_n): Use latter.
3259 * testsuite/25_algorithms/fill_n/2.cc: New.
3260 * testsuite/25_algorithms/fill_n/debug/1_neg.cc: New.
3261 * testsuite/25_algorithms/fill_n/debug/2_neg.cc: New.
3262 * testsuite/25_algorithms/fill_n/debug/3_neg.cc: New.
3263 * testsuite/25_algorithms/fill_n/debug/4_neg.cc: New.
3265 * include/debug/debug.h (__glibcxx_requires_can_increment_range): New.
3266 (__glibcxx_requires_can_decrement_range): New.
3268 2018-06-12 François Dumont <fdumont@gcc.gnu.org>
3270 * include/debug/macros.h (__glibcxx_check_can_increment_range): New.
3271 (__glibcxx_check_can_decrement_range): New.
3272 * include/bits/stl_algobase.h (std::copy(_II, _II, _OI)): Use
3273 __glibcxx_requires_can_increment_range.
3274 (std::move(_II, _II, _OI)): Likewise.
3275 (std::copy_backward(_BI, _BI, _BI2)): Use
3276 __glibcxx_requires_can_decrement_range.
3277 (std::move_backward(_BI, _BI, _BI2)): Likewise.
3278 * testsuite/25_algorithms/copy_backward/debug/1_neg.cc: New.
3279 * testsuite/25_algorithms/copy_backward/debug/2_neg.cc: New.
3280 * testsuite/25_algorithms/copy_backward/debug/3_neg.cc: New.
3281 * testsuite/25_algorithms/equal/debug/1_neg.cc: New.
3282 * testsuite/25_algorithms/equal/debug/2_neg.cc: New.
3283 * testsuite/25_algorithms/equal/debug/3_neg.cc: New.
3285 2018-06-12 Jonathan Wakely <jwakely@redhat.com>
3287 P0935R0 Eradicating unnecessarily explicit default constructors
3288 * include/bits/random.h (linear_congruential_engine)
3289 (mersenne_twister_engine, subtract_with_carry_engine, random_device)
3290 (uniform_real_distribution, normal_distribution)
3291 (lognormal_distribution, gamma_distribution, chi_squared_distribution)
3292 (cauchy_distribution, fisher_f_distribution, student_t_distribution)
3293 (bernoulli_distribution, binomial_distribution,geometric_distribution)
3294 (negative_binomial_distribution, exponential_distribution)
3295 (weibull_distribution, extreme_value_distribution): Add non-explicit
3296 default constructors. Remove default argument for first parameter of
3297 explicit constructors.
3298 (piecewise_constant_distribution, piecewise_linear_distribution):
3299 Make default constructor non-explicit.
3300 * include/bits/uniform_int_dist.h (uniform_int_distribution): Add
3301 non-explicit default constructors. Remove default argument for first
3302 parameter of explicit constructor.
3303 * include/ext/random
3304 (simd_fast_mersenne_twister_engine, beta_distribution)
3305 (rice_distribution, nakagami_distribution, pareto_distribution)
3306 (k_distribution, arcsine_distribution, hoyt_distribution)
3307 (triangular_distribution, von_mises_distribution)
3308 (hypergeometric_distribution, logistic_distribution)
3309 (uniform_inside_sphere_distribution): Likewise.
3310 (uniform_on_sphere_distribution): Make default constructor
3312 * testsuite/26_numerics/random/bernoulli_distribution/cons/default.cc:
3313 Test for non-explicit default constructor. Fix references to standard.
3314 * testsuite/26_numerics/random/binomial_distribution/cons/default.cc:
3316 * testsuite/26_numerics/random/cauchy_distribution/cons/default.cc:
3318 * testsuite/26_numerics/random/chi_squared_distribution/cons/default.cc:
3320 * testsuite/26_numerics/random/discrete_distribution/cons/default.cc:
3322 * testsuite/26_numerics/random/exponential_distribution/cons/default.cc:
3324 * testsuite/26_numerics/random/extreme_value_distribution/cons/default.cc:
3326 * testsuite/26_numerics/random/fisher_f_distribution/cons/default.cc:
3328 * testsuite/26_numerics/random/gamma_distribution/cons/default.cc:
3330 * testsuite/26_numerics/random/geometric_distribution/cons/default.cc:
3332 * testsuite/26_numerics/random/lognormal_distribution/cons/default.cc:
3334 * testsuite/26_numerics/random/negative_binomial_distribution/cons/default.cc:
3336 * testsuite/26_numerics/random/normal_distribution/cons/default.cc:
3338 * testsuite/26_numerics/random/piecewise_constant_distribution/cons/default.cc:
3340 * testsuite/26_numerics/random/piecewise_linear_distribution/cons/default.cc:
3342 * testsuite/26_numerics/random/poisson_distribution/cons/default.cc:
3344 * testsuite/26_numerics/random/student_t_distribution/cons/default.cc:
3346 * testsuite/26_numerics/random/uniform_int_distribution/cons/default.cc:
3348 * testsuite/26_numerics/random/uniform_real_distribution/cons/default.cc:
3350 * testsuite/26_numerics/random/weibull_distribution/cons/default.cc:
3352 * testsuite/ext/random/arcsine_distribution/cons/default.cc: Likewise.
3353 * testsuite/ext/random/beta_distribution/cons/default.cc: Likewise.
3354 * testsuite/ext/random/hoyt_distribution/cons/default.cc: Likewise.
3355 * testsuite/ext/random/hypergeometric_distribution/cons/default.cc:
3357 * testsuite/ext/random/k_distribution/cons/default.cc: Likewise.
3358 * testsuite/ext/random/logistic_distribution/cons/default.cc: Likewise.
3359 * testsuite/ext/random/nakagami_distribution/cons/default.cc: Likewise.
3360 * testsuite/ext/random/normal_mv_distribution/cons/default.cc:
3362 * testsuite/ext/random/pareto_distribution/cons/default.cc: Likewise.
3363 * testsuite/ext/random/rice_distribution/cons/default.cc: Likewise.
3364 * testsuite/ext/random/triangular_distribution/cons/default.cc:
3366 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/default.cc:
3368 * testsuite/ext/random/uniform_on_sphere_distribution/cons/default.cc:
3370 * testsuite/ext/random/von_mises_distribution/cons/default.cc:
3372 * testsuite/util/testsuite_common_types.h
3373 (implicitly_default_constructible): New helper.
3375 2018-06-08 Jonathan Wakely <jwakely@redhat.com>
3377 * include/bits/ios_base.h (ios::Init::Init(const Init&))
3378 (ios::Init::operator=): Define as defaulted.
3379 * include/bits/stl_bvector.h (_Bit_reference(const _Bit_reference&)):
3381 * include/bits/stream_iterator.h (istream_iterator::operator=)
3382 (ostream_iterator::operator=): Likewise.
3383 * include/bits/streambuf_iterator.h (istreambuf_iterator::operator=)
3385 * include/std/bitset (bitset::reference::reference(const reference&)):
3387 * include/std/complex (complex<float>::complex(const complex&))
3388 (complex<double>::complex(const complex&))
3389 (complex<long double>::complex(const complex&)): Likewise.
3391 2018-06-07 Jonathan Wakely <jwakely@redhat.com>
3393 * include/bits/regex.h (sub_match): Add noexcept to default
3394 constructor and length observer.
3395 (match_results): Add noexcept to default constructor and observers
3396 with no preconditions. Define destructor as defaulted.
3397 (operator==, operator!=, swap): Add noexcept.
3398 (regex_iterator): Add default member initializers and define default
3399 constructor and destructor as defaulted. Add noexcept to equality
3400 and dereference operators.
3402 2018-06-07 François Dumont <fdumont@gcc.gnu.org>
3404 * src/c++11/debug.cc
3405 (_Safe_iterator_base::_M_detach()): Reset state only if needed.
3406 (_Safe_iterator_base::_M_detach_single()): Likewise.
3407 (_Safe_local_iterator_base::_M_detach()): Reset state only if needed.
3408 (_Safe_local_iterator_base::_M_detach_single()): Likewise.
3410 2018-06-06 Jonathan Wakely <jwakely@redhat.com>
3412 * include/bits/shared_ptr_base.h (__shared_count): Remove redundant
3413 move of const value.
3415 2018-06-06 Jakub Jelinek <jakub@redhat.com>
3418 * include/bits/c++config: Check __cpp_transactional_memory >= 201500L
3419 rather than __cpp_transactional_memory >= 201505L.
3421 2018-06-06 Jonathan Wakely <jwakely@redhat.com>
3424 * include/bits/quoted_string.h (_Quoted_string<basic_string_view, C>):
3425 Define new partial specialization.
3426 * include/std/iomanip (quoted(basic_string_view<C,T>, C, C)): Define
3428 (operator<<(basic_ostream<C,T>&, const _Quoted_string<S,C>&)): Use
3429 value not reference for iteration.
3430 * testsuite/27_io/manipulators/standard/char/quoted.cc: Adjust
3432 * testsuite/27_io/manipulators/standard/char/quoted_sv.cc: New test.
3433 * testsuite/27_io/manipulators/standard/wchar_t/quoted.cc: Adjust
3436 2018-06-05 Jonathan Wakely <jwakely@redhat.com>
3438 * include/std/type_traits: Fix comment typos.
3440 * testsuite/27_io/filesystem/operations/read_symlink.cc: XFAIL for
3442 * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
3443 * testsuite/experimental/filesystem/operations/read_symlink.cc:
3446 2018-06-05 François Dumont <fdumont@gcc.gnu.org>
3448 * include/bits/stl_tempbuf.h
3449 (_Temporary_buffer(_FwdIte, _FwdIte)): Delete, replaced by...
3450 (_Temporary_buffer(_FwdIte, size_type)): ...this, new.
3451 * include/ext/memory (temporary_buffer<>(_FwdIte, _FwdIte)): Adapt.
3452 * include/bits/stl_algo.h (__stable_partition): Adapt.
3453 (__inplace_merge): Adapt.
3454 (__stable_sort): Adapt.
3456 2018-06-04 Jonathan Wakely <jwakely@redhat.com>
3459 * include/bits/shared_ptr_base.h [!__cpp_rtti]: Include <typeinfo>
3460 unconditionally. Remove redundant declaration.
3461 [!__cpp_rtti] (_Sp_make_shared_tag::_S_ti): Fix location of
3462 alignment-specifier.
3464 * include/bits/postypes.h (fpos): Define special members as defaulted.
3467 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Align
3468 the static variable correctly.
3470 2018-05-24 Jonathan Wakely <jwakely@redhat.com>
3472 PR libstdc++/78870 support std::filesystem on Windows
3473 * config.h.in: Regenerate.
3474 * configure: Regenerate.
3475 * configure.ac: Check for link, readlink and symlink.
3476 * include/bits/fs_path.h (path::operator/=(const path&)): Move
3477 definition out of class body.
3478 (path::is_absolute(), path::_M_append(path)): Likewise.
3479 (operator<<(basic_ostream, const path&)): Use std::quoted directly.
3480 (operator>>(basic_istream, path&)): Likewise.
3481 (u8path): Reorder definitions and fix Windows implementation.
3482 (path::is_absolute()): Define inline and fix for Windows.
3483 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::operator/=(const path&)):
3484 Define POSIX version inline.
3485 (path::_M_append(path)): Define inline.
3486 * include/experimental/bits/fs_path.h (path::is_absolute()): Move
3487 definition out of class body.
3488 (operator<<(basic_ostream, const path&)): Fix type of delimiter and
3490 (operator>>(basic_istream, path&)): Likewise.
3491 (path::is_absolute()): Define inline and fix for Windows.
3492 * src/filesystem/dir-common.h (__gnu_posix): New namespace.
3493 (__gnu_posix::char_type, __gnu_posix::DIR, __gnu_posix::dirent)
3494 (__gnu_posix::opendir, __gnu_posix::readdir, __gnu_posix::closedir):
3495 Define as adaptors for Windows functions/types or as
3496 using-declarations for POSIX functions/types.
3497 (_Dir_base, get_file_type): Qualify names to use declarations from
3498 __gnu_posix namespace.
3499 (_Dir_base::is_dor_or_dotdot): New helper functions.
3500 * src/filesystem/dir.cc (_Dir, recursive_directory_iterator): Qualify
3501 names to use declarations from __gnu_posix namespace.
3502 * src/filesystem/ops-common.h (__gnu_posix): New nested namespace.
3503 (__gnu_posix::open, __gnu_posix::close, __gnu_posix::stat_type)
3504 (__gnu_posix::stat, __gnu_posix::lstat, __gnu_posix::mode_t)
3505 (__gnu_posix::chmod, __gnu_posix::mkdir, __gnu_posix::getcwd)
3506 (__gnu_posix::chdir, __gnu_posix::utimbuf, __gnu_posix::utime)
3507 (__gnu_posix::rename, __gnu_posix::truncate, __gnu_posix::char_type):
3508 Define as adaptors for Windows functions/types or as
3509 using-declarations for POSIX functions/types.
3510 (stat_type, do_copy_file): Qualify names to use declarations from
3511 __gnu_posix namespace.
3512 (do_space): Declare new function.
3513 (make_file_type): Only use S_ISLNK if defined.
3514 * src/filesystem/ops.cc (char_ptr, filesystem::canonical): Use
3515 path::value_type not char.
3516 (filesystem::copy, create_dir, filesystem::create_directory): Qualify
3517 names to use declarations from __gnu_posix namespace.
3518 (filesystem::create_hard_link): Check HAVE_LINK autoconf macro and
3519 add implementation for Windows.
3520 (filesystem::create_symlink): Check HAVE_SYMLINK autoconf macro.
3521 (filesystem::current_path(error_code&)): Use __gnu_posix::getcwd.
3522 [!_PC_PATH_MAX]: Don't use pathconf.
3523 [PATH_MAX]: Use if defined.
3524 (filesystem::current_path(const path&, error_code&))
3525 (filesystem::equivalent, do_stat, filesystem::hard_link_count)
3526 (filesystem::last_write_time, filesystem::permissions): Use names
3528 (filesystem::read_symlink): Check HAVE_READLINK autoconf macro.
3529 (filesystem::remove) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Add
3530 implementation for Windows.
3531 (filesystem::rename, filesystem::resize_file): Use names from
3533 (filesystem::space): Use do_space.
3534 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Get absolute path to directory.
3535 (filesystem::status, filesystem::symlink_status): Use names from
3537 (filesystem::temp_directory_path): Add implementation for Windows.
3538 * src/filesystem/path.cc (dot): Define constant.
3539 (path::replace_extension): Use dot.
3540 (path::_M_find_extension): Likewise. Use path::string_type not
3542 (path::_M_split_cmpts): Use dot.
3543 (filesystem_error::_M_get_what): Use u8string() not native().
3544 * src/filesystem/std-dir.cc (_Dir, recursive_directory_iterator):
3545 Qualify names to use declarations from __gnu_posix namespace.
3546 * src/filesystem/std-ops.cc (filesystem::absolute(const path&)): Use
3548 (filesystem::absolute(const path&, error_code&)): Add implementation
3550 (char_ptr, filesystem::canonical): Use path::value_type not char.
3551 (do_copy_file): Use names from __gnu_posix.
3552 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Do not use fchmod, fchmodat or
3554 (filesystem::copy, create_dir, filesystem::create_directory): Qualify
3555 names to use declarations from __gnu_posix namespace.
3556 (filesystem::create_hard_link): Check HAVE_LINK autoconf macro and
3557 add implementation for Windows.
3558 (filesystem::create_symlink): Check HAVE_SYMLINK autoconf macro.
3559 (filesystem::current_path(error_code&)): Use __gnu_posix::getcwd.
3560 [!_PC_PATH_MAX]: Don't use pathconf.
3561 [PATH_MAX]: Use if defined.
3562 (filesystem::current_path(const path&, error_code&))
3563 (filesystem::equivalent, do_stat, filesystem::hard_link_count)
3564 (filesystem::last_write_time, filesystem::permissions): Use names
3566 (filesystem::read_symlink): Check HAVE_READLINK autoconf macro.
3567 (filesystem::remove) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Add
3568 implementation for Windows.
3569 (filesystem::rename, filesystem::resize_file): Use names from
3572 (filesystem::space): Use do_space.
3573 (filesystem::status, filesystem::symlink_status): Use names from
3575 (filesystem::temp_directory_path): Add implementation for Windows.
3576 * src/filesystem/std-path.cc
3577 [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::operator/=(const path&)):
3579 (dot): Define constant.
3580 (path::replace_extension, is_dot): Use dot.
3581 (path::lexically_normal): Check _M_type instead of calling
3582 non-existent function.
3583 (path::_M_find_extension): Use dot. Use path::string_type not
3585 (path::_M_split_cmpts): Use dot.
3586 (filesystem_error::_M_get_what): Use u8string() not native().
3587 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Do not
3589 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
3591 * testsuite/27_io/filesystem/operations/absolute.cc: Use
3592 __gnu_test::root_path() instead of "/" and add Windows-specific tests.
3593 * testsuite/27_io/filesystem/operations/canonical.cc: Use
3594 path::string() to get narrow string, not path::native().
3595 * testsuite/27_io/filesystem/operations/copy.cc: Construct fstreams
3596 with std::filesystem::path not std::basic_string.
3597 * testsuite/27_io/filesystem/operations/copy_file.cc: Likewise.
3598 * testsuite/27_io/filesystem/operations/exists.cc: Use
3599 __gnu_test::root_path() instead of "/".
3600 * testsuite/27_io/filesystem/operations/is_empty.cc: Construct
3601 fstreams with std::filesystem::path not std::basic_string.
3602 * testsuite/27_io/filesystem/operations/last_write_time.cc: Use
3603 path::string() to get narrow string.
3604 * testsuite/27_io/filesystem/operations/space.cc: Check results for
3605 errors, expect sensible values otherwise.
3606 * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Add
3607 helpers for adjusting the environment on Windows.
3608 * testsuite/27_io/filesystem/path/append/path.cc: Test
3609 Windows-specific behaviour.
3610 * testsuite/27_io/filesystem/path/construct/format.cc: Fix creation
3611 of path::string_type objects.
3612 * testsuite/27_io/filesystem/path/construct/locale.cc: Compare native
3613 string to wide string on Windows.
3614 * testsuite/27_io/filesystem/path/decompose/root_directory.cc: Allow
3615 for backslash as root-directory.
3616 * testsuite/27_io/filesystem/path/decompose/stem.cc: Use
3617 path::string() to get narrow string.
3618 * testsuite/27_io/filesystem/path/itr/traversal.cc: Test Windows-style
3620 * testsuite/27_io/filesystem/path/native/string.cc: Use string_type
3622 * testsuite/27_io/filesystem/path/query/is_absolute.cc: Adjust for
3623 different definintion of absolute paths on Windows.
3624 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
3625 Do not use symlinks.
3626 * testsuite/experimental/filesystem/operations/absolute.cc: Test
3628 * testsuite/experimental/filesystem/operations/copy.cc: Construct
3629 fstreams with NTCTS not std::basic_string.
3630 * testsuite/experimental/filesystem/operations/copy_file.cc: Likewise.
3631 * testsuite/experimental/filesystem/operations/exists.cc: Use
3632 __gnu_test::root_path() instead of "/".
3633 * testsuite/experimental/filesystem/operations/is_empty.cc: Construct
3634 fstreams with NTCTS not std::basic_string.
3635 * testsuite/experimental/filesystem/operations/last_write_time.cc:
3636 Use path::string() to get narrow string.
3637 * testsuite/experimental/filesystem/operations/space.cc: Use
3638 __gnu_test::root_path() instead of "/".
3639 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
3640 Add helpers for adjusting the environment on Windows.
3641 * testsuite/experimental/filesystem/path/append/path.cc: Use
3642 path::string() to get narrow strings for comparisons.
3643 * testsuite/experimental/filesystem/path/concat/path.cc: Likewise.
3644 * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
3646 * testsuite/experimental/filesystem/path/decompose/stem.cc: Likewise.
3647 * testsuite/experimental/filesystem/path/native/string.cc: Use
3648 string_type not std::string.
3649 * testsuite/experimental/filesystem/path/query/is_absolute.cc:
3650 Adjust for different definintion of absolute paths on Windows.
3651 * testsuite/util/testsuite_fs.h (__gnu_test::root_path()): New
3653 (__gnu_test::scoped_file): Construct fstreams with NTCTS not
3656 2018-05-31 Jonathan Wakely <jwakely@redhat.com>
3659 * include/std/type_traits [_GLIBCXX_USE_C99_STDINT_TR1]: Do not define
3660 uint_least16_t and uint_least32_t.
3661 (__make_unsigned<wchar_t>): Define unconditionally.
3662 (__make_unsigned_selector<_Tp, true, false>): Remove intermediate
3664 (__make_unsigned_selector_base): New type to provide helper templates.
3665 (__make_unsigned_selector<_Tp, false, true>): Reimplement using
3666 __make_unsigned_selector_base helpers.
3667 (__make_unsigned<char16_t>, __make_unsigned<char32_t>): Define.
3668 (__make_signed_selector<_Tp, true, false>): Remove intermediate
3670 (__make_signed<wchar_t>, __make_signed<char16_t>)
3671 (__make_signed<char32_t>)): Define unconditionally.
3672 * testsuite/20_util/make_signed/requirements/typedefs-3.cc: Check
3673 wchar_t, char16_t and char32_t are transformed correctly.
3674 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust
3676 * testsuite/20_util/make_unsigned/requirements/typedefs-3.cc: Check
3677 wchar_t, char16_t and char32_t are transformed correctly.
3678 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Adjust
3681 2018-05-29 Jonathan Wakely <jwakely@redhat.com>
3683 * include/std/variant (__erased_dtor): Qualify call to __get.
3685 2018-05-27 François Dumont <fdumont@gcc.gnu.org>
3687 * include/bits/stl_tree.h (_Rb_tree_impl(_Node_allocator&&)): New.
3688 (_Rb_tree(const allocator_type&)): Use latter.
3689 * include/bits/stl_map.h (map(const allocator_type&)): Likewise.
3690 (map(initializer_list<value_type>, const allocator_type&)): Likewise.
3691 (map(_InputIterator, _InputIterator, const allocator_type&)): Likewise.
3692 * include/bits/stl_multimap.h
3693 (multimap(const allocator_type&)): Likewise.
3694 (multimap(initializer_list<value_type>, const allocator_type&)):
3696 (multimap(_InputIterator, _InputIterator, const allocator_type&)):
3698 * include/bits/stl_set.h (set(const allocator_type&)): Likewise.
3699 (set(initializer_list<value_type>, const allocator_type&)): Likewise.
3700 (set(_InputIterator, _InputIterator, const allocator_type&)): Likewise.
3701 * include/bits/stl_multiset.h
3702 (multiset(const allocator_type&)): Likewise.
3703 (multiset(initializer_list<value_type>, const allocator_type&)):
3705 (multiset(_InputIterator, _InputIterator, const allocator_type&)):
3708 2018-05-25 François Dumont <fdumont@gcc.gnu.org>
3711 * src/c++11/debug.cc: Remove backtrace usage.
3713 2018-05-24 Maya Rashish <coypu@sdf.org>
3716 * crossconfig.m4: Test for aligned_alloc on netbsd.
3717 * configure: Regenerate.
3719 2018-05-24 Jonathan Wakely <jwakely@redhat.com>
3723 * include/bits/atomic_base.h (__atomic_base::value_type)
3724 (__atomic_base::difference_type): Add new typedefs.
3725 * include/std/atomic (atomic<bool>::value_type, atomic<T>::value_type)
3726 (atomic<T*>::value_type, atomic<T*>::difference_type): Likewise.
3727 (atomic<T*>::operator++, atomic<T*>::operator--)
3728 (atomic<T*>::operator+=, atomic<T*>::operator-=)
3729 (atomic<T*>::fetch_add, atomic<T*>::fetch_sub): Add static assertion
3730 to enforce C++17 requirement on pointer arithmetic.
3731 (__atomic_val_t, __atomic_diff_t): New alias templates.
3732 (atomic_init, atomic_store_explicit, atomic_exchange_explicit)
3733 (atomic_compare_exchange_weak_explicit)
3734 (atomic_compare_exchange_strong_explicit, atomic_store)
3735 (atomic_exchange, atomic_compare_exchange_weak)
3736 (atomic_compare_exchange_strong): Use __atomic_val_t to make
3737 scalar parameters be non-deduced contexts.
3738 (atomic_fetch_add_explicit, atomic_fetch_sub_explicit)
3739 (atomic_fetch_add, atomic_fetch_sub): Change first parameter to be
3740 atomic instead of __atomic_base, and use __atomic_diff_t for scalar
3742 (atomic_fetch_and_explicit, atomic_fetch_or_explicit)
3743 (atomic_fetch_xor_explicit, atomic_fetch_and, atomic_fetch_or)
3744 (atomic_fetch_xor): Use __atomic_val_t for scalar parameters.
3745 (atomic_fetch_add_explicit, atomic_fetch_sub_explicit)
3746 (atomic_fetch_add, atomic_fetch_sub): Remove overloads for atomic
3748 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error lineno.
3749 * testsuite/29_atomics/atomic/69769.cc: New test.
3750 * testsuite/29_atomics/atomic/nonmembers.cc: New test.
3751 * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc:
3752 Disable test for C++17 and later.
3753 * testsuite/29_atomics/atomic/requirements/typedefs.cc: New test.
3754 * testsuite/29_atomics/atomic_integral/nonmembers.cc: New test.
3755 * testsuite/29_atomics/atomic_integral/requirements/typedefs.cc: New
3758 2018-05-23 Jonathan Wakely <jwakely@redhat.com>
3760 * include/bits/fs_path.h (path::__is_encoded_char): Change from class
3761 template to alias template.
3762 (path::__value_type_is_char): Use remove_const_t.
3763 (path:_S_string_from_iter): New helper function.
3764 (path::_S_convert(InputIter, __null_terminated))
3765 (path::_S_convert_loc(InputIter, __null_terminated, const locale&)):
3766 Use _S_string_from_iter.
3767 (path::string<_CharT, _Allocator>(const _Allocator&)): Allow sharing
3768 rep for COW strings.
3769 * include/experimental/bits/fs_path.h (path::__is_encoded_char):
3770 Change from class template to alias template.
3771 (path::__value_type_is_char): Use remove_const.
3772 (path:_S_string_from_iter): New helper function.
3773 (path::_S_convert(InputIter, __null_terminated))
3774 (path::_S_convert_loc(InputIter, __null_terminated, const locale&)):
3775 Use _S_string_from_iter.
3776 * testsuite/27_io/filesystem/path/append/source.cc: Test appending
3778 * testsuite/27_io/filesystem/path/concat/strings.cc: Check for exact
3779 string equality, not path equivalence.
3780 * testsuite/27_io/filesystem/path/construct/format.cc: Check
3781 construction from std::string and std::wstring and input iterators.
3782 * testsuite/27_io/filesystem/path/construct/locale.cc: Check
3783 construction from iterators.
3784 * testsuite/experimental/filesystem/path/concat/strings.cc: Check for
3785 exact string equality, not path equivalence.
3786 * testsuite/experimental/filesystem/path/construct/locale.cc: Check
3787 construction from iterators.
3789 * include/bits/fs_path.h (path::_M_type): Change default member
3790 initializer to _Filename.
3791 (path::begin): Create past-the-end iterator for empty path.
3792 * src/filesystem/std-path.cc (path::remove_filename()): Remove
3794 (path::has_relative_path()): Return false for empty filenames.
3795 (path::_M_split_cmpts): Set _M_type to _Filename for empty paths.
3796 Fix offset of empty final component.
3797 * testsuite/27_io/filesystem/path/itr/components.cc: New.
3798 * testsuite/27_io/filesystem/path/itr/traversal.cc: Add new inputs.
3800 2018-05-21 Jonathan Wakely <jwakely@redhat.com>
3802 Add support for opening file streams from wide character strings.
3803 * config/io/basic_file_stdio.cc [_GLIBCXX_HAVE__WFOPEN]
3804 (__basic_file<char>::open(const wchar_t*, ios_base::openmode)):
3805 Define new overload.
3806 * config/io/basic_file_stdio.h [_GLIBCXX_HAVE__WFOPEN]
3807 (__basic_file<char>::open(const wchar_t*, ios_base::openmode)):
3808 Declare new overload.
3809 * configure.ac: Check for _wfopen.
3810 * crossconfig.m4: Likewise.
3811 * configure: Regenerate.
3812 * config.h.in: Regenerate.
3813 * include/bits/fstream.tcc [_GLIBCXX_HAVE__WFOPEN]
3814 (basic_filebuf<C,T>::open(const wchar_t*, ios_base::openmode)):
3815 Define new overload.
3816 * include/std/fstream [_GLIBCXX_HAVE__WFOPEN]
3817 (basic_filebuf<C,T>::open(const wchar_t*, ios_base::openmode)):
3818 Declare new overload.
3819 [_GLIBCXX_HAVE__WFOPEN]
3820 (basic_ifstream<C,T>::basic_ifstream(const wchar_t*, openmode))
3821 (basic_ifstream<C,T>::basic_open(const wchar_t*, openmode))
3822 (basic_ofstream<C,T>::basic_ifstream(const wchar_t*, openmode))
3823 (basic_ofstream<C,T>::basic_open(const wchar_t*, openmode))
3824 (basic_fstream<C,T>::basic_ifstream(const wchar_t*, openmode))
3825 (basic_fstream<C,T>::basic_open(const wchar_t*, openmode)): Define
3827 * testsuite/27_io/basic_filebuf/open/wchar_t/1.cc: New.
3828 * testsuite/27_io/basic_ifstream/cons/wchar_t/1.cc: New.
3829 * testsuite/27_io/basic_ifstream/open/wchar_t/1.cc: New.
3830 * testsuite/27_io/basic_ofstream/cons/wchar_t/1.cc: New.
3831 * testsuite/27_io/basic_ofstream/open/wchar_t/1.cc: New.
3832 * testsuite/27_io/basic_fstream/cons/wchar_t/1.cc: New.
3833 * testsuite/27_io/basic_fstream/open/wchar_t/1.cc: New.
3835 2018-05-21 François Dumont <fdumont@gcc.gnu.org>
3838 * include/bits/stl_tree.h
3839 (_Rb_tree_impl(_Rb_tree_impl&&, _Node_allocator&&)): Fix noexcept
3842 2018-05-21 Jonathan Wakely <jwakely@redhat.com>
3844 * src/filesystem/std-ops.cc (absolute): Report an error for empty
3846 (weakly_canonical(const path&)): Do not call canonical on empty path.
3847 (weakly_canonical(const path&, error_code&)): Likewise.
3848 * testsuite/27_io/filesystem/operations/absolute.cc: Check for errors.
3851 * testsuite/experimental/filesystem/path/preferred_separator.cc: Add
3852 dg-require-filesystem-ts.
3855 * src/c++11/cow-stdexcept.cc (logic_error, runtime_error): Explicitly
3856 initialize base class to avoid warnings.
3858 2018-05-19 Jonathan Wakely <jwakely@redhat.com>
3860 * src/c++11/codecvt.cc (__codecvt_utf8_base<wchar_t>::do_in)
3861 [__SIZEOF_WCHAR_T__==2 && __BYTE_ORDER__!=__ORDER_BIG_ENDIAN__]: Set
3862 little_endian element in bitmask.
3863 * testsuite/22_locale/codecvt/codecvt_utf8/69703.cc: Run all tests.
3864 * testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc: New.
3866 2018-05-18 François Dumont <fdumont@gcc.gnu.org>
3868 * include/bits/stl_tree.h
3869 (_Rb_tree_impl(_Rb_tree_impl&&, _Node_allocator&&)): New.
3870 (_Rb_tree(_Rb_tree&&, _Node_allocator&&, true_type)): New, use latter.
3871 (_Rb_tree(_Rb_tree&&, _Node_allocator&&, false_type)): New.
3872 (_Rb_tree(_Rb_tree&&, _Node_allocator&&)): Adapt, use latters.
3873 * include/debug/map.h
3874 (map(map&&, const_allocator_type&)): Add noexcept qualitication.
3875 * include/debug/multimap.h
3876 (multimap(multimap&&, const_allocator_type&)): Likewise.
3877 * include/debug/set.h
3878 (set(set&&, const_allocator_type&)): Likewise.
3879 * include/debug/multiset.h
3880 (multiset(multiset&&, const_allocator_type&)): Likewise.
3881 * testsuite/23_containers/map/cons/noexcept_default_construct.cc:
3883 * testsuite/23_containers/map/cons/noexcept_move_construct.cc:
3885 * testsuite/23_containers/multimap/cons/noexcept_default_construct.cc:
3887 * testsuite/23_containers/multimap/cons/noexcept_move_construct.cc:
3889 * testsuite/23_containers/multiset/cons/noexcept_default_construct.cc:
3891 * testsuite/23_containers/multiset/cons/noexcept_move_construct.cc:
3893 * testsuite/23_containers/set/cons/noexcept_default_construct.cc:
3895 * testsuite/23_containers/set/cons/noexcept_move_construct.cc:
3898 2018-05-18 Jason Merrill <jason@redhat.com>
3900 * include/bits/stl_deque.h (_Deque_iterator): Constrain constructor
3901 for conversion to const_iterator. Add defaulted copy ops.
3902 * libsupc++/new (bad_alloc): Add defaulted copy ops.
3903 * libsupc++/exception.h (exception): Add defaulted copy ops.
3904 * include/std/system_error (system_error): Add defaulted copy ops.
3905 * include/std/stdexcept (domain_error, invalid_argument)
3906 (length_error, out_of_range, range_error, overflow_error)
3907 (underflow_error): Add defaulted copy ops.
3908 * include/bits/stl_iterator.h (reverse_iterator): Add defaulted
3910 * include/bits/allocator.h (allocator): Add defaulted copy assignment.
3911 * include/ext/throw_allocator.h (condition_base): Add defaulted
3912 default and copy ctor and copy assignment.
3914 2018-05-18 Jonathan Wakely <jwakely@redhat.com>
3917 * include/bits/regex.h [__cplusplus < 201703L] (basic_regex::icase)
3918 (basic_regex::nosubs, basic_regex::optimize, basic_regex::collate)
3919 (basic_regex::ECMAScript, basic_regex::basic, basic_regex::extended)
3920 (basic_regex::awk, basic_regex::grep, basic_regex::egrep): Add
3922 * include/bits/regex_automaton.h (_NFA::_M_insert_state): Adjust
3924 * include/bits/regex_compiler.tcc (__INSERT_REGEX_MATCHER): Add
3925 braces around body of do-while.
3926 * testsuite/28_regex/basic_regex/85098.cc: New
3928 2018-05-17 Jonathan Wakely <jwakely@redhat.com>
3931 * src/filesystem/path.cc (path::preferred_separator): Add used
3933 * testsuite/experimental/filesystem/path/preferred_separator.cc: New.
3936 * libsupc++/cxxabi_init_exception.h (__cxa_free_exception): Declare.
3937 * libsupc++/exception_ptr.h (make_exception_ptr) [__cpp_exceptions]:
3938 Refactor to separate non-throwing and throwing implementations.
3939 [__cpp_rtti && !_GLIBCXX_HAVE_CDTOR_CALLABI]: Deallocate the memory
3940 if constructing the object throws.
3942 2018-05-15 Jonathan Wakely <jwakely@redhat.com>
3945 * include/bits/random.h (__detail::__is_seed_seq): New SFINAE helper.
3946 (linear_congruential_engine, mersenne_twister_engine)
3947 (subtract_with_carry_engine, discard_block_engine)
3948 (independent_bits_engine, shuffle_order_engine): Use __is_seed_seq to
3949 constrain function templates taking seed sequences.
3950 * include/bits/random.tcc (linear_congruential_engine::seed(_Sseq&))
3951 (mersenne_twister_engine::seed(_Sseq&))
3952 (subtract_with_carry_engine::seed(_Sseq&)): Change return types to
3954 * include/ext/random (simd_fast_mersenne_twister_engine): Use
3955 __is_seed_seq to constrain function templates taking seed sequences.
3956 * include/ext/random.tcc (simd_fast_mersenne_twister_engine::seed):
3957 Change return type to match declaration.
3958 * testsuite/26_numerics/random/discard_block_engine/cons/seed_seq2.cc:
3960 * testsuite/26_numerics/random/independent_bits_engine/cons/
3962 * testsuite/26_numerics/random/linear_congruential_engine/cons/
3964 * testsuite/26_numerics/random/mersenne_twister_engine/cons/
3966 * testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error lineno.
3967 * testsuite/26_numerics/random/shuffle_order_engine/cons/seed_seq2.cc:
3969 * testsuite/26_numerics/random/subtract_with_carry_engine/cons/
3971 * testsuite/ext/random/simd_fast_mersenne_twister_engine/cons/
3975 * include/bits/fs_path.h (path::is_absolute()): Use same definition
3976 for all operating systems.
3977 * include/experimental/bits/fs_path.h (path::is_absolute()): Likewise.
3978 * testsuite/27_io/filesystem/path/query/is_absolute.cc: New.
3979 * testsuite/27_io/filesystem/path/query/is_relative.cc: Fix comment.
3980 * testsuite/experimental/filesystem/path/query/is_absolute.cc: New.
3982 * testsuite/27_io/filesystem/path/decompose/extension.cc: Remove
3983 unused <vector> header.
3984 * testsuite/27_io/filesystem/path/query/empty.cc: Likewise.
3985 * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise.
3986 * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise.
3987 * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise.
3988 * testsuite/27_io/filesystem/path/query/has_relative_path.cc:
3990 * testsuite/27_io/filesystem/path/query/has_root_directory.cc:
3992 * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise.
3993 * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise.
3994 * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise.
3995 * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise.
3996 * testsuite/experimental/filesystem/path/decompose/extension.cc:
3998 * testsuite/experimental/filesystem/path/query/empty.cc: Likewise.
3999 * testsuite/experimental/filesystem/path/query/has_extension.cc:
4001 * testsuite/experimental/filesystem/path/query/has_filename.cc:
4003 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
4005 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
4007 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
4009 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
4011 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
4013 * testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise.
4014 * testsuite/experimental/filesystem/path/query/is_relative.cc:
4018 * include/bits/fs_path.h (path::operator/=, path::append): Construct
4019 temporary path before calling _M_append.
4020 (path::_M_append): Change parameter to path and implement C++17
4022 * testsuite/27_io/filesystem/path/append/path.cc: Add helper function
4023 and more examples from the standard.
4024 * testsuite/27_io/filesystem/path/append/source.cc: New.
4025 * testsuite/27_io/filesystem/path/decompose/filename.cc: Add comment.
4026 * testsuite/27_io/filesystem/path/nonmember/append.cc: New.
4028 * include/std/variant (__gen_vtable_impl::__visit_invoke): Qualify
4029 __invoke to prevent ADL.
4031 2018-05-14 Jonathan Wakely <jwakely@redhat.com>
4034 * include/bits/fstream.tcc (basic_filebuf::close): Do not swallow
4035 exceptions from _M_terminate_output().
4036 * include/std/fstream (basic_filebuf::~basic_filebuf): Swallow any
4037 exceptions from close().
4038 * testsuite/27_io/basic_filebuf/close/81256.cc: New.
4040 * include/bits/valarray_array.h (__valarray_get_memory): Remove.
4041 (__valarray_get_storage): Call operator new directly. Remove ignored
4042 top-level restrict qualifier and add malloc attribute instead.
4043 (_Array<_Tp>::_Array(size_t)): Remove unused constructor.
4046 * include/bits/valarray_array.h (_Array_copy_ctor<_Tp, true>)
4047 (_Array_copier<_Tp, true>): Do not pass null pointers to memcpy.
4050 * include/bits/node_handle.h (_Node_handle_common::_M_swap): Use value
4052 * testsuite/23_containers/set/modifiers/node_swap.cc: New.
4054 2018-05-13 Ville Voutilainen <ville.voutilainen@gmail.com>
4057 * testsuite/20_util/variant/80165.cc: New.
4059 2018-05-10 Jonathan Wakely <jwakely@redhat.com>
4061 * doc/xml/faq.xml: Link to C++17 status. Add note to outdated answer.
4062 * doc/xml/manual/debug_mode.xml: Add array and forward_list to list
4063 of C++11 containers with Debug Mode support.
4064 * doc/xml/manual/using.xml: Document Dual ABI for ios_base::failure.
4065 * doc/html/*: Regenerate.
4067 2018-05-10 Jason Merrill <jason@redhat.com>
4069 * include/bits/regex_compiler.h (_S_cache_size): Change from
4070 function to variable.
4072 2018-05-10 Edward Smith-Rowland <3dw4rd@verizon.net>
4074 PR libstdc++/83140 - assoc_legendre returns negated value when m is odd
4075 * include/tr1/legendre_function.tcc (__assoc_legendre_p): Add __phase
4076 argument defaulted to +1. Doxy comments on same.
4077 * testsuite/special_functions/02_assoc_legendre/
4078 check_value.cc: Regen.
4079 * testsuite/tr1/5_numerical_facilities/special_functions/
4080 02_assoc_legendre/check_value.cc: Regen.
4082 2018-05-10 Jonathan Wakely <jwakely@redhat.com>
4085 * include/bits/c++config.h (__replacement_assert): Add linkage
4087 * include/bits/std_abs.h: Add comment to closing brace of block.
4088 * include/c_global/cstddef: Add linkage specification.
4089 * include/c_global/cstring: Likewise.
4090 * include/c_global/cwchar: Likewise.
4092 2018-05-09 François Dumont <fdumont@gcc.gnu.org>
4094 * include/debug/safe_iterator.h (_Safe_iterator<>::_M_constant()):
4096 (_Safe_iterator<>::_S_constant()): ...that.
4097 * include/debug/safe_local_iterator.h
4098 (_Safe_local_iterator<>::_M_constant()): Rename in...
4099 (_Safe_local_iterator<>::_S_constant()): ...that.
4100 * include/debug/formatter.h: Remove bits/cpp_type_traits.h include.
4101 (_Iterator_state::__rbegin): New.
4102 (_Iterator_state::__rmiddle): New.
4103 (_Iterator_state::__rend): New.
4104 (_Parameter::_Parameter(const _Safe_iterator<>&, const char*,
4105 _Is_iterator)): Use _Safe_iterator<>::_S_constant. Grab normal underlying
4107 (_Parameter::_Parameter(const _Safe_local_iterator<>&, const char*,
4108 _Is_iterator)): Likewise.
4109 (_Parameter::_S_reverse_state(_Iterator_state)): New.
4110 (_Parameter(__gnu_cxx::__normal_iterator<> const&, const char*,
4111 _Is_iterator)): New.
4112 (_Parameter(std::reverse_iterator<> const&, const char*,
4113 _Is_iterator)): New.
4114 (_Parameter(std::reverse_iterator<_Safe_iterator<>> const&,
4115 const char*, _Is_iterator)): New.
4116 (_Parameter(std::move_iterator<> const&, const char*, _Is_iterator):
4118 (_Parameter(std::move_iterator<_Safe_iterator<>> const&, const char*,
4119 _Is_iterator)): New.
4120 * testsuite/24_iterators/move_iterator/debug_neg.cc: New.
4121 * testsuite/24_iterators/normal_iterator/debug_neg.cc: New.
4122 * testsuite/24_iterators/reverse_iterator/debug_neg.cc: New.
4124 2018-05-09 Jonathan Wakely <jwakely@redhat.com>
4126 * include/bits/std_function.h (_Base_manager::_M_get_pointer):
4127 Use constexpr if in C++17 mode.
4128 (_Base_manager::_M_clone(_Any_data&, const _Any_data&, true_type)):
4129 Copy from const object.
4130 * testsuite/20_util/function/cons/non_copyconstructible.cc: New.
4132 2018-05-08 François Dumont <fdumont@gcc.gnu.org>
4134 * src/c++11/debug.cc [_GLIBCXX_HAVE_EXECINFO_H]: Include execinfo.h.
4135 [_GLIBCXX_HAVE_EXECINFO_H](_Error_formatter::_M_error): Render
4138 * include/debug/macros.h (__glibcxx_check_valid_range_at): New.
4139 * include/debug/functions.h (__check_valid_range): Use latter.
4140 * include/debug/macros.h (__glibcxx_check_valid_constructor_range): New,
4142 * include/debug/deque
4143 (deque::deque<_Iter>(_Iter, _Iter, const _Alloc&)): Use latter.
4144 * include/debug/forward_list
4145 (forward_list::forward_list<_Iter>(_Iter, _Iter, const _Alloc&)):
4147 * include/debug/list
4148 (list::list<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
4149 * include/debug/list
4150 (list::list<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
4151 * include/debug/map.h
4152 (map::map<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
4153 (map::map<_Iter>(_Iter, _Iter, const _Compare&, const _Alloc&)):
4155 * include/debug/multimap.h
4156 (multimap::multimap<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
4157 (multimap::multimap<_Iter>(_Iter, _Iter, const _Compare&,
4158 const _Alloc&)): Likewise.
4159 * include/debug/set.h
4160 (set::set<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
4161 (set::set<_Iter>(_Iter, _Iter, const _Compare&, const _Alloc&)):
4163 * include/debug/multiset.h
4164 (multiset::multiset<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
4165 (multiset::multiset<_Iter>(_Iter, _Iter, const _Compare&,
4166 const _Alloc&)): Likewise.
4167 * include/debug/string
4168 (basic_string::basic_string<_Iter>(_Iter, _Iter, const _Alloc&)):
4170 * include/debug/unordered_map
4171 (unordered_map::unordered_map<_Iter>(_Iter, _Iter, const _Alloc&)):
4173 (unordered_multimap::unordered_multimap<_Iter>(_Iter, _Iter,
4174 const _Alloc&)): Likewise.
4175 * include/debug/unordered_set
4176 (unordered_set::unordered_set<_Iter>(_Iter, _Iter, const _Alloc&)):
4178 (unordered_multiset::unordered_multiset<_Iter>(_Iter, _Iter,
4179 const _Alloc&)): Likewise.
4180 * include/debug/vector
4181 (vector::vector<_Iter>(_Iter, _Iter, const _Alloc&)): Use latter.
4183 * include/debug/formatter.h (_Error_formatter::_M_function): New.
4184 (_Error_formatter(const char*, unsigned int)): Adapt.
4185 (_Error_formatter::_M_at): Rename in...
4186 (_Error_formatter::_S_at): ...that and adapt.
4187 * include/debug/macros.h (_GLIBCXX_DEBUG_VERIFY_AT_F): New.
4188 (_GLIBCXX_DEBUG_VERIFY_AT, _GLIBCXX_DEBUG_VERIFY): Adapt.
4189 * src/c++11/debug.cc (_Error_formatter::_M_error): Render _M_function
4192 2018-05-08 Jonathan Wakely <jwakely@redhat.com>
4194 * include/bits/regex_automaton.h (_NFA_base::_M_paren_stack, _NFA):
4195 Use normal std::vector even in Debug Mode.
4198 * include/Makefile.am [!ENABLE_FLOAT128]: Change c++config.h entry
4199 to #undef _GLIBCXX_USE_FLOAT128 instead of defining it to zero.
4200 * include/Makefile.in: Regenerate.
4201 * include/bits/c++config (_GLIBCXX_USE_FLOAT128): Move definition
4202 within conditional block.
4204 2018-05-07 Jonathan Wakely <jwakely@redhat.com>
4206 * doc/xml/manual/using.xml (table.cmd_options): Document that the
4207 C++17 Filesystem implementation also needs -lstdc++fs.
4210 * include/bits/fs_path.h (operator/): Permit copy elision.
4211 * include/experimental/bits/fs_path.h (operator/): Likewise.
4213 2018-05-07 Edward Smith-Rowland <3dw4rd@verizon.net>
4215 Moar PR libstdc++/80506
4216 * include/bits/random.tcc (gamma_distribution::__generate_impl()):
4217 Fix magic number used in loop condition.
4219 2018-05-04 Jonathan Wakely <jwakely@redhat.com>
4221 PR libstdc++/85642 fix is_nothrow_default_constructible<optional<T>>
4222 * include/std/optional (_Optional_payload): Add noexcept to default
4223 constructor. Re-indent.
4224 (_Optional_payload<_Tp, true, true, true>): Likewise. Add noexcept to
4225 constructor for copying disengaged payloads.
4226 (_Optional_payload<_Tp, true, false, true>): Likewise.
4227 (_Optional_payload<_Tp, true, true, false>): Likewise.
4228 (_Optional_payload<_Tp, true, false, false>): Likewise.
4229 * testsuite/20_util/optional/cons/85642.cc: New.
4230 * testsuite/20_util/optional/cons/value_neg.cc: Adjust dg-error lines.
4232 2018-05-03 Jonathan Wakely <jwakely@redhat.com>
4235 * include/tr1/cmath [__STRICT_ANSI__] (hypergf, hypergl, hyperg): Use
4236 inline definitions instead of using-declarations.
4237 [__STRICT_ANSI__] (conf_hypergf, conf_hypergl, conf_hyperg): Likewise.
4238 * testsuite/tr1/5_numerical_facilities/special_functions/
4239 07_conf_hyperg/compile_cxx17.cc: New.
4240 * testsuite/tr1/5_numerical_facilities/special_functions/
4241 17_hyperg/compile_cxx17.cc: New.
4244 * include/std/variant (visit): Qualify std::get call.
4246 PR libstdc++/85632 use uintmax_t for arithmetic
4247 * src/filesystem/ops.cc (experimental::filesystem::space): Perform
4248 arithmetic in result type.
4249 * src/filesystem/std-ops.cc (filesystem::space): Likewise.
4250 * testsuite/27_io/filesystem/operations/space.cc: Check total capacity
4251 is greater than free space.
4252 * testsuite/experimental/filesystem/operations/space.cc: New.
4254 * testsuite/20_util/remove_cvref/requirements/alias_decl.cc: New.
4255 * testsuite/20_util/remove_cvref/requirements/explicit_instantiation.cc:
4257 * testsuite/20_util/remove_cvref/value.cc: New.
4258 * testsuite/20_util/remove_cvref/value_ext.cc: New.
4260 PR libstdc++/84087 LWG DR 2268 basic_string default arguments
4261 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI=1]
4262 (append(const basic_string&, size_type, size_type)
4263 (assign(const basic_string&, size_type, size_type)
4264 (insert(size_type, const basic_string&, size_type, size_type)
4265 (replace(size_type,size_type,const basic_string&,size_type,size_type)
4266 (compare(size_type,size_type,constbasic_string&,size_type,size_type)):
4267 Add default arguments (LWG 2268).
4268 [_GLIBCXX_USE_CXX11_ABI=0]
4269 (append(const basic_string&, size_type, size_type)
4270 (assign(const basic_string&, size_type, size_type)
4271 (insert(size_type, const basic_string&, size_type, size_type)
4272 (replace(size_type,size_type,const basic_string&,size_type,size_type)
4273 (compare(size_type,size_type,constbasic_string&,size_type,size_type)):
4275 * testsuite/21_strings/basic_string/dr2268.cc: New test.
4278 * include/std/thread (thread::__not_same): New SFINAE helper.
4279 (thread::thread(_Callable&&, _Args&&...)): Add SFINAE constraint that
4280 first argument is not a std::thread. Add static assertion to check
4281 INVOKE expression is valid.
4282 (thread::thread(thread&), thread::thread(const thread&&)): Remove.
4283 (thread::_Invoke::_M_invoke, thread::_Invoke::operator()): Use
4284 __invoke_result for return types and remove exception specifications.
4285 * testsuite/30_threads/thread/cons/84535.cc: New.
4287 * include/std/future (__async_result_of): Use __invoke_result instead
4290 * include/std/any (any_cast): Use __remove_cvref_t.
4291 * include/std/tuple (__make_tuple): Likewise.
4292 * include/std/type_traits (__remove_cvref_t): Define.
4293 (__result_of_memobj, __result_of_memfun): Use __remove_cvref_t.
4294 [__cplusplus > 201703L] (remove_cvref, remove_cvref_t): Define.
4295 * include/std/variant (__erased_hash): Use __remove_cvref_t.
4297 2018-05-02 François Dumont <fdumont@gcc.gnu.org>
4299 * include/bits/deque.tcc (deque<>::_M_assign_aux): Cast to void to
4300 ensure overloaded comma not used.
4301 * include/bits/list.tcc (list<>::_M_assign_dispatch): Likewise.
4302 * include/bits/vector.tcc (vector<>::_M_assign_aux): Likewise.
4303 * include/bits/stl_bvector.h (vector<bool>::_M_assign_aux): Likewise.
4304 * testsuite/23_containers/deque/modifiers/assign/1.cc: New.
4305 * testsuite/23_containers/list/modifiers/assign/1.cc: New.
4306 * testsuite/23_containers/vector/bool/modifiers/assign/1.cc: New.
4307 * testsuite/23_containers/vector/modifiers/assign/1.cc: New.
4309 2018-05-02 Jonathan Wakely <jwakely@redhat.com>
4312 * include/bits/ios_base.h (ios_base::iword, ios_base::pword): Cast
4313 indices to unsigned.
4314 * src/c++11/ios.cc (ios_base::_M_grow_words): Treat negative indices
4315 as failure. Refactor error handling.
4316 * testsuite/27_io/ios_base/storage/68197.cc: New.
4320 * include/bits/gslice_array.h (gslice_array): Define default
4321 constructor as deleted, as per C++11 standard.
4322 * include/bits/mask_array.h (mask_array): Likewise.
4323 * include/bits/slice_array.h (slice_array): Likewise.
4324 * include/bits/valarray_after.h (_GBase, _GClos, _IBase, _IClos): Move
4325 to namespace __detail.
4326 (_GBase::_M_expr, _IBase::_M_expr): Use _ValArrayRef for type of data
4328 * include/bits/valarray_before.h (_ValArrayRef): New helper for type
4329 of data members in closure objects.
4330 (_FunBase, _ValFunClos, _RefFunClos, _UnBase, _UnClos, _BinBase)
4331 (_BinBase2, _BinBase1, _BinClos, _SBase, _SClos): Move to namespace
4333 (_FunBase::_M_expr, _UnBase::_M_expr, _BinBase::_M_expr1)
4334 (_BinBase::_M_expr2, _BinBase2::_M_expr1, _BinBase1::_M_expr2)
4335 (_SBase::_M_expr): Use _ValArrayRef for type of data members.
4336 * include/std/valarray (_UnClos, _BinClos, _SClos, _GClos, _IClos)
4337 (_ValFunClos, _RefFunClos): Move to namespace __detail and add
4338 using-declarations to namespace std.
4339 * testsuite/26_numerics/valarray/83860.cc: New.
4341 * testsuite/backward/strstream_move.cc: Remove duplicate function
4345 * include/backward/strstream (strstreambuf): Define move constructor
4346 and move assignment operator.
4347 (istrstream, ostrstream, strstream): Likewise.
4348 * testsuite/backward/strstream_move.cc: New.
4350 2018-05-01 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
4353 * acinclude.m4: Set ENABLE_FLOAT128 instead of _GLIBCXX_USE_FLOAT128.
4354 * config.h.in: Remove references to _GLIBCXX_USE_FLOAT128.
4355 * configure: Regenerate.
4356 * include/Makefile.am: Replace the value of _GLIBCXX_USE_FLOAT128
4357 based on ENABLE_FLOAT128.
4358 * include/Makefile.in: Regenerate.
4359 * include/bits/c++config: Define _GLIBCXX_USE_FLOAT128.
4360 [!defined(__FLOAT128__) && !defined(__SIZEOF_FLOAT128__)]: Undefine
4361 _GLIBCXX_USE_FLOAT128.
4363 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
4365 * configure: Regenerated.
4367 2018-04-19 Jakub Jelinek <jakub@redhat.com>
4369 * configure: Regenerated.
4371 2018-04-18 Jonathan Wakely <jwakely@redhat.com>
4372 Jakub Jelinek <jakub@redhat.com>
4375 * src/c++11/Makefile.am: Don't generate debuginfo again for
4376 cxx11-ios_failure-lt.s and cxx11-ios_failure.s files.
4377 * src/c++11/Makefile.in: Regenerate.
4379 2018-04-18 Jonathan Wakely <jwakely@redhat.com>
4382 * testsuite/30_threads/thread/cons/terminate.cc
4383 [!_GLIBCXX_USE_C99_STDLIB] : Use _exit or std::exit instead of _Exit.
4385 2018-04-18 David Malcolm <dmalcolm@redhat.com>
4388 * configure: Regenerate.
4390 2018-04-16 Jonathan Wakely <jwakely@redhat.com>
4392 * testsuite/experimental/filesystem/file_status/1.cc: Add
4393 -DUSE_FILESYSTEM_TS to dg-options.
4394 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
4396 * testsuite/experimental/filesystem/iterators/pop.cc: Likewise.
4397 * testsuite/experimental/filesystem/iterators/
4398 recursive_directory_iterator.cc: Likewise.
4399 * testsuite/experimental/filesystem/operations/absolute.cc: Likewise.
4400 * testsuite/experimental/filesystem/operations/canonical.cc: Likewise.
4401 * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
4402 * testsuite/experimental/filesystem/operations/copy_file.cc: Likewise.
4403 * testsuite/experimental/filesystem/operations/create_directories.cc:
4405 * testsuite/experimental/filesystem/operations/create_directory.cc:
4407 * testsuite/experimental/filesystem/operations/create_symlink.cc:
4409 * testsuite/experimental/filesystem/operations/current_path.cc:
4411 * testsuite/experimental/filesystem/operations/equivalent.cc: Likewise.
4412 * testsuite/experimental/filesystem/operations/exists.cc: Likewise.
4413 * testsuite/experimental/filesystem/operations/file_size.cc: Likewise.
4414 * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise.
4415 * testsuite/experimental/filesystem/operations/last_write_time.cc:
4417 * testsuite/experimental/filesystem/operations/permissions.cc:
4419 * testsuite/experimental/filesystem/operations/read_symlink.cc:
4421 * testsuite/experimental/filesystem/operations/remove.cc: Likewise.
4422 * testsuite/experimental/filesystem/operations/remove_all.cc: Likewise.
4423 * testsuite/experimental/filesystem/operations/status.cc: Likewise.
4424 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
4426 * testsuite/experimental/filesystem/path/append/path.cc: Likewise.
4427 * testsuite/experimental/filesystem/path/assign/assign.cc: Likewise.
4428 * testsuite/experimental/filesystem/path/assign/copy.cc: Likewise.
4429 * testsuite/experimental/filesystem/path/compare/compare.cc: Likewise.
4430 * testsuite/experimental/filesystem/path/compare/path.cc: Likewise.
4431 * testsuite/experimental/filesystem/path/compare/strings.cc: Likewise.
4432 * testsuite/experimental/filesystem/path/concat/path.cc: Likewise.
4433 * testsuite/experimental/filesystem/path/concat/strings.cc: Likewise.
4434 * testsuite/experimental/filesystem/path/construct/copy.cc: Likewise.
4435 * testsuite/experimental/filesystem/path/construct/default.cc:
4437 * testsuite/experimental/filesystem/path/construct/locale.cc: Likewise.
4438 * testsuite/experimental/filesystem/path/construct/range.cc: Likewise.
4439 * testsuite/experimental/filesystem/path/construct/string_view.cc:
4441 * testsuite/experimental/filesystem/path/decompose/extension.cc:
4443 * testsuite/experimental/filesystem/path/decompose/filename.cc:
4445 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
4447 * testsuite/experimental/filesystem/path/decompose/relative_path.cc:
4449 * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
4451 * testsuite/experimental/filesystem/path/decompose/root_name.cc:
4453 * testsuite/experimental/filesystem/path/decompose/root_path.cc:
4455 * testsuite/experimental/filesystem/path/decompose/stem.cc: Likewise.
4456 * testsuite/experimental/filesystem/path/generic/generic_string.cc:
4458 * testsuite/experimental/filesystem/path/itr/traversal.cc: Likewise.
4459 * testsuite/experimental/filesystem/path/modifiers/clear.cc: Likewise.
4460 * testsuite/experimental/filesystem/path/modifiers/make_preferred.cc:
4462 * testsuite/experimental/filesystem/path/modifiers/remove_filename.cc:
4464 * testsuite/experimental/filesystem/path/modifiers/replace_extension.cc:
4466 * testsuite/experimental/filesystem/path/modifiers/replace_filename.cc:
4468 * testsuite/experimental/filesystem/path/modifiers/swap.cc: Likewise.
4469 * testsuite/experimental/filesystem/path/native/string.cc: Likewise.
4470 * testsuite/experimental/filesystem/path/nonmember/hash_value.cc:
4472 * testsuite/experimental/filesystem/path/query/empty.cc: Likewise.
4473 * testsuite/experimental/filesystem/path/query/has_extension.cc:
4475 * testsuite/experimental/filesystem/path/query/has_filename.cc:
4477 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
4479 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
4481 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
4483 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
4485 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
4487 * testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise.
4488 * testsuite/experimental/filesystem/path/query/is_relative.cc:
4491 2018-04-13 Jonathan Wakely <jwakely@redhat.com>
4493 * src/c++11/Makefile.am: Fix sed command.
4494 * src/c++11/Makefile.in: Regenerate.
4496 * src/c++11/Makefile.am: Rewrite sed rule to be less fragile and to
4497 handle mangled names starting with double underscores on darwin.
4498 * src/c++11/Makefile.in: Regenerate.
4500 2018-04-12 Jonathan Wakely <jwakely@redhat.com>
4502 * src/c++11/Makefile.am: Fix comment.
4503 * src/c++11/Makefile.in: Regenerate.
4504 * src/c++11/cxx11-ios_failure.cc: Fix comment.
4505 * src/c++98/ios_failure.cc: Likewise.
4507 * src/c++11/ios.cc: Remove redundant macro definition.
4509 2018-04-11 Jonathan Wakely <jwakely@redhat.com>
4511 * doc/xml/manual/abi.xml: Document header locations in recent
4513 * doc/xml/manual/evolution.xml: Add API changes since GCC 5.
4514 * doc/xml/manual/spine.xml: Update copyright years.
4515 * doc/xml/manual/strings.xml: Adjust tolower example to avoid
4516 undefined behaviour.
4517 * doc/xml/manual/test.xml: Update outdated notes on VERIFY in tests.
4518 * doc/html/*: Regenerate.
4520 2018-04-10 Jonathan Wakely <jwakely@redhat.com>
4522 * doc/xml/faq.xml: Update links to archived copy of SGI STL docs.
4523 * doc/xml/manual/backwards_compatibility.xml: Likewise.
4524 * doc/xml/manual/containers.xml: Likewise.
4525 * doc/xml/manual/debug_mode.xml: Likewise.
4526 * doc/xml/manual/extensions.xml: Likewise.
4527 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise.
4528 * doc/xml/manual/using.xml: Likewise.
4529 * doc/xml/manual/utilities.xml: Likewise.
4532 * src/c++11/Makefile.am [ENABLE_DUAL_ABI]: Add special rules for
4533 cxx11-ios_failure.cc to rewrite type info for __ios_failure.
4534 * src/c++11/Makefile.in: Regenerate.
4535 * src/c++11/cxx11-ios_failure.cc (__ios_failure, __iosfail_type_info):
4537 [_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here.
4538 * src/c++11/ios.cc (__throw_ios_failure): Remove definition.
4539 * src/c++98/ios_failure.cc (__construct_ios_failure)
4540 (__destroy_ios_failure, is_ios_failure_handler): New functions.
4541 [!_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here.
4542 * testsuite/27_io/ios_base/failure/dual_abi.cc: New.
4543 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Revert changes to
4544 handler types, to always catch std::ios_base::failure.
4545 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
4546 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
4547 exceptions_failbit.cc: Likewise.
4548 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
4549 exceptions_failbit.cc: Likewise.
4550 * testsuite/27_io/basic_istream/extractors_other/char/
4551 exceptions_null.cc: Likewise.
4552 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
4553 exceptions_null.cc: Likewise.
4554 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
4555 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
4556 * testsuite/27_io/basic_ostream/inserters_other/char/
4557 exceptions_null.cc: Likewise.
4558 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
4559 exceptions_null.cc: Likewise.
4560 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
4562 2018-04-05 Jonathan Wakely <jwakely@redhat.com>
4564 * include/std/variant (_VARIANT_RELATION_FUNCTION_TEMPLATE): Qualify
4565 __get calls to avoid ADL and avoid ambiguity due to Clang bug.
4567 2018-04-03 Jonathan Wakely <jwakely@redhat.com>
4570 * include/std/variant (_Move_assign_base::operator=): Fix incorrect
4572 * testsuite/20_util/variant/85183.cc: New.
4574 2018-03-26 Jonathan Wakely <jwakely@redhat.com>
4576 * include/std/variant (__get): Qualify calls to avoid ADL.
4577 (__select_index): Adjust whitespace.
4578 (variant): Add using-declaration to workaround Clang bug.
4580 2018-03-22 Jonathan Wakely <jwakely@redhat.com>
4583 * include/bits/stl_function.h (greater::__not_overloaded)
4584 (less::__not_overloaded, greater_equal::__not_overloaded)
4585 (less_equal::__not_overloaded): Fix ambiguous specializations.
4586 * testsuite/20_util/function_objects/comparisons_pointer.cc: Add
4587 tests for type with overloaded operators.
4589 2018-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4592 * testsuite/experimental/memory_resource/resource_adaptor.cc:
4593 xfail execution on 32-bit Solaris/x86.
4595 2018-03-21 Jonathan Wakely <jwakely@redhat.com>
4597 * testsuite/20_util/function_objects/comparisons_pointer.cc: Use
4598 VERIFY instead of assert.
4599 * testsuite/20_util/hash/84998.cc: New test.
4600 * testsuite/23_containers/vector/cons/destructible_debug_neg.cc: New
4601 copy of test adjusted for Debug Mode.
4602 * testsuite/23_containers/vector/cons/destructible_neg.cc: Do not run
4605 2018-03-20 François Dumont <fdumont@gcc.gnu.org>
4608 * include/bits/stl_bvector.h: Fix std::hash friend declaration.
4609 * include/std/bitset: Likewise.
4610 * include/bits/stl_map.h (std::map<>): Fix _Rb_tree_merge_helper friend
4612 * include/bits/stl_multimap.h (std::multimap<>): Likewise.
4613 * include/bits/stl_multiset.h (std::multiset<>): Likewise.
4614 * include/bits/stl_set.h (std::set<>): Likewise.
4615 * include/bits/unordered_map.h (std::unordered_map<>): Fix
4616 _Hash_merge_helper friend declaration.
4617 (std::unordered_multimap<>): Likewise.
4618 * include/bits/unordered_set.h (std::unordered_set<>): Likewise.
4619 (std::unordered_multiset<>): Likewise.
4621 2018-03-19 Gerald Pfeifer <gerald@pfeifer.com>
4623 * doc/xml/api.xml: www.fsf.org has moved to https. Also omit
4624 trailing slash for domain level link.
4625 * doc/xml/faq.xml: Ditto.
4626 * doc/xml/manual/appendix_free.xml (software): Ditto.
4627 * doc/xml/manual/intro.xml: Ditto.
4628 * doc/xml/manual/spine.xml: Ditto.
4629 * doc/xml/spine.xml: Ditto.
4631 2018-03-19 Gerald Pfeifer <gerald@pfeifer.com>
4633 * doc/xml/manual/documentation_hacking.xml: Adjust link to
4636 2018-03-17 Jonathan Wakely <jwakely@redhat.com>
4638 * testsuite/20_util/function_objects/comparisons_pointer.cc: Adjust
4639 to compile as C++98.
4641 2018-03-14 Jonathan Wakely <jwakely@redhat.com>
4644 * include/bits/stl_function.h (greater<_Tp*>, less<_Tp*>)
4645 (greater_equal<_Tp*>, less_equal<_Tp>*): Add partial specializations
4646 to ensure total order for pointers.
4647 (greater<void>, less<void>, greater_equal<void>, less_equal<void>):
4648 Add operator() overloads for pointer arguments and make generic
4649 overloads dispatch to new _S_cmp functions when comparisons would
4650 use built-in operators for pointers.
4651 * testsuite/20_util/function_objects/comparisons_pointer.cc: New.
4653 2018-03-12 Jonathan Wakely <jwakely@redhat.com>
4657 * crossconfig.m4: Check for aligned_alloc etc. on freebsd and mingw32.
4658 * configure: Regenerate.
4659 * include/c_global/cstdlib [_GLIBCXX_HAVE_ALIGNED_ALLOC]
4660 (aligned_alloc): Add using-declaration.
4661 * testsuite/18_support/aligned_alloc/aligned_alloc.cc: New test.
4663 2018-03-09 François Dumont <fdumont@gcc.gnu.org>
4665 * python/libstdcxx/v6/printers.py (build_libstdcxx_dictionary):
4666 Fix std::_Fwd_list_iterator and std::_Fwd_list_const_iterator printers
4669 2018-03-09 Jonathan Wakely <jwakely@redhat.com>
4672 * include/std/variant (get<_Tp, _Types...>, get_if<_Tp, _Types...>):
4673 Qualify calls to get<_Np, Types...> and get_if<_Np, _Types...>.
4675 src/filesystem/ops.cc (create_dir): Pass error_code to is_directory.
4676 src/filesystem/std-ops.cc (create_dir): Likewise.
4678 2018-03-08 François Dumont <fdumont@gcc.gnu.org>
4680 * python/libstdcxx/v6/printers.py (NodeIteratorPrinter): New.
4681 (StdListIteratorPrinter): Inherit from latter.
4682 (StdFwdListIteratorPrinter): New, inherit from latter.
4683 (StdDebugIteratorPrinter.to_string): Use non-debug iterator printer
4684 when iterator has no associated container.
4685 (build_libstdcxx_dictionary): Add __gnu_cxx::_Fwd_list_iterator and
4686 __gnu_cxx::_Fwd_list_const_iterator printers. Remove __norm namespace
4688 * testsuite/libstdc++-prettyprinters/debug.cc: Adapt.
4689 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Adapt.
4691 2018-03-06 Ville Voutilainen <ville.voutilainen@gmail.com>
4694 * include/std/optional (_Optional_payload): Split into multiple
4695 specializations that can handle different cases of trivial or
4696 non-trivial assignment operators.
4697 * testsuite/20_util/optional/84601.cc: New.
4698 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
4700 2018-03-02 Jonathan Wakely <jwakely@redhat.com>
4703 * include/bits/parse_numbers.h (_Number_help): Add partial
4704 specialization to handle digit separators. Adjust partial
4705 specialization for recursion temrination to require _Pow == 1ULL.
4706 * testsuite/20_util/duration/literals/84671.cc: New
4708 2018-02-27 Ville Voutilainen <ville.voutilainen@gmail.com>
4710 Implement the missing bits of LWG 2769
4711 * include/std/any (any_cast(const any&)): Add static_assert.
4712 (any_cast(any&)): Likewise.
4713 (any_cast(any&&)): Likewise, and remove the handling
4714 for copyable-but-not-movable type.
4715 * testsuite/20_util/any/misc/any_cast.cc: Adjust.
4716 * testsuite/20_util/any/misc/any_cast_neg.cc: Likewise, and
4719 2018-02-23 Jonathan Wakely <jwakely@redhat.com>
4722 * include/std/thread (thread::__make_invoker): Construct tuple
4723 directly instead of using make_tuple.
4724 * testsuite/30_threads/async/84532.cc: New.
4725 * testsuite/30_threads/thread/84532.cc: New.
4727 2018-02-20 François Dumont <fdumont@gcc.gnu.org>
4729 * include/ext/aligned_buffer.h [_GLIBCXX_INLINE_VERSION]
4730 (template<> __aligned_buffer): Define as __aligned_membuf alias.
4732 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
4735 * configure: Regenerate.
4737 2018-02-15 Jonathan Wakely <jwakely@redhat.com>
4740 * configure.ac (INCLUDE_DIR_NOTPARALLEL): Define.
4741 * configure: Regenerate.
4742 * include/Makefile.am (INCLUDE_DIR_NOTPARALLEL): Add .NOTPARALLEL when
4744 * include/Makefile.in: Regenerate.
4746 2018-01-29 Jonathan Wakely <jwakely@redhat.com>
4749 * testsuite/26_numerics/random/chi_squared_distribution/83833.cc:
4750 Add -ffloat-store to options for m68k and ia32.
4752 * doc/xml/faq.xml: Update copyright years.
4753 * doc/html/*: Regenerate.
4756 * include/std/any (any::__do_emplace): Only set _M_manager after
4757 constructing the contained object.
4758 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust dg-error line.
4759 * testsuite/20_util/any/modifiers/83658.cc: New test.
4761 2018-01-25 Jonathan Wakely <jwakely@redhat.com>
4764 * include/c_global/cstddef (__byte_operand): Define primary template.
4765 * testsuite/18_support/byte/81076.cc: New test.
4767 2018-01-19 Christophe Lyon <christophe.lyon@linaro.org>
4769 * testsuite/ext/special_functions/airy_ai/check_nan.cc: Fix
4770 dg-options and dg-add-options order.
4771 * testsuite/ext/special_functions/airy_bi/check_nan.cc: Likewise.
4772 * testsuite/ext/special_functions/conf_hyperg/check_nan.cc:
4774 * testsuite/ext/special_functions/hyperg/check_nan.cc: Likewise.
4775 * testsuite/special_functions/01_assoc_laguerre/check_nan.cc:
4777 * testsuite/special_functions/02_assoc_legendre/check_nan.cc:
4779 * testsuite/special_functions/03_beta/check_nan.cc: Likewise.
4780 * testsuite/special_functions/04_comp_ellint_1/check_nan.cc:
4782 * testsuite/special_functions/05_comp_ellint_2/check_nan.cc:
4784 * testsuite/special_functions/06_comp_ellint_3/check_nan.cc:
4786 * testsuite/special_functions/06_comp_ellint_3/pr66689.cc:
4788 * testsuite/special_functions/07_cyl_bessel_i/check_nan.cc:
4790 * testsuite/special_functions/08_cyl_bessel_j/check_nan.cc:
4792 * testsuite/special_functions/09_cyl_bessel_k/check_nan.cc:
4794 * testsuite/special_functions/10_cyl_neumann/check_nan.cc:
4796 * testsuite/special_functions/11_ellint_1/check_nan.cc: Likewise.
4797 * testsuite/special_functions/12_ellint_2/check_nan.cc: Likewise.
4798 * testsuite/special_functions/13_ellint_3/check_nan.cc: Likewise.
4799 * testsuite/special_functions/13_ellint_3/pr66689.cc: Likewise.
4800 * testsuite/special_functions/14_expint/check_nan.cc: Likewise.
4801 * testsuite/special_functions/15_hermite/check_nan.cc: Likewise.
4802 * testsuite/special_functions/16_laguerre/check_nan.cc: Likewise.
4803 * testsuite/special_functions/17_legendre/check_nan.cc: Likewise.
4804 * testsuite/special_functions/18_riemann_zeta/check_nan.cc:
4806 * testsuite/special_functions/19_sph_bessel/check_nan.cc:
4808 * testsuite/special_functions/20_sph_legendre/check_nan.cc:
4810 * testsuite/special_functions/21_sph_neumann/check_nan.cc:
4813 2018-01-18 Uros Bizjak <ubizjak@gmail.com>
4815 * configure.ac (AC_CHECK_HEADERS): Add linux/types.h. Conditionally
4816 include linux/types.h when checking linux/random.h header.
4817 * config.h.in: Regenerate.
4819 * src/c++11/random.cc: Conditionally include linux/types.h.
4821 2018-01-16 Eric Botcazou <ebotcazou@adacore.com>
4823 * testsuite/17_intro/names.cc: Undefine 'y' on SPARC/Linux.
4825 2018-01-16 Jonathan Wakely <jwakely@redhat.com>
4828 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Replace std::c[a-g]* wildcard
4829 pattern with exact match for std::cerr.
4831 2018-01-15 Jonathan Wakely <jwakely@redhat.com>
4834 * include/bits/random.h (chi_squared_distribution::param): Update
4835 gamma distribution parameter.
4836 * testsuite/26_numerics/random/chi_squared_distribution/83833.cc: New
4840 * include/std/type_traits (has_unique_object_representations_v): Add
4842 * testsuite/20_util/has_unique_object_representations/value.cc: Check
4845 2018-01-15 Ville Voutilainen <ville.voutilainen@gmail.com>
4847 Make optional conditionally
4848 trivially_{copy,move}_{constructible,assignable}
4849 * include/std/optional (_Optional_payload): Fix the comment in
4850 the class head and turn into a primary and one specialization.
4851 (_Optional_payload::_M_engaged): Strike the NSDMI.
4852 (_Optional_payload<_Tp, false>::operator=(const _Optional_payload&)):
4854 (_Optional_payload<_Tp, false>::operator=(_Optional_payload&&)):
4856 (_Optional_payload<_Tp, false>::_M_get): Likewise.
4857 (_Optional_payload<_Tp, false>::_M_reset): Likewise.
4858 (_Optional_base_impl): Likewise.
4859 (_Optional_base): Turn into a primary and three specializations.
4860 (optional(nullopt)): Change the base init.
4861 * testsuite/20_util/optional/assignment/8.cc: New.
4862 * testsuite/20_util/optional/cons/trivial.cc: Likewise.
4863 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
4865 2018-01-15 Jonathan Wakely <jwakely@redhat.com>
4868 * python/libstdcxx/v6/printers.py (strip_inline_namespaces): New.
4869 (get_template_arg_list): New.
4870 (StdVariantPrinter._template_args): Remove, use get_template_arg_list
4872 (TemplateTypePrinter): Rewrite to work with gdb.Type objects instead
4873 of strings and regular expressions.
4874 (add_one_template_type_printer): Adapt to new TemplateTypePrinter.
4875 (FilteringTypePrinter): Add docstring. Match using startswith. Use
4876 strip_inline_namespaces instead of strip_versioned_namespace.
4877 (add_one_type_printer): Prepend namespace to match argument.
4878 (register_type_printers): Add type printers for char16_t and char32_t
4879 string types and for types using cxx11 ABI. Update calls to
4880 add_one_template_type_printer to provide default argument dicts.
4881 * testsuite/libstdc++-prettyprinters/80276.cc: New test.
4882 * testsuite/libstdc++-prettyprinters/whatis.cc: Remove tests for
4883 basic_string<unsigned char> and basic_string<signed char>.
4884 * testsuite/libstdc++-prettyprinters/whatis2.cc: Duplicate whatis.cc
4885 to test local variables, without overriding _GLIBCXX_USE_CXX11_ABI.
4887 2018-01-14 Andreas Schwab <schwab@linux-m68k.org>
4890 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
4892 2018-01-13 Tim Shen <timshen@google.com>
4895 * include/bits/regex.tcc (regex_replace): Fix escaping in sed.
4896 * testsuite/28_regex/algorithms/regex_replace/char/pr83601.cc: Tests.
4897 * testsuite/28_regex/algorithms/regex_replace/wchar_t/pr83601.cc: Tests.
4899 2018-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4902 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc:
4903 Remove dg-xfail-run-if.
4905 2018-01-10 François Dumont <fdumont@gcc.gnu.org>
4907 * include/bits/forward_list.h
4908 (_Fwd_list_node_base(_Fwd_list_node_base&&)): New.
4909 (_Fwd_list_node_base& operator=(_Fwd_list_node_base&&)): New.
4910 (_Fwd_list_node_base(const _Fwd_list_node_base&)): Explicit delete.
4911 (_Fwd_list_node_base& operator=(const _Fwd_list_node_base&)): Likewise.
4912 (_Fwd_list_impl()): Add noexcept qualification.
4913 (_Fwd_list_impl(const _Node_alloc_type&)): Delete.
4914 (_Fwd_list_impl(_Fwd_list_impl&&)): New, default.
4915 (_Fwd_list_impl(_Fwd_list_impl&&, _Node_alloc_type&&)): New.
4916 (_Fwd_list_base()): Default.
4917 (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&, true_type)): New.
4918 (_Fwd_list_base(_Fwd_list_base&&)): Default.
4919 (forward_list<>()): Default.
4920 (forward_list<>(forward_list&&)): Default.
4921 (forward_list(forward_list&&, _Node_alloc_type&&, false_type)): New.
4922 (forward_list(forward_list&&, _Node_alloc_type&&, true_type)): New.
4923 (forward_list(forward_list&&, const _Alloc&)): Adapt to use latters.
4924 * include/bits/forward_list.tcc
4925 (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&)): Adapt to use
4926 _M_impl._M_head move assignment.
4927 (forward_list<>::merge(forward_list<>&&, _Comp)): Likewise.
4928 * testsuite/23_containers/forward_list/allocator/default_init.cc: New.
4930 2018-01-09 Jonathan Wakely <jwakely@redhat.com>
4933 * python/libstdcxx/v6/printers.py (SharedPointerPrinter)
4934 (UniquePointerPrinter): Print correct template argument, not type of
4936 (TemplateTypePrinter._recognizer.recognize): Handle failure to lookup
4938 * testsuite/libstdc++-prettyprinters/cxx11.cc: Test unique_ptr of
4940 * testsuite/libstdc++-prettyprinters/cxx17.cc: Test shared_ptr and
4941 weak_ptr of array types.
4943 2018-01-09 François Dumont <fdumont@gcc.gnu.org>
4946 * include/bits/hashtable_policy.h
4947 (__distance_fwd(_Iterator, _Iterator, input_iterator_tag)): Return 1 if
4949 (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, true_type)): New.
4950 (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, false_type)):
4951 Add false_type parameter.
4952 (_Insert_base::insert): Adapt.
4953 * include/bits/hashtable.h (_Hashtable::operator=(initializzr_list<>)):
4955 (_Hashtable::_M_insert(_Arg&&, const _NodeGen&, true_type, size_t)):
4956 Add __n_elt parameter, defaulted to 1.
4957 (_Hashtable::_M_insert_unique_node): Likewise. Use it to call rehash
4958 policy _M_need_rehash.
4959 (_Hashtable::_M_merge_unique): Pass target number of elements to add to
4960 produce only 1 rehash if necessary.
4961 * testsuite/23_containers/unordered_map/insert/83709.cc: New.
4962 * testsuite/23_containers/unordered_set/insert/83709.cc: New.
4964 2018-01-09 Juraj Oršulić <juraj.orsulic@fer.hr>
4965 Jonathan Wakely <jwakely@redhat.com>
4967 PR libstdc++/59253 (partial)
4968 * python/libstdcxx/v6/printers.py (SmartPtrIterator): Common iterator
4969 type for pointer stored by shared_ptr, weak_ptr and unique_ptr.
4970 (SharedPointerPrinter, UniquePointerPrinter): Treat stored values as
4972 * testsuite/libstdc++-prettyprinters/cxx11.cc: Update expected output
4973 of unique_ptr printer.
4974 * testsuite/libstdc++-prettyprinters/shared_ptr.cc: Update expected
4975 output of shared_ptr printer.
4977 2018-01-05 Jonathan Wakely <jwakely@redhat.com>
4980 * src/filesystem/ops.cc (remove(const path&, error_code&)): Remove
4981 unnecessary symlink_status call.
4982 (remove_all(const path&, error_code&)): Use filesystem::remove.
4983 * src/filesystem/std-ops.cc: Likewise.
4986 * src/filesystem/std-ops.cc (do_copy_file): Use non-null offset with
4990 * src/filesystem/ops.cc (remove(const path&, error_code&)): Do not
4991 report an error for ENOENT.
4992 (remove_all(const path&)): Fix type of result variable.
4993 (remove_all(const path&, error_code&)): Use non-throwing increment
4994 for directory iterator. Call POSIX remove directly to avoid redundant
4995 calls to symlink_status. Do not report errors for ENOENT.
4996 * src/filesystem/std-ops.cc: Likewise.
4997 * testsuite/27_io/filesystem/operations/remove_all.cc: Test throwing
4999 * testsuite/experimental/filesystem/operations/remove_all.cc:
5002 2018-01-04 Jonathan Wakely <jwakely@redhat.com>
5005 * src/filesystem/ops.cc (remove(const path&, error_code&))): Remove
5006 redundant call to ec.clear().
5007 (remove_all(const path&, error_code&))): Do not return an error for
5009 * src/filesystem/std-ops.cc: Likewise.
5010 * testsuite/27_io/filesystem/operations/remove.cc: New test.
5011 * testsuite/27_io/filesystem/operations/remove_all.cc: Fix expected
5012 results for non-existent paths.
5013 * testsuite/experimental/filesystem/operations/remove.cc: New test.
5014 * testsuite/experimental/filesystem/operations/remove_all.cc: Fix
5015 expected results for non-existent paths.
5017 * include/bits/fs_ops.h (exists(const path&, error_code&))): Only
5018 check status_known once.
5019 * include/experimental/bits/fs_ops.h: Likewise.
5022 * include/std/functional (__is_byte_like): New trait.
5023 (__is_std_equal_to): Remove.
5024 (__boyer_moore_base_t): Use __is_byte_like instead of
5026 * include/experimental/functional (__is_std_equal_to): Remove.
5027 (__boyer_moore_base_t): Use __is_byte_like instead of
5029 * testsuite/20_util/function_objects/83607.cc: New test.
5031 2018-01-03 Ville Voutilainen <ville.voutilainen@gmail.com>
5033 Protect optional's deduction guide with the feature macro
5034 * include/std/optional: Use the feature macro.
5036 2018-01-03 Jakub Jelinek <jakub@redhat.com>
5038 Update copyright years.
5040 Copyright (C) 2018 Free Software Foundation, Inc.
5042 Copying and distribution of this file, with or without modification,
5043 are permitted in any medium without royalty provided the copyright
5044 notice and this notice are preserved.