PR libstdc++/78939 make tuple_size<cv T> depend on tuple_size<T>
[official-gcc.git] / libstdc++-v3 / ChangeLog
blobafe7a548bf61751ca094f7ab8ba084750650f4cc
1 2017-05-12  Jonathan Wakely  <jwakely@redhat.com>
3         PR libstdc++/78939
4         * include/std/utility (tuple_size<cv T>): Only define partial
5         specializations when tuple_size<T>::value is valid.
6         * testsuite/20_util/tuple/78939.cc: New.
7         * testsuite/20_util/tuple/cv_tuple_size_neg.cc: New.
9 2017-05-11  François Dumont  <fdumont@gcc.gnu.org>
11         * include/bits/stl_tree.h [_GLIBCXX_INLINE_VERSION]
12         (_Rb_tree_impl<>): Remove _Is_pod_comparator
13         template parameter.
15         * include/debug/safe_container.h [_GLIBCXX_USE_CXX11_ABI]
16         (_Safe_container<>): Remove _IsCxx11AllocatorAware template parameter.
17         * include/debug/string: Adapt.
19         * include/debug/formatter.h [_GLIBCXX_INLINE_VERSION]
20         (__gnu_debug::_Error_formatter::_Parameter::_M_print_field): Remove.
21         (__gnu_debug::_Error_formatter::_Parameter::_M_print_description):
22         Remove.
23         (__gnu_debug::_Error_formatter::_M_format_word): Remove.
24         (__gnu_debug::_Error_formatter::_M_print_word): Remove.
25         (__gnu_debug::_Error_formatter::_M_print_string): Remove.
26         (__gnu_debug::_Error_formatter::_M_get_max_length): Remove.
27         * src/c++11/debug.cc: Adapt.
28         * config/abi/pre/gnu-versioned-namespace.ver: Adapt.
30 2017-05-11  Jonathan Wakely  <jwakely@redhat.com>
32         * doc/xml/manual/allocator.xml: Fix ViewCVS URLs.
33         * doc/xml/manual/mt_allocator.xml: Likewise.
34         * doc/html/*: Regenerate.
36         PR libstdc++/80285
37         * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Define
38         function to get unique fake std::type_info reference.
39         (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Compare to
40         _S_ti() fake reference.
41         (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Share
42         single implementation with or without RTTI enable.
43         [!__cpp_rtti]: Pass fake reference to _M_get_deleter.
44         * testsuite/20_util/shared_ptr/creation/alloc.cc: Change expected
45         allocation and deallocation counts.
46         * testsuite/20_util/shared_ptr/creation/single_allocation.cc: New.
47         * testsuite/20_util/shared_ptr/creation/single_allocation_no_rtti.cc:
48         New.
50 2017-05-10  François Dumont  <fdumont@gcc.gnu.org>
52         Bump version namespace.
53         * config/abi/pre/gnu-versioned-namespace.ver: Bump version namespace
54         from __7 to __8. Bump GLIBCXX_7.0 to GLIBCXX_8.0.
55         * acinclude.m4 (libtool_VERSION): Bump to 8:0:0.
56         * include/bits/c++config: Adapt.
57         * include/bits/regex.h: Adapt.
58         * include/experimental/bits/fs_fwd.h: Adapt.
59         * include/experimental/bits/lfts_config.h: Adapt.
60         * include/std/variant: Adapt.
61         * python/libstdcxx/v6/printers.py: Adapt.
62         * testsuite/libstdc++-prettyprinters/48362.cc: Adapt.
64         * include/bits/stl_algobase.h (std::__iter_swap<false>): Remove
65         _GLIBCXX_MOVE usage.
67 2017-05-09  Jason Merrill  <jason@redhat.com>
69         * testsuite/24_iterators/container_access.cc (test03): Make il3 static.
71 2017-05-08  Jonathan Wakely  <jwakely@redhat.com>
73         * include/std/optional: Use a separate static_assert per condition.
74         * testsuite/20_util/optional/cons/value_neg.cc: Update dg-error line
75         numbers.
77         * doc/xml/manual/mt_allocator.xml: Clarify deallocation behaviour.
78         * doc/html/*: Regenerate.
80 2017-05-02  Hugo Beauzée-Luyssen <hugo@beauzee.fr>
82         PR libstdc++/69506
83         * config/os/mingw32-w64/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
85 2017-04-29  François Dumont  <fdumont@gcc.gnu.org>
87         * testsuite/libstdc++-prettyprinters/48362.cc: Replace a regexp-test
88         by a note-test.
90 2017-04-28  Jonathan Wakely  <jwakely@redhat.com>
92         PR libstdc++/80553
93         * include/bits/stl_construct.h (_Destroy, _Destroy_n): Add static
94         assertions to ensure type is destructible.
95         (destroy_at, destroy, destroy_n): Move from stl_uninitialized.h.
96         * include/bits/stl_uninitialized.h (destroy_at, destroy, destroy_n):
97         Move to stl_construct.h.
98         * testsuite/20_util/specialized_algorithms/memory_management_tools/
99         destroy_neg.cc: New test.
100         * testsuite/23_containers/vector/cons/destructible_neg.cc: New test.
102         * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
103         superfluous "" in dg-error.
105 2017-04-28  Tom de Vries  <tom@codesourcery.com>
107         * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
108         superfluous '{ target *-*-* }' in dg-(error|warning|message|bogus).
110 2017-04-27  Jonathan Wakely  <jwakely@redhat.com>
112         * include/ext/pb_ds/detail/list_update_map_/iterators_fn_imps.hpp
113         (PB_DS_CLASS_C_DEC::end()): Remove redundant const in cast type.
114         * testsuite/util/testsuite_rng.h (twister_rand_gen::get_prob()):
115         Likewise.
117 2017-04-26  Jonathan Wakely  <jwakely@redhat.com>
119         * testsuite/23_containers/deque/allocator/move_assign-2.cc: Improve
120         comment. Ensure first test works because allocator type propagates and
121         not because is_always_equal is true.
122         * testsuite/23_containers/vector/52591.cc: Likewise. Restore original
123         testcase that instantiates the move-assignment operator.
125 2017-04-24  Jonathan Wakely  <jwakely@redhat.com>
127         PR libstdc++/80506
128         * include/bits/random.tcc (gamma_distribution::operator()): Fix magic
129         number used in loop condition.
131         PR libstdc++/80504
132         * include/bits/refwrap.h (ref, cref): Qualify calls.
133         * testsuite/20_util/reference_wrapper/80504.cc: New test.
135         PR libstdc++/80493
136         * include/experimental/optional (optional::swap): Fix exception
137         specification.
139 2017-04-21  Jonathan Wakely  <jwakely@redhat.com>
141         PR libstdc++/80316
142         * include/std/future (_State_baseV2::_Setter::operator()): Remove
143         _S_check calls that are done after the pointer to the shared state is
144         already dereferenced.
145         (_State_baseV2::_Setter<_Res, void>): Define specialization for void
146         as partial specialization so it can be defined within the definition
147         of _State_baseV2.
148         (_State_baseV2::__setter): Call _S_check.
149         (_State_baseV2::__setter(promise<void>*)): Add overload for use by
150         promise<void>::set_value and promise<void>::set_value_at_thread_exit.
151         (promise<T>, promise<T&>, promise<void>): Make _State a friend.
152         (_State_baseV2::_Setter<void, void>): Remove explicit specialization.
153         (promise<void>::set_value, promise<void>::set_value_at_thread_exit):
154         Use new __setter overload.
155         * testsuite/30_threads/promise/members/at_thread_exit2.cc: New test.
156         * testsuite/30_threads/promise/members/set_exception.cc: Test
157         promise<T&> and promise<void> specializations.
158         * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
159         Test for no_state error condition.
160         * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
162         * include/backward/auto_ptr.h: Ignore deprecated warnings from use
163         of auto_ptr.
164         * include/bits/shared_ptr.h: Likewise.
165         * include/bits/shared_ptr_base.h: Likewise.
166         * include/bits/unique_ptr.h: Likewise.
167         * libstdc++-v3/testsuite/20_util/default_delete/48631_neg.cc: Adjust
168         dg-error lineno.
169         * libstdc++-v3/testsuite/20_util/default_delete/void_neg.cc: Likewise.
170         * libstdc++-v3/testsuite/20_util/unique_ptr/assign/48635_neg.cc:
171         Likewise.
172         * libstdc++-v3/testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc:
173         Likewise.
175 2017-04-20  Edward Smith-Rowland  <3dw4rd@verizon.net>
177         PR libstdc++/68397 std::tr1::expint fails ... long double arguments.
178         * include/tr1/exp_integral.tcc: Increase iteration limits.
179         * testsuite/tr1/5_numerical_facilities/special_functions/15_expint/
180         pr68397.cc: New test.
181         * testsuite/special_functions/14_expint/pr68397.cc: New test.
183 2017-04-20  Jonathan Wakely  <jwakely@redhat.com>
185         PR libstdc++/79862
186         * include/std/atomic [!_GLIBCXX_USE_C99_STDINT_TR1] (atomic_int8_t)
187         (atomic_uint8_t, atomic_int16_t, atomic_uint16_t, atomic_int32_t,
188         (atomic_uint32_t, atomic_int64_t, atomic_uint64_t)
189         (atomic_int_least8_t, atomic_uint_least8_t, atomic_int_least16_t)
190         (atomic_uint_least16_t, atomic_int_least32_t, atomic_uint_least32_t)
191         (atomic_int_least64_t, atomic_uint_least64_t, atomic_int_fast8_t)
192         (atomic_uint_fast8_t, atomic_int_fast16_t, atomic_uint_fast16_t)
193         (atomic_int_fast32_t, atomic_uint_fast32_t, atomic_int_fast64_t)
194         (atomic_uint_fast64_t, atomic_intmax_t, atomic_uintmax_t): Don't
195         define.
197 2017-04-19  Jonathan Wakely  <jwakely@redhat.com>
199         * doc/xml/manual/abi.xml: Rephrase one of the references to the
200         Itanium C++ ABI.
201         * doc/xml/manual/test.xml: Document DejaGnu 1.5.3 requirement.
202         * doc/html/*: Regenerate.
204         * libsupc++/new: Update comment on #endif directive.
206         PR libstdc++/80448
207         * include/experimental/bits/fs_dir.h (directory_iterator)
208         (recursive_directory_iterator): Remove noexcept from defaulted
209         constructors.
211         PR libstdc++/80446
212         * include/std/type_traits (is_aggregate): Change __has_builtin checks.
213         * libsupc++/new (launder): Likewise.
215 2017-04-18  Jonathan Wakely  <jwakely@redhat.com>
217         * include/std/functional (default_searcher, __boyer_moore_array_base)
218         (__is_std_equal_to, __boyer_moore_base_t, boyer_moore_searcher)
219         (boyer_moore_horspool_searcher): Remove redundant namespace
220         qualification.
221         (default_searcher::operator()): Construct return value early and
222         advance second member in-place.
223         (boyer_moore_horspool_searcher::operator()): Increment random access
224         iterator directly instead of using std::next.
225         (boyer_moore_searcher::operator()): Fix return value.
226         * testsuite/20_util/function_objects/searchers.cc: Check both parts
227         of return values.
229 2017-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
231         * doc/xml/faq.xml: Update reference link to C++ ABI for Itanium.
232         * doc/xml/manual/abi.xml. Ditto (thrice).
234 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
236         * doc/xml/manual/status_cxx2017.xml: Remove duplicate table entry.
237         * doc/html/*: Regenerate.
239         * testsuite/20_util/reference_wrapper/invoke.cc: Uncomment tests
240         that no longer fail.
242         * include/bits/ios_base.h: Correct comment.
243         * testsuite/util/testsuite_hooks.h: Likewise.
245         * doc/xml/manual/status_cxx2017.xml: Update C++17 status table.
246         * doc/xml/manual/appendix_contributing.xml (contrib.organization): Add
247         directories for debug, parallel and profile headers.
248         * doc/html/*: Regenerate.
250         * include/bits/char_traits.h (__gnu_cxx::char_traits): Add
251         _GLIBCXX14_CONSTEXPR on assign, compare, find, and length.
252         (std::char_traits<char>, std::char_traits<wchar_t>): Add
253         _GLIBCXX17_CONSTEXPR on assign.
254         (std::char_traits<char16_t>, std::char_traits<char32_t>): Add
255         _GLIBCXX17_CONSTEXPR on assign, compare, find, and length.
256         * testsuite/21_strings/char_traits/requirements/
257         constexpr_functions_c++17.cc: New test.
259 2017-04-03  Ville Voutilainen  <ville.voutilainen@gmail.com>
261         PR libstdc++/79141
262         * include/bits/stl_pair.h (__nonesuch_no_braces): New.
263         (operator=(typename conditional<
264         __and_<is_copy_assignable<_T1>,
265         is_copy_assignable<_T2>>::value,
266         const pair&, const __nonesuch&>::type)): Change __nonesuch
267         to __nonesuch_no_braces.
268         (operator=(typename conditional<
269         __not_<__and_<is_copy_assignable<_T1>,
270         is_copy_assignable<_T2>>>::value,
271         const pair&, const __nonesuch&>::type)): Likewise.
272         (operator=(typename conditional<
273         __and_<is_move_assignable<_T1>,
274         is_move_assignable<_T2>>::value,
275         pair&&, __nonesuch&&>::type)): Likewise.
276         * testsuite/20_util/pair/79141.cc: New.
278 2017-04-03  Ville Voutilainen  <ville.voutilainen@gmail.com>
280         Implement std::is_aggregate.
281         * include/std/type_traits (is_aggregate, is_aggregate_v): New.
282         * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc:
283         New.
284         * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise.
285         * testsuite/20_util/is_aggregate/value.cc: Likewise.
287 2017-03-29  Ville Voutilainen  <ville.voutilainen@gmail.com>
289         Adjust optional's pretty printer for LWG 2900.
290         * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter.__init__):
291         Look at the nested payload in case of non-experimental optional.
293 2017-03-29  Ville Voutilainen  <ville.voutilainen@gmail.com>
295         Implement LWG 2900, The copy and move constructors
296         of optional are not constexpr.
297         * include/std/optional (_Optional_payload): New.
298         (_Optional_base): Remove the bool parameter.
299         (_Optional_base<_Tp, false>): Remove.
300         (_Optional_base()): Adjust.
301         (_Optional_base(nullopt_t)): Likewise.
302         (_Optional_base(in_place_t, _Args&&...)): Likewise.
303         (_Optional_base(in_place_t, initializer_list<_Up>, _Args&&...)):
304         Likewise.
305         (_Optional_base(const _Optional_base&)): Likewise.
306         (_Optional_base(_Optional_base&&)): Likewise.
307         (operator=(const _Optional_base&)): Likewise.
308         (operator=(_Optional_base&&)): Likewise.
309         (~_Optional_base()): Remove.
310         (_M_is_engaged()): Adjust.
311         (_M_get()): Likewise.
312         (_M_construct(_Args&&...)): Likewise.
313         (_M_destruct()): Likewise.
314         (_M_reset()): Likewise.
315         (_Optional_base::_Empty_byte): Remove.
316         (_Optional_base::_M_empty): Remove.
317         (_Optional_base::_M_payload): Adjust.
318         * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
319         * testsuite/20_util/optional/constexpr/cons/value.cc: Add tests.
321 2017-03-28  Jonathan Wakely  <jwakely@redhat.com>
323         PR libstdc++/80137
324         * include/bits/random.tcc (generate_canonical): Use std::nextafter
325         or numeric_limits::epsilon() to reduce out-of-range values.
326         * testsuite/26_numerics/random/uniform_real_distribution/operators/
327         64351.cc: Verify complexity requirement is met.
329         * doc/xml/manual/abi.xml: Add xml:id anchor.
330         * doc/xml/manual/using.xml (manual.intro.using.macros): Document
331         _GLIBCXX_RELEASE. Link to new anchor for __GLIBCXX__ notes.
332         (concurrency.io.structure): Add markup.
333         * doc/html/*: Regenerate.
335         PR libstdc++/80229
336         * include/bits/shared_ptr_base.h
337         (__shared_ptr::_M_enable_shared_from_this_with): Change parameters to
338         non-const and then use remove_cv to get unqualified type.
339         * testsuite/20_util/enable_shared_from_this/members/const.cc: Don't
340         cast away constness on object created const.
341         * testsuite/20_util/shared_ptr/cons/80229.cc: New test.
343 2017-03-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
345         PR libstdc++/80183
346         * include/bits/stl_tree.h:
347         (_Rb_tree_header::_M_move_data(_Rb_tree_header&)): Also save _M_color.
349 2017-03-23  Jonathan Wakely  <jwakely@redhat.com>
351         * testsuite/23_containers/array/tuple_interface/
352         tuple_element_debug_neg.cc: Adjust dg-error.
353         * testsuite/23_containers/list/operations/78389.cc: Fix less-than to
354         define a valid strict weak ordering.
355         * testsuite/23_containers/priority_queue/67085.cc: Disable test for
356         Debug Mode, due to debug checks making extra copies of predicate.
357         * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
358         Likewise.
360         * doc/xml/faq.xml: Add link.
361         * doc/xml/manual/backwards_compatibility.xml: Remove outdated
362         information on pre-ISO headers. Replace broken link to C++ FAQ Lite.
363         * doc/xml/manual/io.xml: Update broken link.
364         * doc/html/*: Regenerate.
366 2017-03-23  Daniel Kruegler  <daniel.kruegler@gmail.com>
368         Implement LWG 2686, Why is std::hash specialized for error_code,
369         but not error_condition?
370         * include/std/system_error (hash<error_condition>): Define for C++17.
371         * testsuite/20_util/hash/operators/size_t.cc (hash<error_condition>):
372         Instantiate test for error_condition.
373         * testsuite/20_util/hash/requirements/explicit_instantiation.cc
374         (hash<error_condition>): Instantiate hash<error_condition>.
376         * include/bits/c++config (_GLIBCXX17_INLINE): Define.
377         * include/bits/regex_constants.h (All std::regex_constants constants):
378         Add _GLIBCXX17_INLINE as per P0607R0.
379         * include/bits/std_mutex.h (defer_lock, try_to_lock, adopt_lock):
380         Likewise.
381         * include/bits/stl_pair.h (piecewise_construct): Likewise.
382         * include/bits/uses_allocator.h (allocator_arg, uses_allocator_v)
383         (__is_uses_allocator_constructible_v)
384         (__is_nothrow_uses_allocator_constructible_v): Likewise.
385         * include/std/chrono (treat_as_floating_point_v): Likewise.
386         * include/std/functional (is_bind_expression_v, is_placeholder_v):
387         Likewise.
388         * include/std/optional (nullopt): Likewise.
389         * include/std/ratio (ratio_equal_v, ratio_not_equal_v, ratio_less_v)
390         ratio_less_equal_v, ratio_greater_v, ratio_greater_equal_v): Likewise.
391         * include/std/system_error (is_error_code_enum_v)
392         (is_error_condition_enum_v): Likewise.
393         * include/std/tuple (tuple_size_v, ignore): Likewise.
394         (ignore): Declare ignore constexpr as per LWG 2773, declare assignment
395         constexpr as per LWG 2933.
396         * include/std/type_traits (All variable templates): Add
397         _GLIBCXX17_INLINE as per P0607R0.
398         * include/std/variant (variant_size_v, variant_npos, __index_of_v)
399         (__tuple_count_v, __exactly_once): Likewise.
400         * testsuite/18_support/headers/new/synopsis.cc
401         (hardware_destructive_interference_size)
402         (hardware_constructive_interference_size): Likewise for commented-out
403         variables.
404         * testsuite/20_util/tuple/creation_functions/constexpr.cc: Add new
405         test function for constexpr std::ignore (LWG 2773).
406         * testsuite/20_util/tuple/creation_functions/constexpr_cpp14.cc: New
407         test for LWG 2933.
409 2017-03-22  Jonathan Wakely  <jwakely@redhat.com>
411         * include/bits/shared_ptr.h (shared_ptr, weak_ptr): Add deduction
412         guides for C++17.
413         * include/bits/std_function.h (function): Likewise.
414         * include/bits/stl_pair.h (pair): Likewise.
415         * include/debug/array (__gnu_debug::array): Likewise.
416         * include/std/array (array): Likewise.
417         * include/std/functional (make_default_searcher)
418         (make_boyer_moore_searcher, make_boyer_moore_horspool_searcher):
419         Remove generator functions.
420         * include/std/tuple (tuple): Add deduction guides.
421         * include/std/valarray (valarray): Likewise.
422         * testsuite/20_util/function_objects/searchers.cc: Adjust to use
423         class template argument deduction instead of generator functions.
424         * testsuite/20_util/function/cons/deduction.cc: New test.
425         * testsuite/20_util/optional/cons/deduction_guide.cc: Rename to ...
426         * testsuite/20_util/optional/cons/deduction.cc: ... here.
427         * testsuite/20_util/pair/cons/deduction.cc: New test.
428         * testsuite/20_util/shared_ptr/cons/deduction.cc: New test.
429         * testsuite/20_util/tuple/cons/deduction.cc: New test.
430         * testsuite/20_util/tuple/element_access/get_neg.cc: Adjust dg-error.
431         * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: New test.
432         * testsuite/20_util/weak_ptr/cons/deduction.cc: New test.
433         * testsuite/23_containers/array/cons/deduction.cc: New test.
434         * testsuite/23_containers/array/cons/deduction_neg.cc: New test.
435         * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
436         Adjust dg-error.
437         * testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise.
438         * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
439         Likewise.
440         * testsuite/26_numerics/valarray/deduction.cc: New test.
441         * testsuite/30_threads/lock_guard/cons/deduction.cc: New test.
442         * testsuite/30_threads/scoped_lock/cons/deduction.cc: New test.
443         * testsuite/30_threads/unique_lock/cons/deduction.cc: New test.
445 2017-03-20  François Dumont  <fdumont@gcc.gnu.org>
447         * include/bits/stl_deque.h (deque): Access allocator value_type only if
448         concept checks are enabled.
449         * include/bits/stl_stack.h (stack): Likewise.
450         * include/bits/stl_vector.h (vector): Likewise.
451         * include/bits/stl_list.h (list): Likewise and check
452         _SGIAssignableConcept only in C++03.
453         * include/bits/stl_map.h (map): Likewise.
454         * include/bits/stl_set.h (set): Likewise.
455         * include/bits/stl_multimap.h (multimap): Likewise.
456         * include/bits/stl_multiset.h (multiset): Likewise.
457         * include/bits/stl_queue.h (queue, priority_queue): Likewise.
459 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
461         * doc/xml/manual/appendix_contributing.xml: Convert link to
462         ansi.org to https.
463         Update link to the C++ standard at ansi.org.
465         * doc/xml/faq.xml: Remove information redundant with the above;
466         instead add a reference.
468 2017-03-17  Jonathan Wakely  <jwakely@redhat.com>
470         * src/c++11/codecvt.cc (range): Add non-type template parameter and
471         define oerloaded operators for reading and writing code units.
472         (range<Elem, false>): Define partial specialization for accessing
473         wide characters in potentially unaligned byte ranges.
474         (ucs2_span(const char16_t*, const char16_t*, ...))
475         (ucs4_span(const char16_t*, const char16_t*, ...)): Change parameters
476         to range<const char16_t, false> in order to avoid unaligned reads.
477         (__codecvt_utf16_base<char16_t>::do_out)
478         (__codecvt_utf16_base<char32_t>::do_out)
479         (__codecvt_utf16_base<wchar_t>::do_out): Use range specialization for
480         unaligned data to avoid unaligned writes.
481         (__codecvt_utf16_base<char16_t>::do_in)
482         (__codecvt_utf16_base<char32_t>::do_in)
483         (__codecvt_utf16_base<wchar_t>::do_in): Likewise for writes. Return
484         error if there are unprocessable trailing bytes.
485         (__codecvt_utf16_base<char16_t>::do_length)
486         (__codecvt_utf16_base<char32_t>::do_length)
487         (__codecvt_utf16_base<wchar_t>::do_length): Pass arguments of type
488         range<const char16_t, false> to span functions.
489         * testsuite/22_locale/codecvt/codecvt_utf16/misaligned.cc: New test.
491 2017-03-16  Jonathan Wakely  <jwakely@redhat.com>
493         PR libstdc++/79980
494         * src/c++11/codecvt.cc (to_integer(codecvt_mode)): Fix target type.
496         PR libstdc++/80041
497         * src/c++11/codecvt.cc (__codecvt_utf16_base<wchar_t>::do_out)
498         (__codecvt_utf16_base<wchar_t>::do_in): Convert char arguments to
499         char16_t to work with UTF-16 instead of UTF-8.
500         * testsuite/22_locale/codecvt/codecvt_utf16/80041.cc: New test.
502         * src/c++11/codecvt.cc (codecvt<char16_t, char, mbstate_t>)
503         (codecvt<char32_t, char, mbstate_t>, __codecvt_utf8_base<char16_t>)
504         (__codecvt_utf8_base<char32_t>, __codecvt_utf8_base<wchar_t>)
505         (__codecvt_utf16_base<char16_t>, __codecvt_utf16_base<char32_t>)
506         (__codecvt_utf16_base<wchar_t>, __codecvt_utf8_utf16_base<char16_t>)
507         (__codecvt_utf8_utf16_base<char32_t>)
508         (__codecvt_utf8_utf16_base<wchar_t>): Fix do_encoding() and
509         do_max_length() return values.
510         * testsuite/22_locale/codecvt/codecvt_utf16/members.cc: New test.
511         * testsuite/22_locale/codecvt/codecvt_utf8/members.cc: New test.
512         * testsuite/22_locale/codecvt/codecvt_utf8_utf16/members.cc: New test.
514         PR libstdc++/79980
515         * include/bits/locale_conv.h (__do_str_codecvt): Set __count on
516         error path.
517         * src/c++11/codecvt.cc (operator&=, operator|=, operator~): Overloads
518         for manipulating codecvt_mode values.
519         (read_utf16_bom): Compare input to BOM constants instead of integral
520         constants that depend on endianness.  Take mode parameter by
521         reference and adjust it, to distinguish between no BOM present and
522         UTF-16BE BOM present.
523         (ucs4_in, ucs2_span, ucs4_span): Adjust calls to read_utf16_bom.
524         (surrogates): New enumeration type.
525         (utf16_in, utf16_out): Add surrogates parameter to choose between
526         UTF-16 and UCS2 behaviour.
527         (utf16_span, ucs2_span): Use std::min not std::max.
528         (ucs2_out): Use std::min not std::max.  Disallow surrogate pairs.
529         (ucs2_in): Likewise. Adjust calls to read_utf16_bom.
530         * testsuite/22_locale/codecvt/codecvt_utf16/79980.cc: New test.
531         * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: New test.
533         PR libstdc++/79511
534         * src/c++11/codecvt.cc (write_utf16_code_point): Don't write 0xffff
535         as a surrogate pair.
536         (__codecvt_utf8_utf16_base<char32_t>::do_in): Use native endianness
537         for internal representation.
538         (__codecvt_utf8_utf16_base<wchar_t>::do_in): Likewise.
539         * testsuite/22_locale/codecvt/codecvt_utf8_utf16/79511.cc: New test.
541         PR libstdc++/80064
542         * include/bits/stl_heap.h (__is_heap, push_heap, __adjust_heap)
543         (pop_heap, make_heap, sort_heap, is_heap_until, is_heap): Cope with
544         invalid instantiations using function types for _Compare argument.
545         * testsuite/25_algorithms/make_heap/80064.cc: New test.
547         PR libstdc++/67440
548         * python/libstdcxx/v6/printers.py (find_type): Avoid gdb.Type.name
549         for GDB 7.6 compatibility, use gdb.Type.unqualified instead.
551 2017-03-15  Ville Voutilainen  <ville.voutilainen@gmail.com>
553         Implement LWG 2857, {variant,optional,any}::emplace should
554         return the constructed value.
555         * include/std/any (emplace(_Args&&...)): Change the return type and
556         return a reference to the constructed value.
557         (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
558         * include/std/optional (emplace(_Args&&...)): Likewise.
559         (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
560         * include/std/variant (emplace<_Tp>(_Args&&...)): Likewise.
561         (emplace<_Tp>(initializer_list<_Up>, _Args&&...)): Likewise.
562         (emplace<_Np>(_Args&&...)): Likewise.
563         (emplace<_Np>(initializer_list<_Up>, _Args&&...)): Likewise.
564         * testsuite/20_util/any/assign/emplace.cc: Add tests for
565         checking the return value of emplace.
566         * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust.
567         * testsuite/20_util/optional/assignment/6.cc: Add tests for
568         checking the return value of emplace.
569         * testsuite/20_util/variant/run.cc: Likewise.
571 2017-03-15  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
573         PR libstdc++/62045
574         * include/ext/pb_ds/qdetail/binary_heap_/binary_heap_.hpp
575         (is_heap): Remove.
576         (push_heap): Remove the wrong checking using is_heap.
577         (make_heap): Remove the assertion using is_heap.
578         * include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp
579         (modify): Ditto.
580         (resize_for_insert_if_needed): Add PB_DS_ASSERT_VALID after
581         calling make_heap.
583 2017-03-15  Jonathan Wakely  <jwakely@redhat.com>
585         PR libstdc++/62045
586         * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
587         New test.
588         * testsuite/ext/pb_ds/regression/priority_queues.cc: Fix copy&paste
589         error in comment.
591 2017-03-15  Jonathan Wakely  <jwakely@redhat.com>
593         * acinclude.m4 (GLIBCXX_CHECK_S_ISREG_OR_S_IFREG): Fix typo in
594         comment.
595         * config.h.in: Regenerate.
596         * configure: Regenerate.
597         * doc/Makefile.in: Regenerate.
599 2017-03-14  Jonathan Wakely  <jwakely@redhat.com>
601         PR libstdc++/79162
602         * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
603         (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace
604         with a constrained template.
605         [!_GLIBCXX_USE_CXX11_ABI]
606         (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise.
607         * testsuite/21_strings/basic_string/cons/char/79162.cc: New test.
608         * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test.
610 2017-03-13  Ville Voutilainen  <ville.voutilainen@gmail.com>
612         PR libstdc++/80034
613         * include/bits/list.tcc (merge(list&&)): Use const for the size_t
614         in the catch-block.
615         (merge(list&&, _StrictWeakOrdering)): Likewise.
616         * testsuite/23_containers/list/operations/80034.cc: New.
618 2017-03-13  Ville Voutilainen  <ville.voutilainen@gmail.com>
620         Implement LWG 2806, Base class of bad_optional_access.
621         * include/std/optional (bad_optional_access):
622         Derive from std::exception.
623         (bad_optional_access::bad_optional_access): Adjust.
624         (bad_optional_access::what): New.
625         (__throw_bad_optional_access(const char*)):
626         Remove the parameter and adjust calls.
627         * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
628         * testsuite/20_util/optional/typedefs.cc: Likewise.
630 2017-03-12  Ville Voutilainen  <ville.voutilainen@gmail.com>
632         Implement LWG 2934, optional<const T> doesn't compare with T.
633         * include/std/optional
634         (operator==(const optional<_Tp>&, const optional<_Tp>&)):
635         Turn into operator==(const optional<_Tp>&, const optional<_Up>&).
636         (operator!=(const optional<_Tp>&, const optional<_Tp>&)):
637         Turn into operator!=(const optional<_Tp>&, const optional<_Up>&).
638         (operator<(const optional<_Tp>&, const optional<_Tp>&)):
639         Turn into operator<(const optional<_Tp>&, const optional<_Up>&.
640         (operator>(const optional<_Tp>&, const optional<_Tp>&)):
641         Turn into operator>(const optional<_Tp>&, const optional<_Up>&.
642         (operator<=(const optional<_Tp>&, const optional<_Tp>&)):
643         Turn into operator<=(const optional<_Tp>&, const optional<_Up>&).
644         (operator>=(const optional<_Tp>&, const optional<_Tp>&)):
645         Turn into operator>=(const optional<_Tp>&, const optional<_Up>&).
646         (operator==(const optional<_Tp>&, const _Tp&)):
647         Turn into operator==(const optional<_Tp>&, const _Up&).
648         (operator==(const _Tp&, const optional<_Tp>&)):
649         Turn into operator==(const _Up&, const optional<_Tp>&).
650         (operator!=(const optional<_Tp>&, const _Tp&)):
651         Turn into operator!=(const optional<_Tp>&, const _Up&).
652         (operator!=(const _Tp&, const optional<_Tp>&)):
653         Turn into operator!=(const _Up&, const optional<_Tp>&).
654         (operator<(const optional<_Tp>&, const _Tp&)):
655         Turn into operator<(const optional<_Tp>&, const _Up&).
656         (operator<(const _Tp&, const optional<_Tp>&)):
657         Turn into operator<(const _Up&, const optional<_Tp>&).
658         (operator>(const optional<_Tp>&, const _Tp&)):
659         Turn into operator>(const optional<_Tp>&, const _Up&).
660         (operator>(const _Tp&, const optional<_Tp>&)):
661         Turn into operator>(const _Up&, const optional<_Tp>&).
662         (operator<=(const optional<_Tp>&, const _Tp&)):
663         Turn into operator<=(const optional<_Tp>&, const _Up&).
664         (operator<=(const _Tp&, const optional<_Tp>&)):
665         Turn into operator<=(const _Up&, const optional<_Tp>&).
666         (operator>=(const optional<_Tp>&, const _Tp&)):
667         Turn into operator>=(const optional<_Tp>&, const _Up&).
668         (operator>=(const _Tp&, const optional<_Tp>&)):
669         Turn into operator>=(const _Up&, const optional<_Tp>&).
670         * testsuite/20_util/optional/relops/7.cc: New.
672 2017-03-10  Jonathan Wakely  <jwakely@redhat.com>
674         * testsuite/17_intro/names.cc: Undefine macros that clash with
675         identifiers in AIX system headers.
677         * include/bits/invoke.h (__invoke): Use __invoke_result instead of
678         result_of, and __is_nothrow_invocable instead of
679         __is_nothrow_callable.
680         * include/bits/shared_ptr_base.h (__shared_ptr): Use __is_invocable
681         instead of __is_callable.
682         * include/std/functional (invoke): use invoke_result_t instead of
683         result_of_t and is_nothrow_invocable instead of is_nothrow_callable.
684         (_Not_fn): Use __invoke_result instead of result_of.
685         * include/std/type_traits (__result_of_memobj, __result_of_memfun):
686         Remove partial specializations for reference_wrapper types.
687         (__result_of_impl): Use __inv_unwrap to strip reference_wrapper.
688         (__invoke_result): Define replacement for result_of and then use it to
689         define result_of.
690         (__is_callable_impl, __is_callable, __is_nothrow_callable): Replace
691         with __is_invocable_impl, __is_invocable, and __is_nothrow_invocable
692         respectively.
693         (invoke_result, invoke_result_t): Define for C++17.
694         (is_callable, is_nothrow_callable): Replace with is_invocable,
695         is_invocable_r, is_nothrow_invocable, and is_nothrow_invocable_r.
696         (is_callable_v, is_nothrow_callable_v): Replace with is_invocable_v,
697         is_invocable_r_v, is_nothrow_invocable_v, and is_nothrow_invocable_r_v.
698         * include/std/variant (hash<variant<T...>>): Use is_nothrow_invocable_v
699         instead of is_nothrow_callable_v.
700         * testsuite/20_util/function_objects/invoke/59768.cc: Remove unused
701         main function.
702         * testsuite/20_util/function_objects/not_fn/1.cc: Use is_invocable
703         instead of is_callable.
704         * testsuite/20_util/is_callable/*: Rename directory and adjust tests
705         to use new traits.
706         * testsuite/20_util/is_nothrow_callable/*: Likewise.
707         * testsuite/20_util/optional/hash.cc: Use is_invocable_v instead of
708         is_callable.
709         * testsuite/20_util/variant/hash.cc: Likewise.
711 2017-03-10  George Lander  <george.lander@arm.com>
713         * acinclude.m4 (glibcxx_cv_obsolete_isnan): Define
714         _GLIBCXX_INCLUDE_NEXT_C_HEADERS before including math.h.
715         * configure: Regenerate.
717 2017-03-09  Jonathan Wakely  <jwakely@redhat.com>
719         * include/std/functional (_Not_fn): Define macro to simplify
720         repetitive function definitions.
722         * doc/xml/manual/status_cxx2017.xml: Document std::byte support.
723         * include/c_global/cstddef (std::byte): Define for C++17.
724         * testsuite/18_support/byte/global_neg.cc: New test.
725         * testsuite/18_support/byte/ops.cc: New test.
726         * testsuite/18_support/byte/requirements.cc: New test.
728 2017-03-05  Jonathan Wakely  <jwakely@redhat.com>
730         * doc/xml/manual/status_cxx2017.xml: Document P0156R2 status.
731         * doc/html/*: Regenerate.
732         * include/std/mutex (scoped_lock): Implement new C++17 template.
733         * testsuite/30_threads/scoped_lock/cons/1.cc: New test.
734         * testsuite/30_threads/scoped_lock/requirements/
735         explicit_instantiation.cc: New test.
736         * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: New test.
738 2017-03-02  Gerald Pfeifer  <gerald@pfeifer.com>
739             François Dumont  <frs.dumont@gmail.com>
740             Jonathan Wakely  <jwakely@redhat.com>
742         * doc/xml/manual/debug_mode.xml: Update and simplify note
743         on link- and run-time coexistence.
745 2017-03-02  Jonathan Wakely  <jwakely@redhat.com>
747         * testsuite/17_intro/headers/names.cc: Rename to ...
748         * testsuite/17_intro/names.cc: ... here.
750         PR libstdc++/79789
751         * include/bits/hashtable_policy.h (__clp2): Use reserved names for
752         parameters and local variables.
753         * include/bits/ios_base.h (make_error_code, make_error_condition):
754         Likewise.
755         * include/bits/list.tcc (list::sort): Likewise.
756         * include/bits/mask_array.h (mask_array): Likewise.
757         * include/bits/regex.h (regex_token_iterator): Likewise.
758         * include/bits/slice_array.h (slice_array): Likewise.
759         * include/bits/stl_algo.h (__sample): Likewise.
760         * include/std/memory (undeclare_no_pointers): Likewise.
761         * include/std/type_traits (is_callable_v, is_nothrow_callable_v):
762         Likewise.
763         * libsupc++/exception_ptr.h (__dest_thunk): Likewise.
764         * testsuite/17_intro/headers/names.cc: New test.
766         PR libstdc++/79798
767         * include/std/functional (bind::_Res_type_impl): Fix incorrect use of
768         result_of that loses top-level cv-qualifiers.
769         * testsuite/20_util/bind/79798.cc: New test.
771 2017-03-01  Gerald Pfeifer  <gerald@pfeifer.com>
773         * doc/xml/manual/documentation_hacking.xml: Tweak link to
774         doxygen.org.
776 2017-02-23  Jonathan Wakely  <jwakely@redhat.com>
778         * include/experimental/iterator: Include <iterator>.
779         * testsuite/experimental/iterator/requirements.cc: Check for contents
780         of <iterator>.
782 2017-02-19  Dinka Ranns  <dinka.ranns@googlemail.com>
784         C++17 GB50 resolution
785         * include/std/chrono (duration::operator++()): Add
786         _GLIBCXX17_CONSTEXPR.
787         (duration::operator++(int)): Likewise.
788         (duration::operator--()): Likewise.
789         (duration::operator--(int)): Likewise.
790         (duration::operator+=(const duration&)): Likewise.
791         (duration::operator-=(const duration&)): Likewise.
792         (duration::operator*=(const rep&)): Likewise.
793         (duration::operator/=(const rep&)): Likewise.
794         (duration::operator%=(const rep&)): Likewise.
795         (duration::operator%=(const duration&)): Likewise.
796         (time_point::operator+=(const duration&)): Likewise.
797         (time_point::operator-=(const duration&)): Likewise.
798         * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: New test.
799         * testsuite/20_util/duration/literals/range.cc: Adjust dg-error.
800         * testsuite/20_util/time_point/arithmetic/constexpr.cc: New test.
802 2017-02-19  Gerald Pfeifer  <gerald@pfeifer.com>
804         * doc/xml/manual/debug.xml: Adjust link to ThreadSanitizer.
806 2017-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
808         * doc/xml/manual/io.xml: Update link to groups.google.com.
809         Tweak link description.
811 2017-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
813         * doc/xml/manual/profile_mode.xml: Fix link.
815 2017-02-16  Gerald Pfeifer  <gerald@pfeifer.com>
817         * doc/xml/manual/policy_data_structures.xml: Simplify and
818         standardize references to boost.org.
819         * doc/xml/manual/policy_data_structures_biblio.xml: Ditto.
820         * doc/xml/manual/shared_ptr.xml: Ditto.
822 2017-02-16  Jonathan Wakely  <jwakely@redhat.com>
824         PR libstdc++/60936
825         * src/c++11/snprintf_lite.cc (__concat_size_t): Calculate length
826         written to buffer, not length remaining in buffer.
828 2017-02-15  Tim Shen  <timshen@google.com>
830         PR libstdc++/78723
831         * include/std/variant (operator<(), operator>(), operator<=(),
832         operator>=(), operator==(), operator!=()): Implement P0393R3.
833         * testsuite/20_util/variant/compile.cc: Adjust tests.
834         * testsuite/20_util/variant/run.cc: Adjust tests.
836 2017-02-15  Tim Shen  <timshen@google.com>
838         PR libstdc++/79513
839         * include/std/variant (visit()): Forward variant types to the return
840         type detection code.
841         * testsuite/20_util/variant/compile.cc: Add test cases.
843 2017-02-13  H.J. Lu  <hongjiu.lu@intel.com>
845         PR libstdc++/79348
846         * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
848 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
850         PR libstdc++/79348
851         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
852         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
853         * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Likewise.
854         * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
855         * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Likewise.
856         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
857         * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Likewise.
858         * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
859         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
861 2017-02-13  Jonathan Wakely  <jwakely@redhat.com>
863         PR libstdc++/79486
864         * include/std/future (__future_base::_Task_state::_M_run)
865         (__future_base::_Task_state::_M_run_delayed): Use lvalue types in
866         result_of expressions.
867         * testsuite/30_threads/packaged_task/79486.cc: New.
869 2017-02-11  Jonathan Wakely  <jwakely@redhat.com>
871         PR libstdc++/79467
872         * include/bits/shared_ptr_base.h (__shared_ptr(_Yp*, _Deleter))
873         (__shared_ptr(_Yp*, _Deleter, _Alloc)): Use lvalue types in
874         __is_callable check.
875         * testsuite/20_util/shared_ptr/cons/79467.cc: New.
877         * include/bits/atomic_base.h: Re-indent.
879 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
881         * doc/xml/manual/profile_mode.xml: Update a paper reference.
883 2017-02-08  Gerald Pfeifer  <gerald@pfeifer.com>
885         * src/c++11/snprintf_lite.cc (__err): Use https for bug reporting.
887 2017-02-08  Jonathan Wakely  <jwakely@redhat.com>
889         * doc/xml/manual/policy_data_structures.xml: Fix spelling of author's
890         name.
891         * doc/xml/manual/policy_data_structures_biblio.xml: Likewise. Remove
892         broken links to texts that are no longer online.
893         * doc/xml/manual/profile_mode.xml: Update links to CGO 2009 paper and
894         LCPC 2006 paper.
895         * doc/xml/manual/using.xml: Update links to memory model information.
896         * doc/xml/manual/using_exceptions.xml: Update link to "Appendix E:
897         Standard-Library Exception Safety".
898         * doc/html/*: Regenerate.
900 2017-02-08  Gerald Pfeifer  <gerald@pfeifer.com>
902         * doc/xml/manual/profile_mode.xml: Unbreak link to
903         "Optimizing Sorting with Machine Learning Algorithms".
905 2017-02-08  Gerald Pfeifer  <gerald@pfeifer.com>
907         * src/c++11/snprintf_lite.cc (__err): Update bug reporting URL.
909 2017-02-08  Gerald Pfeifer  <gerald@pfeifer.com>
911         * doc/xml/manual/abi.xml: Update link to "Sun Studio 11: C++
912         Migration Guide".
914 2017-02-07  Gerald Pfeifer  <gerald@pfeifer.com>
916         * doc/html/ext/lwg-active.html: Remove.
917         * doc/html/ext/lwg-closed.html: Ditto.
918         * doc/html/ext/lwg-defects.html: Ditto.
920         * doc/Makefile.am (xml_extradir): Remove.
921         (xml_extra): Ditto.
922         (stamp-html-docbook-lwg): Remove recipe...
923         (stamp-html-docbook-data): ...and its use here.
924         * doc/Makefile.in: Regenerate.
926         * doc/xml/manual/intro.xml: Shorten two paragraphs explaining
927         the relationship to the upstream working group.
928         Replace a local link to ../ext/lwg-active.html by the upstream one.
929         Replace all reference to ../ext/lwg-defects.html by a new entity
930         &DR; which refers to the upstream address.
932 2017-02-07  Gerald Pfeifer  <gerald@pfeifer.com>
934         * doc/xml/manual/status_cxx2017.xml: Fix link to N4284.
936 2017-02-06  Jonathan Wakely  <jwakely@redhat.com>
938         PR libstdc++/79323
939         * testsuite/20_util/duration/literals/range.cc: Prune extra output
940         at -O0.
942 2017-02-06  Gerald Pfeifer  <gerald@pfeifer.com>
944         * doc/xml/manual/documentation_hacking.xml: Update URL of the
945         DocBook Element Reference.  Use that term as link description
946         instead of "online".
947         epubcheck has moved to GitHub.
948         Remove obsolete link to DocBook Publishing Tools.
950 2017-02-03  Jonathan Wakely  <jwakely@redhat.com>
952         PR libstdc++/66145
953         * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Restore ABI override
954         so new ios::failure can be caught even when old ABI is the default.
955         * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
956         * testsuite/27_io/basic_istream/extractors_arithmetic/char/
957         exceptions_failbit.cc: Likewise.
958         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
959         exceptions_failbit.cc: Likewise.
960         * testsuite/27_io/basic_istream/extractors_other/char/
961         exceptions_null.cc: Likewise.
962         * testsuite/27_io/basic_istream/extractors_other/wchar_t/
963         exceptions_null.cc: Likewise.
964         * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
965         * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
966         * testsuite/27_io/basic_ostream/inserters_other/char/
967         exceptions_null.cc: Likewise.
968         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
969         exceptions_null.cc: Likewise.
970         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
972         PR libstdc++/60936
973         * src/c++11/Makefile.am: Add new files.
974         * src/c++11/Makefile.in: Regenerate.
975         * src/c++11/cow-string-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
976         (operator<<, operator>>, getline): Move explicit instantiations to ...
977         * src/c++11/cow-string-io-inst.cc: ... new file.
978         * src/c++11/cow-wstring-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
979         (operator<<, operator>>, getline): Move explicit instantiations to ...
980         * src/c++11/cow-wstring-io-inst.cc: ... new file.
981         * src/c++11/functexcept.cc (__throw_ios_failure, __throw_system_error)
982         (__throw_future_error, __throw_bad_function_call):
983         (__throw_regex_error): Move functions for C++11 exceptions to the
984         files that define the exception types.
985         * src/c++11/functional.cc (__throw_bad_function_call): Move here.
986         * src/c++11/future.cc (__throw_future_error): Likewise.
987         * src/c++11/ios.cc (__throw_ios_failure): Likewise.
988         * src/c++11/regex.cc (__throw_regex_error): Likewise.
989         * src/c++11/snprintf_lite.cc (__concat_size_t): Print decimal
990         representation directly instead of calling __int_to_char.
991         * src/c++11/sso_string.cc (__sso_string): New file for definition
992         of __sso_string type.
993         * src/c++11/string-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
994         explicit instantiations of narrow string I/O functions.
995         * src/c++11/system_error.cc (__throw_system_error): Move here.
996         (__sso_string): Move to new file.
997         * src/c++11/wstring-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
998         explicit instantiations of wide string I/O functions.
999         * src/c++98/misc-inst.cc [_GLIBCXX_USE_CXX11_ABI] (operator<<)
1000         (operator>>, getline): Remove explicit instantiations from here.
1002 2017-02-02  H.J. Lu  <hongjiu.lu@intel.com>
1004         * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
1006 2017-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1008         * configure.host: Separate Solaris/SPARC and x86 baselines.
1009         * config/abi/post/solaris2.10/baseline_symbols.txt: Move ...
1010         * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: ... here.
1011         * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Move ...
1012         * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
1013         ... here.
1014         * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Move ...
1015         * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: ... here.
1016         * config/abi/post/i386-solaris2.10/baseline_symbols.txt: New file.
1017         * config/abi/post/solaris2.11/baseline_symbols.txt: Move ...
1018         * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: ... here.
1019         * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Move ...
1020         * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
1021         ... here.
1022         * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Move ...
1023         * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: ... here.
1024         * config/abi/post/i386-solaris2.11/baseline_symbols.txt: New file.
1026         * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
1027         * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
1028         * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
1029         * config/abi/post/solaris2.11/baseline_symbols.txt: Likewise.
1030         * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Likewise.
1031         * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Likewise.
1033 2017-02-01  Jonathan Wakely  <jwakely@redhat.com>
1035         PR libstdc++/78346
1036         * include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
1037         not its referent.
1038         (_Iter_comp_to_iter): Likewise.
1039         * testsuite/25_algorithms/search/78346.cc: New test.
1041         PR libstdc++/79254
1042         * config/abi/pre/gnu.ver: Remove recently added symbols.
1043         * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1044         (basic_string::_M_copy_assign): Remove.
1045         (basic_string::operator=(const basic_string&)): Don't dispatch to
1046         _M_copy_assign. If source object is small just deallocate, otherwise
1047         perform new allocation before making any changes.
1048         * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
1049         (basic_string::_M_copy_assign(const basic_string&, true_type)):
1050         Remove.
1051         * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1052         Test cases where the allocators are equal or the string is small.
1053         * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1054         Likewise.
1056 2017-01-30  Ville Voutilainen  <ville.voutilainen@gmail.com>
1058         Implement LWG 2825, LWG 2756 breaks class template argument
1059         deduction for optional.
1060         * include/std/optional: Add a deduction guide.
1061         * testsuite/20_util/optional/cons/deduction_guide.cc: New.
1063 2017-01-27  Jonathan Wakely  <jwakely@redhat.com>
1065         PR libstdc++/79254
1066         * config/abi/pre/gnu.ver: Add new symbols.
1067         * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1068         (basic_string::_M_copy_assign): New overloaded functions to perform
1069         copy assignment.
1070         (basic_string::operator=(const basic_string&)): Dispatch to
1071         _M_copy_assign.
1072         * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
1073         (basic_string::_M_copy_assign(const basic_string&, true_type)):
1074         Define, performing rollback on exception.
1075         * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1076         Test exception-safety guarantee.
1077         * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1078         Likewise.
1079         * testsuite/util/testsuite_allocator.h (uneq_allocator::swap): Make
1080         std::swap visible.
1082 2017-01-26  Jonathan Wakely  <jwakely@redhat.com>
1084         PR libstdc++/70607
1085         * include/tr1/complex (conj): Remove using-declaration and restore
1086         overloads, reverting previous change.
1088         * testsuite/23_containers/list/operations/78389.cc: Fix for C++11
1089         mode.
1090         * testsuite/23_containers/priority_queue/requirements/constructible.cc:
1091         Mark as unsupported in C++98 mode.
1092         * testsuite/23_containers/queue/requirements/constructible.cc:
1093         Likewise.
1094         * testsuite/23_containers/stack/requirements/constructible.cc:
1095         Likewise.
1096         * testsuite/25_algorithms/make_heap/movable.cc: Fix for C++11 mode.
1098         PR libstdc++/79243
1099         * include/bits/c++config (literals::string_view_literals::__7): Add.
1100         Only declare versioned namespaces for the relevant C++ dialects.
1101         * include/experimental/bits/erase_if.h (fundamentals_v2::__detail):
1102         Add versioning macros.
1103         * include/experimental/bits/lfts_config.h:
1104         (fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add.
1105         * include/experimental/string_view (fundamentals_v2::__detail):
1106         Add versioning macros.
1107         (fundamentals_v2::__detail::__identity): Remove.
1108         (fundamentals_v2::__detail::__idt): Use common_type instead of
1109         __detail::__identity.
1110         * include/std/string_view (__detail::__identity, __detail::__idt):
1111         Likewise.
1112         (literals::string_view_literals): Fix nesting of versioning macros.
1114         PR libstdc++/79190
1115         * libsupc++/del_opa.cc (operator delete(void*, std::align_val_t))
1116         [!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN
1117         && !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC]:
1118         Retrieve original pointer value allocated by malloc.
1119         * libsupc++/new_opa.cc [!_GLIBCXX_HAVE_ALIGNED_ALLOC
1120         && !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN
1121         && !_GLIBCXX_HAVE__ALIGNED_MALLOC] (aligned_alloc(size_t, size_t)):
1122         Define, adjusting pointer value allocated by malloc and storing for
1123         retrieval by operator delete.
1125 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
1127         * libsupc++/eh_atomics.h: Update copyright years.
1128         * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years.
1130 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
1132         PR libstdc++/61791
1133         PR libstdc++/70607
1134         * include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
1135         (proj(T), conj(T)): Change return types per DR 1522.
1136         * include/tr1/complex (conj): Remove overloads and use std::conj.
1137         * testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
1138         * testsuite/26_numerics/complex/dr781.cc: ... this, and update.
1139         * testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
1140         real(T) and imag(T). Allow testing for C++11 too.
1142 2017-01-24  Jonathan Wakely  <jwakely@redhat.com>
1144         PR libstdc++/79206
1145         * include/experimental/string_view (operator==): Check sizes first.
1146         * include/std/string_view (operator==): Likewise.
1148 2017-01-23  Jonathan Wakely  <jwakely@redhat.com>
1150         * testsuite/experimental/array/make_array.cc: Restore <functional>
1151         inclusion.
1153 2017-01-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1155         * testsuite/29_atomics/atomic/69301.cc: Require atomic builtins.
1157 2017-01-23  Jonathan Wakely  <jwakely@redhat.com>
1159         PR libstdc++/79195
1160         * include/experimental/array (__make_array_elem): New class template
1161         and partial specialization.
1162         (__is_reference_wrapper): Move into __make_array_elem specialization.
1163         (make_array): Use __make_array_elem to determine element type and move
1164         static assertion into specialization. Qualify std::forward call.
1165         (to_array): Add exception specifiation.
1166         * testsuite/experimental/array/make_array.cc: Test argument types
1167         without a common type.
1168         * testsuite/experimental/array/neg.cc: Adjust expected error message.
1170 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
1172         * doc/xml/manual/debug.xml: code.google.com uses https now.
1174 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
1176         * doc/xml/manual/test.xml: Fix link into gccint online manual.
1178 2017-01-21  Ville Voutilainen  <ville.voutilainen@gmail.com>
1180         Make poisoned hashes SFINAE away the call operator of the hash.
1181         * include/bits/functional_hash.h
1182         (__poison_hash::__enable_hash_call): New.
1183         * include/std/optional (__optional_hash_call_base): New.
1184         (hash<optional<_Tp>>): Derive from the new base,
1185         move the hash function into that base.
1186         * include/std/variant (__variant_hash_call_base_impl): New.
1187         (__variant_hash_call_base): Likewise.
1188         (hash<variant<_Types...>>): Derive from the new base,
1189         move the hash function into that base.
1190         * testsuite/20_util/optional/hash.cc: Add tests for is_callable.
1191         * testsuite/20_util/variant/hash.cc: Likewise.
1193 2017-01-20  Joe Seymour  <joe.s@somniumtech.com>
1195         * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t.
1196         * configure: Regenerate.
1198 2017-01-20  Jonathan Wakely  <jwakely@redhat.com>
1200         PR libstdc++/69240
1201         * include/bits/random.h (uniform_real_distribution::param_type)
1202         (normal_distribution::param_type, lognormal_distribution::param_type)
1203         (gamma_distribution::param_type, chi_squared_distribution::param_type)
1204         (cauchy_distribution::param_type, fisher_f_distribution::param_type)
1205         (student_t_distribution::param_type)
1206         (bernoulli_distribution::param_type, binomial_distribution::param_type)
1207         (geometric_distribution::param_type)
1208         (negative_binomial_distribution::param_type)
1209         (poisson_distribution::param_type)
1210         (exponential_distribution::param_type)
1211         (weibull_distribution::param_type)
1212         (extreme_value_distribution::param_type)
1213         (discrete_distribution::param_type)
1214         (piecewise_constant_distribution::param_type)
1215         (piecewise_linear_distribution::param_type): Define operator!=.
1216         * include/bits/uniform_int_dist.h
1217         (uniform_int_distribution::param_type): Likewise.
1218         * include/ext/random (beta_distribution::param_type)
1219         (rice_distribution::param_type, nakagami_distribution::param_type)
1220         (pareto_distribution::param_type, k_distribution::param_type)
1221         (arcsine_distribution::param_type, hoyt_distribution::param_type)
1222         (triangular_distribution::param_type)
1223         (von_mises_distribution::param_type)
1224         (hypergeometric_distribution::param_type)
1225         (logistic_distribution::param_type)
1226         (uniform_on_sphere_distribution::param_type)
1227         (uniform_inside_sphere_distribution::param_type): Likewise.
1228         * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc:
1229         Test construction with param_type.
1230         * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc:
1231         Likewise.
1232         * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
1233         Likewise.
1234         * testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc:
1235         Likewise.
1236         * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
1237         Likewise.
1238         * testsuite/26_numerics/random/extreme_value_distribution/cons/
1239         parms.cc: Likewise.
1240         * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc:
1241         Likewise.
1242         * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc:
1243         Likewise.
1244         * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc:
1245         Likewise.
1246         * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc:
1247         Likewise.
1248         * testsuite/26_numerics/random/negative_binomial_distribution/cons/
1249         parms.cc: Likewise.
1250         * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
1251         Likewise.
1252         * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc:
1253         Likewise.
1254         * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
1255         Likewise.
1256         * testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc:
1257         Likewise.
1258         * testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc:
1259         Likewise.
1260         * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc:
1261         Likewise.
1262         * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise.
1263         * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise.
1264         * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
1265         * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc:
1266         Likewise.
1267         * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise.
1268         * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise.
1269         * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise.
1270         * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
1271         * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise.
1272         * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise.
1273         * testsuite/ext/random/triangular_distribution/cons/parms.cc:
1274         Likewise.
1275         * testsuite/ext/random/uniform_inside_sphere_distribution/cons/
1276         parms.cc: Likewise.
1277         * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise.
1279         PR libstdc++/72792
1280         * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
1281         (__allocator_traits_base::__size_type): Remove.
1282         (allocator_traits::_Ptr): New class template to detect const and void
1283         pointer types without instantiating pointer_traits::rebind
1284         unnecessarily.
1285         (allocator_traits::_Diff): Likewise for detecting difference_type.
1286         (allocator_traits::_Size): New class template to detect size_type
1287         without instantiating make_unsigned unnecessarily.
1288         * include/bits/ptr_traits.h (pointer_traits::element_type): Use
1289         __detected_or_t instead of __detected_or_t_.
1290         * include/std/type_traits (__detected_or_t_): Remove.
1291         * testsuite/20_util/allocator_traits/members/pointers.cc: New test.
1293         PR libstdc++/72792
1294         PR libstdc++/72793
1295         * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
1296         Replace with class template using void_t.
1297         (__alloc_rebind): Define in terms of
1298         __allocator_traits_base::__rebind.
1299         (allocator_traits): Remove unconditional static_assert for
1300         rebind_alloc.
1301         * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
1302         (pointer_traits::__rebind): Replace with class template using void_t.
1303         (pointer_traits::rebind): Define in terms of __rebind.
1304         (pointer_traits): Remove unconditional static_assert for rebind.
1305         * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
1306         * testsuite/20_util/pointer_traits/rebind.cc: New test.
1308         PR libstdc++/69321
1309         * include/experimental/any (__any_caster): Avoid instantiating
1310         manager function for types that can't be stored in any.
1311         * include/std/any (__any_caster): Likewise.
1312         * testsuite/20_util/any/misc/any_cast.cc: Test non-copyable type.
1313         * testsuite/experimental/any/misc/any_cast.cc: Likewise.
1315         PR libstdc++/64903
1316         * include/bits/stl_algo.h (is_partitioned): Use increment instead of
1317         std::advance.
1319 2017-01-19  Jonathan Wakely  <jwakely@redhat.com>
1321         PR libstdc++/79156
1322         * include/bits/shared_ptr_base.h (__enable_shared_from_this_base):
1323         Fix return type.
1324         (__enable_shared_from_this): Declare __shared_ptr as a friend.
1325         * testsuite/ext/shared_ptr/1.cc: New test.
1327         PR libstdc++/64903
1328         * include/bits/stl_algo.h (is_partitioned): Don't retest the partition
1329         point.
1330         * testsuite/25_algorithms/is_partitioned/2.cc: New test.
1332         * doc/xml/manual/abi.xml: Fix typo.
1333         * doc/html/manual/abi.html: Likewise.
1335         PR libstdc++/67085
1336         * include/bits/predefined_ops.h (_Iter_less_val, _Val_less_iter): Add
1337         converting constructors from _Iter_less_iter.
1338         (_Iter_comp_val, _Val_comp_iter): Add converting constructors from
1339         _Iter_comp_iter.
1340         (__iter_comp_val(_Iter_comp_iter<C>): Use converting constructor.
1341         (__val_comp_iter(_Iter_comp_iter<C>): Likewise.
1342         * include/bits/stl_heap.h (__is_heap_until, __push_heap, __pop_heap)
1343         (__make_heap, __sort_heap): Change _Compare parameters to references.
1344         (__is_heap, push_heap, __adjust_heap, __pop_heap, pop_heap)
1345         (__make_heap, make_heap, sort_heap, is_heap_until): Pass comparison
1346         functions as lvalues.
1347         (is_heap): Call __is_heap_until directly to avoid copying __comp.
1348         * testsuite/23_containers/priority_queue/67085.cc: Adjust test to
1349         count copies during construction with empty sequence.
1351         PR libstdc++/67085
1352         * include/bits/stl_heap.h (__is_heap): Use _GLIBCXX_MOVE.
1353         (__make_heap, __sort_heap): Don't use _GLIBCXX_MOVE inside loops.
1354         * testsuite/23_containers/priority_queue/67085.cc: Adjust expected
1355         number of copies.
1356         * testsuite/25_algorithms/make_heap/movable.cc: New test.
1358         PR libstdc++/67085
1359         * include/bits/stl_heap.h (push_heap, __adjust_heap, __pop_heap)
1360         (pop_heap, __make_heap, make_heap, __sort_heap, sort_heap): Use
1361         _GLIBCXX_MOVE when passing comparison function to other functions.
1362         (is_heap_until, is_heap): Use std::move when passing comparison
1363         function.
1364         * testsuite/23_containers/priority_queue/67085.cc: New test.
1366         PR libstdc++/78905
1367         * doc/xml/manual/abi.xml (abi.versioning.history): Add markup to
1368         macro names, filenames, and literal values. Document _GLIBCXX_RELEASE.
1369         Document that the deprecated _GLIBCXX_VERSION macro was removed for
1370         the 4.0.0 release.
1371         * doc/html/*: Regenerate.
1372         * include/Makefile.am (_GLIBCXX_RELEASE): Set value.
1373         * include/Makefile.in: Regenerate.
1374         * include/bits/c++config (_GLIBCXX_RELEASE): Add #define.
1375         * testsuite/ext/profile/mutex_extensions_neg.cc: Use lineno of 0 in
1376         dg-error.
1378 2017-01-18  Jonathan Wakely  <jwakely@redhat.com>
1380         PR libstdc++/69301
1381         * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
1382         aligned buffer instead of default-initialized variable.
1383         * testsuite/29_atomics/atomic/69301.cc: New test.
1384         * include/experimental/memory (observer_ptr::release): Use reserved
1385         name.
1386         * include/ext/pointer.h (_Pointer_adapter::operator++(int))
1387         (_Pointer_adapter::operator--(int)): Likewise.
1389         PR libstdc++/68925
1390         * include/experimental/random (randint): Use temporary instead of
1391         thread_local static.
1393 2017-01-17  Joshua Conner  <joshconner@google.com>
1395         * crossconfig.m4: Add fuchsia OS.
1396         * configure: Regenerate.
1398 2017-01-17  Jonathan Wakely  <jwakely@redhat.com>
1400         PR libstdc++/69699
1401         * doc/xml/manual/abi.xml (abi.versioning.history): Explain why the
1402         __GLIBCXX__ macro is not useful. Remove redundant date information
1403         and link to the GCC release timeline.
1404         (abi.versioning.active): Move partial sentence into the previous
1405         paragraph.
1406         * doc/html/*: Regenerate.
1408         PR libstdc++/79114
1409         * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
1410         of remove_reference.
1411         * testsuite/18_support/nested_exception/79114.cc: New test.
1413 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
1415         PR other/79046
1416         * configure.ac: Add GCC_BASE_VER.
1417         * fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
1418         get version from BASE-VER file.
1419         * po/Makefile.in: Regenerated.
1420         * libsupc++/Makefile.in: Regenerated.
1421         * testsuite/Makefile.in: Regenerated.
1422         * src/Makefile.in: Regenerated.
1423         * configure: Regenerated.
1424         * Makefile.in: Regenerated.
1425         * include/Makefile.in: Regenerated.
1426         * doc/Makefile.in: Regenerated.
1427         * python/Makefile.in: Regenerated.
1428         * src/c++11/Makefile.in: Regenerated.
1429         * src/c++98/Makefile.in: Regenerated.
1430         * src/filesystem/Makefile.in: Regenerated.
1432 2017-01-16  Jonathan Wakely  <jwakely@redhat.com>
1434         PR libstdc++/66145
1435         * src/c++11/functexcept.cc: Use new ABI for std::ios_base::failure
1436         exceptions.
1437         * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Don't override ABI
1438         for test, so new ios::failure can be caught.
1439         * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1440         * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1441         exceptions_failbit.cc: Likewise.
1442         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1443         exceptions_failbit.cc: Likewise.
1444         * testsuite/27_io/basic_istream/extractors_other/char/
1445         exceptions_null.cc: Likewise.
1446         * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1447         exceptions_null.cc: Likewise.
1448         * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1449         * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1450         * testsuite/27_io/basic_ostream/inserters_other/char/
1451         exceptions_null.cc: Likewise.
1452         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1453         exceptions_null.cc: Likewise.
1454         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1456         PR libstdc++/78702
1457         * include/bits/locale_classes.h (locale::facet::__shim): Change from
1458         private to protected.
1459         * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
1460         make locale::facet::__shim accessible.
1462 2017-01-16  Ville Voutilainen  <ville.voutilainen@gmail.com>
1464         PR libstdc++/78389
1465         * include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
1466         (merge(list&&, _StrictWeakOrdering)): Likewise.
1467         * testsuite/23_containers/list/operations/78389.cc: Add
1468         better test for the sizes.
1470 2017-01-14  Jonathan Wakely  <jwakely@redhat.com>
1472         * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
1473         Skip test when -D_GLIBCXX_PROFILE mode is included in options.
1474         * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
1475         * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
1476         Likewise.
1477         * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
1478         * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
1479         * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
1480         * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
1481         * testsuite/23_containers/unordered_map/modifiers/extract.cc:
1482         Likewise.
1483         * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
1484         Likewise.
1485         * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
1486         Likewise.
1487         * testsuite/23_containers/unordered_set/modifiers/extract.cc:
1488         Likewise.
1489         * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
1490         Likewise.
1491         * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
1492         * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
1493         * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
1494         * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
1495         * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
1496         * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
1497         * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
1498         * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
1499         * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
1500         * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
1501         * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
1502         * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
1503         * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1505 2017-01-13  Jonathan Wakely  <jwakely@redhat.com>
1507         PR libstdc++/65411
1508         * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
1509         retry fclose on EINTR.
1511         * include/profile/base.h: Remove unused header that leads to header
1512         cycle in C++17 mode.
1514         PR libstdc++/79075
1515         * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
1516         Make _If_sv private.
1517         [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
1518         basic_string_view arguments.
1520         PR libstdc++/79075
1521         * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
1522         redundant option from cxxflags.
1523         (check_effective_target_cxx11-abi): Define.
1524         * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
1525         effective target.
1526         * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
1527         * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1528         Likewise.
1529         * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
1530         Likewise.
1531         * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
1532         * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
1533         Likewise.
1534         * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
1535         Likewise.
1536         * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
1537         * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
1538         Likewise.
1539         * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1540         Likewise.
1541         * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
1542         Likewise.
1543         * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
1544         Likewise.
1545         * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
1546         Likewise.
1547         * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
1548         Likewise.
1549         * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
1550         Likewise.
1551         * testsuite/23_containers/list/61347.cc: Likewise.
1552         * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
1553         * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
1555 2017-01-13  Ville Voutilainen  <ville.voutilainen@gmail.com>
1557         PR libstdc++/78389
1558         * include/bits/list.tcc (merge(list&&)):
1559         Adjust list sizes if the comparator throws.
1560         (merge(list&&, _StrictWeakOrdering)): Likewise.
1561         (sort()): Splice elements back from the scratch buffers
1562         if the comparator throws.
1563         (sort(_StrictWeakOrdering)): Likewise.
1564         * testsuite/23_containers/list/operations/78389.cc: New.
1566 2017-01-13  Jonathan Wakely  <jwakely@redhat.com>
1568         * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
1569         XFAIL for C++17 until node reinsertion supports fancy pointers.
1571         PR libstdc++/78361
1572         * testsuite/20_util/add_pointer/value.cc: Test forming function
1573         pointers.
1575 2017-01-13  Michael Brune  <lucdanton@free.fr>
1577         PR libstdc++/78361
1578         * include/std/type_traits (__is_referenceable): Handle noexcept
1579         function types.
1581 2017-01-12  Jonathan Wakely  <jwakely@redhat.com>
1583         PR libstdc++/77528
1584         * include/bits/stl_queue.h (queue, priority_queue): Remove default
1585         member-initializers and define default constructors as templates with
1586         constraints.
1587         * include/bits/stl_stack.h (stack): Likewise.
1588         * testsuite/23_containers/priority_queue/requirements/constructible.cc:
1589         New.
1590         * testsuite/23_containers/priority_queue/requirements/
1591         explicit_instantiation/1.cc: Test more instantiations.
1592         * testsuite/23_containers/priority_queue/requirements/
1593         explicit_instantiation/1_c++98.cc: Likewise.
1594         * testsuite/23_containers/queue/requirements/constructible.cc: New.
1595         * testsuite/23_containers/stack/requirements/constructible.cc: New.
1597         PR libstdc++/66284
1598         * doc/xml/manual/intro.xml: Document LWG 2781 change.
1599         * doc/html/*: Regenerate.
1600         * include/std/functional (_Function_base::_Ref_manager): Remove.
1601         (_Function_handler): Remove partial specializations for
1602         reference_wrapper.
1603         (function::target): Remove special case for const qualification.
1604         * testsuite/20_util/function/6.cc: Adjust tests for target type.
1605         * testsuite/20_util/function/7.cc: Likewise.
1606         * testsuite/20_util/function/8.cc: Likewise.
1608 2017-01-11  Jonathan Wakely  <jwakely@redhat.com>
1610         PR libstdc++/78134
1611         * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
1612         (map::equal_range): Fix return type of heterogeneous overloads.
1613         * include/bits/stl_multimap.h (multimap::lower_bound)
1614         (multimap::upper_bound, multimap::equal_range): Likewise.
1615         * include/bits/stl_multiset.h (multiset::lower_bound)
1616         (multiset::upper_bound, multiset::equal_range): Likewise.
1617         * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
1618         (set::equal_range): Likewise.
1619         * testsuite/23_containers/map/operations/2.cc
1620         * testsuite/23_containers/multimap/operations/2.cc
1621         * testsuite/23_containers/multiset/operations/2.cc
1622         * testsuite/23_containers/set/operations/2.cc
1624         PR libstdc++/78273
1625         * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
1626         the heterogeneous comparison can only find one match.
1627         * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
1628         * testsuite/23_containers/map/operations/2.cc: Test count works with
1629         comparison function that just partitions rather than sorting.
1630         * testsuite/23_containers/set/operations/2.cc: Likewise.
1632 2017-01-11  Ville Voutilainen  <ville.voutilainen@gmail.com>
1634         Reduce the size of variant, it doesn't need an index of
1635         type size_t internally.
1636         * include/std/variant (parse_numbers.h): New include.
1637         (__select_index): New.
1638         (_Variant_storage<false, _Types...>::_M_reset_impl): Use
1639         _index_type for comparison with variant_npos.
1640         (_Variant_storage<false, _Types...>::__index_type): New.
1641         (_Variant_storage<false, _Types...>::_M_index): Change the
1642         type from size_t to __index_type.
1643         (_Variant_storage<true, _Types...>::__index_type): New.
1644         (_Variant_storage<true, _Types...>::_M_index): Change the
1645         type from size_t to __index_type.
1646         (_Variant_base::_M_valid): Use _Storage::__index_type
1647         for comparison with variant_npos.
1648         (variant::index): Use _Base::_Storage::__index_type
1649         for comparison with variant_npos.
1650         * testsuite/20_util/variant/index_type.cc: New.
1652 2017-01-10  Jonathan Wakely  <jwakely@redhat.com>
1654         * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
1655         effective target selector to prevent running in C++17 mode.
1657         PR libstdc++/77528
1658         * include/bits/stl_queue.h (queue::c): Add default member initializer.
1659         (queue::queue()): Add constructor and define as defaulted.
1660         (queue::queue(_Sequence&&)): Remove default argument.
1661         (priority_queue::c, priority_queue::comp): Add default member
1662         initializers.
1663         (priority_queue::priority_queue()): Add constructor and define as
1664         defaulted.
1665         (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
1666         Remove default argument for first parameter.
1667         * include/bits/stl_stack.h (stack::c): Add default member initializer.
1668         (stack::stack()): Add constructor and define as defaulted.
1669         (stack::stack(const _Sequence&)): Remove default argument.
1670         * testsuite/23_containers/priority_queue/requirements/
1671         explicit_instantiation/1.cc: Test explicit instantiation with
1672         non-DefaultConstructible sequence.
1673         * testsuite/23_containers/priority_queue/77528.cc: New test.
1674         * testsuite/23_containers/priority_queue/requirements/
1675         explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
1676         * testsuite/23_containers/queue/77528.cc: New test.
1677         * testsuite/23_containers/queue/requirements/explicit_instantiation/
1678         1.cc: Test explicit instantiation with non-DefaultConstructible
1679         sequence.
1680         * testsuite/23_containers/queue/requirements/explicit_instantiation/
1681         1_c++0x.cc: Replace with 1_c++98.cc.
1682         * testsuite/23_containers/stack/77528.cc: New test.
1683         * testsuite/23_containers/stack/requirements/explicit_instantiation/
1684         1.cc: Test explicit instantiation with non-DefaultConstructible
1685         sequence.
1686         * testsuite/23_containers/stack/requirements/explicit_instantiation/
1687         1_c++0x.cc: Replace with 1_c++98.cc.
1689 2017-01-10  Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
1691         * include/bits/locale_facets_nonio.tcc
1692         (time_get::_M_extract_via_format): Avoid compilation errors with
1693         non-standard struct tm.
1695 2017-01-10  François Dumont  <fdumont@gcc.gnu.org>
1696             Jonathan Wakely  <jwakely@redhat.com>
1698         * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
1699         (is_specialization, strip_versioned_namespace): New helpers functions
1700         to work with symbols in the versioned namespace.
1701         (Printer.add_version): Add second name using versioned namespace.
1702         (add_one_template_type_printer, add_one_type_printer): Add second
1703         type printers using versioned namespace.
1704         (register_type_printers): Add template type printer for basic_string.
1705         (build_libstdcxx_dictionary): Remove dead code.
1706         * python/libstdcxx/v6/xmethods.py: Make all matchers look for
1707         versioned namespace.
1708         * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
1709         results.
1710         * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1712 2017-01-09  Jonathan Wakely  <jwakely@redhat.com>
1714         PR libstdc++/79017
1715         * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
1716         functions separately on darwin and if they're missing define
1717         _GLIBCXX_NO_C99_ROUNDING_FUNCS.
1718         * config.h.in: Regenerate.
1719         * configure: Regenerate.
1720         * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
1721         (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
1723         * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
1724         to detect correct thread_local destructors.
1725         * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
1726         Define.
1728 2017-01-09  Jonathan Wakely  <jwakely@redhat.com>
1729             Aditya Kumar  <hiraditya@msn.com>
1731         PR libstdc++/66414
1732         * include/bits/basic_string.tcc
1733         (basic_string::find(const CharT*, size_type, size_type)): Optimize.
1735 2017-01-06  Jonathan Wakely  <jwakely@redhat.com>
1737         * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
1738         * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
1740         * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
1741         Include <cassert> header.
1743         PR libstdc++/78968
1744         * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
1745         * configure: Regenerate.
1747 2017-01-06  Barrett Adair  <barrettellisadair@gmail.com>
1748             Jonathan Wakely  <jwakely@redhat.com>
1750         * include/std/variant (variant, swap): Replace __and_ usage with fold
1751         expressions.
1753 2017-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1755         PR go/78978
1756         * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
1757         * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
1758         GLIBCXX_CHECK_ASSEMBLER_HWCAP.
1759         * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
1760         HWCAP_FLAGS.
1761         * aclocal.m4: Regenerate.
1762         * configure: Regenerate.
1763         * Makefile.in, doc/Makefile.in, include/Makefile.in,
1764         libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
1765         src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
1766         src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
1768 2017-01-06  Jonathan Wakely  <jwakely@redhat.com>
1770         * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
1772         PR libstdc++/78991
1773         * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
1774         (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
1775         (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
1776         move function objects.
1777         (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
1778         (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
1779         * testsuite/25_algorithms/sort/78991.cc: New test.
1781 2017-01-05  Jonathan Wakely  <jwakely@redhat.com>
1783         * include/bits/std_function.h (function::_Signature_type): Remove.
1784         (function::function(_Functor)): Adjust.
1786 2017-01-05  Tim Shen  <timshen@google.com>
1788         PR libstdc++/78996
1789         * include/std/variant (__gen_vtable_impl): rename __unused to
1790         __dimensions to avoid naming conflict.
1792 2017-01-04  Jonathan Wakely  <jwakely@redhat.com>
1794         PR libstdc++/78968
1795         * config.h.in: Regenerate.
1796         * configure: Likewise.
1797         * configure.ac: Check for __cxa_thread_atexit.
1798         * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
1799         Don't define __cxa_thread_atexit if libc provides it.
1801 2017-01-04  Ville Voutilainen  <ville.voutilainen@gmail.com>
1803         Implement 2801, Default-constructibility of unique_ptr.
1804         * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
1805         (unique_ptr::_DeleterConstraint): Likewise.
1806         (unique_ptr()): Constrain.
1807         (unique_ptr(pointer)): Likewise.
1808         (unique_ptr(nullptr_t)): Likewise.
1809         (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
1810         (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
1811         (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
1812         (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
1813         * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
1814         * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
1815         * testsuite/20_util/unique_ptr/cons/default.cc: New.
1816         * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
1818 2017-01-04  Pauli Nieminen  <suokkos@gmail.com>
1819             Jonathan Wakely  <jwakely@redhat.com>
1821         PR libstdc++/64735
1822         * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
1823         * config.h.in: Regenerate.
1824         * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
1825         (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
1826         exports for exception_ptr, nested_exception, and future conditional.
1827         [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
1828         exports for exception_ptr, nested_exception, and future conditional.
1829         * configure: Regenerate.
1830         * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
1831         * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
1832         * libsupc++/eh_atomics.h: New file for internal use only.
1833         (__eh_atomic_inc, __eh_atomic_dec): New.
1834         * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
1835         (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
1836         (rethrow_exception): Use eh_atomics.h reference counting helpers.
1837         * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
1838         * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
1839         * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
1840         * libsupc++/exception_ptr.h: Likewise.
1841         * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
1842         * libsupc++/nested_exception.cc: Remove check for
1843         ATOMIC_INT_LOCK_FREE.
1844         * libsupc++/nested_exception.h: Likewise.
1845         * src/c++11/future.cc: Likewise.
1846         * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
1847         * testsuite/18_support/nested_exception/*: Likewise.
1848         * testsuite/30_threads/async/*: Likewise.
1849         * testsuite/30_threads/future/*: Likewise.
1850         * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
1851         * testsuite/30_threads/packaged_task/*: Likewise.
1852         * testsuite/30_threads/promise/*: Likewise.
1853         * testsuite/30_threads/shared_future/*: Likewise.
1855 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
1857         * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
1858         defaults to https; adjust reference.
1860 2017-01-03  Jonathan Wakely  <jwakely@redhat.com>
1862         PR libstdc++/78956
1863         * include/std/thread (thread(const thread&&)): Add deleted
1864         constructor.
1865         * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
1867         * doc/xml/manual/spine.xml: Update copyright years.
1868         * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
1869         * doc/xml/manual/test.xml: Likewise.
1870         * doc/html/*: Regenerate.
1872 2017-01-01  Gerald Pfeifer  <gerald@pfeifer.com>
1874         * doc/xml/faq.xml: Update address of C++ ABI link.
1875         * doc/xml/manual/abi.xml: Ditto.
1877 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
1879         Update copyright years.
1881 Copyright (C) 2017 Free Software Foundation, Inc.
1883 Copying and distribution of this file, with or without modification,
1884 are permitted in any medium without royalty provided the copyright
1885 notice and this notice are preserved.