1 2017-06-15 François Dumont <fdumont@gcc.gnu.org>
3 * src/c++98/tree.cc [!_GLIBCXX_INLINE_VERSION]
4 (_Rb_tree_rotate_left, _Rb_tree_rotate_right): Delete.
6 2017-06-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8 * testsuite: Add dg-require-effective-target pthread to -pthread
10 Remove explicit target lists from dg-do and dg-options.
12 * testsuite/30_threads/async/forced_unwind.cc: Remove explit
13 target list from dg-options.
14 * testsuite/30_threads/packaged_task/forced_unwind.cc: Likewise.
16 * 30_threads/shared_mutex/cons/1.cc: Likewise.
17 Pass -pthread for all targets.
18 * 30_threads/shared_mutex/try_lock/1.cc: Likewise.
19 * 30_threads/shared_mutex/try_lock/2.cc: Likewise.
20 * 30_threads/shared_mutex/unlock/1.cc: Likewise.
22 * testsuite/30_threads/this_thread/57060.cc: Require c++11 via
23 dg-require-effective-target.
25 2017-06-14 Jonathan Wakely <jwakely@redhat.com>
27 * doc/xml/manual/test.xml: Correct instructions on running tests.
28 * testsuite/21_strings/basic_string/cons/char/deduction.cc: Adjust to
29 pass when -D_GLIBCXX_USE_CXX11_ABI=0 added to RUNTESTFLAGS.
30 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
32 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Likewise.
33 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
34 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
35 exceptions_failbit.cc: Likewise.
36 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
37 exceptions_failbit.cc: Likewise.
38 * testsuite/27_io/basic_istream/extractors_other/char/
39 exceptions_null.cc: Likewise.
40 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
41 exceptions_null.cc: Likewise.
42 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
43 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
44 * testsuite/27_io/basic_ostream/inserters_other/char/
45 exceptions_null.cc: Likewise.
46 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
47 exceptions_null.cc: Likewise.
48 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
50 2017-06-12 Pedro Alves <palves@redhat.com>
52 * doc/xml/manual/status_cxx2017.xml: Update C++17 constexpr
54 * doc/html/*: Regenerate.
56 * include/bits/char_traits.h (_GLIBCXX_ALWAYS_INLINE): Define if
58 (__cpp_lib_constexpr_char_traits): Uncomment.
59 (__constant_string_p, __constant_char_array_p): New.
60 (std::char_traits<char>, std::char_traits<wchar_t>): Add
61 _GLIBCXX17_CONSTEXPR on compare, length and find and use
62 __constant_string_p, __constant_char_array_p and
63 __builtin_constant_p to defer to __gnu_cxx::char_traits at compile
66 * testsuite/21_strings/char_traits/requirements/
67 constexpr_functions_c++17.cc: Uncomment
68 __cpp_lib_constexpr_char_traits tests. Uncomment
69 test_compare<char>, test_length<char>, test_find<char>,
70 test_compare<wchar_t>, test_length<wchar_t> and test_find<wchar_t>
73 2017-06-12 François Dumont <fdumont@gcc.gnu.org>
75 * include/bits/stl_tree.h (_Rb_tree_impl()): Restore _Node_allocator
77 * testsuite/util/testsuite_allocator.h
78 (__gnu_test::default_init_allocator<>) New.
79 * testsuite/23_containers/set/allocator/default_init.cc: New.
80 * testsuite/23_containers/map/allocator/default_init.cc: New.
82 2017-06-12 Jonathan Wakely <jwakely@redhat.com>
85 * src/c++11/thread.cc (execute_native_thread_routine): Remove
86 try-block so that exceptions propagate out of the thread and terminate
87 is called by the exception-handling runtime.
88 (execute_native_thread_routine_compat): Likewise.
89 * testsuite/30_threads/thread/cons/terminate.cc: New.
91 2017-06-09 Jonathan Wakely <jwakely@redhat.com>
93 * doc/xml/manual/intro.xml: Document LWG 2802, 2873 and 2942 changes.
94 * include/bits/shared_ptr.h (shared_ptr): Use rvalues for deleters
96 * include/bits/shared_ptr_base.h (_Sp_ebo_helper, _Sp_counted_deleter
97 (_Sp_counted_deleter::_Impl, __shared_count, __shared_ptr): Likewise.
98 * testsuite/20_util/shared_ptr/cons/lwg2802.cc: New.
100 * include/bits/forward_list.h (forward_list): Add deduction guide.
101 * include/bits/stl_deque.h (deque): Likewise.
102 * include/bits/stl_list.h (list): Likewise.
103 * include/bits/stl_vector.h (vector): Likewise.
104 * testsuite/23_containers/deque/cons/deduction.cc: New.
105 * testsuite/23_containers/forward_list/cons/deduction.cc: New.
106 * testsuite/23_containers/list/cons/deduction.cc: New.
107 * testsuite/23_containers/vector/cons/deduction.cc: New.
109 2017-06-08 Jonathan Wakely <jwakely@redhat.com>
112 * include/bits/std_function.h (function::function(function&&))
113 (function::operator=(funtion&&)): Add noexcept.
114 * testsuite/20_util/function/assign/move.cc: Check for noexcept.
115 * testsuite/20_util/function/cons/move.cc: Likewise.
117 2017-06-07 Jonathan Wakely <jwakely@redhat.com>
119 * include/bits/regex.h (basic_regex): Add deduction guide from P0433.
120 * testsuite/28_regex/basic_regex/ctors/deduction.cc: New.
123 * include/bits/regex.h (basic_regex): Adjust call to __compile_nfa
124 so iterator type is deduced.
125 * include/bits/regex_compiler.h (__compile_nfa): Reorder template
126 parameters to allow iterator type to be deduced.
127 * testsuite/28_regex/basic_regex/ctors/basic/iter.cc: New.
129 * include/bits/alloc_traits.h (__is_allocator, _RequireAllocator):
130 New trait and alias for detecting Allocator-like types.
131 * include/bits/basic_string.h (basic_string): Add deduction guide
133 * include/ext/alloc_traits.h (__gnu_cxx::__alloc_traits): Add template
134 parameter with default template argument that causes substitution
135 failures for types that cannot be allocators.
136 * testsuite/21_strings/basic_string/cons/char/deduction.cc: New.
137 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc: New.
139 2017-06-02 Jonathan Wakely <jwakely@redhat.com>
142 * include/std/variant (__erased_ctor, __erased_assign, __erased_swap)
143 (__erased_hash): Remove constexpr specifier and qualify calls to
145 (__erased_dtor): Remove constexpr specifier and use _Destroy.
147 2017-06-05 Jonathan Wakely <jwakely@redhat.com>
149 * include/bits/stl_iterator_base_funcs.h
150 (__advance<_RandomAccessIterator, _Distance>): Optimize for next/prev
151 cases where incrementing or decrementing a single step.
153 * include/bits/shared_ptr_base.h (__shared_ptr::owner_before)
154 (__weak_ptr::owner_before, _Sp_owner_less::operator()): Add noexcept
155 specifiers as per LWG 2873 and LWG 2942.
156 * testsuite/20_util/owner_less/noexcept.cc: New.
157 * testsuite/20_util/shared_ptr/observers/owner_before.cc: Test
159 * testsuite/20_util/weak_ptr/observers/owner_before.cc: Likewise.
161 2017-06-03 Andreas Schwab <schwab@linux-m68k.org>
163 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
165 2017-06-03 Eric Botcazou <ebotcazou@adacore.com>
167 * src/filesystem/dir.cc (fs::_Dir::advance): Use std::exchange.
169 2017-06-02 Jonathan Wakely <jwakely@redhat.com>
172 * doc/xml/manual/status_cxx2011.xml: Document to_int_type behaviour.
173 * include/bits/char_traits.h (char_traits<char16_t>::to_int_type):
174 Transform eof value to U+FFFD.
175 * testsuite/21_strings/char_traits/requirements/char16_t/eof.cc: New.
176 * testsuite/27_io/basic_streambuf/sgetc/char16_t/80624.cc: New.
177 * testsuite/27_io/basic_streambuf/sputc/char16_t/80624.cc: New.
179 * libsupc++/Makefile.am: Remove custom targets for files that need to
180 be compiled as C++11 or C++14.
181 * libsupc++/Makefile.in: Regenerate.
182 * libsupc++/del_ops.cc: Use pragma to disable -Wsized-deallocation
184 * libsupc++/del_opvs.cc: Likewise.
186 2017-06-02 Richard Biener <rguenther@suse.de>
187 Markus Eisenmann <meisenmann.lba@fh-salzburg.ac.at>
190 * libsupc++/eh_alloc.cc (pool::free): Keep list properly
191 sorted and add missing freelist item merging cases.
193 2017-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
195 (GLIBCXX_CROSSCONFIG): Handle *-solaris* like *-linux* etc.
196 Remove *-solaris* section.
197 * configure: Regenerate.
199 2017-05-31 Jonathan Wakely <jwakely@redhat.com>
202 * include/bits/stl_bvector.h (vector<bool>::_M_initialize): Avoid
203 null pointer dereference when size is zero.
204 * testsuite/23_containers/vector/bool/80893.cc: New.
205 * testsuite/util/testsuite_allocator.h (PointerBase::PointerBase):
206 Add non-explicit constructor from nullptr.
207 (PointerBase::derived() const): Add const-qualified overload.
209 2017-05-20 Tim Shen <timshen@google.com>
212 * include/std/variant(variant::variant): SFINAE on is_same first.
213 * testsuite/20_util/variant/any.cc: test case.
215 2017-05-24 Jonathan Wakely <jwakely@redhat.com>
217 * src/c++11/random.cc (random_device::_M_getentropy): Use __CHAR_BIT__
218 instead of fixed number of bits.
220 2017-05-24 Andreas Schwab <schwab@suse.de>
222 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
223 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Likewise.
225 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
226 Jonathan Wakely <jwakely@redhat.com>
229 * acinclude.m4: Bump libtool_VERSION.
230 * config/abi/pre/gnu.ver: Create GLIBCXX_3.4.24 with new symbol.
231 * config.h.in: Regenerate.
232 * configure: Regenerate.
233 * configure.ac: Add test for <linux/random.h>.
234 * doc/xml/manual/abi.xml: Document new library version.
235 * include/bits/random.h (random_device::entropy)
236 [_GLIBCXX_USE_RANDOM_TR1]: Add call to new _M_getentropy member.
237 (random_device::_M_getentropy): Declare.
238 * src/c++11/random.cc (random_device::_M_getentropy): Define.
239 * testsuite/util/testsuite_abi.cc: Add GLIBCXX_3.4.24 to known
240 versions, and make it the latest version.
242 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
245 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Add
246 explicit conversion to avoid signed overflow.
248 2017-05-19 Jonathan Wakely <jwakely@redhat.com>
251 * include/bits/stl_algo.h (search): Add new overload for C++17.
252 * testsuite/25_algorithms/search/searcher.cc: New.
254 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
257 * include/std/functional (_Mem_fn_traits_base): Add specializations
258 for noexcept member function types.
259 * testsuite/20_util/function_objects/mem_fn/80478.cc: New test.
261 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
263 * doc/xml/manual/policy_data_structures.xml: Fix typo.
264 * doc/xml/manual/test_policy_data_structures.xml: Likewise.
265 * doc/html/*: Regenerate.
267 * doc/xml/manual/abi.xml: Document latest library versions.
268 * doc/xml/manual/build_hacking.xml: Document requirement to update
269 abi.xml when bumping library versions.
270 * doc/html/*: Regenerate.
272 2017-05-17 Jonathan Wakely <jwakely@redhat.com>
274 * include/bits/refwrap.h: Fix Doxygen warning.
275 * include/bits/specfun.h: Likewise.
276 * include/bits/std_function.h: Likewise.
277 * include/bits/stl_algo.h (set_union, set_intersection)
278 (set_difference, set_symmetric_difference): Add Doxygen @param tags
279 for output iterator parameters.
280 * include/bits/stl_iterator.h (inserter): Add Doxygen @param tag for
282 * include/std/mutex (try_lock, lock): Change Mutex to Lockable in
285 2017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
287 Implement new C++ intrinsics __is_assignable and __is_constructible.
288 * include/std/type_traits (__do_is_static_castable_impl): Remove.
289 (__is_static_castable_impl, __is_static_castable_safe): Likewise.
290 (__is_static_castable, __do_is_direct_constructible_impl): Likewise.
291 (__is_direct_constructible_impl): Likewise.
292 (__is_direct_constructible_new_safe): Likewise.
293 (__is_base_to_derived_ref, __is_lvalue_to_rvalue_ref): Likewise.
294 (__is_direct_constructible_ref_cast): Likewise.
295 (__is_direct_constructible_new, __is_direct_constructible): Likewise.
296 (__do_is_nary_constructible_impl): Likewise.
297 (__is_nary_constructible_impl, __is_nary_constructible): Likewise.
298 (__is_constructible_impl): Likewise.
299 (is_constructible): Call the intrinsic.
300 (__is_assignable_helper): Remove.
301 (is_assignable): Call the intrinsic.
302 (is_trivially_constructible): Likewise.
303 (__is_trivially_copy_constructible_impl): New.
304 (is_trivially_copy_constructible): Use it.
305 (__is_trivially_move_constructible_impl): New.
306 (is_trivially_move_constructible): Use it.
307 (is_trivially_assignable): Call the intrinsic.
308 (__is_trivially_copy_assignable_impl): New.
309 (is_trivially_copy_assignable): Use it.
310 (__is_trivially_move_assignable_impl): New.
311 (is_trivially_move_assignable): Use it.
312 (testsuite/20_util/declval/requirements/1_neg.cc): Adjust.
313 (testsuite/20_util/is_trivially_copy_assignable/value.cc):
315 (testsuite/20_util/is_trivially_copy_constructible/value.cc): Likewise.
316 (testsuite/20_util/is_trivially_move_assignable/value.cc): Likewise.
317 (testsuite/20_util/is_trivially_move_constructible/value.cc): Likewise.
318 (testsuite/20_util/make_signed/requirements/typedefs_neg.cc): Adjust.
319 (testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc):
322 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
324 * testsuite/experimental/source_location/1.cc: Change expected result
325 for source_location::current() used in default member initializer.
327 * doc/xml/manual/status_cxx2017.xml: Update status table.
328 * doc/html/*: Regenerate.
329 * include/Makefile.am: Add new header.
330 * include/Makefile.in: Regenerate.
331 * include/experimental/source_location: New header implementing N4519.
332 * testsuite/experimental/source_location/1.cc: New test.
335 * include/bits/shared_ptr_base.h [!__cpp_rtti] (type_info): Declare
336 outside versioned namespace.
338 * configure: Regenerate.
340 2017-05-16 Marc Glisse <marc.glisse@inria.fr>
342 * include/std/optional (_Optional_base::_M_get): Check precondition.
343 * testsuite/20_util/optional/cons/value_neg.cc: Update line numbers.
345 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
347 * doc/xml/manual/appendix_contributing.xml: Link to test docs and
348 note higher DejaGnu version requirement.
349 * doc/html/*: Regenerate.
351 * doc/xml/manual/appendix_contributing.xml: Link to the list of bad
353 * doc/html/*: Regenerate.
355 2017-05-15 Jonathan Wakely <jwakely@redhat.com>
358 * include/bits/node_handle.h (_Node_insert_return): Reorder members.
359 (tuple_size, tuple_element): Remove partial specializations.
360 * include/bits/stl_tree.h (_Rb_tree::insert_return_type): Use
361 const_iterator for std::set.
362 * testsuite/23_containers/map/modifiers/extract.cc: New.
363 * testsuite/23_containers/set/modifiers/extract.cc: New.
364 * testsuite/23_containers/unordered_map/modifiers/extract.cc: New.
365 * testsuite/23_containers/unordered_set/modifiers/extract.cc: New.
367 2017-05-12 Jonathan Wakely <jwakely@redhat.com>
370 * include/std/utility (tuple_size<cv T>): Only define partial
371 specializations when tuple_size<T>::value is valid.
372 * testsuite/20_util/tuple/78939.cc: New.
373 * testsuite/20_util/tuple/cv_tuple_size_neg.cc: New.
375 2017-05-11 François Dumont <fdumont@gcc.gnu.org>
377 * include/bits/stl_tree.h [_GLIBCXX_INLINE_VERSION]
378 (_Rb_tree_impl<>): Remove _Is_pod_comparator
381 * include/debug/formatter.h [_GLIBCXX_INLINE_VERSION]
382 (__gnu_debug::_Error_formatter::_Parameter::_M_print_field): Remove.
383 (__gnu_debug::_Error_formatter::_Parameter::_M_print_description):
385 (__gnu_debug::_Error_formatter::_M_format_word): Remove.
386 (__gnu_debug::_Error_formatter::_M_print_word): Remove.
387 (__gnu_debug::_Error_formatter::_M_print_string): Remove.
388 (__gnu_debug::_Error_formatter::_M_get_max_length): Remove.
389 * src/c++11/debug.cc: Adapt.
390 * config/abi/pre/gnu-versioned-namespace.ver: Adapt.
392 2017-05-11 Jonathan Wakely <jwakely@redhat.com>
394 * doc/xml/manual/allocator.xml: Fix ViewCVS URLs.
395 * doc/xml/manual/mt_allocator.xml: Likewise.
396 * doc/html/*: Regenerate.
399 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Define
400 function to get unique fake std::type_info reference.
401 (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Compare to
402 _S_ti() fake reference.
403 (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Share
404 single implementation with or without RTTI enable.
405 [!__cpp_rtti]: Pass fake reference to _M_get_deleter.
406 * testsuite/20_util/shared_ptr/creation/alloc.cc: Change expected
407 allocation and deallocation counts.
408 * testsuite/20_util/shared_ptr/creation/single_allocation.cc: New.
409 * testsuite/20_util/shared_ptr/creation/single_allocation_no_rtti.cc:
412 2017-05-10 François Dumont <fdumont@gcc.gnu.org>
414 Bump version namespace.
415 * config/abi/pre/gnu-versioned-namespace.ver: Bump version namespace
416 from __7 to __8. Bump GLIBCXX_7.0 to GLIBCXX_8.0.
417 * acinclude.m4 (libtool_VERSION): Bump to 8:0:0.
418 * include/bits/c++config: Adapt.
419 * include/bits/regex.h: Adapt.
420 * include/experimental/bits/fs_fwd.h: Adapt.
421 * include/experimental/bits/lfts_config.h: Adapt.
422 * include/std/variant: Adapt.
423 * python/libstdcxx/v6/printers.py: Adapt.
424 * testsuite/libstdc++-prettyprinters/48362.cc: Adapt.
426 * include/bits/stl_algobase.h (std::__iter_swap<false>): Remove
429 2017-05-09 Jason Merrill <jason@redhat.com>
431 * testsuite/24_iterators/container_access.cc (test03): Make il3 static.
433 2017-05-08 Jonathan Wakely <jwakely@redhat.com>
435 * include/std/optional: Use a separate static_assert per condition.
436 * testsuite/20_util/optional/cons/value_neg.cc: Update dg-error line
439 * doc/xml/manual/mt_allocator.xml: Clarify deallocation behaviour.
440 * doc/html/*: Regenerate.
442 2017-05-02 Hugo Beauzée-Luyssen <hugo@beauzee.fr>
445 * config/os/mingw32-w64/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
447 2017-04-29 François Dumont <fdumont@gcc.gnu.org>
449 * testsuite/libstdc++-prettyprinters/48362.cc: Replace a regexp-test
452 2017-04-28 Jonathan Wakely <jwakely@redhat.com>
455 * include/bits/stl_construct.h (_Destroy, _Destroy_n): Add static
456 assertions to ensure type is destructible.
457 (destroy_at, destroy, destroy_n): Move from stl_uninitialized.h.
458 * include/bits/stl_uninitialized.h (destroy_at, destroy, destroy_n):
459 Move to stl_construct.h.
460 * testsuite/20_util/specialized_algorithms/memory_management_tools/
461 destroy_neg.cc: New test.
462 * testsuite/23_containers/vector/cons/destructible_neg.cc: New test.
464 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
465 superfluous "" in dg-error.
467 2017-04-28 Tom de Vries <tom@codesourcery.com>
469 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
470 superfluous '{ target *-*-* }' in dg-(error|warning|message|bogus).
472 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
474 * include/ext/pb_ds/detail/list_update_map_/iterators_fn_imps.hpp
475 (PB_DS_CLASS_C_DEC::end()): Remove redundant const in cast type.
476 * testsuite/util/testsuite_rng.h (twister_rand_gen::get_prob()):
479 2017-04-26 Jonathan Wakely <jwakely@redhat.com>
481 * testsuite/23_containers/deque/allocator/move_assign-2.cc: Improve
482 comment. Ensure first test works because allocator type propagates and
483 not because is_always_equal is true.
484 * testsuite/23_containers/vector/52591.cc: Likewise. Restore original
485 testcase that instantiates the move-assignment operator.
487 2017-04-24 Jonathan Wakely <jwakely@redhat.com>
490 * include/bits/random.tcc (gamma_distribution::operator()): Fix magic
491 number used in loop condition.
494 * include/bits/refwrap.h (ref, cref): Qualify calls.
495 * testsuite/20_util/reference_wrapper/80504.cc: New test.
498 * include/experimental/optional (optional::swap): Fix exception
501 2017-04-21 Jonathan Wakely <jwakely@redhat.com>
504 * include/std/future (_State_baseV2::_Setter::operator()): Remove
505 _S_check calls that are done after the pointer to the shared state is
506 already dereferenced.
507 (_State_baseV2::_Setter<_Res, void>): Define specialization for void
508 as partial specialization so it can be defined within the definition
510 (_State_baseV2::__setter): Call _S_check.
511 (_State_baseV2::__setter(promise<void>*)): Add overload for use by
512 promise<void>::set_value and promise<void>::set_value_at_thread_exit.
513 (promise<T>, promise<T&>, promise<void>): Make _State a friend.
514 (_State_baseV2::_Setter<void, void>): Remove explicit specialization.
515 (promise<void>::set_value, promise<void>::set_value_at_thread_exit):
516 Use new __setter overload.
517 * testsuite/30_threads/promise/members/at_thread_exit2.cc: New test.
518 * testsuite/30_threads/promise/members/set_exception.cc: Test
519 promise<T&> and promise<void> specializations.
520 * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
521 Test for no_state error condition.
522 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
524 * include/backward/auto_ptr.h: Ignore deprecated warnings from use
526 * include/bits/shared_ptr.h: Likewise.
527 * include/bits/shared_ptr_base.h: Likewise.
528 * include/bits/unique_ptr.h: Likewise.
529 * libstdc++-v3/testsuite/20_util/default_delete/48631_neg.cc: Adjust
531 * libstdc++-v3/testsuite/20_util/default_delete/void_neg.cc: Likewise.
532 * libstdc++-v3/testsuite/20_util/unique_ptr/assign/48635_neg.cc:
534 * libstdc++-v3/testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc:
537 2017-04-20 Edward Smith-Rowland <3dw4rd@verizon.net>
539 PR libstdc++/68397 std::tr1::expint fails ... long double arguments.
540 * include/tr1/exp_integral.tcc: Increase iteration limits.
541 * testsuite/tr1/5_numerical_facilities/special_functions/15_expint/
542 pr68397.cc: New test.
543 * testsuite/special_functions/14_expint/pr68397.cc: New test.
545 2017-04-20 Jonathan Wakely <jwakely@redhat.com>
548 * include/std/atomic [!_GLIBCXX_USE_C99_STDINT_TR1] (atomic_int8_t)
549 (atomic_uint8_t, atomic_int16_t, atomic_uint16_t, atomic_int32_t,
550 (atomic_uint32_t, atomic_int64_t, atomic_uint64_t)
551 (atomic_int_least8_t, atomic_uint_least8_t, atomic_int_least16_t)
552 (atomic_uint_least16_t, atomic_int_least32_t, atomic_uint_least32_t)
553 (atomic_int_least64_t, atomic_uint_least64_t, atomic_int_fast8_t)
554 (atomic_uint_fast8_t, atomic_int_fast16_t, atomic_uint_fast16_t)
555 (atomic_int_fast32_t, atomic_uint_fast32_t, atomic_int_fast64_t)
556 (atomic_uint_fast64_t, atomic_intmax_t, atomic_uintmax_t): Don't
559 2017-04-19 Jonathan Wakely <jwakely@redhat.com>
561 * doc/xml/manual/abi.xml: Rephrase one of the references to the
563 * doc/xml/manual/test.xml: Document DejaGnu 1.5.3 requirement.
564 * doc/html/*: Regenerate.
566 * libsupc++/new: Update comment on #endif directive.
569 * include/experimental/bits/fs_dir.h (directory_iterator)
570 (recursive_directory_iterator): Remove noexcept from defaulted
574 * include/std/type_traits (is_aggregate): Change __has_builtin checks.
575 * libsupc++/new (launder): Likewise.
577 2017-04-18 Jonathan Wakely <jwakely@redhat.com>
579 * include/std/functional (default_searcher, __boyer_moore_array_base)
580 (__is_std_equal_to, __boyer_moore_base_t, boyer_moore_searcher)
581 (boyer_moore_horspool_searcher): Remove redundant namespace
583 (default_searcher::operator()): Construct return value early and
584 advance second member in-place.
585 (boyer_moore_horspool_searcher::operator()): Increment random access
586 iterator directly instead of using std::next.
587 (boyer_moore_searcher::operator()): Fix return value.
588 * testsuite/20_util/function_objects/searchers.cc: Check both parts
591 2017-04-12 Gerald Pfeifer <gerald@pfeifer.com>
593 * doc/xml/faq.xml: Update reference link to C++ ABI for Itanium.
594 * doc/xml/manual/abi.xml. Ditto (thrice).
596 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
598 * doc/xml/manual/status_cxx2017.xml: Remove duplicate table entry.
599 * doc/html/*: Regenerate.
601 * testsuite/20_util/reference_wrapper/invoke.cc: Uncomment tests
604 * include/bits/ios_base.h: Correct comment.
605 * testsuite/util/testsuite_hooks.h: Likewise.
607 * doc/xml/manual/status_cxx2017.xml: Update C++17 status table.
608 * doc/xml/manual/appendix_contributing.xml (contrib.organization): Add
609 directories for debug, parallel and profile headers.
610 * doc/html/*: Regenerate.
612 * include/bits/char_traits.h (__gnu_cxx::char_traits): Add
613 _GLIBCXX14_CONSTEXPR on assign, compare, find, and length.
614 (std::char_traits<char>, std::char_traits<wchar_t>): Add
615 _GLIBCXX17_CONSTEXPR on assign.
616 (std::char_traits<char16_t>, std::char_traits<char32_t>): Add
617 _GLIBCXX17_CONSTEXPR on assign, compare, find, and length.
618 * testsuite/21_strings/char_traits/requirements/
619 constexpr_functions_c++17.cc: New test.
621 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
624 * include/bits/stl_pair.h (__nonesuch_no_braces): New.
625 (operator=(typename conditional<
626 __and_<is_copy_assignable<_T1>,
627 is_copy_assignable<_T2>>::value,
628 const pair&, const __nonesuch&>::type)): Change __nonesuch
629 to __nonesuch_no_braces.
630 (operator=(typename conditional<
631 __not_<__and_<is_copy_assignable<_T1>,
632 is_copy_assignable<_T2>>>::value,
633 const pair&, const __nonesuch&>::type)): Likewise.
634 (operator=(typename conditional<
635 __and_<is_move_assignable<_T1>,
636 is_move_assignable<_T2>>::value,
637 pair&&, __nonesuch&&>::type)): Likewise.
638 * testsuite/20_util/pair/79141.cc: New.
640 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
642 Implement std::is_aggregate.
643 * include/std/type_traits (is_aggregate, is_aggregate_v): New.
644 * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc:
646 * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise.
647 * testsuite/20_util/is_aggregate/value.cc: Likewise.
649 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
651 Adjust optional's pretty printer for LWG 2900.
652 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter.__init__):
653 Look at the nested payload in case of non-experimental optional.
655 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
657 Implement LWG 2900, The copy and move constructors
658 of optional are not constexpr.
659 * include/std/optional (_Optional_payload): New.
660 (_Optional_base): Remove the bool parameter.
661 (_Optional_base<_Tp, false>): Remove.
662 (_Optional_base()): Adjust.
663 (_Optional_base(nullopt_t)): Likewise.
664 (_Optional_base(in_place_t, _Args&&...)): Likewise.
665 (_Optional_base(in_place_t, initializer_list<_Up>, _Args&&...)):
667 (_Optional_base(const _Optional_base&)): Likewise.
668 (_Optional_base(_Optional_base&&)): Likewise.
669 (operator=(const _Optional_base&)): Likewise.
670 (operator=(_Optional_base&&)): Likewise.
671 (~_Optional_base()): Remove.
672 (_M_is_engaged()): Adjust.
673 (_M_get()): Likewise.
674 (_M_construct(_Args&&...)): Likewise.
675 (_M_destruct()): Likewise.
676 (_M_reset()): Likewise.
677 (_Optional_base::_Empty_byte): Remove.
678 (_Optional_base::_M_empty): Remove.
679 (_Optional_base::_M_payload): Adjust.
680 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
681 * testsuite/20_util/optional/constexpr/cons/value.cc: Add tests.
683 2017-03-28 Jonathan Wakely <jwakely@redhat.com>
686 * include/bits/random.tcc (generate_canonical): Use std::nextafter
687 or numeric_limits::epsilon() to reduce out-of-range values.
688 * testsuite/26_numerics/random/uniform_real_distribution/operators/
689 64351.cc: Verify complexity requirement is met.
691 * doc/xml/manual/abi.xml: Add xml:id anchor.
692 * doc/xml/manual/using.xml (manual.intro.using.macros): Document
693 _GLIBCXX_RELEASE. Link to new anchor for __GLIBCXX__ notes.
694 (concurrency.io.structure): Add markup.
695 * doc/html/*: Regenerate.
698 * include/bits/shared_ptr_base.h
699 (__shared_ptr::_M_enable_shared_from_this_with): Change parameters to
700 non-const and then use remove_cv to get unqualified type.
701 * testsuite/20_util/enable_shared_from_this/members/const.cc: Don't
702 cast away constness on object created const.
703 * testsuite/20_util/shared_ptr/cons/80229.cc: New test.
705 2017-03-26 Markus Trippelsdorf <markus@trippelsdorf.de>
708 * include/bits/stl_tree.h:
709 (_Rb_tree_header::_M_move_data(_Rb_tree_header&)): Also save _M_color.
711 2017-03-23 Jonathan Wakely <jwakely@redhat.com>
713 * testsuite/23_containers/array/tuple_interface/
714 tuple_element_debug_neg.cc: Adjust dg-error.
715 * testsuite/23_containers/list/operations/78389.cc: Fix less-than to
716 define a valid strict weak ordering.
717 * testsuite/23_containers/priority_queue/67085.cc: Disable test for
718 Debug Mode, due to debug checks making extra copies of predicate.
719 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
722 * doc/xml/faq.xml: Add link.
723 * doc/xml/manual/backwards_compatibility.xml: Remove outdated
724 information on pre-ISO headers. Replace broken link to C++ FAQ Lite.
725 * doc/xml/manual/io.xml: Update broken link.
726 * doc/html/*: Regenerate.
728 2017-03-23 Daniel Kruegler <daniel.kruegler@gmail.com>
730 Implement LWG 2686, Why is std::hash specialized for error_code,
731 but not error_condition?
732 * include/std/system_error (hash<error_condition>): Define for C++17.
733 * testsuite/20_util/hash/operators/size_t.cc (hash<error_condition>):
734 Instantiate test for error_condition.
735 * testsuite/20_util/hash/requirements/explicit_instantiation.cc
736 (hash<error_condition>): Instantiate hash<error_condition>.
738 * include/bits/c++config (_GLIBCXX17_INLINE): Define.
739 * include/bits/regex_constants.h (All std::regex_constants constants):
740 Add _GLIBCXX17_INLINE as per P0607R0.
741 * include/bits/std_mutex.h (defer_lock, try_to_lock, adopt_lock):
743 * include/bits/stl_pair.h (piecewise_construct): Likewise.
744 * include/bits/uses_allocator.h (allocator_arg, uses_allocator_v)
745 (__is_uses_allocator_constructible_v)
746 (__is_nothrow_uses_allocator_constructible_v): Likewise.
747 * include/std/chrono (treat_as_floating_point_v): Likewise.
748 * include/std/functional (is_bind_expression_v, is_placeholder_v):
750 * include/std/optional (nullopt): Likewise.
751 * include/std/ratio (ratio_equal_v, ratio_not_equal_v, ratio_less_v)
752 ratio_less_equal_v, ratio_greater_v, ratio_greater_equal_v): Likewise.
753 * include/std/system_error (is_error_code_enum_v)
754 (is_error_condition_enum_v): Likewise.
755 * include/std/tuple (tuple_size_v, ignore): Likewise.
756 (ignore): Declare ignore constexpr as per LWG 2773, declare assignment
757 constexpr as per LWG 2933.
758 * include/std/type_traits (All variable templates): Add
759 _GLIBCXX17_INLINE as per P0607R0.
760 * include/std/variant (variant_size_v, variant_npos, __index_of_v)
761 (__tuple_count_v, __exactly_once): Likewise.
762 * testsuite/18_support/headers/new/synopsis.cc
763 (hardware_destructive_interference_size)
764 (hardware_constructive_interference_size): Likewise for commented-out
766 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Add new
767 test function for constexpr std::ignore (LWG 2773).
768 * testsuite/20_util/tuple/creation_functions/constexpr_cpp14.cc: New
771 2017-03-22 Jonathan Wakely <jwakely@redhat.com>
773 * include/bits/shared_ptr.h (shared_ptr, weak_ptr): Add deduction
775 * include/bits/std_function.h (function): Likewise.
776 * include/bits/stl_pair.h (pair): Likewise.
777 * include/debug/array (__gnu_debug::array): Likewise.
778 * include/std/array (array): Likewise.
779 * include/std/functional (make_default_searcher)
780 (make_boyer_moore_searcher, make_boyer_moore_horspool_searcher):
781 Remove generator functions.
782 * include/std/tuple (tuple): Add deduction guides.
783 * include/std/valarray (valarray): Likewise.
784 * testsuite/20_util/function_objects/searchers.cc: Adjust to use
785 class template argument deduction instead of generator functions.
786 * testsuite/20_util/function/cons/deduction.cc: New test.
787 * testsuite/20_util/optional/cons/deduction_guide.cc: Rename to ...
788 * testsuite/20_util/optional/cons/deduction.cc: ... here.
789 * testsuite/20_util/pair/cons/deduction.cc: New test.
790 * testsuite/20_util/shared_ptr/cons/deduction.cc: New test.
791 * testsuite/20_util/tuple/cons/deduction.cc: New test.
792 * testsuite/20_util/tuple/element_access/get_neg.cc: Adjust dg-error.
793 * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: New test.
794 * testsuite/20_util/weak_ptr/cons/deduction.cc: New test.
795 * testsuite/23_containers/array/cons/deduction.cc: New test.
796 * testsuite/23_containers/array/cons/deduction_neg.cc: New test.
797 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
799 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise.
800 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
802 * testsuite/26_numerics/valarray/deduction.cc: New test.
803 * testsuite/30_threads/lock_guard/cons/deduction.cc: New test.
804 * testsuite/30_threads/scoped_lock/cons/deduction.cc: New test.
805 * testsuite/30_threads/unique_lock/cons/deduction.cc: New test.
807 2017-03-20 François Dumont <fdumont@gcc.gnu.org>
809 * include/bits/stl_deque.h (deque): Access allocator value_type only if
810 concept checks are enabled.
811 * include/bits/stl_stack.h (stack): Likewise.
812 * include/bits/stl_vector.h (vector): Likewise.
813 * include/bits/stl_list.h (list): Likewise and check
814 _SGIAssignableConcept only in C++03.
815 * include/bits/stl_map.h (map): Likewise.
816 * include/bits/stl_set.h (set): Likewise.
817 * include/bits/stl_multimap.h (multimap): Likewise.
818 * include/bits/stl_multiset.h (multiset): Likewise.
819 * include/bits/stl_queue.h (queue, priority_queue): Likewise.
821 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
823 * doc/xml/manual/appendix_contributing.xml: Convert link to
825 Update link to the C++ standard at ansi.org.
827 * doc/xml/faq.xml: Remove information redundant with the above;
828 instead add a reference.
830 2017-03-17 Jonathan Wakely <jwakely@redhat.com>
832 * src/c++11/codecvt.cc (range): Add non-type template parameter and
833 define oerloaded operators for reading and writing code units.
834 (range<Elem, false>): Define partial specialization for accessing
835 wide characters in potentially unaligned byte ranges.
836 (ucs2_span(const char16_t*, const char16_t*, ...))
837 (ucs4_span(const char16_t*, const char16_t*, ...)): Change parameters
838 to range<const char16_t, false> in order to avoid unaligned reads.
839 (__codecvt_utf16_base<char16_t>::do_out)
840 (__codecvt_utf16_base<char32_t>::do_out)
841 (__codecvt_utf16_base<wchar_t>::do_out): Use range specialization for
842 unaligned data to avoid unaligned writes.
843 (__codecvt_utf16_base<char16_t>::do_in)
844 (__codecvt_utf16_base<char32_t>::do_in)
845 (__codecvt_utf16_base<wchar_t>::do_in): Likewise for writes. Return
846 error if there are unprocessable trailing bytes.
847 (__codecvt_utf16_base<char16_t>::do_length)
848 (__codecvt_utf16_base<char32_t>::do_length)
849 (__codecvt_utf16_base<wchar_t>::do_length): Pass arguments of type
850 range<const char16_t, false> to span functions.
851 * testsuite/22_locale/codecvt/codecvt_utf16/misaligned.cc: New test.
853 2017-03-16 Jonathan Wakely <jwakely@redhat.com>
856 * src/c++11/codecvt.cc (to_integer(codecvt_mode)): Fix target type.
859 * src/c++11/codecvt.cc (__codecvt_utf16_base<wchar_t>::do_out)
860 (__codecvt_utf16_base<wchar_t>::do_in): Convert char arguments to
861 char16_t to work with UTF-16 instead of UTF-8.
862 * testsuite/22_locale/codecvt/codecvt_utf16/80041.cc: New test.
864 * src/c++11/codecvt.cc (codecvt<char16_t, char, mbstate_t>)
865 (codecvt<char32_t, char, mbstate_t>, __codecvt_utf8_base<char16_t>)
866 (__codecvt_utf8_base<char32_t>, __codecvt_utf8_base<wchar_t>)
867 (__codecvt_utf16_base<char16_t>, __codecvt_utf16_base<char32_t>)
868 (__codecvt_utf16_base<wchar_t>, __codecvt_utf8_utf16_base<char16_t>)
869 (__codecvt_utf8_utf16_base<char32_t>)
870 (__codecvt_utf8_utf16_base<wchar_t>): Fix do_encoding() and
871 do_max_length() return values.
872 * testsuite/22_locale/codecvt/codecvt_utf16/members.cc: New test.
873 * testsuite/22_locale/codecvt/codecvt_utf8/members.cc: New test.
874 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/members.cc: New test.
877 * include/bits/locale_conv.h (__do_str_codecvt): Set __count on
879 * src/c++11/codecvt.cc (operator&=, operator|=, operator~): Overloads
880 for manipulating codecvt_mode values.
881 (read_utf16_bom): Compare input to BOM constants instead of integral
882 constants that depend on endianness. Take mode parameter by
883 reference and adjust it, to distinguish between no BOM present and
884 UTF-16BE BOM present.
885 (ucs4_in, ucs2_span, ucs4_span): Adjust calls to read_utf16_bom.
886 (surrogates): New enumeration type.
887 (utf16_in, utf16_out): Add surrogates parameter to choose between
888 UTF-16 and UCS2 behaviour.
889 (utf16_span, ucs2_span): Use std::min not std::max.
890 (ucs2_out): Use std::min not std::max. Disallow surrogate pairs.
891 (ucs2_in): Likewise. Adjust calls to read_utf16_bom.
892 * testsuite/22_locale/codecvt/codecvt_utf16/79980.cc: New test.
893 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: New test.
896 * src/c++11/codecvt.cc (write_utf16_code_point): Don't write 0xffff
898 (__codecvt_utf8_utf16_base<char32_t>::do_in): Use native endianness
899 for internal representation.
900 (__codecvt_utf8_utf16_base<wchar_t>::do_in): Likewise.
901 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/79511.cc: New test.
904 * include/bits/stl_heap.h (__is_heap, push_heap, __adjust_heap)
905 (pop_heap, make_heap, sort_heap, is_heap_until, is_heap): Cope with
906 invalid instantiations using function types for _Compare argument.
907 * testsuite/25_algorithms/make_heap/80064.cc: New test.
910 * python/libstdcxx/v6/printers.py (find_type): Avoid gdb.Type.name
911 for GDB 7.6 compatibility, use gdb.Type.unqualified instead.
913 2017-03-15 Ville Voutilainen <ville.voutilainen@gmail.com>
915 Implement LWG 2857, {variant,optional,any}::emplace should
916 return the constructed value.
917 * include/std/any (emplace(_Args&&...)): Change the return type and
918 return a reference to the constructed value.
919 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
920 * include/std/optional (emplace(_Args&&...)): Likewise.
921 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
922 * include/std/variant (emplace<_Tp>(_Args&&...)): Likewise.
923 (emplace<_Tp>(initializer_list<_Up>, _Args&&...)): Likewise.
924 (emplace<_Np>(_Args&&...)): Likewise.
925 (emplace<_Np>(initializer_list<_Up>, _Args&&...)): Likewise.
926 * testsuite/20_util/any/assign/emplace.cc: Add tests for
927 checking the return value of emplace.
928 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust.
929 * testsuite/20_util/optional/assignment/6.cc: Add tests for
930 checking the return value of emplace.
931 * testsuite/20_util/variant/run.cc: Likewise.
933 2017-03-15 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
936 * include/ext/pb_ds/qdetail/binary_heap_/binary_heap_.hpp
938 (push_heap): Remove the wrong checking using is_heap.
939 (make_heap): Remove the assertion using is_heap.
940 * include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp
942 (resize_for_insert_if_needed): Add PB_DS_ASSERT_VALID after
945 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
948 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
950 * testsuite/ext/pb_ds/regression/priority_queues.cc: Fix copy&paste
953 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
955 * acinclude.m4 (GLIBCXX_CHECK_S_ISREG_OR_S_IFREG): Fix typo in
957 * config.h.in: Regenerate.
958 * configure: Regenerate.
959 * doc/Makefile.in: Regenerate.
961 2017-03-14 Jonathan Wakely <jwakely@redhat.com>
964 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
965 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace
966 with a constrained template.
967 [!_GLIBCXX_USE_CXX11_ABI]
968 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise.
969 * testsuite/21_strings/basic_string/cons/char/79162.cc: New test.
970 * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test.
972 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
975 * include/bits/list.tcc (merge(list&&)): Use const for the size_t
977 (merge(list&&, _StrictWeakOrdering)): Likewise.
978 * testsuite/23_containers/list/operations/80034.cc: New.
980 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
982 Implement LWG 2806, Base class of bad_optional_access.
983 * include/std/optional (bad_optional_access):
984 Derive from std::exception.
985 (bad_optional_access::bad_optional_access): Adjust.
986 (bad_optional_access::what): New.
987 (__throw_bad_optional_access(const char*)):
988 Remove the parameter and adjust calls.
989 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
990 * testsuite/20_util/optional/typedefs.cc: Likewise.
992 2017-03-12 Ville Voutilainen <ville.voutilainen@gmail.com>
994 Implement LWG 2934, optional<const T> doesn't compare with T.
995 * include/std/optional
996 (operator==(const optional<_Tp>&, const optional<_Tp>&)):
997 Turn into operator==(const optional<_Tp>&, const optional<_Up>&).
998 (operator!=(const optional<_Tp>&, const optional<_Tp>&)):
999 Turn into operator!=(const optional<_Tp>&, const optional<_Up>&).
1000 (operator<(const optional<_Tp>&, const optional<_Tp>&)):
1001 Turn into operator<(const optional<_Tp>&, const optional<_Up>&.
1002 (operator>(const optional<_Tp>&, const optional<_Tp>&)):
1003 Turn into operator>(const optional<_Tp>&, const optional<_Up>&.
1004 (operator<=(const optional<_Tp>&, const optional<_Tp>&)):
1005 Turn into operator<=(const optional<_Tp>&, const optional<_Up>&).
1006 (operator>=(const optional<_Tp>&, const optional<_Tp>&)):
1007 Turn into operator>=(const optional<_Tp>&, const optional<_Up>&).
1008 (operator==(const optional<_Tp>&, const _Tp&)):
1009 Turn into operator==(const optional<_Tp>&, const _Up&).
1010 (operator==(const _Tp&, const optional<_Tp>&)):
1011 Turn into operator==(const _Up&, const optional<_Tp>&).
1012 (operator!=(const optional<_Tp>&, const _Tp&)):
1013 Turn into operator!=(const optional<_Tp>&, const _Up&).
1014 (operator!=(const _Tp&, const optional<_Tp>&)):
1015 Turn into operator!=(const _Up&, const optional<_Tp>&).
1016 (operator<(const optional<_Tp>&, const _Tp&)):
1017 Turn into operator<(const optional<_Tp>&, const _Up&).
1018 (operator<(const _Tp&, const optional<_Tp>&)):
1019 Turn into operator<(const _Up&, const optional<_Tp>&).
1020 (operator>(const optional<_Tp>&, const _Tp&)):
1021 Turn into operator>(const optional<_Tp>&, const _Up&).
1022 (operator>(const _Tp&, const optional<_Tp>&)):
1023 Turn into operator>(const _Up&, const optional<_Tp>&).
1024 (operator<=(const optional<_Tp>&, const _Tp&)):
1025 Turn into operator<=(const optional<_Tp>&, const _Up&).
1026 (operator<=(const _Tp&, const optional<_Tp>&)):
1027 Turn into operator<=(const _Up&, const optional<_Tp>&).
1028 (operator>=(const optional<_Tp>&, const _Tp&)):
1029 Turn into operator>=(const optional<_Tp>&, const _Up&).
1030 (operator>=(const _Tp&, const optional<_Tp>&)):
1031 Turn into operator>=(const _Up&, const optional<_Tp>&).
1032 * testsuite/20_util/optional/relops/7.cc: New.
1034 2017-03-10 Jonathan Wakely <jwakely@redhat.com>
1036 * testsuite/17_intro/names.cc: Undefine macros that clash with
1037 identifiers in AIX system headers.
1039 * include/bits/invoke.h (__invoke): Use __invoke_result instead of
1040 result_of, and __is_nothrow_invocable instead of
1041 __is_nothrow_callable.
1042 * include/bits/shared_ptr_base.h (__shared_ptr): Use __is_invocable
1043 instead of __is_callable.
1044 * include/std/functional (invoke): use invoke_result_t instead of
1045 result_of_t and is_nothrow_invocable instead of is_nothrow_callable.
1046 (_Not_fn): Use __invoke_result instead of result_of.
1047 * include/std/type_traits (__result_of_memobj, __result_of_memfun):
1048 Remove partial specializations for reference_wrapper types.
1049 (__result_of_impl): Use __inv_unwrap to strip reference_wrapper.
1050 (__invoke_result): Define replacement for result_of and then use it to
1052 (__is_callable_impl, __is_callable, __is_nothrow_callable): Replace
1053 with __is_invocable_impl, __is_invocable, and __is_nothrow_invocable
1055 (invoke_result, invoke_result_t): Define for C++17.
1056 (is_callable, is_nothrow_callable): Replace with is_invocable,
1057 is_invocable_r, is_nothrow_invocable, and is_nothrow_invocable_r.
1058 (is_callable_v, is_nothrow_callable_v): Replace with is_invocable_v,
1059 is_invocable_r_v, is_nothrow_invocable_v, and is_nothrow_invocable_r_v.
1060 * include/std/variant (hash<variant<T...>>): Use is_nothrow_invocable_v
1061 instead of is_nothrow_callable_v.
1062 * testsuite/20_util/function_objects/invoke/59768.cc: Remove unused
1064 * testsuite/20_util/function_objects/not_fn/1.cc: Use is_invocable
1065 instead of is_callable.
1066 * testsuite/20_util/is_callable/*: Rename directory and adjust tests
1068 * testsuite/20_util/is_nothrow_callable/*: Likewise.
1069 * testsuite/20_util/optional/hash.cc: Use is_invocable_v instead of
1071 * testsuite/20_util/variant/hash.cc: Likewise.
1073 2017-03-10 George Lander <george.lander@arm.com>
1075 * acinclude.m4 (glibcxx_cv_obsolete_isnan): Define
1076 _GLIBCXX_INCLUDE_NEXT_C_HEADERS before including math.h.
1077 * configure: Regenerate.
1079 2017-03-09 Jonathan Wakely <jwakely@redhat.com>
1081 * include/std/functional (_Not_fn): Define macro to simplify
1082 repetitive function definitions.
1084 * doc/xml/manual/status_cxx2017.xml: Document std::byte support.
1085 * include/c_global/cstddef (std::byte): Define for C++17.
1086 * testsuite/18_support/byte/global_neg.cc: New test.
1087 * testsuite/18_support/byte/ops.cc: New test.
1088 * testsuite/18_support/byte/requirements.cc: New test.
1090 2017-03-05 Jonathan Wakely <jwakely@redhat.com>
1092 * doc/xml/manual/status_cxx2017.xml: Document P0156R2 status.
1093 * doc/html/*: Regenerate.
1094 * include/std/mutex (scoped_lock): Implement new C++17 template.
1095 * testsuite/30_threads/scoped_lock/cons/1.cc: New test.
1096 * testsuite/30_threads/scoped_lock/requirements/
1097 explicit_instantiation.cc: New test.
1098 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: New test.
1100 2017-03-02 Gerald Pfeifer <gerald@pfeifer.com>
1101 François Dumont <frs.dumont@gmail.com>
1102 Jonathan Wakely <jwakely@redhat.com>
1104 * doc/xml/manual/debug_mode.xml: Update and simplify note
1105 on link- and run-time coexistence.
1107 2017-03-02 Jonathan Wakely <jwakely@redhat.com>
1109 * testsuite/17_intro/headers/names.cc: Rename to ...
1110 * testsuite/17_intro/names.cc: ... here.
1113 * include/bits/hashtable_policy.h (__clp2): Use reserved names for
1114 parameters and local variables.
1115 * include/bits/ios_base.h (make_error_code, make_error_condition):
1117 * include/bits/list.tcc (list::sort): Likewise.
1118 * include/bits/mask_array.h (mask_array): Likewise.
1119 * include/bits/regex.h (regex_token_iterator): Likewise.
1120 * include/bits/slice_array.h (slice_array): Likewise.
1121 * include/bits/stl_algo.h (__sample): Likewise.
1122 * include/std/memory (undeclare_no_pointers): Likewise.
1123 * include/std/type_traits (is_callable_v, is_nothrow_callable_v):
1125 * libsupc++/exception_ptr.h (__dest_thunk): Likewise.
1126 * testsuite/17_intro/headers/names.cc: New test.
1129 * include/std/functional (bind::_Res_type_impl): Fix incorrect use of
1130 result_of that loses top-level cv-qualifiers.
1131 * testsuite/20_util/bind/79798.cc: New test.
1133 2017-03-01 Gerald Pfeifer <gerald@pfeifer.com>
1135 * doc/xml/manual/documentation_hacking.xml: Tweak link to
1138 2017-02-23 Jonathan Wakely <jwakely@redhat.com>
1140 * include/experimental/iterator: Include <iterator>.
1141 * testsuite/experimental/iterator/requirements.cc: Check for contents
1144 2017-02-19 Dinka Ranns <dinka.ranns@googlemail.com>
1146 C++17 GB50 resolution
1147 * include/std/chrono (duration::operator++()): Add
1148 _GLIBCXX17_CONSTEXPR.
1149 (duration::operator++(int)): Likewise.
1150 (duration::operator--()): Likewise.
1151 (duration::operator--(int)): Likewise.
1152 (duration::operator+=(const duration&)): Likewise.
1153 (duration::operator-=(const duration&)): Likewise.
1154 (duration::operator*=(const rep&)): Likewise.
1155 (duration::operator/=(const rep&)): Likewise.
1156 (duration::operator%=(const rep&)): Likewise.
1157 (duration::operator%=(const duration&)): Likewise.
1158 (time_point::operator+=(const duration&)): Likewise.
1159 (time_point::operator-=(const duration&)): Likewise.
1160 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: New test.
1161 * testsuite/20_util/duration/literals/range.cc: Adjust dg-error.
1162 * testsuite/20_util/time_point/arithmetic/constexpr.cc: New test.
1164 2017-02-19 Gerald Pfeifer <gerald@pfeifer.com>
1166 * doc/xml/manual/debug.xml: Adjust link to ThreadSanitizer.
1168 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
1170 * doc/xml/manual/io.xml: Update link to groups.google.com.
1171 Tweak link description.
1173 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
1175 * doc/xml/manual/profile_mode.xml: Fix link.
1177 2017-02-16 Gerald Pfeifer <gerald@pfeifer.com>
1179 * doc/xml/manual/policy_data_structures.xml: Simplify and
1180 standardize references to boost.org.
1181 * doc/xml/manual/policy_data_structures_biblio.xml: Ditto.
1182 * doc/xml/manual/shared_ptr.xml: Ditto.
1184 2017-02-16 Jonathan Wakely <jwakely@redhat.com>
1187 * src/c++11/snprintf_lite.cc (__concat_size_t): Calculate length
1188 written to buffer, not length remaining in buffer.
1190 2017-02-15 Tim Shen <timshen@google.com>
1193 * include/std/variant (operator<(), operator>(), operator<=(),
1194 operator>=(), operator==(), operator!=()): Implement P0393R3.
1195 * testsuite/20_util/variant/compile.cc: Adjust tests.
1196 * testsuite/20_util/variant/run.cc: Adjust tests.
1198 2017-02-15 Tim Shen <timshen@google.com>
1201 * include/std/variant (visit()): Forward variant types to the return
1202 type detection code.
1203 * testsuite/20_util/variant/compile.cc: Add test cases.
1205 2017-02-13 H.J. Lu <hongjiu.lu@intel.com>
1208 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
1210 2017-02-13 Jakub Jelinek <jakub@redhat.com>
1213 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
1214 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
1215 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Likewise.
1216 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
1217 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Likewise.
1218 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
1219 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Likewise.
1220 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
1221 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
1223 2017-02-13 Jonathan Wakely <jwakely@redhat.com>
1226 * include/std/future (__future_base::_Task_state::_M_run)
1227 (__future_base::_Task_state::_M_run_delayed): Use lvalue types in
1228 result_of expressions.
1229 * testsuite/30_threads/packaged_task/79486.cc: New.
1231 2017-02-11 Jonathan Wakely <jwakely@redhat.com>
1234 * include/bits/shared_ptr_base.h (__shared_ptr(_Yp*, _Deleter))
1235 (__shared_ptr(_Yp*, _Deleter, _Alloc)): Use lvalue types in
1236 __is_callable check.
1237 * testsuite/20_util/shared_ptr/cons/79467.cc: New.
1239 * include/bits/atomic_base.h: Re-indent.
1241 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
1243 * doc/xml/manual/profile_mode.xml: Update a paper reference.
1245 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1247 * src/c++11/snprintf_lite.cc (__err): Use https for bug reporting.
1249 2017-02-08 Jonathan Wakely <jwakely@redhat.com>
1251 * doc/xml/manual/policy_data_structures.xml: Fix spelling of author's
1253 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise. Remove
1254 broken links to texts that are no longer online.
1255 * doc/xml/manual/profile_mode.xml: Update links to CGO 2009 paper and
1257 * doc/xml/manual/using.xml: Update links to memory model information.
1258 * doc/xml/manual/using_exceptions.xml: Update link to "Appendix E:
1259 Standard-Library Exception Safety".
1260 * doc/html/*: Regenerate.
1262 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1264 * doc/xml/manual/profile_mode.xml: Unbreak link to
1265 "Optimizing Sorting with Machine Learning Algorithms".
1267 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1269 * src/c++11/snprintf_lite.cc (__err): Update bug reporting URL.
1271 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1273 * doc/xml/manual/abi.xml: Update link to "Sun Studio 11: C++
1276 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
1278 * doc/html/ext/lwg-active.html: Remove.
1279 * doc/html/ext/lwg-closed.html: Ditto.
1280 * doc/html/ext/lwg-defects.html: Ditto.
1282 * doc/Makefile.am (xml_extradir): Remove.
1284 (stamp-html-docbook-lwg): Remove recipe...
1285 (stamp-html-docbook-data): ...and its use here.
1286 * doc/Makefile.in: Regenerate.
1288 * doc/xml/manual/intro.xml: Shorten two paragraphs explaining
1289 the relationship to the upstream working group.
1290 Replace a local link to ../ext/lwg-active.html by the upstream one.
1291 Replace all reference to ../ext/lwg-defects.html by a new entity
1292 &DR; which refers to the upstream address.
1294 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
1296 * doc/xml/manual/status_cxx2017.xml: Fix link to N4284.
1298 2017-02-06 Jonathan Wakely <jwakely@redhat.com>
1301 * testsuite/20_util/duration/literals/range.cc: Prune extra output
1304 2017-02-06 Gerald Pfeifer <gerald@pfeifer.com>
1306 * doc/xml/manual/documentation_hacking.xml: Update URL of the
1307 DocBook Element Reference. Use that term as link description
1308 instead of "online".
1309 epubcheck has moved to GitHub.
1310 Remove obsolete link to DocBook Publishing Tools.
1312 2017-02-03 Jonathan Wakely <jwakely@redhat.com>
1315 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Restore ABI override
1316 so new ios::failure can be caught even when old ABI is the default.
1317 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1318 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1319 exceptions_failbit.cc: Likewise.
1320 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1321 exceptions_failbit.cc: Likewise.
1322 * testsuite/27_io/basic_istream/extractors_other/char/
1323 exceptions_null.cc: Likewise.
1324 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1325 exceptions_null.cc: Likewise.
1326 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1327 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1328 * testsuite/27_io/basic_ostream/inserters_other/char/
1329 exceptions_null.cc: Likewise.
1330 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1331 exceptions_null.cc: Likewise.
1332 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1335 * src/c++11/Makefile.am: Add new files.
1336 * src/c++11/Makefile.in: Regenerate.
1337 * src/c++11/cow-string-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
1338 (operator<<, operator>>, getline): Move explicit instantiations to ...
1339 * src/c++11/cow-string-io-inst.cc: ... new file.
1340 * src/c++11/cow-wstring-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
1341 (operator<<, operator>>, getline): Move explicit instantiations to ...
1342 * src/c++11/cow-wstring-io-inst.cc: ... new file.
1343 * src/c++11/functexcept.cc (__throw_ios_failure, __throw_system_error)
1344 (__throw_future_error, __throw_bad_function_call):
1345 (__throw_regex_error): Move functions for C++11 exceptions to the
1346 files that define the exception types.
1347 * src/c++11/functional.cc (__throw_bad_function_call): Move here.
1348 * src/c++11/future.cc (__throw_future_error): Likewise.
1349 * src/c++11/ios.cc (__throw_ios_failure): Likewise.
1350 * src/c++11/regex.cc (__throw_regex_error): Likewise.
1351 * src/c++11/snprintf_lite.cc (__concat_size_t): Print decimal
1352 representation directly instead of calling __int_to_char.
1353 * src/c++11/sso_string.cc (__sso_string): New file for definition
1354 of __sso_string type.
1355 * src/c++11/string-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
1356 explicit instantiations of narrow string I/O functions.
1357 * src/c++11/system_error.cc (__throw_system_error): Move here.
1358 (__sso_string): Move to new file.
1359 * src/c++11/wstring-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
1360 explicit instantiations of wide string I/O functions.
1361 * src/c++98/misc-inst.cc [_GLIBCXX_USE_CXX11_ABI] (operator<<)
1362 (operator>>, getline): Remove explicit instantiations from here.
1364 2017-02-02 H.J. Lu <hongjiu.lu@intel.com>
1366 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
1368 2017-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1370 * configure.host: Separate Solaris/SPARC and x86 baselines.
1371 * config/abi/post/solaris2.10/baseline_symbols.txt: Move ...
1372 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: ... here.
1373 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Move ...
1374 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
1376 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Move ...
1377 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: ... here.
1378 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: New file.
1379 * config/abi/post/solaris2.11/baseline_symbols.txt: Move ...
1380 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: ... here.
1381 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Move ...
1382 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
1384 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Move ...
1385 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: ... here.
1386 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: New file.
1388 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
1389 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
1390 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
1391 * config/abi/post/solaris2.11/baseline_symbols.txt: Likewise.
1392 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Likewise.
1393 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Likewise.
1395 2017-02-01 Jonathan Wakely <jwakely@redhat.com>
1398 * include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
1400 (_Iter_comp_to_iter): Likewise.
1401 * testsuite/25_algorithms/search/78346.cc: New test.
1404 * config/abi/pre/gnu.ver: Remove recently added symbols.
1405 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1406 (basic_string::_M_copy_assign): Remove.
1407 (basic_string::operator=(const basic_string&)): Don't dispatch to
1408 _M_copy_assign. If source object is small just deallocate, otherwise
1409 perform new allocation before making any changes.
1410 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
1411 (basic_string::_M_copy_assign(const basic_string&, true_type)):
1413 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1414 Test cases where the allocators are equal or the string is small.
1415 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1418 2017-01-30 Ville Voutilainen <ville.voutilainen@gmail.com>
1420 Implement LWG 2825, LWG 2756 breaks class template argument
1421 deduction for optional.
1422 * include/std/optional: Add a deduction guide.
1423 * testsuite/20_util/optional/cons/deduction_guide.cc: New.
1425 2017-01-27 Jonathan Wakely <jwakely@redhat.com>
1428 * config/abi/pre/gnu.ver: Add new symbols.
1429 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1430 (basic_string::_M_copy_assign): New overloaded functions to perform
1432 (basic_string::operator=(const basic_string&)): Dispatch to
1434 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
1435 (basic_string::_M_copy_assign(const basic_string&, true_type)):
1436 Define, performing rollback on exception.
1437 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1438 Test exception-safety guarantee.
1439 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1441 * testsuite/util/testsuite_allocator.h (uneq_allocator::swap): Make
1444 2017-01-26 Jonathan Wakely <jwakely@redhat.com>
1447 * include/tr1/complex (conj): Remove using-declaration and restore
1448 overloads, reverting previous change.
1450 * testsuite/23_containers/list/operations/78389.cc: Fix for C++11
1452 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
1453 Mark as unsupported in C++98 mode.
1454 * testsuite/23_containers/queue/requirements/constructible.cc:
1456 * testsuite/23_containers/stack/requirements/constructible.cc:
1458 * testsuite/25_algorithms/make_heap/movable.cc: Fix for C++11 mode.
1461 * include/bits/c++config (literals::string_view_literals::__7): Add.
1462 Only declare versioned namespaces for the relevant C++ dialects.
1463 * include/experimental/bits/erase_if.h (fundamentals_v2::__detail):
1464 Add versioning macros.
1465 * include/experimental/bits/lfts_config.h:
1466 (fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add.
1467 * include/experimental/string_view (fundamentals_v2::__detail):
1468 Add versioning macros.
1469 (fundamentals_v2::__detail::__identity): Remove.
1470 (fundamentals_v2::__detail::__idt): Use common_type instead of
1471 __detail::__identity.
1472 * include/std/string_view (__detail::__identity, __detail::__idt):
1474 (literals::string_view_literals): Fix nesting of versioning macros.
1477 * libsupc++/del_opa.cc (operator delete(void*, std::align_val_t))
1478 [!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN
1479 && !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC]:
1480 Retrieve original pointer value allocated by malloc.
1481 * libsupc++/new_opa.cc [!_GLIBCXX_HAVE_ALIGNED_ALLOC
1482 && !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN
1483 && !_GLIBCXX_HAVE__ALIGNED_MALLOC] (aligned_alloc(size_t, size_t)):
1484 Define, adjusting pointer value allocated by malloc and storing for
1485 retrieval by operator delete.
1487 2017-01-26 Jakub Jelinek <jakub@redhat.com>
1489 * libsupc++/eh_atomics.h: Update copyright years.
1490 * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years.
1492 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
1496 * include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
1497 (proj(T), conj(T)): Change return types per DR 1522.
1498 * include/tr1/complex (conj): Remove overloads and use std::conj.
1499 * testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
1500 * testsuite/26_numerics/complex/dr781.cc: ... this, and update.
1501 * testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
1502 real(T) and imag(T). Allow testing for C++11 too.
1504 2017-01-24 Jonathan Wakely <jwakely@redhat.com>
1507 * include/experimental/string_view (operator==): Check sizes first.
1508 * include/std/string_view (operator==): Likewise.
1510 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
1512 * testsuite/experimental/array/make_array.cc: Restore <functional>
1515 2017-01-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
1517 * testsuite/29_atomics/atomic/69301.cc: Require atomic builtins.
1519 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
1522 * include/experimental/array (__make_array_elem): New class template
1523 and partial specialization.
1524 (__is_reference_wrapper): Move into __make_array_elem specialization.
1525 (make_array): Use __make_array_elem to determine element type and move
1526 static assertion into specialization. Qualify std::forward call.
1527 (to_array): Add exception specifiation.
1528 * testsuite/experimental/array/make_array.cc: Test argument types
1529 without a common type.
1530 * testsuite/experimental/array/neg.cc: Adjust expected error message.
1532 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
1534 * doc/xml/manual/debug.xml: code.google.com uses https now.
1536 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
1538 * doc/xml/manual/test.xml: Fix link into gccint online manual.
1540 2017-01-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1542 Make poisoned hashes SFINAE away the call operator of the hash.
1543 * include/bits/functional_hash.h
1544 (__poison_hash::__enable_hash_call): New.
1545 * include/std/optional (__optional_hash_call_base): New.
1546 (hash<optional<_Tp>>): Derive from the new base,
1547 move the hash function into that base.
1548 * include/std/variant (__variant_hash_call_base_impl): New.
1549 (__variant_hash_call_base): Likewise.
1550 (hash<variant<_Types...>>): Derive from the new base,
1551 move the hash function into that base.
1552 * testsuite/20_util/optional/hash.cc: Add tests for is_callable.
1553 * testsuite/20_util/variant/hash.cc: Likewise.
1555 2017-01-20 Joe Seymour <joe.s@somniumtech.com>
1557 * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t.
1558 * configure: Regenerate.
1560 2017-01-20 Jonathan Wakely <jwakely@redhat.com>
1563 * include/bits/random.h (uniform_real_distribution::param_type)
1564 (normal_distribution::param_type, lognormal_distribution::param_type)
1565 (gamma_distribution::param_type, chi_squared_distribution::param_type)
1566 (cauchy_distribution::param_type, fisher_f_distribution::param_type)
1567 (student_t_distribution::param_type)
1568 (bernoulli_distribution::param_type, binomial_distribution::param_type)
1569 (geometric_distribution::param_type)
1570 (negative_binomial_distribution::param_type)
1571 (poisson_distribution::param_type)
1572 (exponential_distribution::param_type)
1573 (weibull_distribution::param_type)
1574 (extreme_value_distribution::param_type)
1575 (discrete_distribution::param_type)
1576 (piecewise_constant_distribution::param_type)
1577 (piecewise_linear_distribution::param_type): Define operator!=.
1578 * include/bits/uniform_int_dist.h
1579 (uniform_int_distribution::param_type): Likewise.
1580 * include/ext/random (beta_distribution::param_type)
1581 (rice_distribution::param_type, nakagami_distribution::param_type)
1582 (pareto_distribution::param_type, k_distribution::param_type)
1583 (arcsine_distribution::param_type, hoyt_distribution::param_type)
1584 (triangular_distribution::param_type)
1585 (von_mises_distribution::param_type)
1586 (hypergeometric_distribution::param_type)
1587 (logistic_distribution::param_type)
1588 (uniform_on_sphere_distribution::param_type)
1589 (uniform_inside_sphere_distribution::param_type): Likewise.
1590 * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc:
1591 Test construction with param_type.
1592 * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc:
1594 * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
1596 * testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc:
1598 * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
1600 * testsuite/26_numerics/random/extreme_value_distribution/cons/
1602 * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc:
1604 * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc:
1606 * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc:
1608 * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc:
1610 * testsuite/26_numerics/random/negative_binomial_distribution/cons/
1612 * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
1614 * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc:
1616 * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
1618 * testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc:
1620 * testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc:
1622 * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc:
1624 * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise.
1625 * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise.
1626 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
1627 * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc:
1629 * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise.
1630 * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise.
1631 * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise.
1632 * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
1633 * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise.
1634 * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise.
1635 * testsuite/ext/random/triangular_distribution/cons/parms.cc:
1637 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/
1639 * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise.
1642 * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
1643 (__allocator_traits_base::__size_type): Remove.
1644 (allocator_traits::_Ptr): New class template to detect const and void
1645 pointer types without instantiating pointer_traits::rebind
1647 (allocator_traits::_Diff): Likewise for detecting difference_type.
1648 (allocator_traits::_Size): New class template to detect size_type
1649 without instantiating make_unsigned unnecessarily.
1650 * include/bits/ptr_traits.h (pointer_traits::element_type): Use
1651 __detected_or_t instead of __detected_or_t_.
1652 * include/std/type_traits (__detected_or_t_): Remove.
1653 * testsuite/20_util/allocator_traits/members/pointers.cc: New test.
1657 * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
1658 Replace with class template using void_t.
1659 (__alloc_rebind): Define in terms of
1660 __allocator_traits_base::__rebind.
1661 (allocator_traits): Remove unconditional static_assert for
1663 * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
1664 (pointer_traits::__rebind): Replace with class template using void_t.
1665 (pointer_traits::rebind): Define in terms of __rebind.
1666 (pointer_traits): Remove unconditional static_assert for rebind.
1667 * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
1668 * testsuite/20_util/pointer_traits/rebind.cc: New test.
1671 * include/experimental/any (__any_caster): Avoid instantiating
1672 manager function for types that can't be stored in any.
1673 * include/std/any (__any_caster): Likewise.
1674 * testsuite/20_util/any/misc/any_cast.cc: Test non-copyable type.
1675 * testsuite/experimental/any/misc/any_cast.cc: Likewise.
1678 * include/bits/stl_algo.h (is_partitioned): Use increment instead of
1681 2017-01-19 Jonathan Wakely <jwakely@redhat.com>
1684 * include/bits/shared_ptr_base.h (__enable_shared_from_this_base):
1686 (__enable_shared_from_this): Declare __shared_ptr as a friend.
1687 * testsuite/ext/shared_ptr/1.cc: New test.
1690 * include/bits/stl_algo.h (is_partitioned): Don't retest the partition
1692 * testsuite/25_algorithms/is_partitioned/2.cc: New test.
1694 * doc/xml/manual/abi.xml: Fix typo.
1695 * doc/html/manual/abi.html: Likewise.
1698 * include/bits/predefined_ops.h (_Iter_less_val, _Val_less_iter): Add
1699 converting constructors from _Iter_less_iter.
1700 (_Iter_comp_val, _Val_comp_iter): Add converting constructors from
1702 (__iter_comp_val(_Iter_comp_iter<C>): Use converting constructor.
1703 (__val_comp_iter(_Iter_comp_iter<C>): Likewise.
1704 * include/bits/stl_heap.h (__is_heap_until, __push_heap, __pop_heap)
1705 (__make_heap, __sort_heap): Change _Compare parameters to references.
1706 (__is_heap, push_heap, __adjust_heap, __pop_heap, pop_heap)
1707 (__make_heap, make_heap, sort_heap, is_heap_until): Pass comparison
1708 functions as lvalues.
1709 (is_heap): Call __is_heap_until directly to avoid copying __comp.
1710 * testsuite/23_containers/priority_queue/67085.cc: Adjust test to
1711 count copies during construction with empty sequence.
1714 * include/bits/stl_heap.h (__is_heap): Use _GLIBCXX_MOVE.
1715 (__make_heap, __sort_heap): Don't use _GLIBCXX_MOVE inside loops.
1716 * testsuite/23_containers/priority_queue/67085.cc: Adjust expected
1718 * testsuite/25_algorithms/make_heap/movable.cc: New test.
1721 * include/bits/stl_heap.h (push_heap, __adjust_heap, __pop_heap)
1722 (pop_heap, __make_heap, make_heap, __sort_heap, sort_heap): Use
1723 _GLIBCXX_MOVE when passing comparison function to other functions.
1724 (is_heap_until, is_heap): Use std::move when passing comparison
1726 * testsuite/23_containers/priority_queue/67085.cc: New test.
1729 * doc/xml/manual/abi.xml (abi.versioning.history): Add markup to
1730 macro names, filenames, and literal values. Document _GLIBCXX_RELEASE.
1731 Document that the deprecated _GLIBCXX_VERSION macro was removed for
1733 * doc/html/*: Regenerate.
1734 * include/Makefile.am (_GLIBCXX_RELEASE): Set value.
1735 * include/Makefile.in: Regenerate.
1736 * include/bits/c++config (_GLIBCXX_RELEASE): Add #define.
1737 * testsuite/ext/profile/mutex_extensions_neg.cc: Use lineno of 0 in
1740 2017-01-18 Jonathan Wakely <jwakely@redhat.com>
1743 * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
1744 aligned buffer instead of default-initialized variable.
1745 * testsuite/29_atomics/atomic/69301.cc: New test.
1746 * include/experimental/memory (observer_ptr::release): Use reserved
1748 * include/ext/pointer.h (_Pointer_adapter::operator++(int))
1749 (_Pointer_adapter::operator--(int)): Likewise.
1752 * include/experimental/random (randint): Use temporary instead of
1753 thread_local static.
1755 2017-01-17 Joshua Conner <joshconner@google.com>
1757 * crossconfig.m4: Add fuchsia OS.
1758 * configure: Regenerate.
1760 2017-01-17 Jonathan Wakely <jwakely@redhat.com>
1763 * doc/xml/manual/abi.xml (abi.versioning.history): Explain why the
1764 __GLIBCXX__ macro is not useful. Remove redundant date information
1765 and link to the GCC release timeline.
1766 (abi.versioning.active): Move partial sentence into the previous
1768 * doc/html/*: Regenerate.
1771 * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
1772 of remove_reference.
1773 * testsuite/18_support/nested_exception/79114.cc: New test.
1775 2017-01-17 Jakub Jelinek <jakub@redhat.com>
1778 * configure.ac: Add GCC_BASE_VER.
1779 * fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
1780 get version from BASE-VER file.
1781 * po/Makefile.in: Regenerated.
1782 * libsupc++/Makefile.in: Regenerated.
1783 * testsuite/Makefile.in: Regenerated.
1784 * src/Makefile.in: Regenerated.
1785 * configure: Regenerated.
1786 * Makefile.in: Regenerated.
1787 * include/Makefile.in: Regenerated.
1788 * doc/Makefile.in: Regenerated.
1789 * python/Makefile.in: Regenerated.
1790 * src/c++11/Makefile.in: Regenerated.
1791 * src/c++98/Makefile.in: Regenerated.
1792 * src/filesystem/Makefile.in: Regenerated.
1794 2017-01-16 Jonathan Wakely <jwakely@redhat.com>
1797 * src/c++11/functexcept.cc: Use new ABI for std::ios_base::failure
1799 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Don't override ABI
1800 for test, so new ios::failure can be caught.
1801 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1802 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1803 exceptions_failbit.cc: Likewise.
1804 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1805 exceptions_failbit.cc: Likewise.
1806 * testsuite/27_io/basic_istream/extractors_other/char/
1807 exceptions_null.cc: Likewise.
1808 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1809 exceptions_null.cc: Likewise.
1810 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1811 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1812 * testsuite/27_io/basic_ostream/inserters_other/char/
1813 exceptions_null.cc: Likewise.
1814 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1815 exceptions_null.cc: Likewise.
1816 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1819 * include/bits/locale_classes.h (locale::facet::__shim): Change from
1820 private to protected.
1821 * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
1822 make locale::facet::__shim accessible.
1824 2017-01-16 Ville Voutilainen <ville.voutilainen@gmail.com>
1827 * include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
1828 (merge(list&&, _StrictWeakOrdering)): Likewise.
1829 * testsuite/23_containers/list/operations/78389.cc: Add
1830 better test for the sizes.
1832 2017-01-14 Jonathan Wakely <jwakely@redhat.com>
1834 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
1835 Skip test when -D_GLIBCXX_PROFILE mode is included in options.
1836 * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
1837 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
1839 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
1840 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
1841 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
1842 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
1843 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
1845 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
1847 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
1849 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
1851 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
1853 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
1854 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
1855 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
1856 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
1857 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
1858 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
1859 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
1860 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
1861 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
1862 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
1863 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
1864 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
1865 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1867 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
1870 * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
1871 retry fclose on EINTR.
1873 * include/profile/base.h: Remove unused header that leads to header
1874 cycle in C++17 mode.
1877 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
1878 Make _If_sv private.
1879 [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
1880 basic_string_view arguments.
1883 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
1884 redundant option from cxxflags.
1885 (check_effective_target_cxx11-abi): Define.
1886 * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
1888 * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
1889 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1891 * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
1893 * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
1894 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
1896 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
1898 * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
1899 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
1901 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1903 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
1905 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
1907 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
1909 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
1911 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
1913 * testsuite/23_containers/list/61347.cc: Likewise.
1914 * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
1915 * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
1917 2017-01-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1920 * include/bits/list.tcc (merge(list&&)):
1921 Adjust list sizes if the comparator throws.
1922 (merge(list&&, _StrictWeakOrdering)): Likewise.
1923 (sort()): Splice elements back from the scratch buffers
1924 if the comparator throws.
1925 (sort(_StrictWeakOrdering)): Likewise.
1926 * testsuite/23_containers/list/operations/78389.cc: New.
1928 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
1930 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
1931 XFAIL for C++17 until node reinsertion supports fancy pointers.
1934 * testsuite/20_util/add_pointer/value.cc: Test forming function
1937 2017-01-13 Michael Brune <lucdanton@free.fr>
1940 * include/std/type_traits (__is_referenceable): Handle noexcept
1943 2017-01-12 Jonathan Wakely <jwakely@redhat.com>
1946 * include/bits/stl_queue.h (queue, priority_queue): Remove default
1947 member-initializers and define default constructors as templates with
1949 * include/bits/stl_stack.h (stack): Likewise.
1950 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
1952 * testsuite/23_containers/priority_queue/requirements/
1953 explicit_instantiation/1.cc: Test more instantiations.
1954 * testsuite/23_containers/priority_queue/requirements/
1955 explicit_instantiation/1_c++98.cc: Likewise.
1956 * testsuite/23_containers/queue/requirements/constructible.cc: New.
1957 * testsuite/23_containers/stack/requirements/constructible.cc: New.
1960 * doc/xml/manual/intro.xml: Document LWG 2781 change.
1961 * doc/html/*: Regenerate.
1962 * include/std/functional (_Function_base::_Ref_manager): Remove.
1963 (_Function_handler): Remove partial specializations for
1965 (function::target): Remove special case for const qualification.
1966 * testsuite/20_util/function/6.cc: Adjust tests for target type.
1967 * testsuite/20_util/function/7.cc: Likewise.
1968 * testsuite/20_util/function/8.cc: Likewise.
1970 2017-01-11 Jonathan Wakely <jwakely@redhat.com>
1973 * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
1974 (map::equal_range): Fix return type of heterogeneous overloads.
1975 * include/bits/stl_multimap.h (multimap::lower_bound)
1976 (multimap::upper_bound, multimap::equal_range): Likewise.
1977 * include/bits/stl_multiset.h (multiset::lower_bound)
1978 (multiset::upper_bound, multiset::equal_range): Likewise.
1979 * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
1980 (set::equal_range): Likewise.
1981 * testsuite/23_containers/map/operations/2.cc
1982 * testsuite/23_containers/multimap/operations/2.cc
1983 * testsuite/23_containers/multiset/operations/2.cc
1984 * testsuite/23_containers/set/operations/2.cc
1987 * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
1988 the heterogeneous comparison can only find one match.
1989 * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
1990 * testsuite/23_containers/map/operations/2.cc: Test count works with
1991 comparison function that just partitions rather than sorting.
1992 * testsuite/23_containers/set/operations/2.cc: Likewise.
1994 2017-01-11 Ville Voutilainen <ville.voutilainen@gmail.com>
1996 Reduce the size of variant, it doesn't need an index of
1997 type size_t internally.
1998 * include/std/variant (parse_numbers.h): New include.
1999 (__select_index): New.
2000 (_Variant_storage<false, _Types...>::_M_reset_impl): Use
2001 _index_type for comparison with variant_npos.
2002 (_Variant_storage<false, _Types...>::__index_type): New.
2003 (_Variant_storage<false, _Types...>::_M_index): Change the
2004 type from size_t to __index_type.
2005 (_Variant_storage<true, _Types...>::__index_type): New.
2006 (_Variant_storage<true, _Types...>::_M_index): Change the
2007 type from size_t to __index_type.
2008 (_Variant_base::_M_valid): Use _Storage::__index_type
2009 for comparison with variant_npos.
2010 (variant::index): Use _Base::_Storage::__index_type
2011 for comparison with variant_npos.
2012 * testsuite/20_util/variant/index_type.cc: New.
2014 2017-01-10 Jonathan Wakely <jwakely@redhat.com>
2016 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
2017 effective target selector to prevent running in C++17 mode.
2020 * include/bits/stl_queue.h (queue::c): Add default member initializer.
2021 (queue::queue()): Add constructor and define as defaulted.
2022 (queue::queue(_Sequence&&)): Remove default argument.
2023 (priority_queue::c, priority_queue::comp): Add default member
2025 (priority_queue::priority_queue()): Add constructor and define as
2027 (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
2028 Remove default argument for first parameter.
2029 * include/bits/stl_stack.h (stack::c): Add default member initializer.
2030 (stack::stack()): Add constructor and define as defaulted.
2031 (stack::stack(const _Sequence&)): Remove default argument.
2032 * testsuite/23_containers/priority_queue/requirements/
2033 explicit_instantiation/1.cc: Test explicit instantiation with
2034 non-DefaultConstructible sequence.
2035 * testsuite/23_containers/priority_queue/77528.cc: New test.
2036 * testsuite/23_containers/priority_queue/requirements/
2037 explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
2038 * testsuite/23_containers/queue/77528.cc: New test.
2039 * testsuite/23_containers/queue/requirements/explicit_instantiation/
2040 1.cc: Test explicit instantiation with non-DefaultConstructible
2042 * testsuite/23_containers/queue/requirements/explicit_instantiation/
2043 1_c++0x.cc: Replace with 1_c++98.cc.
2044 * testsuite/23_containers/stack/77528.cc: New test.
2045 * testsuite/23_containers/stack/requirements/explicit_instantiation/
2046 1.cc: Test explicit instantiation with non-DefaultConstructible
2048 * testsuite/23_containers/stack/requirements/explicit_instantiation/
2049 1_c++0x.cc: Replace with 1_c++98.cc.
2051 2017-01-10 Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
2053 * include/bits/locale_facets_nonio.tcc
2054 (time_get::_M_extract_via_format): Avoid compilation errors with
2055 non-standard struct tm.
2057 2017-01-10 François Dumont <fdumont@gcc.gnu.org>
2058 Jonathan Wakely <jwakely@redhat.com>
2060 * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
2061 (is_specialization, strip_versioned_namespace): New helpers functions
2062 to work with symbols in the versioned namespace.
2063 (Printer.add_version): Add second name using versioned namespace.
2064 (add_one_template_type_printer, add_one_type_printer): Add second
2065 type printers using versioned namespace.
2066 (register_type_printers): Add template type printer for basic_string.
2067 (build_libstdcxx_dictionary): Remove dead code.
2068 * python/libstdcxx/v6/xmethods.py: Make all matchers look for
2069 versioned namespace.
2070 * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
2072 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
2074 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
2077 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
2078 functions separately on darwin and if they're missing define
2079 _GLIBCXX_NO_C99_ROUNDING_FUNCS.
2080 * config.h.in: Regenerate.
2081 * configure: Regenerate.
2082 * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
2083 (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
2085 * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
2086 to detect correct thread_local destructors.
2087 * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
2090 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
2091 Aditya Kumar <hiraditya@msn.com>
2094 * include/bits/basic_string.tcc
2095 (basic_string::find(const CharT*, size_type, size_type)): Optimize.
2097 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
2099 * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
2100 * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
2102 * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
2103 Include <cassert> header.
2106 * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
2107 * configure: Regenerate.
2109 2017-01-06 Barrett Adair <barrettellisadair@gmail.com>
2110 Jonathan Wakely <jwakely@redhat.com>
2112 * include/std/variant (variant, swap): Replace __and_ usage with fold
2115 2017-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2118 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
2119 * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
2120 GLIBCXX_CHECK_ASSEMBLER_HWCAP.
2121 * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
2123 * aclocal.m4: Regenerate.
2124 * configure: Regenerate.
2125 * Makefile.in, doc/Makefile.in, include/Makefile.in,
2126 libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
2127 src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
2128 src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
2130 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
2132 * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
2135 * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
2136 (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
2137 (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
2138 move function objects.
2139 (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
2140 (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
2141 * testsuite/25_algorithms/sort/78991.cc: New test.
2143 2017-01-05 Jonathan Wakely <jwakely@redhat.com>
2145 * include/bits/std_function.h (function::_Signature_type): Remove.
2146 (function::function(_Functor)): Adjust.
2148 2017-01-05 Tim Shen <timshen@google.com>
2151 * include/std/variant (__gen_vtable_impl): rename __unused to
2152 __dimensions to avoid naming conflict.
2154 2017-01-04 Jonathan Wakely <jwakely@redhat.com>
2157 * config.h.in: Regenerate.
2158 * configure: Likewise.
2159 * configure.ac: Check for __cxa_thread_atexit.
2160 * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
2161 Don't define __cxa_thread_atexit if libc provides it.
2163 2017-01-04 Ville Voutilainen <ville.voutilainen@gmail.com>
2165 Implement 2801, Default-constructibility of unique_ptr.
2166 * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
2167 (unique_ptr::_DeleterConstraint): Likewise.
2168 (unique_ptr()): Constrain.
2169 (unique_ptr(pointer)): Likewise.
2170 (unique_ptr(nullptr_t)): Likewise.
2171 (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
2172 (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
2173 (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
2174 (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
2175 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
2176 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
2177 * testsuite/20_util/unique_ptr/cons/default.cc: New.
2178 * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
2180 2017-01-04 Pauli Nieminen <suokkos@gmail.com>
2181 Jonathan Wakely <jwakely@redhat.com>
2184 * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
2185 * config.h.in: Regenerate.
2186 * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
2187 (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
2188 exports for exception_ptr, nested_exception, and future conditional.
2189 [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
2190 exports for exception_ptr, nested_exception, and future conditional.
2191 * configure: Regenerate.
2192 * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
2193 * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
2194 * libsupc++/eh_atomics.h: New file for internal use only.
2195 (__eh_atomic_inc, __eh_atomic_dec): New.
2196 * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
2197 (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
2198 (rethrow_exception): Use eh_atomics.h reference counting helpers.
2199 * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
2200 * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
2201 * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
2202 * libsupc++/exception_ptr.h: Likewise.
2203 * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
2204 * libsupc++/nested_exception.cc: Remove check for
2205 ATOMIC_INT_LOCK_FREE.
2206 * libsupc++/nested_exception.h: Likewise.
2207 * src/c++11/future.cc: Likewise.
2208 * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
2209 * testsuite/18_support/nested_exception/*: Likewise.
2210 * testsuite/30_threads/async/*: Likewise.
2211 * testsuite/30_threads/future/*: Likewise.
2212 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
2213 * testsuite/30_threads/packaged_task/*: Likewise.
2214 * testsuite/30_threads/promise/*: Likewise.
2215 * testsuite/30_threads/shared_future/*: Likewise.
2217 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
2219 * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
2220 defaults to https; adjust reference.
2222 2017-01-03 Jonathan Wakely <jwakely@redhat.com>
2225 * include/std/thread (thread(const thread&&)): Add deleted
2227 * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
2229 * doc/xml/manual/spine.xml: Update copyright years.
2230 * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
2231 * doc/xml/manual/test.xml: Likewise.
2232 * doc/html/*: Regenerate.
2234 2017-01-01 Gerald Pfeifer <gerald@pfeifer.com>
2236 * doc/xml/faq.xml: Update address of C++ ABI link.
2237 * doc/xml/manual/abi.xml: Ditto.
2239 2017-01-01 Jakub Jelinek <jakub@redhat.com>
2241 Update copyright years.
2243 Copyright (C) 2017 Free Software Foundation, Inc.
2245 Copying and distribution of this file, with or without modification,
2246 are permitted in any medium without royalty provided the copyright
2247 notice and this notice are preserved.