1 2017-06-16 Jonathan Wakely <jwakely@redhat.com>
3 * include/bits/shared_ptr.h (get_deleter): Add overload matching
5 * include/bits/shared_ptr_base.h (__shared_ptr): Declare new
6 get_deleter overload as a friend.
7 * testsuite/20_util/shared_ptr/misc/get_deleter.cc: New.
9 2017-06-16 Jakub Jelinek <jakub@redhat.com>
12 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
13 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
14 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
16 2017-06-16 Jonathan Wakely <jwakely@redhat.com>
18 * include/bits/locale_conv.h (wbuffer_convert::sync): Fix condition.
19 * testsuite/22_locale/conversions/buffer/2.cc: New.
22 * acinclude.m4: Bump libtool_VERSION.
23 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
24 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
25 * config/abi/pre/gnu.ver: Add wstring constructor symbols to
26 GLIBCXX_3.4.24 version and move random_device::_M_get_entropy() symbol
27 to new GLIBCXX_3.4.25 version.
28 * doc/xml/manual/abi.xml: Document new versions.
29 * doc/html/*: Regenerate.
30 * testsuite/21_strings/basic_string/cons/char/8.cc: Use base object
31 constructors to ensure required symbols are exported.
32 * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise.
33 * testsuite/util/testsuite_abi.cc: Add new version.
35 * include/bits/locale_conv.h (wbuffer_convert::_M_put): Add missing
37 * testsuite/21_strings/basic_string_view/operations/copy/char/1.cc:
39 * testsuite/21_strings/basic_string_view/operations/copy/wchar_t/1.cc:
41 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc: Add
42 missing return statements.
43 * testsuite/23_containers/unordered_map/modifiers/insert_or_assign.cc:
45 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
47 * testsuite/special_functions/14_expint/pr68397.cc: Likewise.
49 2017-06-16 François Dumont <fdumont@gcc.gnu.org>
51 * include/bits/stl_bvector.h
52 (__fill_bvector(_Bit_type*, unsigned int, unsigned int, bool)):
54 (std::fill(_Bit_iterator, _Bit_iterator, bool)): Adapt.
55 (_Bvector_impl_data): New.
56 (_Bvector_impl): Inherits from latter.
57 (_Bvector_impl(_Bit_alloc_type&&)): Delete.
58 (_Bvector_impl(_Bvector_impl&&)): New, default.
59 (_Bvector_base()): Default.
60 (_Bvector_base(_Bvector_base&&)): Default.
61 (_Bvector_base::_M_move_data(_Bvector_base&&)): New.
62 (vector(vector&&, const allocator_type&)): Use latter.
63 (vector<bool>::operator=(vector&&)): Likewise.
64 (vector<bool>::vector()): Default.
65 (vector<bool>::vector(vector&&)): Default.
66 (vector<bool>::assign(_InputIterator, _InputIterator)): Use
68 (vector<bool>::assign(initializer_list<bool>)): Likewise.
69 (vector<bool>::_M_initialize_value(bool)): New.
70 (vector<bool>(size_type, const bool&, const allocator_type&)): Use
72 (vector<bool>::_M_initialize_dispatch(_Integer, _Integer, __true_type)):
74 (vector<bool>::_M_fill_assign(size_t, bool)): Likewise.
76 2017-06-15 François Dumont <fdumont@gcc.gnu.org>
78 * src/c++98/tree.cc [!_GLIBCXX_INLINE_VERSION]
79 (_Rb_tree_rotate_left, _Rb_tree_rotate_right): Delete.
81 2017-06-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
83 * testsuite: Add dg-require-effective-target pthread to -pthread
85 Remove explicit target lists from dg-do and dg-options.
87 * testsuite/30_threads/async/forced_unwind.cc: Remove explit
88 target list from dg-options.
89 * testsuite/30_threads/packaged_task/forced_unwind.cc: Likewise.
91 * 30_threads/shared_mutex/cons/1.cc: Likewise.
92 Pass -pthread for all targets.
93 * 30_threads/shared_mutex/try_lock/1.cc: Likewise.
94 * 30_threads/shared_mutex/try_lock/2.cc: Likewise.
95 * 30_threads/shared_mutex/unlock/1.cc: Likewise.
97 * testsuite/30_threads/this_thread/57060.cc: Require c++11 via
98 dg-require-effective-target.
100 2017-06-14 Jonathan Wakely <jwakely@redhat.com>
102 * doc/xml/manual/test.xml: Correct instructions on running tests.
103 * testsuite/21_strings/basic_string/cons/char/deduction.cc: Adjust to
104 pass when -D_GLIBCXX_USE_CXX11_ABI=0 added to RUNTESTFLAGS.
105 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
107 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Likewise.
108 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
109 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
110 exceptions_failbit.cc: Likewise.
111 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
112 exceptions_failbit.cc: Likewise.
113 * testsuite/27_io/basic_istream/extractors_other/char/
114 exceptions_null.cc: Likewise.
115 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
116 exceptions_null.cc: Likewise.
117 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
118 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
119 * testsuite/27_io/basic_ostream/inserters_other/char/
120 exceptions_null.cc: Likewise.
121 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
122 exceptions_null.cc: Likewise.
123 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
125 2017-06-12 Pedro Alves <palves@redhat.com>
127 * doc/xml/manual/status_cxx2017.xml: Update C++17 constexpr
129 * doc/html/*: Regenerate.
131 * include/bits/char_traits.h (_GLIBCXX_ALWAYS_INLINE): Define if
133 (__cpp_lib_constexpr_char_traits): Uncomment.
134 (__constant_string_p, __constant_char_array_p): New.
135 (std::char_traits<char>, std::char_traits<wchar_t>): Add
136 _GLIBCXX17_CONSTEXPR on compare, length and find and use
137 __constant_string_p, __constant_char_array_p and
138 __builtin_constant_p to defer to __gnu_cxx::char_traits at compile
141 * testsuite/21_strings/char_traits/requirements/
142 constexpr_functions_c++17.cc: Uncomment
143 __cpp_lib_constexpr_char_traits tests. Uncomment
144 test_compare<char>, test_length<char>, test_find<char>,
145 test_compare<wchar_t>, test_length<wchar_t> and test_find<wchar_t>
148 2017-06-12 François Dumont <fdumont@gcc.gnu.org>
150 * include/bits/stl_tree.h (_Rb_tree_impl()): Restore _Node_allocator
152 * testsuite/util/testsuite_allocator.h
153 (__gnu_test::default_init_allocator<>) New.
154 * testsuite/23_containers/set/allocator/default_init.cc: New.
155 * testsuite/23_containers/map/allocator/default_init.cc: New.
157 2017-06-12 Jonathan Wakely <jwakely@redhat.com>
160 * src/c++11/thread.cc (execute_native_thread_routine): Remove
161 try-block so that exceptions propagate out of the thread and terminate
162 is called by the exception-handling runtime.
163 (execute_native_thread_routine_compat): Likewise.
164 * testsuite/30_threads/thread/cons/terminate.cc: New.
166 2017-06-09 Jonathan Wakely <jwakely@redhat.com>
168 * doc/xml/manual/intro.xml: Document LWG 2802, 2873 and 2942 changes.
169 * include/bits/shared_ptr.h (shared_ptr): Use rvalues for deleters
171 * include/bits/shared_ptr_base.h (_Sp_ebo_helper, _Sp_counted_deleter
172 (_Sp_counted_deleter::_Impl, __shared_count, __shared_ptr): Likewise.
173 * testsuite/20_util/shared_ptr/cons/lwg2802.cc: New.
175 * include/bits/forward_list.h (forward_list): Add deduction guide.
176 * include/bits/stl_deque.h (deque): Likewise.
177 * include/bits/stl_list.h (list): Likewise.
178 * include/bits/stl_vector.h (vector): Likewise.
179 * testsuite/23_containers/deque/cons/deduction.cc: New.
180 * testsuite/23_containers/forward_list/cons/deduction.cc: New.
181 * testsuite/23_containers/list/cons/deduction.cc: New.
182 * testsuite/23_containers/vector/cons/deduction.cc: New.
184 2017-06-08 Jonathan Wakely <jwakely@redhat.com>
187 * include/bits/std_function.h (function::function(function&&))
188 (function::operator=(funtion&&)): Add noexcept.
189 * testsuite/20_util/function/assign/move.cc: Check for noexcept.
190 * testsuite/20_util/function/cons/move.cc: Likewise.
192 2017-06-07 Jonathan Wakely <jwakely@redhat.com>
194 * include/bits/regex.h (basic_regex): Add deduction guide from P0433.
195 * testsuite/28_regex/basic_regex/ctors/deduction.cc: New.
198 * include/bits/regex.h (basic_regex): Adjust call to __compile_nfa
199 so iterator type is deduced.
200 * include/bits/regex_compiler.h (__compile_nfa): Reorder template
201 parameters to allow iterator type to be deduced.
202 * testsuite/28_regex/basic_regex/ctors/basic/iter.cc: New.
204 * include/bits/alloc_traits.h (__is_allocator, _RequireAllocator):
205 New trait and alias for detecting Allocator-like types.
206 * include/bits/basic_string.h (basic_string): Add deduction guide
208 * include/ext/alloc_traits.h (__gnu_cxx::__alloc_traits): Add template
209 parameter with default template argument that causes substitution
210 failures for types that cannot be allocators.
211 * testsuite/21_strings/basic_string/cons/char/deduction.cc: New.
212 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc: New.
214 2017-06-02 Jonathan Wakely <jwakely@redhat.com>
217 * include/std/variant (__erased_ctor, __erased_assign, __erased_swap)
218 (__erased_hash): Remove constexpr specifier and qualify calls to
220 (__erased_dtor): Remove constexpr specifier and use _Destroy.
222 2017-06-05 Jonathan Wakely <jwakely@redhat.com>
224 * include/bits/stl_iterator_base_funcs.h
225 (__advance<_RandomAccessIterator, _Distance>): Optimize for next/prev
226 cases where incrementing or decrementing a single step.
228 * include/bits/shared_ptr_base.h (__shared_ptr::owner_before)
229 (__weak_ptr::owner_before, _Sp_owner_less::operator()): Add noexcept
230 specifiers as per LWG 2873 and LWG 2942.
231 * testsuite/20_util/owner_less/noexcept.cc: New.
232 * testsuite/20_util/shared_ptr/observers/owner_before.cc: Test
234 * testsuite/20_util/weak_ptr/observers/owner_before.cc: Likewise.
236 2017-06-03 Andreas Schwab <schwab@linux-m68k.org>
238 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
240 2017-06-03 Eric Botcazou <ebotcazou@adacore.com>
242 * src/filesystem/dir.cc (fs::_Dir::advance): Use std::exchange.
244 2017-06-02 Jonathan Wakely <jwakely@redhat.com>
247 * doc/xml/manual/status_cxx2011.xml: Document to_int_type behaviour.
248 * include/bits/char_traits.h (char_traits<char16_t>::to_int_type):
249 Transform eof value to U+FFFD.
250 * testsuite/21_strings/char_traits/requirements/char16_t/eof.cc: New.
251 * testsuite/27_io/basic_streambuf/sgetc/char16_t/80624.cc: New.
252 * testsuite/27_io/basic_streambuf/sputc/char16_t/80624.cc: New.
254 * libsupc++/Makefile.am: Remove custom targets for files that need to
255 be compiled as C++11 or C++14.
256 * libsupc++/Makefile.in: Regenerate.
257 * libsupc++/del_ops.cc: Use pragma to disable -Wsized-deallocation
259 * libsupc++/del_opvs.cc: Likewise.
261 2017-06-02 Richard Biener <rguenther@suse.de>
262 Markus Eisenmann <meisenmann.lba@fh-salzburg.ac.at>
265 * libsupc++/eh_alloc.cc (pool::free): Keep list properly
266 sorted and add missing freelist item merging cases.
268 2017-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
270 (GLIBCXX_CROSSCONFIG): Handle *-solaris* like *-linux* etc.
271 Remove *-solaris* section.
272 * configure: Regenerate.
274 2017-05-31 Jonathan Wakely <jwakely@redhat.com>
277 * include/bits/stl_bvector.h (vector<bool>::_M_initialize): Avoid
278 null pointer dereference when size is zero.
279 * testsuite/23_containers/vector/bool/80893.cc: New.
280 * testsuite/util/testsuite_allocator.h (PointerBase::PointerBase):
281 Add non-explicit constructor from nullptr.
282 (PointerBase::derived() const): Add const-qualified overload.
284 2017-05-20 Tim Shen <timshen@google.com>
287 * include/std/variant(variant::variant): SFINAE on is_same first.
288 * testsuite/20_util/variant/any.cc: test case.
290 2017-05-24 Jonathan Wakely <jwakely@redhat.com>
292 * src/c++11/random.cc (random_device::_M_getentropy): Use __CHAR_BIT__
293 instead of fixed number of bits.
295 2017-05-24 Andreas Schwab <schwab@suse.de>
297 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
298 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Likewise.
300 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
301 Jonathan Wakely <jwakely@redhat.com>
304 * acinclude.m4: Bump libtool_VERSION.
305 * config/abi/pre/gnu.ver: Create GLIBCXX_3.4.24 with new symbol.
306 * config.h.in: Regenerate.
307 * configure: Regenerate.
308 * configure.ac: Add test for <linux/random.h>.
309 * doc/xml/manual/abi.xml: Document new library version.
310 * include/bits/random.h (random_device::entropy)
311 [_GLIBCXX_USE_RANDOM_TR1]: Add call to new _M_getentropy member.
312 (random_device::_M_getentropy): Declare.
313 * src/c++11/random.cc (random_device::_M_getentropy): Define.
314 * testsuite/util/testsuite_abi.cc: Add GLIBCXX_3.4.24 to known
315 versions, and make it the latest version.
317 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
320 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Add
321 explicit conversion to avoid signed overflow.
323 2017-05-19 Jonathan Wakely <jwakely@redhat.com>
326 * include/bits/stl_algo.h (search): Add new overload for C++17.
327 * testsuite/25_algorithms/search/searcher.cc: New.
329 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
332 * include/std/functional (_Mem_fn_traits_base): Add specializations
333 for noexcept member function types.
334 * testsuite/20_util/function_objects/mem_fn/80478.cc: New test.
336 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
338 * doc/xml/manual/policy_data_structures.xml: Fix typo.
339 * doc/xml/manual/test_policy_data_structures.xml: Likewise.
340 * doc/html/*: Regenerate.
342 * doc/xml/manual/abi.xml: Document latest library versions.
343 * doc/xml/manual/build_hacking.xml: Document requirement to update
344 abi.xml when bumping library versions.
345 * doc/html/*: Regenerate.
347 2017-05-17 Jonathan Wakely <jwakely@redhat.com>
349 * include/bits/refwrap.h: Fix Doxygen warning.
350 * include/bits/specfun.h: Likewise.
351 * include/bits/std_function.h: Likewise.
352 * include/bits/stl_algo.h (set_union, set_intersection)
353 (set_difference, set_symmetric_difference): Add Doxygen @param tags
354 for output iterator parameters.
355 * include/bits/stl_iterator.h (inserter): Add Doxygen @param tag for
357 * include/std/mutex (try_lock, lock): Change Mutex to Lockable in
360 2017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
362 Implement new C++ intrinsics __is_assignable and __is_constructible.
363 * include/std/type_traits (__do_is_static_castable_impl): Remove.
364 (__is_static_castable_impl, __is_static_castable_safe): Likewise.
365 (__is_static_castable, __do_is_direct_constructible_impl): Likewise.
366 (__is_direct_constructible_impl): Likewise.
367 (__is_direct_constructible_new_safe): Likewise.
368 (__is_base_to_derived_ref, __is_lvalue_to_rvalue_ref): Likewise.
369 (__is_direct_constructible_ref_cast): Likewise.
370 (__is_direct_constructible_new, __is_direct_constructible): Likewise.
371 (__do_is_nary_constructible_impl): Likewise.
372 (__is_nary_constructible_impl, __is_nary_constructible): Likewise.
373 (__is_constructible_impl): Likewise.
374 (is_constructible): Call the intrinsic.
375 (__is_assignable_helper): Remove.
376 (is_assignable): Call the intrinsic.
377 (is_trivially_constructible): Likewise.
378 (__is_trivially_copy_constructible_impl): New.
379 (is_trivially_copy_constructible): Use it.
380 (__is_trivially_move_constructible_impl): New.
381 (is_trivially_move_constructible): Use it.
382 (is_trivially_assignable): Call the intrinsic.
383 (__is_trivially_copy_assignable_impl): New.
384 (is_trivially_copy_assignable): Use it.
385 (__is_trivially_move_assignable_impl): New.
386 (is_trivially_move_assignable): Use it.
387 (testsuite/20_util/declval/requirements/1_neg.cc): Adjust.
388 (testsuite/20_util/is_trivially_copy_assignable/value.cc):
390 (testsuite/20_util/is_trivially_copy_constructible/value.cc): Likewise.
391 (testsuite/20_util/is_trivially_move_assignable/value.cc): Likewise.
392 (testsuite/20_util/is_trivially_move_constructible/value.cc): Likewise.
393 (testsuite/20_util/make_signed/requirements/typedefs_neg.cc): Adjust.
394 (testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc):
397 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
399 * testsuite/experimental/source_location/1.cc: Change expected result
400 for source_location::current() used in default member initializer.
402 * doc/xml/manual/status_cxx2017.xml: Update status table.
403 * doc/html/*: Regenerate.
404 * include/Makefile.am: Add new header.
405 * include/Makefile.in: Regenerate.
406 * include/experimental/source_location: New header implementing N4519.
407 * testsuite/experimental/source_location/1.cc: New test.
410 * include/bits/shared_ptr_base.h [!__cpp_rtti] (type_info): Declare
411 outside versioned namespace.
413 * configure: Regenerate.
415 2017-05-16 Marc Glisse <marc.glisse@inria.fr>
417 * include/std/optional (_Optional_base::_M_get): Check precondition.
418 * testsuite/20_util/optional/cons/value_neg.cc: Update line numbers.
420 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
422 * doc/xml/manual/appendix_contributing.xml: Link to test docs and
423 note higher DejaGnu version requirement.
424 * doc/html/*: Regenerate.
426 * doc/xml/manual/appendix_contributing.xml: Link to the list of bad
428 * doc/html/*: Regenerate.
430 2017-05-15 Jonathan Wakely <jwakely@redhat.com>
433 * include/bits/node_handle.h (_Node_insert_return): Reorder members.
434 (tuple_size, tuple_element): Remove partial specializations.
435 * include/bits/stl_tree.h (_Rb_tree::insert_return_type): Use
436 const_iterator for std::set.
437 * testsuite/23_containers/map/modifiers/extract.cc: New.
438 * testsuite/23_containers/set/modifiers/extract.cc: New.
439 * testsuite/23_containers/unordered_map/modifiers/extract.cc: New.
440 * testsuite/23_containers/unordered_set/modifiers/extract.cc: New.
442 2017-05-12 Jonathan Wakely <jwakely@redhat.com>
445 * include/std/utility (tuple_size<cv T>): Only define partial
446 specializations when tuple_size<T>::value is valid.
447 * testsuite/20_util/tuple/78939.cc: New.
448 * testsuite/20_util/tuple/cv_tuple_size_neg.cc: New.
450 2017-05-11 François Dumont <fdumont@gcc.gnu.org>
452 * include/bits/stl_tree.h [_GLIBCXX_INLINE_VERSION]
453 (_Rb_tree_impl<>): Remove _Is_pod_comparator
456 * include/debug/formatter.h [_GLIBCXX_INLINE_VERSION]
457 (__gnu_debug::_Error_formatter::_Parameter::_M_print_field): Remove.
458 (__gnu_debug::_Error_formatter::_Parameter::_M_print_description):
460 (__gnu_debug::_Error_formatter::_M_format_word): Remove.
461 (__gnu_debug::_Error_formatter::_M_print_word): Remove.
462 (__gnu_debug::_Error_formatter::_M_print_string): Remove.
463 (__gnu_debug::_Error_formatter::_M_get_max_length): Remove.
464 * src/c++11/debug.cc: Adapt.
465 * config/abi/pre/gnu-versioned-namespace.ver: Adapt.
467 2017-05-11 Jonathan Wakely <jwakely@redhat.com>
469 * doc/xml/manual/allocator.xml: Fix ViewCVS URLs.
470 * doc/xml/manual/mt_allocator.xml: Likewise.
471 * doc/html/*: Regenerate.
474 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Define
475 function to get unique fake std::type_info reference.
476 (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Compare to
477 _S_ti() fake reference.
478 (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Share
479 single implementation with or without RTTI enable.
480 [!__cpp_rtti]: Pass fake reference to _M_get_deleter.
481 * testsuite/20_util/shared_ptr/creation/alloc.cc: Change expected
482 allocation and deallocation counts.
483 * testsuite/20_util/shared_ptr/creation/single_allocation.cc: New.
484 * testsuite/20_util/shared_ptr/creation/single_allocation_no_rtti.cc:
487 2017-05-10 François Dumont <fdumont@gcc.gnu.org>
489 Bump version namespace.
490 * config/abi/pre/gnu-versioned-namespace.ver: Bump version namespace
491 from __7 to __8. Bump GLIBCXX_7.0 to GLIBCXX_8.0.
492 * acinclude.m4 (libtool_VERSION): Bump to 8:0:0.
493 * include/bits/c++config: Adapt.
494 * include/bits/regex.h: Adapt.
495 * include/experimental/bits/fs_fwd.h: Adapt.
496 * include/experimental/bits/lfts_config.h: Adapt.
497 * include/std/variant: Adapt.
498 * python/libstdcxx/v6/printers.py: Adapt.
499 * testsuite/libstdc++-prettyprinters/48362.cc: Adapt.
501 * include/bits/stl_algobase.h (std::__iter_swap<false>): Remove
504 2017-05-09 Jason Merrill <jason@redhat.com>
506 * testsuite/24_iterators/container_access.cc (test03): Make il3 static.
508 2017-05-08 Jonathan Wakely <jwakely@redhat.com>
510 * include/std/optional: Use a separate static_assert per condition.
511 * testsuite/20_util/optional/cons/value_neg.cc: Update dg-error line
514 * doc/xml/manual/mt_allocator.xml: Clarify deallocation behaviour.
515 * doc/html/*: Regenerate.
517 2017-05-02 Hugo Beauzée-Luyssen <hugo@beauzee.fr>
520 * config/os/mingw32-w64/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
522 2017-04-29 François Dumont <fdumont@gcc.gnu.org>
524 * testsuite/libstdc++-prettyprinters/48362.cc: Replace a regexp-test
527 2017-04-28 Jonathan Wakely <jwakely@redhat.com>
530 * include/bits/stl_construct.h (_Destroy, _Destroy_n): Add static
531 assertions to ensure type is destructible.
532 (destroy_at, destroy, destroy_n): Move from stl_uninitialized.h.
533 * include/bits/stl_uninitialized.h (destroy_at, destroy, destroy_n):
534 Move to stl_construct.h.
535 * testsuite/20_util/specialized_algorithms/memory_management_tools/
536 destroy_neg.cc: New test.
537 * testsuite/23_containers/vector/cons/destructible_neg.cc: New test.
539 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
540 superfluous "" in dg-error.
542 2017-04-28 Tom de Vries <tom@codesourcery.com>
544 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
545 superfluous '{ target *-*-* }' in dg-(error|warning|message|bogus).
547 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
549 * include/ext/pb_ds/detail/list_update_map_/iterators_fn_imps.hpp
550 (PB_DS_CLASS_C_DEC::end()): Remove redundant const in cast type.
551 * testsuite/util/testsuite_rng.h (twister_rand_gen::get_prob()):
554 2017-04-26 Jonathan Wakely <jwakely@redhat.com>
556 * testsuite/23_containers/deque/allocator/move_assign-2.cc: Improve
557 comment. Ensure first test works because allocator type propagates and
558 not because is_always_equal is true.
559 * testsuite/23_containers/vector/52591.cc: Likewise. Restore original
560 testcase that instantiates the move-assignment operator.
562 2017-04-24 Jonathan Wakely <jwakely@redhat.com>
565 * include/bits/random.tcc (gamma_distribution::operator()): Fix magic
566 number used in loop condition.
569 * include/bits/refwrap.h (ref, cref): Qualify calls.
570 * testsuite/20_util/reference_wrapper/80504.cc: New test.
573 * include/experimental/optional (optional::swap): Fix exception
576 2017-04-21 Jonathan Wakely <jwakely@redhat.com>
579 * include/std/future (_State_baseV2::_Setter::operator()): Remove
580 _S_check calls that are done after the pointer to the shared state is
581 already dereferenced.
582 (_State_baseV2::_Setter<_Res, void>): Define specialization for void
583 as partial specialization so it can be defined within the definition
585 (_State_baseV2::__setter): Call _S_check.
586 (_State_baseV2::__setter(promise<void>*)): Add overload for use by
587 promise<void>::set_value and promise<void>::set_value_at_thread_exit.
588 (promise<T>, promise<T&>, promise<void>): Make _State a friend.
589 (_State_baseV2::_Setter<void, void>): Remove explicit specialization.
590 (promise<void>::set_value, promise<void>::set_value_at_thread_exit):
591 Use new __setter overload.
592 * testsuite/30_threads/promise/members/at_thread_exit2.cc: New test.
593 * testsuite/30_threads/promise/members/set_exception.cc: Test
594 promise<T&> and promise<void> specializations.
595 * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
596 Test for no_state error condition.
597 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
599 * include/backward/auto_ptr.h: Ignore deprecated warnings from use
601 * include/bits/shared_ptr.h: Likewise.
602 * include/bits/shared_ptr_base.h: Likewise.
603 * include/bits/unique_ptr.h: Likewise.
604 * libstdc++-v3/testsuite/20_util/default_delete/48631_neg.cc: Adjust
606 * libstdc++-v3/testsuite/20_util/default_delete/void_neg.cc: Likewise.
607 * libstdc++-v3/testsuite/20_util/unique_ptr/assign/48635_neg.cc:
609 * libstdc++-v3/testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc:
612 2017-04-20 Edward Smith-Rowland <3dw4rd@verizon.net>
614 PR libstdc++/68397 std::tr1::expint fails ... long double arguments.
615 * include/tr1/exp_integral.tcc: Increase iteration limits.
616 * testsuite/tr1/5_numerical_facilities/special_functions/15_expint/
617 pr68397.cc: New test.
618 * testsuite/special_functions/14_expint/pr68397.cc: New test.
620 2017-04-20 Jonathan Wakely <jwakely@redhat.com>
623 * include/std/atomic [!_GLIBCXX_USE_C99_STDINT_TR1] (atomic_int8_t)
624 (atomic_uint8_t, atomic_int16_t, atomic_uint16_t, atomic_int32_t,
625 (atomic_uint32_t, atomic_int64_t, atomic_uint64_t)
626 (atomic_int_least8_t, atomic_uint_least8_t, atomic_int_least16_t)
627 (atomic_uint_least16_t, atomic_int_least32_t, atomic_uint_least32_t)
628 (atomic_int_least64_t, atomic_uint_least64_t, atomic_int_fast8_t)
629 (atomic_uint_fast8_t, atomic_int_fast16_t, atomic_uint_fast16_t)
630 (atomic_int_fast32_t, atomic_uint_fast32_t, atomic_int_fast64_t)
631 (atomic_uint_fast64_t, atomic_intmax_t, atomic_uintmax_t): Don't
634 2017-04-19 Jonathan Wakely <jwakely@redhat.com>
636 * doc/xml/manual/abi.xml: Rephrase one of the references to the
638 * doc/xml/manual/test.xml: Document DejaGnu 1.5.3 requirement.
639 * doc/html/*: Regenerate.
641 * libsupc++/new: Update comment on #endif directive.
644 * include/experimental/bits/fs_dir.h (directory_iterator)
645 (recursive_directory_iterator): Remove noexcept from defaulted
649 * include/std/type_traits (is_aggregate): Change __has_builtin checks.
650 * libsupc++/new (launder): Likewise.
652 2017-04-18 Jonathan Wakely <jwakely@redhat.com>
654 * include/std/functional (default_searcher, __boyer_moore_array_base)
655 (__is_std_equal_to, __boyer_moore_base_t, boyer_moore_searcher)
656 (boyer_moore_horspool_searcher): Remove redundant namespace
658 (default_searcher::operator()): Construct return value early and
659 advance second member in-place.
660 (boyer_moore_horspool_searcher::operator()): Increment random access
661 iterator directly instead of using std::next.
662 (boyer_moore_searcher::operator()): Fix return value.
663 * testsuite/20_util/function_objects/searchers.cc: Check both parts
666 2017-04-12 Gerald Pfeifer <gerald@pfeifer.com>
668 * doc/xml/faq.xml: Update reference link to C++ ABI for Itanium.
669 * doc/xml/manual/abi.xml. Ditto (thrice).
671 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
673 * doc/xml/manual/status_cxx2017.xml: Remove duplicate table entry.
674 * doc/html/*: Regenerate.
676 * testsuite/20_util/reference_wrapper/invoke.cc: Uncomment tests
679 * include/bits/ios_base.h: Correct comment.
680 * testsuite/util/testsuite_hooks.h: Likewise.
682 * doc/xml/manual/status_cxx2017.xml: Update C++17 status table.
683 * doc/xml/manual/appendix_contributing.xml (contrib.organization): Add
684 directories for debug, parallel and profile headers.
685 * doc/html/*: Regenerate.
687 * include/bits/char_traits.h (__gnu_cxx::char_traits): Add
688 _GLIBCXX14_CONSTEXPR on assign, compare, find, and length.
689 (std::char_traits<char>, std::char_traits<wchar_t>): Add
690 _GLIBCXX17_CONSTEXPR on assign.
691 (std::char_traits<char16_t>, std::char_traits<char32_t>): Add
692 _GLIBCXX17_CONSTEXPR on assign, compare, find, and length.
693 * testsuite/21_strings/char_traits/requirements/
694 constexpr_functions_c++17.cc: New test.
696 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
699 * include/bits/stl_pair.h (__nonesuch_no_braces): New.
700 (operator=(typename conditional<
701 __and_<is_copy_assignable<_T1>,
702 is_copy_assignable<_T2>>::value,
703 const pair&, const __nonesuch&>::type)): Change __nonesuch
704 to __nonesuch_no_braces.
705 (operator=(typename conditional<
706 __not_<__and_<is_copy_assignable<_T1>,
707 is_copy_assignable<_T2>>>::value,
708 const pair&, const __nonesuch&>::type)): Likewise.
709 (operator=(typename conditional<
710 __and_<is_move_assignable<_T1>,
711 is_move_assignable<_T2>>::value,
712 pair&&, __nonesuch&&>::type)): Likewise.
713 * testsuite/20_util/pair/79141.cc: New.
715 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
717 Implement std::is_aggregate.
718 * include/std/type_traits (is_aggregate, is_aggregate_v): New.
719 * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc:
721 * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise.
722 * testsuite/20_util/is_aggregate/value.cc: Likewise.
724 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
726 Adjust optional's pretty printer for LWG 2900.
727 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter.__init__):
728 Look at the nested payload in case of non-experimental optional.
730 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
732 Implement LWG 2900, The copy and move constructors
733 of optional are not constexpr.
734 * include/std/optional (_Optional_payload): New.
735 (_Optional_base): Remove the bool parameter.
736 (_Optional_base<_Tp, false>): Remove.
737 (_Optional_base()): Adjust.
738 (_Optional_base(nullopt_t)): Likewise.
739 (_Optional_base(in_place_t, _Args&&...)): Likewise.
740 (_Optional_base(in_place_t, initializer_list<_Up>, _Args&&...)):
742 (_Optional_base(const _Optional_base&)): Likewise.
743 (_Optional_base(_Optional_base&&)): Likewise.
744 (operator=(const _Optional_base&)): Likewise.
745 (operator=(_Optional_base&&)): Likewise.
746 (~_Optional_base()): Remove.
747 (_M_is_engaged()): Adjust.
748 (_M_get()): Likewise.
749 (_M_construct(_Args&&...)): Likewise.
750 (_M_destruct()): Likewise.
751 (_M_reset()): Likewise.
752 (_Optional_base::_Empty_byte): Remove.
753 (_Optional_base::_M_empty): Remove.
754 (_Optional_base::_M_payload): Adjust.
755 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
756 * testsuite/20_util/optional/constexpr/cons/value.cc: Add tests.
758 2017-03-28 Jonathan Wakely <jwakely@redhat.com>
761 * include/bits/random.tcc (generate_canonical): Use std::nextafter
762 or numeric_limits::epsilon() to reduce out-of-range values.
763 * testsuite/26_numerics/random/uniform_real_distribution/operators/
764 64351.cc: Verify complexity requirement is met.
766 * doc/xml/manual/abi.xml: Add xml:id anchor.
767 * doc/xml/manual/using.xml (manual.intro.using.macros): Document
768 _GLIBCXX_RELEASE. Link to new anchor for __GLIBCXX__ notes.
769 (concurrency.io.structure): Add markup.
770 * doc/html/*: Regenerate.
773 * include/bits/shared_ptr_base.h
774 (__shared_ptr::_M_enable_shared_from_this_with): Change parameters to
775 non-const and then use remove_cv to get unqualified type.
776 * testsuite/20_util/enable_shared_from_this/members/const.cc: Don't
777 cast away constness on object created const.
778 * testsuite/20_util/shared_ptr/cons/80229.cc: New test.
780 2017-03-26 Markus Trippelsdorf <markus@trippelsdorf.de>
783 * include/bits/stl_tree.h:
784 (_Rb_tree_header::_M_move_data(_Rb_tree_header&)): Also save _M_color.
786 2017-03-23 Jonathan Wakely <jwakely@redhat.com>
788 * testsuite/23_containers/array/tuple_interface/
789 tuple_element_debug_neg.cc: Adjust dg-error.
790 * testsuite/23_containers/list/operations/78389.cc: Fix less-than to
791 define a valid strict weak ordering.
792 * testsuite/23_containers/priority_queue/67085.cc: Disable test for
793 Debug Mode, due to debug checks making extra copies of predicate.
794 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
797 * doc/xml/faq.xml: Add link.
798 * doc/xml/manual/backwards_compatibility.xml: Remove outdated
799 information on pre-ISO headers. Replace broken link to C++ FAQ Lite.
800 * doc/xml/manual/io.xml: Update broken link.
801 * doc/html/*: Regenerate.
803 2017-03-23 Daniel Kruegler <daniel.kruegler@gmail.com>
805 Implement LWG 2686, Why is std::hash specialized for error_code,
806 but not error_condition?
807 * include/std/system_error (hash<error_condition>): Define for C++17.
808 * testsuite/20_util/hash/operators/size_t.cc (hash<error_condition>):
809 Instantiate test for error_condition.
810 * testsuite/20_util/hash/requirements/explicit_instantiation.cc
811 (hash<error_condition>): Instantiate hash<error_condition>.
813 * include/bits/c++config (_GLIBCXX17_INLINE): Define.
814 * include/bits/regex_constants.h (All std::regex_constants constants):
815 Add _GLIBCXX17_INLINE as per P0607R0.
816 * include/bits/std_mutex.h (defer_lock, try_to_lock, adopt_lock):
818 * include/bits/stl_pair.h (piecewise_construct): Likewise.
819 * include/bits/uses_allocator.h (allocator_arg, uses_allocator_v)
820 (__is_uses_allocator_constructible_v)
821 (__is_nothrow_uses_allocator_constructible_v): Likewise.
822 * include/std/chrono (treat_as_floating_point_v): Likewise.
823 * include/std/functional (is_bind_expression_v, is_placeholder_v):
825 * include/std/optional (nullopt): Likewise.
826 * include/std/ratio (ratio_equal_v, ratio_not_equal_v, ratio_less_v)
827 ratio_less_equal_v, ratio_greater_v, ratio_greater_equal_v): Likewise.
828 * include/std/system_error (is_error_code_enum_v)
829 (is_error_condition_enum_v): Likewise.
830 * include/std/tuple (tuple_size_v, ignore): Likewise.
831 (ignore): Declare ignore constexpr as per LWG 2773, declare assignment
832 constexpr as per LWG 2933.
833 * include/std/type_traits (All variable templates): Add
834 _GLIBCXX17_INLINE as per P0607R0.
835 * include/std/variant (variant_size_v, variant_npos, __index_of_v)
836 (__tuple_count_v, __exactly_once): Likewise.
837 * testsuite/18_support/headers/new/synopsis.cc
838 (hardware_destructive_interference_size)
839 (hardware_constructive_interference_size): Likewise for commented-out
841 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Add new
842 test function for constexpr std::ignore (LWG 2773).
843 * testsuite/20_util/tuple/creation_functions/constexpr_cpp14.cc: New
846 2017-03-22 Jonathan Wakely <jwakely@redhat.com>
848 * include/bits/shared_ptr.h (shared_ptr, weak_ptr): Add deduction
850 * include/bits/std_function.h (function): Likewise.
851 * include/bits/stl_pair.h (pair): Likewise.
852 * include/debug/array (__gnu_debug::array): Likewise.
853 * include/std/array (array): Likewise.
854 * include/std/functional (make_default_searcher)
855 (make_boyer_moore_searcher, make_boyer_moore_horspool_searcher):
856 Remove generator functions.
857 * include/std/tuple (tuple): Add deduction guides.
858 * include/std/valarray (valarray): Likewise.
859 * testsuite/20_util/function_objects/searchers.cc: Adjust to use
860 class template argument deduction instead of generator functions.
861 * testsuite/20_util/function/cons/deduction.cc: New test.
862 * testsuite/20_util/optional/cons/deduction_guide.cc: Rename to ...
863 * testsuite/20_util/optional/cons/deduction.cc: ... here.
864 * testsuite/20_util/pair/cons/deduction.cc: New test.
865 * testsuite/20_util/shared_ptr/cons/deduction.cc: New test.
866 * testsuite/20_util/tuple/cons/deduction.cc: New test.
867 * testsuite/20_util/tuple/element_access/get_neg.cc: Adjust dg-error.
868 * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: New test.
869 * testsuite/20_util/weak_ptr/cons/deduction.cc: New test.
870 * testsuite/23_containers/array/cons/deduction.cc: New test.
871 * testsuite/23_containers/array/cons/deduction_neg.cc: New test.
872 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
874 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise.
875 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
877 * testsuite/26_numerics/valarray/deduction.cc: New test.
878 * testsuite/30_threads/lock_guard/cons/deduction.cc: New test.
879 * testsuite/30_threads/scoped_lock/cons/deduction.cc: New test.
880 * testsuite/30_threads/unique_lock/cons/deduction.cc: New test.
882 2017-03-20 François Dumont <fdumont@gcc.gnu.org>
884 * include/bits/stl_deque.h (deque): Access allocator value_type only if
885 concept checks are enabled.
886 * include/bits/stl_stack.h (stack): Likewise.
887 * include/bits/stl_vector.h (vector): Likewise.
888 * include/bits/stl_list.h (list): Likewise and check
889 _SGIAssignableConcept only in C++03.
890 * include/bits/stl_map.h (map): Likewise.
891 * include/bits/stl_set.h (set): Likewise.
892 * include/bits/stl_multimap.h (multimap): Likewise.
893 * include/bits/stl_multiset.h (multiset): Likewise.
894 * include/bits/stl_queue.h (queue, priority_queue): Likewise.
896 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
898 * doc/xml/manual/appendix_contributing.xml: Convert link to
900 Update link to the C++ standard at ansi.org.
902 * doc/xml/faq.xml: Remove information redundant with the above;
903 instead add a reference.
905 2017-03-17 Jonathan Wakely <jwakely@redhat.com>
907 * src/c++11/codecvt.cc (range): Add non-type template parameter and
908 define oerloaded operators for reading and writing code units.
909 (range<Elem, false>): Define partial specialization for accessing
910 wide characters in potentially unaligned byte ranges.
911 (ucs2_span(const char16_t*, const char16_t*, ...))
912 (ucs4_span(const char16_t*, const char16_t*, ...)): Change parameters
913 to range<const char16_t, false> in order to avoid unaligned reads.
914 (__codecvt_utf16_base<char16_t>::do_out)
915 (__codecvt_utf16_base<char32_t>::do_out)
916 (__codecvt_utf16_base<wchar_t>::do_out): Use range specialization for
917 unaligned data to avoid unaligned writes.
918 (__codecvt_utf16_base<char16_t>::do_in)
919 (__codecvt_utf16_base<char32_t>::do_in)
920 (__codecvt_utf16_base<wchar_t>::do_in): Likewise for writes. Return
921 error if there are unprocessable trailing bytes.
922 (__codecvt_utf16_base<char16_t>::do_length)
923 (__codecvt_utf16_base<char32_t>::do_length)
924 (__codecvt_utf16_base<wchar_t>::do_length): Pass arguments of type
925 range<const char16_t, false> to span functions.
926 * testsuite/22_locale/codecvt/codecvt_utf16/misaligned.cc: New test.
928 2017-03-16 Jonathan Wakely <jwakely@redhat.com>
931 * src/c++11/codecvt.cc (to_integer(codecvt_mode)): Fix target type.
934 * src/c++11/codecvt.cc (__codecvt_utf16_base<wchar_t>::do_out)
935 (__codecvt_utf16_base<wchar_t>::do_in): Convert char arguments to
936 char16_t to work with UTF-16 instead of UTF-8.
937 * testsuite/22_locale/codecvt/codecvt_utf16/80041.cc: New test.
939 * src/c++11/codecvt.cc (codecvt<char16_t, char, mbstate_t>)
940 (codecvt<char32_t, char, mbstate_t>, __codecvt_utf8_base<char16_t>)
941 (__codecvt_utf8_base<char32_t>, __codecvt_utf8_base<wchar_t>)
942 (__codecvt_utf16_base<char16_t>, __codecvt_utf16_base<char32_t>)
943 (__codecvt_utf16_base<wchar_t>, __codecvt_utf8_utf16_base<char16_t>)
944 (__codecvt_utf8_utf16_base<char32_t>)
945 (__codecvt_utf8_utf16_base<wchar_t>): Fix do_encoding() and
946 do_max_length() return values.
947 * testsuite/22_locale/codecvt/codecvt_utf16/members.cc: New test.
948 * testsuite/22_locale/codecvt/codecvt_utf8/members.cc: New test.
949 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/members.cc: New test.
952 * include/bits/locale_conv.h (__do_str_codecvt): Set __count on
954 * src/c++11/codecvt.cc (operator&=, operator|=, operator~): Overloads
955 for manipulating codecvt_mode values.
956 (read_utf16_bom): Compare input to BOM constants instead of integral
957 constants that depend on endianness. Take mode parameter by
958 reference and adjust it, to distinguish between no BOM present and
959 UTF-16BE BOM present.
960 (ucs4_in, ucs2_span, ucs4_span): Adjust calls to read_utf16_bom.
961 (surrogates): New enumeration type.
962 (utf16_in, utf16_out): Add surrogates parameter to choose between
963 UTF-16 and UCS2 behaviour.
964 (utf16_span, ucs2_span): Use std::min not std::max.
965 (ucs2_out): Use std::min not std::max. Disallow surrogate pairs.
966 (ucs2_in): Likewise. Adjust calls to read_utf16_bom.
967 * testsuite/22_locale/codecvt/codecvt_utf16/79980.cc: New test.
968 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: New test.
971 * src/c++11/codecvt.cc (write_utf16_code_point): Don't write 0xffff
973 (__codecvt_utf8_utf16_base<char32_t>::do_in): Use native endianness
974 for internal representation.
975 (__codecvt_utf8_utf16_base<wchar_t>::do_in): Likewise.
976 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/79511.cc: New test.
979 * include/bits/stl_heap.h (__is_heap, push_heap, __adjust_heap)
980 (pop_heap, make_heap, sort_heap, is_heap_until, is_heap): Cope with
981 invalid instantiations using function types for _Compare argument.
982 * testsuite/25_algorithms/make_heap/80064.cc: New test.
985 * python/libstdcxx/v6/printers.py (find_type): Avoid gdb.Type.name
986 for GDB 7.6 compatibility, use gdb.Type.unqualified instead.
988 2017-03-15 Ville Voutilainen <ville.voutilainen@gmail.com>
990 Implement LWG 2857, {variant,optional,any}::emplace should
991 return the constructed value.
992 * include/std/any (emplace(_Args&&...)): Change the return type and
993 return a reference to the constructed value.
994 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
995 * include/std/optional (emplace(_Args&&...)): Likewise.
996 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
997 * include/std/variant (emplace<_Tp>(_Args&&...)): Likewise.
998 (emplace<_Tp>(initializer_list<_Up>, _Args&&...)): Likewise.
999 (emplace<_Np>(_Args&&...)): Likewise.
1000 (emplace<_Np>(initializer_list<_Up>, _Args&&...)): Likewise.
1001 * testsuite/20_util/any/assign/emplace.cc: Add tests for
1002 checking the return value of emplace.
1003 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust.
1004 * testsuite/20_util/optional/assignment/6.cc: Add tests for
1005 checking the return value of emplace.
1006 * testsuite/20_util/variant/run.cc: Likewise.
1008 2017-03-15 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
1011 * include/ext/pb_ds/qdetail/binary_heap_/binary_heap_.hpp
1013 (push_heap): Remove the wrong checking using is_heap.
1014 (make_heap): Remove the assertion using is_heap.
1015 * include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp
1017 (resize_for_insert_if_needed): Add PB_DS_ASSERT_VALID after
1020 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
1023 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
1025 * testsuite/ext/pb_ds/regression/priority_queues.cc: Fix copy&paste
1028 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
1030 * acinclude.m4 (GLIBCXX_CHECK_S_ISREG_OR_S_IFREG): Fix typo in
1032 * config.h.in: Regenerate.
1033 * configure: Regenerate.
1034 * doc/Makefile.in: Regenerate.
1036 2017-03-14 Jonathan Wakely <jwakely@redhat.com>
1039 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1040 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace
1041 with a constrained template.
1042 [!_GLIBCXX_USE_CXX11_ABI]
1043 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise.
1044 * testsuite/21_strings/basic_string/cons/char/79162.cc: New test.
1045 * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test.
1047 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1050 * include/bits/list.tcc (merge(list&&)): Use const for the size_t
1052 (merge(list&&, _StrictWeakOrdering)): Likewise.
1053 * testsuite/23_containers/list/operations/80034.cc: New.
1055 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1057 Implement LWG 2806, Base class of bad_optional_access.
1058 * include/std/optional (bad_optional_access):
1059 Derive from std::exception.
1060 (bad_optional_access::bad_optional_access): Adjust.
1061 (bad_optional_access::what): New.
1062 (__throw_bad_optional_access(const char*)):
1063 Remove the parameter and adjust calls.
1064 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
1065 * testsuite/20_util/optional/typedefs.cc: Likewise.
1067 2017-03-12 Ville Voutilainen <ville.voutilainen@gmail.com>
1069 Implement LWG 2934, optional<const T> doesn't compare with T.
1070 * include/std/optional
1071 (operator==(const optional<_Tp>&, const optional<_Tp>&)):
1072 Turn into operator==(const optional<_Tp>&, const optional<_Up>&).
1073 (operator!=(const optional<_Tp>&, const optional<_Tp>&)):
1074 Turn into operator!=(const optional<_Tp>&, const optional<_Up>&).
1075 (operator<(const optional<_Tp>&, const optional<_Tp>&)):
1076 Turn into operator<(const optional<_Tp>&, const optional<_Up>&.
1077 (operator>(const optional<_Tp>&, const optional<_Tp>&)):
1078 Turn into operator>(const optional<_Tp>&, const optional<_Up>&.
1079 (operator<=(const optional<_Tp>&, const optional<_Tp>&)):
1080 Turn into operator<=(const optional<_Tp>&, const optional<_Up>&).
1081 (operator>=(const optional<_Tp>&, const optional<_Tp>&)):
1082 Turn into operator>=(const optional<_Tp>&, const optional<_Up>&).
1083 (operator==(const optional<_Tp>&, const _Tp&)):
1084 Turn into operator==(const optional<_Tp>&, const _Up&).
1085 (operator==(const _Tp&, const optional<_Tp>&)):
1086 Turn into operator==(const _Up&, const optional<_Tp>&).
1087 (operator!=(const optional<_Tp>&, const _Tp&)):
1088 Turn into operator!=(const optional<_Tp>&, const _Up&).
1089 (operator!=(const _Tp&, const optional<_Tp>&)):
1090 Turn into operator!=(const _Up&, const optional<_Tp>&).
1091 (operator<(const optional<_Tp>&, const _Tp&)):
1092 Turn into operator<(const optional<_Tp>&, const _Up&).
1093 (operator<(const _Tp&, const optional<_Tp>&)):
1094 Turn into operator<(const _Up&, const optional<_Tp>&).
1095 (operator>(const optional<_Tp>&, const _Tp&)):
1096 Turn into operator>(const optional<_Tp>&, const _Up&).
1097 (operator>(const _Tp&, const optional<_Tp>&)):
1098 Turn into operator>(const _Up&, const optional<_Tp>&).
1099 (operator<=(const optional<_Tp>&, const _Tp&)):
1100 Turn into operator<=(const optional<_Tp>&, const _Up&).
1101 (operator<=(const _Tp&, const optional<_Tp>&)):
1102 Turn into operator<=(const _Up&, const optional<_Tp>&).
1103 (operator>=(const optional<_Tp>&, const _Tp&)):
1104 Turn into operator>=(const optional<_Tp>&, const _Up&).
1105 (operator>=(const _Tp&, const optional<_Tp>&)):
1106 Turn into operator>=(const _Up&, const optional<_Tp>&).
1107 * testsuite/20_util/optional/relops/7.cc: New.
1109 2017-03-10 Jonathan Wakely <jwakely@redhat.com>
1111 * testsuite/17_intro/names.cc: Undefine macros that clash with
1112 identifiers in AIX system headers.
1114 * include/bits/invoke.h (__invoke): Use __invoke_result instead of
1115 result_of, and __is_nothrow_invocable instead of
1116 __is_nothrow_callable.
1117 * include/bits/shared_ptr_base.h (__shared_ptr): Use __is_invocable
1118 instead of __is_callable.
1119 * include/std/functional (invoke): use invoke_result_t instead of
1120 result_of_t and is_nothrow_invocable instead of is_nothrow_callable.
1121 (_Not_fn): Use __invoke_result instead of result_of.
1122 * include/std/type_traits (__result_of_memobj, __result_of_memfun):
1123 Remove partial specializations for reference_wrapper types.
1124 (__result_of_impl): Use __inv_unwrap to strip reference_wrapper.
1125 (__invoke_result): Define replacement for result_of and then use it to
1127 (__is_callable_impl, __is_callable, __is_nothrow_callable): Replace
1128 with __is_invocable_impl, __is_invocable, and __is_nothrow_invocable
1130 (invoke_result, invoke_result_t): Define for C++17.
1131 (is_callable, is_nothrow_callable): Replace with is_invocable,
1132 is_invocable_r, is_nothrow_invocable, and is_nothrow_invocable_r.
1133 (is_callable_v, is_nothrow_callable_v): Replace with is_invocable_v,
1134 is_invocable_r_v, is_nothrow_invocable_v, and is_nothrow_invocable_r_v.
1135 * include/std/variant (hash<variant<T...>>): Use is_nothrow_invocable_v
1136 instead of is_nothrow_callable_v.
1137 * testsuite/20_util/function_objects/invoke/59768.cc: Remove unused
1139 * testsuite/20_util/function_objects/not_fn/1.cc: Use is_invocable
1140 instead of is_callable.
1141 * testsuite/20_util/is_callable/*: Rename directory and adjust tests
1143 * testsuite/20_util/is_nothrow_callable/*: Likewise.
1144 * testsuite/20_util/optional/hash.cc: Use is_invocable_v instead of
1146 * testsuite/20_util/variant/hash.cc: Likewise.
1148 2017-03-10 George Lander <george.lander@arm.com>
1150 * acinclude.m4 (glibcxx_cv_obsolete_isnan): Define
1151 _GLIBCXX_INCLUDE_NEXT_C_HEADERS before including math.h.
1152 * configure: Regenerate.
1154 2017-03-09 Jonathan Wakely <jwakely@redhat.com>
1156 * include/std/functional (_Not_fn): Define macro to simplify
1157 repetitive function definitions.
1159 * doc/xml/manual/status_cxx2017.xml: Document std::byte support.
1160 * include/c_global/cstddef (std::byte): Define for C++17.
1161 * testsuite/18_support/byte/global_neg.cc: New test.
1162 * testsuite/18_support/byte/ops.cc: New test.
1163 * testsuite/18_support/byte/requirements.cc: New test.
1165 2017-03-05 Jonathan Wakely <jwakely@redhat.com>
1167 * doc/xml/manual/status_cxx2017.xml: Document P0156R2 status.
1168 * doc/html/*: Regenerate.
1169 * include/std/mutex (scoped_lock): Implement new C++17 template.
1170 * testsuite/30_threads/scoped_lock/cons/1.cc: New test.
1171 * testsuite/30_threads/scoped_lock/requirements/
1172 explicit_instantiation.cc: New test.
1173 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: New test.
1175 2017-03-02 Gerald Pfeifer <gerald@pfeifer.com>
1176 François Dumont <frs.dumont@gmail.com>
1177 Jonathan Wakely <jwakely@redhat.com>
1179 * doc/xml/manual/debug_mode.xml: Update and simplify note
1180 on link- and run-time coexistence.
1182 2017-03-02 Jonathan Wakely <jwakely@redhat.com>
1184 * testsuite/17_intro/headers/names.cc: Rename to ...
1185 * testsuite/17_intro/names.cc: ... here.
1188 * include/bits/hashtable_policy.h (__clp2): Use reserved names for
1189 parameters and local variables.
1190 * include/bits/ios_base.h (make_error_code, make_error_condition):
1192 * include/bits/list.tcc (list::sort): Likewise.
1193 * include/bits/mask_array.h (mask_array): Likewise.
1194 * include/bits/regex.h (regex_token_iterator): Likewise.
1195 * include/bits/slice_array.h (slice_array): Likewise.
1196 * include/bits/stl_algo.h (__sample): Likewise.
1197 * include/std/memory (undeclare_no_pointers): Likewise.
1198 * include/std/type_traits (is_callable_v, is_nothrow_callable_v):
1200 * libsupc++/exception_ptr.h (__dest_thunk): Likewise.
1201 * testsuite/17_intro/headers/names.cc: New test.
1204 * include/std/functional (bind::_Res_type_impl): Fix incorrect use of
1205 result_of that loses top-level cv-qualifiers.
1206 * testsuite/20_util/bind/79798.cc: New test.
1208 2017-03-01 Gerald Pfeifer <gerald@pfeifer.com>
1210 * doc/xml/manual/documentation_hacking.xml: Tweak link to
1213 2017-02-23 Jonathan Wakely <jwakely@redhat.com>
1215 * include/experimental/iterator: Include <iterator>.
1216 * testsuite/experimental/iterator/requirements.cc: Check for contents
1219 2017-02-19 Dinka Ranns <dinka.ranns@googlemail.com>
1221 C++17 GB50 resolution
1222 * include/std/chrono (duration::operator++()): Add
1223 _GLIBCXX17_CONSTEXPR.
1224 (duration::operator++(int)): Likewise.
1225 (duration::operator--()): Likewise.
1226 (duration::operator--(int)): Likewise.
1227 (duration::operator+=(const duration&)): Likewise.
1228 (duration::operator-=(const duration&)): Likewise.
1229 (duration::operator*=(const rep&)): Likewise.
1230 (duration::operator/=(const rep&)): Likewise.
1231 (duration::operator%=(const rep&)): Likewise.
1232 (duration::operator%=(const duration&)): Likewise.
1233 (time_point::operator+=(const duration&)): Likewise.
1234 (time_point::operator-=(const duration&)): Likewise.
1235 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: New test.
1236 * testsuite/20_util/duration/literals/range.cc: Adjust dg-error.
1237 * testsuite/20_util/time_point/arithmetic/constexpr.cc: New test.
1239 2017-02-19 Gerald Pfeifer <gerald@pfeifer.com>
1241 * doc/xml/manual/debug.xml: Adjust link to ThreadSanitizer.
1243 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
1245 * doc/xml/manual/io.xml: Update link to groups.google.com.
1246 Tweak link description.
1248 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
1250 * doc/xml/manual/profile_mode.xml: Fix link.
1252 2017-02-16 Gerald Pfeifer <gerald@pfeifer.com>
1254 * doc/xml/manual/policy_data_structures.xml: Simplify and
1255 standardize references to boost.org.
1256 * doc/xml/manual/policy_data_structures_biblio.xml: Ditto.
1257 * doc/xml/manual/shared_ptr.xml: Ditto.
1259 2017-02-16 Jonathan Wakely <jwakely@redhat.com>
1262 * src/c++11/snprintf_lite.cc (__concat_size_t): Calculate length
1263 written to buffer, not length remaining in buffer.
1265 2017-02-15 Tim Shen <timshen@google.com>
1268 * include/std/variant (operator<(), operator>(), operator<=(),
1269 operator>=(), operator==(), operator!=()): Implement P0393R3.
1270 * testsuite/20_util/variant/compile.cc: Adjust tests.
1271 * testsuite/20_util/variant/run.cc: Adjust tests.
1273 2017-02-15 Tim Shen <timshen@google.com>
1276 * include/std/variant (visit()): Forward variant types to the return
1277 type detection code.
1278 * testsuite/20_util/variant/compile.cc: Add test cases.
1280 2017-02-13 H.J. Lu <hongjiu.lu@intel.com>
1283 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
1285 2017-02-13 Jakub Jelinek <jakub@redhat.com>
1288 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
1289 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
1290 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Likewise.
1291 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
1292 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Likewise.
1293 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
1294 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Likewise.
1295 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
1296 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
1298 2017-02-13 Jonathan Wakely <jwakely@redhat.com>
1301 * include/std/future (__future_base::_Task_state::_M_run)
1302 (__future_base::_Task_state::_M_run_delayed): Use lvalue types in
1303 result_of expressions.
1304 * testsuite/30_threads/packaged_task/79486.cc: New.
1306 2017-02-11 Jonathan Wakely <jwakely@redhat.com>
1309 * include/bits/shared_ptr_base.h (__shared_ptr(_Yp*, _Deleter))
1310 (__shared_ptr(_Yp*, _Deleter, _Alloc)): Use lvalue types in
1311 __is_callable check.
1312 * testsuite/20_util/shared_ptr/cons/79467.cc: New.
1314 * include/bits/atomic_base.h: Re-indent.
1316 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
1318 * doc/xml/manual/profile_mode.xml: Update a paper reference.
1320 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1322 * src/c++11/snprintf_lite.cc (__err): Use https for bug reporting.
1324 2017-02-08 Jonathan Wakely <jwakely@redhat.com>
1326 * doc/xml/manual/policy_data_structures.xml: Fix spelling of author's
1328 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise. Remove
1329 broken links to texts that are no longer online.
1330 * doc/xml/manual/profile_mode.xml: Update links to CGO 2009 paper and
1332 * doc/xml/manual/using.xml: Update links to memory model information.
1333 * doc/xml/manual/using_exceptions.xml: Update link to "Appendix E:
1334 Standard-Library Exception Safety".
1335 * doc/html/*: Regenerate.
1337 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1339 * doc/xml/manual/profile_mode.xml: Unbreak link to
1340 "Optimizing Sorting with Machine Learning Algorithms".
1342 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1344 * src/c++11/snprintf_lite.cc (__err): Update bug reporting URL.
1346 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1348 * doc/xml/manual/abi.xml: Update link to "Sun Studio 11: C++
1351 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
1353 * doc/html/ext/lwg-active.html: Remove.
1354 * doc/html/ext/lwg-closed.html: Ditto.
1355 * doc/html/ext/lwg-defects.html: Ditto.
1357 * doc/Makefile.am (xml_extradir): Remove.
1359 (stamp-html-docbook-lwg): Remove recipe...
1360 (stamp-html-docbook-data): ...and its use here.
1361 * doc/Makefile.in: Regenerate.
1363 * doc/xml/manual/intro.xml: Shorten two paragraphs explaining
1364 the relationship to the upstream working group.
1365 Replace a local link to ../ext/lwg-active.html by the upstream one.
1366 Replace all reference to ../ext/lwg-defects.html by a new entity
1367 &DR; which refers to the upstream address.
1369 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
1371 * doc/xml/manual/status_cxx2017.xml: Fix link to N4284.
1373 2017-02-06 Jonathan Wakely <jwakely@redhat.com>
1376 * testsuite/20_util/duration/literals/range.cc: Prune extra output
1379 2017-02-06 Gerald Pfeifer <gerald@pfeifer.com>
1381 * doc/xml/manual/documentation_hacking.xml: Update URL of the
1382 DocBook Element Reference. Use that term as link description
1383 instead of "online".
1384 epubcheck has moved to GitHub.
1385 Remove obsolete link to DocBook Publishing Tools.
1387 2017-02-03 Jonathan Wakely <jwakely@redhat.com>
1390 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Restore ABI override
1391 so new ios::failure can be caught even when old ABI is the default.
1392 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1393 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1394 exceptions_failbit.cc: Likewise.
1395 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1396 exceptions_failbit.cc: Likewise.
1397 * testsuite/27_io/basic_istream/extractors_other/char/
1398 exceptions_null.cc: Likewise.
1399 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1400 exceptions_null.cc: Likewise.
1401 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1402 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1403 * testsuite/27_io/basic_ostream/inserters_other/char/
1404 exceptions_null.cc: Likewise.
1405 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1406 exceptions_null.cc: Likewise.
1407 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1410 * src/c++11/Makefile.am: Add new files.
1411 * src/c++11/Makefile.in: Regenerate.
1412 * src/c++11/cow-string-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
1413 (operator<<, operator>>, getline): Move explicit instantiations to ...
1414 * src/c++11/cow-string-io-inst.cc: ... new file.
1415 * src/c++11/cow-wstring-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
1416 (operator<<, operator>>, getline): Move explicit instantiations to ...
1417 * src/c++11/cow-wstring-io-inst.cc: ... new file.
1418 * src/c++11/functexcept.cc (__throw_ios_failure, __throw_system_error)
1419 (__throw_future_error, __throw_bad_function_call):
1420 (__throw_regex_error): Move functions for C++11 exceptions to the
1421 files that define the exception types.
1422 * src/c++11/functional.cc (__throw_bad_function_call): Move here.
1423 * src/c++11/future.cc (__throw_future_error): Likewise.
1424 * src/c++11/ios.cc (__throw_ios_failure): Likewise.
1425 * src/c++11/regex.cc (__throw_regex_error): Likewise.
1426 * src/c++11/snprintf_lite.cc (__concat_size_t): Print decimal
1427 representation directly instead of calling __int_to_char.
1428 * src/c++11/sso_string.cc (__sso_string): New file for definition
1429 of __sso_string type.
1430 * src/c++11/string-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
1431 explicit instantiations of narrow string I/O functions.
1432 * src/c++11/system_error.cc (__throw_system_error): Move here.
1433 (__sso_string): Move to new file.
1434 * src/c++11/wstring-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
1435 explicit instantiations of wide string I/O functions.
1436 * src/c++98/misc-inst.cc [_GLIBCXX_USE_CXX11_ABI] (operator<<)
1437 (operator>>, getline): Remove explicit instantiations from here.
1439 2017-02-02 H.J. Lu <hongjiu.lu@intel.com>
1441 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
1443 2017-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1445 * configure.host: Separate Solaris/SPARC and x86 baselines.
1446 * config/abi/post/solaris2.10/baseline_symbols.txt: Move ...
1447 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: ... here.
1448 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Move ...
1449 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
1451 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Move ...
1452 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: ... here.
1453 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: New file.
1454 * config/abi/post/solaris2.11/baseline_symbols.txt: Move ...
1455 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: ... here.
1456 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Move ...
1457 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
1459 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Move ...
1460 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: ... here.
1461 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: New file.
1463 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
1464 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
1465 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
1466 * config/abi/post/solaris2.11/baseline_symbols.txt: Likewise.
1467 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Likewise.
1468 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Likewise.
1470 2017-02-01 Jonathan Wakely <jwakely@redhat.com>
1473 * include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
1475 (_Iter_comp_to_iter): Likewise.
1476 * testsuite/25_algorithms/search/78346.cc: New test.
1479 * config/abi/pre/gnu.ver: Remove recently added symbols.
1480 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1481 (basic_string::_M_copy_assign): Remove.
1482 (basic_string::operator=(const basic_string&)): Don't dispatch to
1483 _M_copy_assign. If source object is small just deallocate, otherwise
1484 perform new allocation before making any changes.
1485 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
1486 (basic_string::_M_copy_assign(const basic_string&, true_type)):
1488 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1489 Test cases where the allocators are equal or the string is small.
1490 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1493 2017-01-30 Ville Voutilainen <ville.voutilainen@gmail.com>
1495 Implement LWG 2825, LWG 2756 breaks class template argument
1496 deduction for optional.
1497 * include/std/optional: Add a deduction guide.
1498 * testsuite/20_util/optional/cons/deduction_guide.cc: New.
1500 2017-01-27 Jonathan Wakely <jwakely@redhat.com>
1503 * config/abi/pre/gnu.ver: Add new symbols.
1504 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1505 (basic_string::_M_copy_assign): New overloaded functions to perform
1507 (basic_string::operator=(const basic_string&)): Dispatch to
1509 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
1510 (basic_string::_M_copy_assign(const basic_string&, true_type)):
1511 Define, performing rollback on exception.
1512 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1513 Test exception-safety guarantee.
1514 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1516 * testsuite/util/testsuite_allocator.h (uneq_allocator::swap): Make
1519 2017-01-26 Jonathan Wakely <jwakely@redhat.com>
1522 * include/tr1/complex (conj): Remove using-declaration and restore
1523 overloads, reverting previous change.
1525 * testsuite/23_containers/list/operations/78389.cc: Fix for C++11
1527 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
1528 Mark as unsupported in C++98 mode.
1529 * testsuite/23_containers/queue/requirements/constructible.cc:
1531 * testsuite/23_containers/stack/requirements/constructible.cc:
1533 * testsuite/25_algorithms/make_heap/movable.cc: Fix for C++11 mode.
1536 * include/bits/c++config (literals::string_view_literals::__7): Add.
1537 Only declare versioned namespaces for the relevant C++ dialects.
1538 * include/experimental/bits/erase_if.h (fundamentals_v2::__detail):
1539 Add versioning macros.
1540 * include/experimental/bits/lfts_config.h:
1541 (fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add.
1542 * include/experimental/string_view (fundamentals_v2::__detail):
1543 Add versioning macros.
1544 (fundamentals_v2::__detail::__identity): Remove.
1545 (fundamentals_v2::__detail::__idt): Use common_type instead of
1546 __detail::__identity.
1547 * include/std/string_view (__detail::__identity, __detail::__idt):
1549 (literals::string_view_literals): Fix nesting of versioning macros.
1552 * libsupc++/del_opa.cc (operator delete(void*, std::align_val_t))
1553 [!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN
1554 && !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC]:
1555 Retrieve original pointer value allocated by malloc.
1556 * libsupc++/new_opa.cc [!_GLIBCXX_HAVE_ALIGNED_ALLOC
1557 && !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN
1558 && !_GLIBCXX_HAVE__ALIGNED_MALLOC] (aligned_alloc(size_t, size_t)):
1559 Define, adjusting pointer value allocated by malloc and storing for
1560 retrieval by operator delete.
1562 2017-01-26 Jakub Jelinek <jakub@redhat.com>
1564 * libsupc++/eh_atomics.h: Update copyright years.
1565 * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years.
1567 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
1571 * include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
1572 (proj(T), conj(T)): Change return types per DR 1522.
1573 * include/tr1/complex (conj): Remove overloads and use std::conj.
1574 * testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
1575 * testsuite/26_numerics/complex/dr781.cc: ... this, and update.
1576 * testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
1577 real(T) and imag(T). Allow testing for C++11 too.
1579 2017-01-24 Jonathan Wakely <jwakely@redhat.com>
1582 * include/experimental/string_view (operator==): Check sizes first.
1583 * include/std/string_view (operator==): Likewise.
1585 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
1587 * testsuite/experimental/array/make_array.cc: Restore <functional>
1590 2017-01-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
1592 * testsuite/29_atomics/atomic/69301.cc: Require atomic builtins.
1594 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
1597 * include/experimental/array (__make_array_elem): New class template
1598 and partial specialization.
1599 (__is_reference_wrapper): Move into __make_array_elem specialization.
1600 (make_array): Use __make_array_elem to determine element type and move
1601 static assertion into specialization. Qualify std::forward call.
1602 (to_array): Add exception specifiation.
1603 * testsuite/experimental/array/make_array.cc: Test argument types
1604 without a common type.
1605 * testsuite/experimental/array/neg.cc: Adjust expected error message.
1607 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
1609 * doc/xml/manual/debug.xml: code.google.com uses https now.
1611 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
1613 * doc/xml/manual/test.xml: Fix link into gccint online manual.
1615 2017-01-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1617 Make poisoned hashes SFINAE away the call operator of the hash.
1618 * include/bits/functional_hash.h
1619 (__poison_hash::__enable_hash_call): New.
1620 * include/std/optional (__optional_hash_call_base): New.
1621 (hash<optional<_Tp>>): Derive from the new base,
1622 move the hash function into that base.
1623 * include/std/variant (__variant_hash_call_base_impl): New.
1624 (__variant_hash_call_base): Likewise.
1625 (hash<variant<_Types...>>): Derive from the new base,
1626 move the hash function into that base.
1627 * testsuite/20_util/optional/hash.cc: Add tests for is_callable.
1628 * testsuite/20_util/variant/hash.cc: Likewise.
1630 2017-01-20 Joe Seymour <joe.s@somniumtech.com>
1632 * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t.
1633 * configure: Regenerate.
1635 2017-01-20 Jonathan Wakely <jwakely@redhat.com>
1638 * include/bits/random.h (uniform_real_distribution::param_type)
1639 (normal_distribution::param_type, lognormal_distribution::param_type)
1640 (gamma_distribution::param_type, chi_squared_distribution::param_type)
1641 (cauchy_distribution::param_type, fisher_f_distribution::param_type)
1642 (student_t_distribution::param_type)
1643 (bernoulli_distribution::param_type, binomial_distribution::param_type)
1644 (geometric_distribution::param_type)
1645 (negative_binomial_distribution::param_type)
1646 (poisson_distribution::param_type)
1647 (exponential_distribution::param_type)
1648 (weibull_distribution::param_type)
1649 (extreme_value_distribution::param_type)
1650 (discrete_distribution::param_type)
1651 (piecewise_constant_distribution::param_type)
1652 (piecewise_linear_distribution::param_type): Define operator!=.
1653 * include/bits/uniform_int_dist.h
1654 (uniform_int_distribution::param_type): Likewise.
1655 * include/ext/random (beta_distribution::param_type)
1656 (rice_distribution::param_type, nakagami_distribution::param_type)
1657 (pareto_distribution::param_type, k_distribution::param_type)
1658 (arcsine_distribution::param_type, hoyt_distribution::param_type)
1659 (triangular_distribution::param_type)
1660 (von_mises_distribution::param_type)
1661 (hypergeometric_distribution::param_type)
1662 (logistic_distribution::param_type)
1663 (uniform_on_sphere_distribution::param_type)
1664 (uniform_inside_sphere_distribution::param_type): Likewise.
1665 * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc:
1666 Test construction with param_type.
1667 * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc:
1669 * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
1671 * testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc:
1673 * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
1675 * testsuite/26_numerics/random/extreme_value_distribution/cons/
1677 * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc:
1679 * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc:
1681 * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc:
1683 * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc:
1685 * testsuite/26_numerics/random/negative_binomial_distribution/cons/
1687 * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
1689 * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc:
1691 * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
1693 * testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc:
1695 * testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc:
1697 * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc:
1699 * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise.
1700 * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise.
1701 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
1702 * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc:
1704 * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise.
1705 * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise.
1706 * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise.
1707 * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
1708 * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise.
1709 * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise.
1710 * testsuite/ext/random/triangular_distribution/cons/parms.cc:
1712 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/
1714 * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise.
1717 * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
1718 (__allocator_traits_base::__size_type): Remove.
1719 (allocator_traits::_Ptr): New class template to detect const and void
1720 pointer types without instantiating pointer_traits::rebind
1722 (allocator_traits::_Diff): Likewise for detecting difference_type.
1723 (allocator_traits::_Size): New class template to detect size_type
1724 without instantiating make_unsigned unnecessarily.
1725 * include/bits/ptr_traits.h (pointer_traits::element_type): Use
1726 __detected_or_t instead of __detected_or_t_.
1727 * include/std/type_traits (__detected_or_t_): Remove.
1728 * testsuite/20_util/allocator_traits/members/pointers.cc: New test.
1732 * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
1733 Replace with class template using void_t.
1734 (__alloc_rebind): Define in terms of
1735 __allocator_traits_base::__rebind.
1736 (allocator_traits): Remove unconditional static_assert for
1738 * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
1739 (pointer_traits::__rebind): Replace with class template using void_t.
1740 (pointer_traits::rebind): Define in terms of __rebind.
1741 (pointer_traits): Remove unconditional static_assert for rebind.
1742 * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
1743 * testsuite/20_util/pointer_traits/rebind.cc: New test.
1746 * include/experimental/any (__any_caster): Avoid instantiating
1747 manager function for types that can't be stored in any.
1748 * include/std/any (__any_caster): Likewise.
1749 * testsuite/20_util/any/misc/any_cast.cc: Test non-copyable type.
1750 * testsuite/experimental/any/misc/any_cast.cc: Likewise.
1753 * include/bits/stl_algo.h (is_partitioned): Use increment instead of
1756 2017-01-19 Jonathan Wakely <jwakely@redhat.com>
1759 * include/bits/shared_ptr_base.h (__enable_shared_from_this_base):
1761 (__enable_shared_from_this): Declare __shared_ptr as a friend.
1762 * testsuite/ext/shared_ptr/1.cc: New test.
1765 * include/bits/stl_algo.h (is_partitioned): Don't retest the partition
1767 * testsuite/25_algorithms/is_partitioned/2.cc: New test.
1769 * doc/xml/manual/abi.xml: Fix typo.
1770 * doc/html/manual/abi.html: Likewise.
1773 * include/bits/predefined_ops.h (_Iter_less_val, _Val_less_iter): Add
1774 converting constructors from _Iter_less_iter.
1775 (_Iter_comp_val, _Val_comp_iter): Add converting constructors from
1777 (__iter_comp_val(_Iter_comp_iter<C>): Use converting constructor.
1778 (__val_comp_iter(_Iter_comp_iter<C>): Likewise.
1779 * include/bits/stl_heap.h (__is_heap_until, __push_heap, __pop_heap)
1780 (__make_heap, __sort_heap): Change _Compare parameters to references.
1781 (__is_heap, push_heap, __adjust_heap, __pop_heap, pop_heap)
1782 (__make_heap, make_heap, sort_heap, is_heap_until): Pass comparison
1783 functions as lvalues.
1784 (is_heap): Call __is_heap_until directly to avoid copying __comp.
1785 * testsuite/23_containers/priority_queue/67085.cc: Adjust test to
1786 count copies during construction with empty sequence.
1789 * include/bits/stl_heap.h (__is_heap): Use _GLIBCXX_MOVE.
1790 (__make_heap, __sort_heap): Don't use _GLIBCXX_MOVE inside loops.
1791 * testsuite/23_containers/priority_queue/67085.cc: Adjust expected
1793 * testsuite/25_algorithms/make_heap/movable.cc: New test.
1796 * include/bits/stl_heap.h (push_heap, __adjust_heap, __pop_heap)
1797 (pop_heap, __make_heap, make_heap, __sort_heap, sort_heap): Use
1798 _GLIBCXX_MOVE when passing comparison function to other functions.
1799 (is_heap_until, is_heap): Use std::move when passing comparison
1801 * testsuite/23_containers/priority_queue/67085.cc: New test.
1804 * doc/xml/manual/abi.xml (abi.versioning.history): Add markup to
1805 macro names, filenames, and literal values. Document _GLIBCXX_RELEASE.
1806 Document that the deprecated _GLIBCXX_VERSION macro was removed for
1808 * doc/html/*: Regenerate.
1809 * include/Makefile.am (_GLIBCXX_RELEASE): Set value.
1810 * include/Makefile.in: Regenerate.
1811 * include/bits/c++config (_GLIBCXX_RELEASE): Add #define.
1812 * testsuite/ext/profile/mutex_extensions_neg.cc: Use lineno of 0 in
1815 2017-01-18 Jonathan Wakely <jwakely@redhat.com>
1818 * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
1819 aligned buffer instead of default-initialized variable.
1820 * testsuite/29_atomics/atomic/69301.cc: New test.
1821 * include/experimental/memory (observer_ptr::release): Use reserved
1823 * include/ext/pointer.h (_Pointer_adapter::operator++(int))
1824 (_Pointer_adapter::operator--(int)): Likewise.
1827 * include/experimental/random (randint): Use temporary instead of
1828 thread_local static.
1830 2017-01-17 Joshua Conner <joshconner@google.com>
1832 * crossconfig.m4: Add fuchsia OS.
1833 * configure: Regenerate.
1835 2017-01-17 Jonathan Wakely <jwakely@redhat.com>
1838 * doc/xml/manual/abi.xml (abi.versioning.history): Explain why the
1839 __GLIBCXX__ macro is not useful. Remove redundant date information
1840 and link to the GCC release timeline.
1841 (abi.versioning.active): Move partial sentence into the previous
1843 * doc/html/*: Regenerate.
1846 * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
1847 of remove_reference.
1848 * testsuite/18_support/nested_exception/79114.cc: New test.
1850 2017-01-17 Jakub Jelinek <jakub@redhat.com>
1853 * configure.ac: Add GCC_BASE_VER.
1854 * fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
1855 get version from BASE-VER file.
1856 * po/Makefile.in: Regenerated.
1857 * libsupc++/Makefile.in: Regenerated.
1858 * testsuite/Makefile.in: Regenerated.
1859 * src/Makefile.in: Regenerated.
1860 * configure: Regenerated.
1861 * Makefile.in: Regenerated.
1862 * include/Makefile.in: Regenerated.
1863 * doc/Makefile.in: Regenerated.
1864 * python/Makefile.in: Regenerated.
1865 * src/c++11/Makefile.in: Regenerated.
1866 * src/c++98/Makefile.in: Regenerated.
1867 * src/filesystem/Makefile.in: Regenerated.
1869 2017-01-16 Jonathan Wakely <jwakely@redhat.com>
1872 * src/c++11/functexcept.cc: Use new ABI for std::ios_base::failure
1874 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Don't override ABI
1875 for test, so new ios::failure can be caught.
1876 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1877 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1878 exceptions_failbit.cc: Likewise.
1879 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1880 exceptions_failbit.cc: Likewise.
1881 * testsuite/27_io/basic_istream/extractors_other/char/
1882 exceptions_null.cc: Likewise.
1883 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1884 exceptions_null.cc: Likewise.
1885 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1886 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1887 * testsuite/27_io/basic_ostream/inserters_other/char/
1888 exceptions_null.cc: Likewise.
1889 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1890 exceptions_null.cc: Likewise.
1891 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1894 * include/bits/locale_classes.h (locale::facet::__shim): Change from
1895 private to protected.
1896 * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
1897 make locale::facet::__shim accessible.
1899 2017-01-16 Ville Voutilainen <ville.voutilainen@gmail.com>
1902 * include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
1903 (merge(list&&, _StrictWeakOrdering)): Likewise.
1904 * testsuite/23_containers/list/operations/78389.cc: Add
1905 better test for the sizes.
1907 2017-01-14 Jonathan Wakely <jwakely@redhat.com>
1909 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
1910 Skip test when -D_GLIBCXX_PROFILE mode is included in options.
1911 * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
1912 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
1914 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
1915 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
1916 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
1917 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
1918 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
1920 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
1922 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
1924 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
1926 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
1928 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
1929 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
1930 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
1931 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
1932 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
1933 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
1934 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
1935 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
1936 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
1937 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
1938 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
1939 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
1940 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1942 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
1945 * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
1946 retry fclose on EINTR.
1948 * include/profile/base.h: Remove unused header that leads to header
1949 cycle in C++17 mode.
1952 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
1953 Make _If_sv private.
1954 [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
1955 basic_string_view arguments.
1958 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
1959 redundant option from cxxflags.
1960 (check_effective_target_cxx11-abi): Define.
1961 * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
1963 * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
1964 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1966 * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
1968 * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
1969 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
1971 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
1973 * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
1974 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
1976 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1978 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
1980 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
1982 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
1984 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
1986 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
1988 * testsuite/23_containers/list/61347.cc: Likewise.
1989 * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
1990 * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
1992 2017-01-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1995 * include/bits/list.tcc (merge(list&&)):
1996 Adjust list sizes if the comparator throws.
1997 (merge(list&&, _StrictWeakOrdering)): Likewise.
1998 (sort()): Splice elements back from the scratch buffers
1999 if the comparator throws.
2000 (sort(_StrictWeakOrdering)): Likewise.
2001 * testsuite/23_containers/list/operations/78389.cc: New.
2003 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
2005 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
2006 XFAIL for C++17 until node reinsertion supports fancy pointers.
2009 * testsuite/20_util/add_pointer/value.cc: Test forming function
2012 2017-01-13 Michael Brune <lucdanton@free.fr>
2015 * include/std/type_traits (__is_referenceable): Handle noexcept
2018 2017-01-12 Jonathan Wakely <jwakely@redhat.com>
2021 * include/bits/stl_queue.h (queue, priority_queue): Remove default
2022 member-initializers and define default constructors as templates with
2024 * include/bits/stl_stack.h (stack): Likewise.
2025 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
2027 * testsuite/23_containers/priority_queue/requirements/
2028 explicit_instantiation/1.cc: Test more instantiations.
2029 * testsuite/23_containers/priority_queue/requirements/
2030 explicit_instantiation/1_c++98.cc: Likewise.
2031 * testsuite/23_containers/queue/requirements/constructible.cc: New.
2032 * testsuite/23_containers/stack/requirements/constructible.cc: New.
2035 * doc/xml/manual/intro.xml: Document LWG 2781 change.
2036 * doc/html/*: Regenerate.
2037 * include/std/functional (_Function_base::_Ref_manager): Remove.
2038 (_Function_handler): Remove partial specializations for
2040 (function::target): Remove special case for const qualification.
2041 * testsuite/20_util/function/6.cc: Adjust tests for target type.
2042 * testsuite/20_util/function/7.cc: Likewise.
2043 * testsuite/20_util/function/8.cc: Likewise.
2045 2017-01-11 Jonathan Wakely <jwakely@redhat.com>
2048 * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
2049 (map::equal_range): Fix return type of heterogeneous overloads.
2050 * include/bits/stl_multimap.h (multimap::lower_bound)
2051 (multimap::upper_bound, multimap::equal_range): Likewise.
2052 * include/bits/stl_multiset.h (multiset::lower_bound)
2053 (multiset::upper_bound, multiset::equal_range): Likewise.
2054 * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
2055 (set::equal_range): Likewise.
2056 * testsuite/23_containers/map/operations/2.cc
2057 * testsuite/23_containers/multimap/operations/2.cc
2058 * testsuite/23_containers/multiset/operations/2.cc
2059 * testsuite/23_containers/set/operations/2.cc
2062 * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
2063 the heterogeneous comparison can only find one match.
2064 * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
2065 * testsuite/23_containers/map/operations/2.cc: Test count works with
2066 comparison function that just partitions rather than sorting.
2067 * testsuite/23_containers/set/operations/2.cc: Likewise.
2069 2017-01-11 Ville Voutilainen <ville.voutilainen@gmail.com>
2071 Reduce the size of variant, it doesn't need an index of
2072 type size_t internally.
2073 * include/std/variant (parse_numbers.h): New include.
2074 (__select_index): New.
2075 (_Variant_storage<false, _Types...>::_M_reset_impl): Use
2076 _index_type for comparison with variant_npos.
2077 (_Variant_storage<false, _Types...>::__index_type): New.
2078 (_Variant_storage<false, _Types...>::_M_index): Change the
2079 type from size_t to __index_type.
2080 (_Variant_storage<true, _Types...>::__index_type): New.
2081 (_Variant_storage<true, _Types...>::_M_index): Change the
2082 type from size_t to __index_type.
2083 (_Variant_base::_M_valid): Use _Storage::__index_type
2084 for comparison with variant_npos.
2085 (variant::index): Use _Base::_Storage::__index_type
2086 for comparison with variant_npos.
2087 * testsuite/20_util/variant/index_type.cc: New.
2089 2017-01-10 Jonathan Wakely <jwakely@redhat.com>
2091 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
2092 effective target selector to prevent running in C++17 mode.
2095 * include/bits/stl_queue.h (queue::c): Add default member initializer.
2096 (queue::queue()): Add constructor and define as defaulted.
2097 (queue::queue(_Sequence&&)): Remove default argument.
2098 (priority_queue::c, priority_queue::comp): Add default member
2100 (priority_queue::priority_queue()): Add constructor and define as
2102 (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
2103 Remove default argument for first parameter.
2104 * include/bits/stl_stack.h (stack::c): Add default member initializer.
2105 (stack::stack()): Add constructor and define as defaulted.
2106 (stack::stack(const _Sequence&)): Remove default argument.
2107 * testsuite/23_containers/priority_queue/requirements/
2108 explicit_instantiation/1.cc: Test explicit instantiation with
2109 non-DefaultConstructible sequence.
2110 * testsuite/23_containers/priority_queue/77528.cc: New test.
2111 * testsuite/23_containers/priority_queue/requirements/
2112 explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
2113 * testsuite/23_containers/queue/77528.cc: New test.
2114 * testsuite/23_containers/queue/requirements/explicit_instantiation/
2115 1.cc: Test explicit instantiation with non-DefaultConstructible
2117 * testsuite/23_containers/queue/requirements/explicit_instantiation/
2118 1_c++0x.cc: Replace with 1_c++98.cc.
2119 * testsuite/23_containers/stack/77528.cc: New test.
2120 * testsuite/23_containers/stack/requirements/explicit_instantiation/
2121 1.cc: Test explicit instantiation with non-DefaultConstructible
2123 * testsuite/23_containers/stack/requirements/explicit_instantiation/
2124 1_c++0x.cc: Replace with 1_c++98.cc.
2126 2017-01-10 Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
2128 * include/bits/locale_facets_nonio.tcc
2129 (time_get::_M_extract_via_format): Avoid compilation errors with
2130 non-standard struct tm.
2132 2017-01-10 François Dumont <fdumont@gcc.gnu.org>
2133 Jonathan Wakely <jwakely@redhat.com>
2135 * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
2136 (is_specialization, strip_versioned_namespace): New helpers functions
2137 to work with symbols in the versioned namespace.
2138 (Printer.add_version): Add second name using versioned namespace.
2139 (add_one_template_type_printer, add_one_type_printer): Add second
2140 type printers using versioned namespace.
2141 (register_type_printers): Add template type printer for basic_string.
2142 (build_libstdcxx_dictionary): Remove dead code.
2143 * python/libstdcxx/v6/xmethods.py: Make all matchers look for
2144 versioned namespace.
2145 * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
2147 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
2149 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
2152 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
2153 functions separately on darwin and if they're missing define
2154 _GLIBCXX_NO_C99_ROUNDING_FUNCS.
2155 * config.h.in: Regenerate.
2156 * configure: Regenerate.
2157 * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
2158 (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
2160 * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
2161 to detect correct thread_local destructors.
2162 * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
2165 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
2166 Aditya Kumar <hiraditya@msn.com>
2169 * include/bits/basic_string.tcc
2170 (basic_string::find(const CharT*, size_type, size_type)): Optimize.
2172 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
2174 * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
2175 * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
2177 * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
2178 Include <cassert> header.
2181 * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
2182 * configure: Regenerate.
2184 2017-01-06 Barrett Adair <barrettellisadair@gmail.com>
2185 Jonathan Wakely <jwakely@redhat.com>
2187 * include/std/variant (variant, swap): Replace __and_ usage with fold
2190 2017-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2193 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
2194 * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
2195 GLIBCXX_CHECK_ASSEMBLER_HWCAP.
2196 * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
2198 * aclocal.m4: Regenerate.
2199 * configure: Regenerate.
2200 * Makefile.in, doc/Makefile.in, include/Makefile.in,
2201 libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
2202 src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
2203 src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
2205 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
2207 * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
2210 * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
2211 (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
2212 (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
2213 move function objects.
2214 (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
2215 (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
2216 * testsuite/25_algorithms/sort/78991.cc: New test.
2218 2017-01-05 Jonathan Wakely <jwakely@redhat.com>
2220 * include/bits/std_function.h (function::_Signature_type): Remove.
2221 (function::function(_Functor)): Adjust.
2223 2017-01-05 Tim Shen <timshen@google.com>
2226 * include/std/variant (__gen_vtable_impl): rename __unused to
2227 __dimensions to avoid naming conflict.
2229 2017-01-04 Jonathan Wakely <jwakely@redhat.com>
2232 * config.h.in: Regenerate.
2233 * configure: Likewise.
2234 * configure.ac: Check for __cxa_thread_atexit.
2235 * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
2236 Don't define __cxa_thread_atexit if libc provides it.
2238 2017-01-04 Ville Voutilainen <ville.voutilainen@gmail.com>
2240 Implement 2801, Default-constructibility of unique_ptr.
2241 * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
2242 (unique_ptr::_DeleterConstraint): Likewise.
2243 (unique_ptr()): Constrain.
2244 (unique_ptr(pointer)): Likewise.
2245 (unique_ptr(nullptr_t)): Likewise.
2246 (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
2247 (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
2248 (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
2249 (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
2250 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
2251 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
2252 * testsuite/20_util/unique_ptr/cons/default.cc: New.
2253 * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
2255 2017-01-04 Pauli Nieminen <suokkos@gmail.com>
2256 Jonathan Wakely <jwakely@redhat.com>
2259 * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
2260 * config.h.in: Regenerate.
2261 * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
2262 (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
2263 exports for exception_ptr, nested_exception, and future conditional.
2264 [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
2265 exports for exception_ptr, nested_exception, and future conditional.
2266 * configure: Regenerate.
2267 * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
2268 * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
2269 * libsupc++/eh_atomics.h: New file for internal use only.
2270 (__eh_atomic_inc, __eh_atomic_dec): New.
2271 * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
2272 (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
2273 (rethrow_exception): Use eh_atomics.h reference counting helpers.
2274 * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
2275 * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
2276 * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
2277 * libsupc++/exception_ptr.h: Likewise.
2278 * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
2279 * libsupc++/nested_exception.cc: Remove check for
2280 ATOMIC_INT_LOCK_FREE.
2281 * libsupc++/nested_exception.h: Likewise.
2282 * src/c++11/future.cc: Likewise.
2283 * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
2284 * testsuite/18_support/nested_exception/*: Likewise.
2285 * testsuite/30_threads/async/*: Likewise.
2286 * testsuite/30_threads/future/*: Likewise.
2287 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
2288 * testsuite/30_threads/packaged_task/*: Likewise.
2289 * testsuite/30_threads/promise/*: Likewise.
2290 * testsuite/30_threads/shared_future/*: Likewise.
2292 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
2294 * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
2295 defaults to https; adjust reference.
2297 2017-01-03 Jonathan Wakely <jwakely@redhat.com>
2300 * include/std/thread (thread(const thread&&)): Add deleted
2302 * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
2304 * doc/xml/manual/spine.xml: Update copyright years.
2305 * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
2306 * doc/xml/manual/test.xml: Likewise.
2307 * doc/html/*: Regenerate.
2309 2017-01-01 Gerald Pfeifer <gerald@pfeifer.com>
2311 * doc/xml/faq.xml: Update address of C++ ABI link.
2312 * doc/xml/manual/abi.xml: Ditto.
2314 2017-01-01 Jakub Jelinek <jakub@redhat.com>
2316 Update copyright years.
2318 Copyright (C) 2017 Free Software Foundation, Inc.
2320 Copying and distribution of this file, with or without modification,
2321 are permitted in any medium without royalty provided the copyright
2322 notice and this notice are preserved.