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