1 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
3 * doc/xml/manual/status_cxx2017.xml: Remove duplicate table entry.
4 * doc/html/*: Regenerate.
6 * testsuite/20_util/reference_wrapper/invoke.cc: Uncomment tests
9 * include/bits/ios_base.h: Correct comment.
10 * testsuite/util/testsuite_hooks.h: Likewise.
12 * doc/xml/manual/status_cxx2017.xml: Update C++17 status table.
13 * doc/xml/manual/appendix_contributing.xml (contrib.organization): Add
14 directories for debug, parallel and profile headers.
15 * doc/html/*: Regenerate.
17 * include/bits/char_traits.h (__gnu_cxx::char_traits): Add
18 _GLIBCXX14_CONSTEXPR on assign, compare, find, and length.
19 (std::char_traits<char>, std::char_traits<wchar_t>): Add
20 _GLIBCXX17_CONSTEXPR on assign.
21 (std::char_traits<char16_t>, std::char_traits<char32_t>): Add
22 _GLIBCXX17_CONSTEXPR on assign, compare, find, and length.
23 * testsuite/21_strings/char_traits/requirements/
24 constexpr_functions_c++17.cc: New test.
26 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
29 * include/bits/stl_pair.h (__nonesuch_no_braces): New.
30 (operator=(typename conditional<
31 __and_<is_copy_assignable<_T1>,
32 is_copy_assignable<_T2>>::value,
33 const pair&, const __nonesuch&>::type)): Change __nonesuch
34 to __nonesuch_no_braces.
35 (operator=(typename conditional<
36 __not_<__and_<is_copy_assignable<_T1>,
37 is_copy_assignable<_T2>>>::value,
38 const pair&, const __nonesuch&>::type)): Likewise.
39 (operator=(typename conditional<
40 __and_<is_move_assignable<_T1>,
41 is_move_assignable<_T2>>::value,
42 pair&&, __nonesuch&&>::type)): Likewise.
43 * testsuite/20_util/pair/79141.cc: New.
45 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
47 Implement std::is_aggregate.
48 * include/std/type_traits (is_aggregate, is_aggregate_v): New.
49 * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc:
51 * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise.
52 * testsuite/20_util/is_aggregate/value.cc: Likewise.
54 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
56 Adjust optional's pretty printer for LWG 2900.
57 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter.__init__):
58 Look at the nested payload in case of non-experimental optional.
60 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
62 Implement LWG 2900, The copy and move constructors
63 of optional are not constexpr.
64 * include/std/optional (_Optional_payload): New.
65 (_Optional_base): Remove the bool parameter.
66 (_Optional_base<_Tp, false>): Remove.
67 (_Optional_base()): Adjust.
68 (_Optional_base(nullopt_t)): Likewise.
69 (_Optional_base(in_place_t, _Args&&...)): Likewise.
70 (_Optional_base(in_place_t, initializer_list<_Up>, _Args&&...)):
72 (_Optional_base(const _Optional_base&)): Likewise.
73 (_Optional_base(_Optional_base&&)): Likewise.
74 (operator=(const _Optional_base&)): Likewise.
75 (operator=(_Optional_base&&)): Likewise.
76 (~_Optional_base()): Remove.
77 (_M_is_engaged()): Adjust.
79 (_M_construct(_Args&&...)): Likewise.
80 (_M_destruct()): Likewise.
81 (_M_reset()): Likewise.
82 (_Optional_base::_Empty_byte): Remove.
83 (_Optional_base::_M_empty): Remove.
84 (_Optional_base::_M_payload): Adjust.
85 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
86 * testsuite/20_util/optional/constexpr/cons/value.cc: Add tests.
88 2017-03-28 Jonathan Wakely <jwakely@redhat.com>
91 * include/bits/random.tcc (generate_canonical): Use std::nextafter
92 or numeric_limits::epsilon() to reduce out-of-range values.
93 * testsuite/26_numerics/random/uniform_real_distribution/operators/
94 64351.cc: Verify complexity requirement is met.
96 * doc/xml/manual/abi.xml: Add xml:id anchor.
97 * doc/xml/manual/using.xml (manual.intro.using.macros): Document
98 _GLIBCXX_RELEASE. Link to new anchor for __GLIBCXX__ notes.
99 (concurrency.io.structure): Add markup.
100 * doc/html/*: Regenerate.
103 * include/bits/shared_ptr_base.h
104 (__shared_ptr::_M_enable_shared_from_this_with): Change parameters to
105 non-const and then use remove_cv to get unqualified type.
106 * testsuite/20_util/enable_shared_from_this/members/const.cc: Don't
107 cast away constness on object created const.
108 * testsuite/20_util/shared_ptr/cons/80229.cc: New test.
110 2017-03-26 Markus Trippelsdorf <markus@trippelsdorf.de>
113 * include/bits/stl_tree.h:
114 (_Rb_tree_header::_M_move_data(_Rb_tree_header&)): Also save _M_color.
116 2017-03-23 Jonathan Wakely <jwakely@redhat.com>
118 * testsuite/23_containers/array/tuple_interface/
119 tuple_element_debug_neg.cc: Adjust dg-error.
120 * testsuite/23_containers/list/operations/78389.cc: Fix less-than to
121 define a valid strict weak ordering.
122 * testsuite/23_containers/priority_queue/67085.cc: Disable test for
123 Debug Mode, due to debug checks making extra copies of predicate.
124 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
127 * doc/xml/faq.xml: Add link.
128 * doc/xml/manual/backwards_compatibility.xml: Remove outdated
129 information on pre-ISO headers. Replace broken link to C++ FAQ Lite.
130 * doc/xml/manual/io.xml: Update broken link.
131 * doc/html/*: Regenerate.
133 2017-03-23 Daniel Kruegler <daniel.kruegler@gmail.com>
135 Implement LWG 2686, Why is std::hash specialized for error_code,
136 but not error_condition?
137 * include/std/system_error (hash<error_condition>): Define for C++17.
138 * testsuite/20_util/hash/operators/size_t.cc (hash<error_condition>):
139 Instantiate test for error_condition.
140 * testsuite/20_util/hash/requirements/explicit_instantiation.cc
141 (hash<error_condition>): Instantiate hash<error_condition>.
143 * include/bits/c++config (_GLIBCXX17_INLINE): Define.
144 * include/bits/regex_constants.h (All std::regex_constants constants):
145 Add _GLIBCXX17_INLINE as per P0607R0.
146 * include/bits/std_mutex.h (defer_lock, try_to_lock, adopt_lock):
148 * include/bits/stl_pair.h (piecewise_construct): Likewise.
149 * include/bits/uses_allocator.h (allocator_arg, uses_allocator_v)
150 (__is_uses_allocator_constructible_v)
151 (__is_nothrow_uses_allocator_constructible_v): Likewise.
152 * include/std/chrono (treat_as_floating_point_v): Likewise.
153 * include/std/functional (is_bind_expression_v, is_placeholder_v):
155 * include/std/optional (nullopt): Likewise.
156 * include/std/ratio (ratio_equal_v, ratio_not_equal_v, ratio_less_v)
157 ratio_less_equal_v, ratio_greater_v, ratio_greater_equal_v): Likewise.
158 * include/std/system_error (is_error_code_enum_v)
159 (is_error_condition_enum_v): Likewise.
160 * include/std/tuple (tuple_size_v, ignore): Likewise.
161 (ignore): Declare ignore constexpr as per LWG 2773, declare assignment
162 constexpr as per LWG 2933.
163 * include/std/type_traits (All variable templates): Add
164 _GLIBCXX17_INLINE as per P0607R0.
165 * include/std/variant (variant_size_v, variant_npos, __index_of_v)
166 (__tuple_count_v, __exactly_once): Likewise.
167 * testsuite/18_support/headers/new/synopsis.cc
168 (hardware_destructive_interference_size)
169 (hardware_constructive_interference_size): Likewise for commented-out
171 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Add new
172 test function for constexpr std::ignore (LWG 2773).
173 * testsuite/20_util/tuple/creation_functions/constexpr_cpp14.cc: New
176 2017-03-22 Jonathan Wakely <jwakely@redhat.com>
178 * include/bits/shared_ptr.h (shared_ptr, weak_ptr): Add deduction
180 * include/bits/std_function.h (function): Likewise.
181 * include/bits/stl_pair.h (pair): Likewise.
182 * include/debug/array (__gnu_debug::array): Likewise.
183 * include/std/array (array): Likewise.
184 * include/std/functional (make_default_searcher)
185 (make_boyer_moore_searcher, make_boyer_moore_horspool_searcher):
186 Remove generator functions.
187 * include/std/tuple (tuple): Add deduction guides.
188 * include/std/valarray (valarray): Likewise.
189 * testsuite/20_util/function_objects/searchers.cc: Adjust to use
190 class template argument deduction instead of generator functions.
191 * testsuite/20_util/function/cons/deduction.cc: New test.
192 * testsuite/20_util/optional/cons/deduction_guide.cc: Rename to ...
193 * testsuite/20_util/optional/cons/deduction.cc: ... here.
194 * testsuite/20_util/pair/cons/deduction.cc: New test.
195 * testsuite/20_util/shared_ptr/cons/deduction.cc: New test.
196 * testsuite/20_util/tuple/cons/deduction.cc: New test.
197 * testsuite/20_util/tuple/element_access/get_neg.cc: Adjust dg-error.
198 * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: New test.
199 * testsuite/20_util/weak_ptr/cons/deduction.cc: New test.
200 * testsuite/23_containers/array/cons/deduction.cc: New test.
201 * testsuite/23_containers/array/cons/deduction_neg.cc: New test.
202 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
204 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise.
205 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
207 * testsuite/26_numerics/valarray/deduction.cc: New test.
208 * testsuite/30_threads/lock_guard/cons/deduction.cc: New test.
209 * testsuite/30_threads/scoped_lock/cons/deduction.cc: New test.
210 * testsuite/30_threads/unique_lock/cons/deduction.cc: New test.
212 2017-03-20 François Dumont <fdumont@gcc.gnu.org>
214 * include/bits/stl_deque.h (deque): Access allocator value_type only if
215 concept checks are enabled.
216 * include/bits/stl_stack.h (stack): Likewise.
217 * include/bits/stl_vector.h (vector): Likewise.
218 * include/bits/stl_list.h (list): Likewise and check
219 _SGIAssignableConcept only in C++03.
220 * include/bits/stl_map.h (map): Likewise.
221 * include/bits/stl_set.h (set): Likewise.
222 * include/bits/stl_multimap.h (multimap): Likewise.
223 * include/bits/stl_multiset.h (multiset): Likewise.
224 * include/bits/stl_queue.h (queue, priority_queue): Likewise.
226 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
228 * doc/xml/manual/appendix_contributing.xml: Convert link to
230 Update link to the C++ standard at ansi.org.
232 * doc/xml/faq.xml: Remove information redundant with the above;
233 instead add a reference.
235 2017-03-17 Jonathan Wakely <jwakely@redhat.com>
237 * src/c++11/codecvt.cc (range): Add non-type template parameter and
238 define oerloaded operators for reading and writing code units.
239 (range<Elem, false>): Define partial specialization for accessing
240 wide characters in potentially unaligned byte ranges.
241 (ucs2_span(const char16_t*, const char16_t*, ...))
242 (ucs4_span(const char16_t*, const char16_t*, ...)): Change parameters
243 to range<const char16_t, false> in order to avoid unaligned reads.
244 (__codecvt_utf16_base<char16_t>::do_out)
245 (__codecvt_utf16_base<char32_t>::do_out)
246 (__codecvt_utf16_base<wchar_t>::do_out): Use range specialization for
247 unaligned data to avoid unaligned writes.
248 (__codecvt_utf16_base<char16_t>::do_in)
249 (__codecvt_utf16_base<char32_t>::do_in)
250 (__codecvt_utf16_base<wchar_t>::do_in): Likewise for writes. Return
251 error if there are unprocessable trailing bytes.
252 (__codecvt_utf16_base<char16_t>::do_length)
253 (__codecvt_utf16_base<char32_t>::do_length)
254 (__codecvt_utf16_base<wchar_t>::do_length): Pass arguments of type
255 range<const char16_t, false> to span functions.
256 * testsuite/22_locale/codecvt/codecvt_utf16/misaligned.cc: New test.
258 2017-03-16 Jonathan Wakely <jwakely@redhat.com>
261 * src/c++11/codecvt.cc (to_integer(codecvt_mode)): Fix target type.
264 * src/c++11/codecvt.cc (__codecvt_utf16_base<wchar_t>::do_out)
265 (__codecvt_utf16_base<wchar_t>::do_in): Convert char arguments to
266 char16_t to work with UTF-16 instead of UTF-8.
267 * testsuite/22_locale/codecvt/codecvt_utf16/80041.cc: New test.
269 * src/c++11/codecvt.cc (codecvt<char16_t, char, mbstate_t>)
270 (codecvt<char32_t, char, mbstate_t>, __codecvt_utf8_base<char16_t>)
271 (__codecvt_utf8_base<char32_t>, __codecvt_utf8_base<wchar_t>)
272 (__codecvt_utf16_base<char16_t>, __codecvt_utf16_base<char32_t>)
273 (__codecvt_utf16_base<wchar_t>, __codecvt_utf8_utf16_base<char16_t>)
274 (__codecvt_utf8_utf16_base<char32_t>)
275 (__codecvt_utf8_utf16_base<wchar_t>): Fix do_encoding() and
276 do_max_length() return values.
277 * testsuite/22_locale/codecvt/codecvt_utf16/members.cc: New test.
278 * testsuite/22_locale/codecvt/codecvt_utf8/members.cc: New test.
279 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/members.cc: New test.
282 * include/bits/locale_conv.h (__do_str_codecvt): Set __count on
284 * src/c++11/codecvt.cc (operator&=, operator|=, operator~): Overloads
285 for manipulating codecvt_mode values.
286 (read_utf16_bom): Compare input to BOM constants instead of integral
287 constants that depend on endianness. Take mode parameter by
288 reference and adjust it, to distinguish between no BOM present and
289 UTF-16BE BOM present.
290 (ucs4_in, ucs2_span, ucs4_span): Adjust calls to read_utf16_bom.
291 (surrogates): New enumeration type.
292 (utf16_in, utf16_out): Add surrogates parameter to choose between
293 UTF-16 and UCS2 behaviour.
294 (utf16_span, ucs2_span): Use std::min not std::max.
295 (ucs2_out): Use std::min not std::max. Disallow surrogate pairs.
296 (ucs2_in): Likewise. Adjust calls to read_utf16_bom.
297 * testsuite/22_locale/codecvt/codecvt_utf16/79980.cc: New test.
298 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: New test.
301 * src/c++11/codecvt.cc (write_utf16_code_point): Don't write 0xffff
303 (__codecvt_utf8_utf16_base<char32_t>::do_in): Use native endianness
304 for internal representation.
305 (__codecvt_utf8_utf16_base<wchar_t>::do_in): Likewise.
306 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/79511.cc: New test.
309 * include/bits/stl_heap.h (__is_heap, push_heap, __adjust_heap)
310 (pop_heap, make_heap, sort_heap, is_heap_until, is_heap): Cope with
311 invalid instantiations using function types for _Compare argument.
312 * testsuite/25_algorithms/make_heap/80064.cc: New test.
315 * python/libstdcxx/v6/printers.py (find_type): Avoid gdb.Type.name
316 for GDB 7.6 compatibility, use gdb.Type.unqualified instead.
318 2017-03-15 Ville Voutilainen <ville.voutilainen@gmail.com>
320 Implement LWG 2857, {variant,optional,any}::emplace should
321 return the constructed value.
322 * include/std/any (emplace(_Args&&...)): Change the return type and
323 return a reference to the constructed value.
324 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
325 * include/std/optional (emplace(_Args&&...)): Likewise.
326 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
327 * include/std/variant (emplace<_Tp>(_Args&&...)): Likewise.
328 (emplace<_Tp>(initializer_list<_Up>, _Args&&...)): Likewise.
329 (emplace<_Np>(_Args&&...)): Likewise.
330 (emplace<_Np>(initializer_list<_Up>, _Args&&...)): Likewise.
331 * testsuite/20_util/any/assign/emplace.cc: Add tests for
332 checking the return value of emplace.
333 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust.
334 * testsuite/20_util/optional/assignment/6.cc: Add tests for
335 checking the return value of emplace.
336 * testsuite/20_util/variant/run.cc: Likewise.
338 2017-03-15 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
341 * include/ext/pb_ds/qdetail/binary_heap_/binary_heap_.hpp
343 (push_heap): Remove the wrong checking using is_heap.
344 (make_heap): Remove the assertion using is_heap.
345 * include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp
347 (resize_for_insert_if_needed): Add PB_DS_ASSERT_VALID after
350 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
353 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
355 * testsuite/ext/pb_ds/regression/priority_queues.cc: Fix copy&paste
358 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
360 * acinclude.m4 (GLIBCXX_CHECK_S_ISREG_OR_S_IFREG): Fix typo in
362 * config.h.in: Regenerate.
363 * configure: Regenerate.
364 * doc/Makefile.in: Regenerate.
366 2017-03-14 Jonathan Wakely <jwakely@redhat.com>
369 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
370 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace
371 with a constrained template.
372 [!_GLIBCXX_USE_CXX11_ABI]
373 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise.
374 * testsuite/21_strings/basic_string/cons/char/79162.cc: New test.
375 * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test.
377 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
380 * include/bits/list.tcc (merge(list&&)): Use const for the size_t
382 (merge(list&&, _StrictWeakOrdering)): Likewise.
383 * testsuite/23_containers/list/operations/80034.cc: New.
385 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
387 Implement LWG 2806, Base class of bad_optional_access.
388 * include/std/optional (bad_optional_access):
389 Derive from std::exception.
390 (bad_optional_access::bad_optional_access): Adjust.
391 (bad_optional_access::what): New.
392 (__throw_bad_optional_access(const char*)):
393 Remove the parameter and adjust calls.
394 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
395 * testsuite/20_util/optional/typedefs.cc: Likewise.
397 2017-03-12 Ville Voutilainen <ville.voutilainen@gmail.com>
399 Implement LWG 2934, optional<const T> doesn't compare with T.
400 * include/std/optional
401 (operator==(const optional<_Tp>&, const optional<_Tp>&)):
402 Turn into operator==(const optional<_Tp>&, const optional<_Up>&).
403 (operator!=(const optional<_Tp>&, const optional<_Tp>&)):
404 Turn into operator!=(const optional<_Tp>&, const optional<_Up>&).
405 (operator<(const optional<_Tp>&, const optional<_Tp>&)):
406 Turn into operator<(const optional<_Tp>&, const optional<_Up>&.
407 (operator>(const optional<_Tp>&, const optional<_Tp>&)):
408 Turn into operator>(const optional<_Tp>&, const optional<_Up>&.
409 (operator<=(const optional<_Tp>&, const optional<_Tp>&)):
410 Turn into operator<=(const optional<_Tp>&, const optional<_Up>&).
411 (operator>=(const optional<_Tp>&, const optional<_Tp>&)):
412 Turn into operator>=(const optional<_Tp>&, const optional<_Up>&).
413 (operator==(const optional<_Tp>&, const _Tp&)):
414 Turn into operator==(const optional<_Tp>&, const _Up&).
415 (operator==(const _Tp&, const optional<_Tp>&)):
416 Turn into operator==(const _Up&, const optional<_Tp>&).
417 (operator!=(const optional<_Tp>&, const _Tp&)):
418 Turn into operator!=(const optional<_Tp>&, const _Up&).
419 (operator!=(const _Tp&, const optional<_Tp>&)):
420 Turn into operator!=(const _Up&, const optional<_Tp>&).
421 (operator<(const optional<_Tp>&, const _Tp&)):
422 Turn into operator<(const optional<_Tp>&, const _Up&).
423 (operator<(const _Tp&, const optional<_Tp>&)):
424 Turn into operator<(const _Up&, const optional<_Tp>&).
425 (operator>(const optional<_Tp>&, const _Tp&)):
426 Turn into operator>(const optional<_Tp>&, const _Up&).
427 (operator>(const _Tp&, const optional<_Tp>&)):
428 Turn into operator>(const _Up&, const optional<_Tp>&).
429 (operator<=(const optional<_Tp>&, const _Tp&)):
430 Turn into operator<=(const optional<_Tp>&, const _Up&).
431 (operator<=(const _Tp&, const optional<_Tp>&)):
432 Turn into operator<=(const _Up&, const optional<_Tp>&).
433 (operator>=(const optional<_Tp>&, const _Tp&)):
434 Turn into operator>=(const optional<_Tp>&, const _Up&).
435 (operator>=(const _Tp&, const optional<_Tp>&)):
436 Turn into operator>=(const _Up&, const optional<_Tp>&).
437 * testsuite/20_util/optional/relops/7.cc: New.
439 2017-03-10 Jonathan Wakely <jwakely@redhat.com>
441 * testsuite/17_intro/names.cc: Undefine macros that clash with
442 identifiers in AIX system headers.
444 * include/bits/invoke.h (__invoke): Use __invoke_result instead of
445 result_of, and __is_nothrow_invocable instead of
446 __is_nothrow_callable.
447 * include/bits/shared_ptr_base.h (__shared_ptr): Use __is_invocable
448 instead of __is_callable.
449 * include/std/functional (invoke): use invoke_result_t instead of
450 result_of_t and is_nothrow_invocable instead of is_nothrow_callable.
451 (_Not_fn): Use __invoke_result instead of result_of.
452 * include/std/type_traits (__result_of_memobj, __result_of_memfun):
453 Remove partial specializations for reference_wrapper types.
454 (__result_of_impl): Use __inv_unwrap to strip reference_wrapper.
455 (__invoke_result): Define replacement for result_of and then use it to
457 (__is_callable_impl, __is_callable, __is_nothrow_callable): Replace
458 with __is_invocable_impl, __is_invocable, and __is_nothrow_invocable
460 (invoke_result, invoke_result_t): Define for C++17.
461 (is_callable, is_nothrow_callable): Replace with is_invocable,
462 is_invocable_r, is_nothrow_invocable, and is_nothrow_invocable_r.
463 (is_callable_v, is_nothrow_callable_v): Replace with is_invocable_v,
464 is_invocable_r_v, is_nothrow_invocable_v, and is_nothrow_invocable_r_v.
465 * include/std/variant (hash<variant<T...>>): Use is_nothrow_invocable_v
466 instead of is_nothrow_callable_v.
467 * testsuite/20_util/function_objects/invoke/59768.cc: Remove unused
469 * testsuite/20_util/function_objects/not_fn/1.cc: Use is_invocable
470 instead of is_callable.
471 * testsuite/20_util/is_callable/*: Rename directory and adjust tests
473 * testsuite/20_util/is_nothrow_callable/*: Likewise.
474 * testsuite/20_util/optional/hash.cc: Use is_invocable_v instead of
476 * testsuite/20_util/variant/hash.cc: Likewise.
478 2017-03-10 George Lander <george.lander@arm.com>
480 * acinclude.m4 (glibcxx_cv_obsolete_isnan): Define
481 _GLIBCXX_INCLUDE_NEXT_C_HEADERS before including math.h.
482 * configure: Regenerate.
484 2017-03-09 Jonathan Wakely <jwakely@redhat.com>
486 * include/std/functional (_Not_fn): Define macro to simplify
487 repetitive function definitions.
489 * doc/xml/manual/status_cxx2017.xml: Document std::byte support.
490 * include/c_global/cstddef (std::byte): Define for C++17.
491 * testsuite/18_support/byte/global_neg.cc: New test.
492 * testsuite/18_support/byte/ops.cc: New test.
493 * testsuite/18_support/byte/requirements.cc: New test.
495 2017-03-05 Jonathan Wakely <jwakely@redhat.com>
497 * doc/xml/manual/status_cxx2017.xml: Document P0156R2 status.
498 * doc/html/*: Regenerate.
499 * include/std/mutex (scoped_lock): Implement new C++17 template.
500 * testsuite/30_threads/scoped_lock/cons/1.cc: New test.
501 * testsuite/30_threads/scoped_lock/requirements/
502 explicit_instantiation.cc: New test.
503 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: New test.
505 2017-03-02 Gerald Pfeifer <gerald@pfeifer.com>
506 François Dumont <frs.dumont@gmail.com>
507 Jonathan Wakely <jwakely@redhat.com>
509 * doc/xml/manual/debug_mode.xml: Update and simplify note
510 on link- and run-time coexistence.
512 2017-03-02 Jonathan Wakely <jwakely@redhat.com>
514 * testsuite/17_intro/headers/names.cc: Rename to ...
515 * testsuite/17_intro/names.cc: ... here.
518 * include/bits/hashtable_policy.h (__clp2): Use reserved names for
519 parameters and local variables.
520 * include/bits/ios_base.h (make_error_code, make_error_condition):
522 * include/bits/list.tcc (list::sort): Likewise.
523 * include/bits/mask_array.h (mask_array): Likewise.
524 * include/bits/regex.h (regex_token_iterator): Likewise.
525 * include/bits/slice_array.h (slice_array): Likewise.
526 * include/bits/stl_algo.h (__sample): Likewise.
527 * include/std/memory (undeclare_no_pointers): Likewise.
528 * include/std/type_traits (is_callable_v, is_nothrow_callable_v):
530 * libsupc++/exception_ptr.h (__dest_thunk): Likewise.
531 * testsuite/17_intro/headers/names.cc: New test.
534 * include/std/functional (bind::_Res_type_impl): Fix incorrect use of
535 result_of that loses top-level cv-qualifiers.
536 * testsuite/20_util/bind/79798.cc: New test.
538 2017-03-01 Gerald Pfeifer <gerald@pfeifer.com>
540 * doc/xml/manual/documentation_hacking.xml: Tweak link to
543 2017-02-23 Jonathan Wakely <jwakely@redhat.com>
545 * include/experimental/iterator: Include <iterator>.
546 * testsuite/experimental/iterator/requirements.cc: Check for contents
549 2017-02-19 Dinka Ranns <dinka.ranns@googlemail.com>
551 C++17 GB50 resolution
552 * include/std/chrono (duration::operator++()): Add
553 _GLIBCXX17_CONSTEXPR.
554 (duration::operator++(int)): Likewise.
555 (duration::operator--()): Likewise.
556 (duration::operator--(int)): Likewise.
557 (duration::operator+=(const duration&)): Likewise.
558 (duration::operator-=(const duration&)): Likewise.
559 (duration::operator*=(const rep&)): Likewise.
560 (duration::operator/=(const rep&)): Likewise.
561 (duration::operator%=(const rep&)): Likewise.
562 (duration::operator%=(const duration&)): Likewise.
563 (time_point::operator+=(const duration&)): Likewise.
564 (time_point::operator-=(const duration&)): Likewise.
565 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: New test.
566 * testsuite/20_util/duration/literals/range.cc: Adjust dg-error.
567 * testsuite/20_util/time_point/arithmetic/constexpr.cc: New test.
569 2017-02-19 Gerald Pfeifer <gerald@pfeifer.com>
571 * doc/xml/manual/debug.xml: Adjust link to ThreadSanitizer.
573 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
575 * doc/xml/manual/io.xml: Update link to groups.google.com.
576 Tweak link description.
578 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
580 * doc/xml/manual/profile_mode.xml: Fix link.
582 2017-02-16 Gerald Pfeifer <gerald@pfeifer.com>
584 * doc/xml/manual/policy_data_structures.xml: Simplify and
585 standardize references to boost.org.
586 * doc/xml/manual/policy_data_structures_biblio.xml: Ditto.
587 * doc/xml/manual/shared_ptr.xml: Ditto.
589 2017-02-16 Jonathan Wakely <jwakely@redhat.com>
592 * src/c++11/snprintf_lite.cc (__concat_size_t): Calculate length
593 written to buffer, not length remaining in buffer.
595 2017-02-15 Tim Shen <timshen@google.com>
598 * include/std/variant (operator<(), operator>(), operator<=(),
599 operator>=(), operator==(), operator!=()): Implement P0393R3.
600 * testsuite/20_util/variant/compile.cc: Adjust tests.
601 * testsuite/20_util/variant/run.cc: Adjust tests.
603 2017-02-15 Tim Shen <timshen@google.com>
606 * include/std/variant (visit()): Forward variant types to the return
608 * testsuite/20_util/variant/compile.cc: Add test cases.
610 2017-02-13 H.J. Lu <hongjiu.lu@intel.com>
613 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
615 2017-02-13 Jakub Jelinek <jakub@redhat.com>
618 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
619 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
620 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Likewise.
621 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
622 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Likewise.
623 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
624 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Likewise.
625 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
626 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
628 2017-02-13 Jonathan Wakely <jwakely@redhat.com>
631 * include/std/future (__future_base::_Task_state::_M_run)
632 (__future_base::_Task_state::_M_run_delayed): Use lvalue types in
633 result_of expressions.
634 * testsuite/30_threads/packaged_task/79486.cc: New.
636 2017-02-11 Jonathan Wakely <jwakely@redhat.com>
639 * include/bits/shared_ptr_base.h (__shared_ptr(_Yp*, _Deleter))
640 (__shared_ptr(_Yp*, _Deleter, _Alloc)): Use lvalue types in
642 * testsuite/20_util/shared_ptr/cons/79467.cc: New.
644 * include/bits/atomic_base.h: Re-indent.
646 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
648 * doc/xml/manual/profile_mode.xml: Update a paper reference.
650 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
652 * src/c++11/snprintf_lite.cc (__err): Use https for bug reporting.
654 2017-02-08 Jonathan Wakely <jwakely@redhat.com>
656 * doc/xml/manual/policy_data_structures.xml: Fix spelling of author's
658 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise. Remove
659 broken links to texts that are no longer online.
660 * doc/xml/manual/profile_mode.xml: Update links to CGO 2009 paper and
662 * doc/xml/manual/using.xml: Update links to memory model information.
663 * doc/xml/manual/using_exceptions.xml: Update link to "Appendix E:
664 Standard-Library Exception Safety".
665 * doc/html/*: Regenerate.
667 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
669 * doc/xml/manual/profile_mode.xml: Unbreak link to
670 "Optimizing Sorting with Machine Learning Algorithms".
672 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
674 * src/c++11/snprintf_lite.cc (__err): Update bug reporting URL.
676 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
678 * doc/xml/manual/abi.xml: Update link to "Sun Studio 11: C++
681 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
683 * doc/html/ext/lwg-active.html: Remove.
684 * doc/html/ext/lwg-closed.html: Ditto.
685 * doc/html/ext/lwg-defects.html: Ditto.
687 * doc/Makefile.am (xml_extradir): Remove.
689 (stamp-html-docbook-lwg): Remove recipe...
690 (stamp-html-docbook-data): ...and its use here.
691 * doc/Makefile.in: Regenerate.
693 * doc/xml/manual/intro.xml: Shorten two paragraphs explaining
694 the relationship to the upstream working group.
695 Replace a local link to ../ext/lwg-active.html by the upstream one.
696 Replace all reference to ../ext/lwg-defects.html by a new entity
697 &DR; which refers to the upstream address.
699 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
701 * doc/xml/manual/status_cxx2017.xml: Fix link to N4284.
703 2017-02-06 Jonathan Wakely <jwakely@redhat.com>
706 * testsuite/20_util/duration/literals/range.cc: Prune extra output
709 2017-02-06 Gerald Pfeifer <gerald@pfeifer.com>
711 * doc/xml/manual/documentation_hacking.xml: Update URL of the
712 DocBook Element Reference. Use that term as link description
714 epubcheck has moved to GitHub.
715 Remove obsolete link to DocBook Publishing Tools.
717 2017-02-03 Jonathan Wakely <jwakely@redhat.com>
720 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Restore ABI override
721 so new ios::failure can be caught even when old ABI is the default.
722 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
723 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
724 exceptions_failbit.cc: Likewise.
725 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
726 exceptions_failbit.cc: Likewise.
727 * testsuite/27_io/basic_istream/extractors_other/char/
728 exceptions_null.cc: Likewise.
729 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
730 exceptions_null.cc: Likewise.
731 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
732 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
733 * testsuite/27_io/basic_ostream/inserters_other/char/
734 exceptions_null.cc: Likewise.
735 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
736 exceptions_null.cc: Likewise.
737 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
740 * src/c++11/Makefile.am: Add new files.
741 * src/c++11/Makefile.in: Regenerate.
742 * src/c++11/cow-string-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
743 (operator<<, operator>>, getline): Move explicit instantiations to ...
744 * src/c++11/cow-string-io-inst.cc: ... new file.
745 * src/c++11/cow-wstring-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
746 (operator<<, operator>>, getline): Move explicit instantiations to ...
747 * src/c++11/cow-wstring-io-inst.cc: ... new file.
748 * src/c++11/functexcept.cc (__throw_ios_failure, __throw_system_error)
749 (__throw_future_error, __throw_bad_function_call):
750 (__throw_regex_error): Move functions for C++11 exceptions to the
751 files that define the exception types.
752 * src/c++11/functional.cc (__throw_bad_function_call): Move here.
753 * src/c++11/future.cc (__throw_future_error): Likewise.
754 * src/c++11/ios.cc (__throw_ios_failure): Likewise.
755 * src/c++11/regex.cc (__throw_regex_error): Likewise.
756 * src/c++11/snprintf_lite.cc (__concat_size_t): Print decimal
757 representation directly instead of calling __int_to_char.
758 * src/c++11/sso_string.cc (__sso_string): New file for definition
759 of __sso_string type.
760 * src/c++11/string-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
761 explicit instantiations of narrow string I/O functions.
762 * src/c++11/system_error.cc (__throw_system_error): Move here.
763 (__sso_string): Move to new file.
764 * src/c++11/wstring-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
765 explicit instantiations of wide string I/O functions.
766 * src/c++98/misc-inst.cc [_GLIBCXX_USE_CXX11_ABI] (operator<<)
767 (operator>>, getline): Remove explicit instantiations from here.
769 2017-02-02 H.J. Lu <hongjiu.lu@intel.com>
771 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
773 2017-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
775 * configure.host: Separate Solaris/SPARC and x86 baselines.
776 * config/abi/post/solaris2.10/baseline_symbols.txt: Move ...
777 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: ... here.
778 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Move ...
779 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
781 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Move ...
782 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: ... here.
783 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: New file.
784 * config/abi/post/solaris2.11/baseline_symbols.txt: Move ...
785 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: ... here.
786 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Move ...
787 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
789 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Move ...
790 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: ... here.
791 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: New file.
793 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
794 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
795 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
796 * config/abi/post/solaris2.11/baseline_symbols.txt: Likewise.
797 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Likewise.
798 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Likewise.
800 2017-02-01 Jonathan Wakely <jwakely@redhat.com>
803 * include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
805 (_Iter_comp_to_iter): Likewise.
806 * testsuite/25_algorithms/search/78346.cc: New test.
809 * config/abi/pre/gnu.ver: Remove recently added symbols.
810 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
811 (basic_string::_M_copy_assign): Remove.
812 (basic_string::operator=(const basic_string&)): Don't dispatch to
813 _M_copy_assign. If source object is small just deallocate, otherwise
814 perform new allocation before making any changes.
815 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
816 (basic_string::_M_copy_assign(const basic_string&, true_type)):
818 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
819 Test cases where the allocators are equal or the string is small.
820 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
823 2017-01-30 Ville Voutilainen <ville.voutilainen@gmail.com>
825 Implement LWG 2825, LWG 2756 breaks class template argument
826 deduction for optional.
827 * include/std/optional: Add a deduction guide.
828 * testsuite/20_util/optional/cons/deduction_guide.cc: New.
830 2017-01-27 Jonathan Wakely <jwakely@redhat.com>
833 * config/abi/pre/gnu.ver: Add new symbols.
834 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
835 (basic_string::_M_copy_assign): New overloaded functions to perform
837 (basic_string::operator=(const basic_string&)): Dispatch to
839 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
840 (basic_string::_M_copy_assign(const basic_string&, true_type)):
841 Define, performing rollback on exception.
842 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
843 Test exception-safety guarantee.
844 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
846 * testsuite/util/testsuite_allocator.h (uneq_allocator::swap): Make
849 2017-01-26 Jonathan Wakely <jwakely@redhat.com>
852 * include/tr1/complex (conj): Remove using-declaration and restore
853 overloads, reverting previous change.
855 * testsuite/23_containers/list/operations/78389.cc: Fix for C++11
857 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
858 Mark as unsupported in C++98 mode.
859 * testsuite/23_containers/queue/requirements/constructible.cc:
861 * testsuite/23_containers/stack/requirements/constructible.cc:
863 * testsuite/25_algorithms/make_heap/movable.cc: Fix for C++11 mode.
866 * include/bits/c++config (literals::string_view_literals::__7): Add.
867 Only declare versioned namespaces for the relevant C++ dialects.
868 * include/experimental/bits/erase_if.h (fundamentals_v2::__detail):
869 Add versioning macros.
870 * include/experimental/bits/lfts_config.h:
871 (fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add.
872 * include/experimental/string_view (fundamentals_v2::__detail):
873 Add versioning macros.
874 (fundamentals_v2::__detail::__identity): Remove.
875 (fundamentals_v2::__detail::__idt): Use common_type instead of
876 __detail::__identity.
877 * include/std/string_view (__detail::__identity, __detail::__idt):
879 (literals::string_view_literals): Fix nesting of versioning macros.
882 * libsupc++/del_opa.cc (operator delete(void*, std::align_val_t))
883 [!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN
884 && !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC]:
885 Retrieve original pointer value allocated by malloc.
886 * libsupc++/new_opa.cc [!_GLIBCXX_HAVE_ALIGNED_ALLOC
887 && !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN
888 && !_GLIBCXX_HAVE__ALIGNED_MALLOC] (aligned_alloc(size_t, size_t)):
889 Define, adjusting pointer value allocated by malloc and storing for
890 retrieval by operator delete.
892 2017-01-26 Jakub Jelinek <jakub@redhat.com>
894 * libsupc++/eh_atomics.h: Update copyright years.
895 * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years.
897 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
901 * include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
902 (proj(T), conj(T)): Change return types per DR 1522.
903 * include/tr1/complex (conj): Remove overloads and use std::conj.
904 * testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
905 * testsuite/26_numerics/complex/dr781.cc: ... this, and update.
906 * testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
907 real(T) and imag(T). Allow testing for C++11 too.
909 2017-01-24 Jonathan Wakely <jwakely@redhat.com>
912 * include/experimental/string_view (operator==): Check sizes first.
913 * include/std/string_view (operator==): Likewise.
915 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
917 * testsuite/experimental/array/make_array.cc: Restore <functional>
920 2017-01-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
922 * testsuite/29_atomics/atomic/69301.cc: Require atomic builtins.
924 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
927 * include/experimental/array (__make_array_elem): New class template
928 and partial specialization.
929 (__is_reference_wrapper): Move into __make_array_elem specialization.
930 (make_array): Use __make_array_elem to determine element type and move
931 static assertion into specialization. Qualify std::forward call.
932 (to_array): Add exception specifiation.
933 * testsuite/experimental/array/make_array.cc: Test argument types
934 without a common type.
935 * testsuite/experimental/array/neg.cc: Adjust expected error message.
937 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
939 * doc/xml/manual/debug.xml: code.google.com uses https now.
941 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
943 * doc/xml/manual/test.xml: Fix link into gccint online manual.
945 2017-01-21 Ville Voutilainen <ville.voutilainen@gmail.com>
947 Make poisoned hashes SFINAE away the call operator of the hash.
948 * include/bits/functional_hash.h
949 (__poison_hash::__enable_hash_call): New.
950 * include/std/optional (__optional_hash_call_base): New.
951 (hash<optional<_Tp>>): Derive from the new base,
952 move the hash function into that base.
953 * include/std/variant (__variant_hash_call_base_impl): New.
954 (__variant_hash_call_base): Likewise.
955 (hash<variant<_Types...>>): Derive from the new base,
956 move the hash function into that base.
957 * testsuite/20_util/optional/hash.cc: Add tests for is_callable.
958 * testsuite/20_util/variant/hash.cc: Likewise.
960 2017-01-20 Joe Seymour <joe.s@somniumtech.com>
962 * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t.
963 * configure: Regenerate.
965 2017-01-20 Jonathan Wakely <jwakely@redhat.com>
968 * include/bits/random.h (uniform_real_distribution::param_type)
969 (normal_distribution::param_type, lognormal_distribution::param_type)
970 (gamma_distribution::param_type, chi_squared_distribution::param_type)
971 (cauchy_distribution::param_type, fisher_f_distribution::param_type)
972 (student_t_distribution::param_type)
973 (bernoulli_distribution::param_type, binomial_distribution::param_type)
974 (geometric_distribution::param_type)
975 (negative_binomial_distribution::param_type)
976 (poisson_distribution::param_type)
977 (exponential_distribution::param_type)
978 (weibull_distribution::param_type)
979 (extreme_value_distribution::param_type)
980 (discrete_distribution::param_type)
981 (piecewise_constant_distribution::param_type)
982 (piecewise_linear_distribution::param_type): Define operator!=.
983 * include/bits/uniform_int_dist.h
984 (uniform_int_distribution::param_type): Likewise.
985 * include/ext/random (beta_distribution::param_type)
986 (rice_distribution::param_type, nakagami_distribution::param_type)
987 (pareto_distribution::param_type, k_distribution::param_type)
988 (arcsine_distribution::param_type, hoyt_distribution::param_type)
989 (triangular_distribution::param_type)
990 (von_mises_distribution::param_type)
991 (hypergeometric_distribution::param_type)
992 (logistic_distribution::param_type)
993 (uniform_on_sphere_distribution::param_type)
994 (uniform_inside_sphere_distribution::param_type): Likewise.
995 * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc:
996 Test construction with param_type.
997 * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc:
999 * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
1001 * testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc:
1003 * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
1005 * testsuite/26_numerics/random/extreme_value_distribution/cons/
1007 * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc:
1009 * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc:
1011 * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc:
1013 * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc:
1015 * testsuite/26_numerics/random/negative_binomial_distribution/cons/
1017 * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
1019 * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc:
1021 * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
1023 * testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc:
1025 * testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc:
1027 * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc:
1029 * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise.
1030 * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise.
1031 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
1032 * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc:
1034 * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise.
1035 * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise.
1036 * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise.
1037 * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
1038 * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise.
1039 * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise.
1040 * testsuite/ext/random/triangular_distribution/cons/parms.cc:
1042 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/
1044 * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise.
1047 * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
1048 (__allocator_traits_base::__size_type): Remove.
1049 (allocator_traits::_Ptr): New class template to detect const and void
1050 pointer types without instantiating pointer_traits::rebind
1052 (allocator_traits::_Diff): Likewise for detecting difference_type.
1053 (allocator_traits::_Size): New class template to detect size_type
1054 without instantiating make_unsigned unnecessarily.
1055 * include/bits/ptr_traits.h (pointer_traits::element_type): Use
1056 __detected_or_t instead of __detected_or_t_.
1057 * include/std/type_traits (__detected_or_t_): Remove.
1058 * testsuite/20_util/allocator_traits/members/pointers.cc: New test.
1062 * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
1063 Replace with class template using void_t.
1064 (__alloc_rebind): Define in terms of
1065 __allocator_traits_base::__rebind.
1066 (allocator_traits): Remove unconditional static_assert for
1068 * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
1069 (pointer_traits::__rebind): Replace with class template using void_t.
1070 (pointer_traits::rebind): Define in terms of __rebind.
1071 (pointer_traits): Remove unconditional static_assert for rebind.
1072 * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
1073 * testsuite/20_util/pointer_traits/rebind.cc: New test.
1076 * include/experimental/any (__any_caster): Avoid instantiating
1077 manager function for types that can't be stored in any.
1078 * include/std/any (__any_caster): Likewise.
1079 * testsuite/20_util/any/misc/any_cast.cc: Test non-copyable type.
1080 * testsuite/experimental/any/misc/any_cast.cc: Likewise.
1083 * include/bits/stl_algo.h (is_partitioned): Use increment instead of
1086 2017-01-19 Jonathan Wakely <jwakely@redhat.com>
1089 * include/bits/shared_ptr_base.h (__enable_shared_from_this_base):
1091 (__enable_shared_from_this): Declare __shared_ptr as a friend.
1092 * testsuite/ext/shared_ptr/1.cc: New test.
1095 * include/bits/stl_algo.h (is_partitioned): Don't retest the partition
1097 * testsuite/25_algorithms/is_partitioned/2.cc: New test.
1099 * doc/xml/manual/abi.xml: Fix typo.
1100 * doc/html/manual/abi.html: Likewise.
1103 * include/bits/predefined_ops.h (_Iter_less_val, _Val_less_iter): Add
1104 converting constructors from _Iter_less_iter.
1105 (_Iter_comp_val, _Val_comp_iter): Add converting constructors from
1107 (__iter_comp_val(_Iter_comp_iter<C>): Use converting constructor.
1108 (__val_comp_iter(_Iter_comp_iter<C>): Likewise.
1109 * include/bits/stl_heap.h (__is_heap_until, __push_heap, __pop_heap)
1110 (__make_heap, __sort_heap): Change _Compare parameters to references.
1111 (__is_heap, push_heap, __adjust_heap, __pop_heap, pop_heap)
1112 (__make_heap, make_heap, sort_heap, is_heap_until): Pass comparison
1113 functions as lvalues.
1114 (is_heap): Call __is_heap_until directly to avoid copying __comp.
1115 * testsuite/23_containers/priority_queue/67085.cc: Adjust test to
1116 count copies during construction with empty sequence.
1119 * include/bits/stl_heap.h (__is_heap): Use _GLIBCXX_MOVE.
1120 (__make_heap, __sort_heap): Don't use _GLIBCXX_MOVE inside loops.
1121 * testsuite/23_containers/priority_queue/67085.cc: Adjust expected
1123 * testsuite/25_algorithms/make_heap/movable.cc: New test.
1126 * include/bits/stl_heap.h (push_heap, __adjust_heap, __pop_heap)
1127 (pop_heap, __make_heap, make_heap, __sort_heap, sort_heap): Use
1128 _GLIBCXX_MOVE when passing comparison function to other functions.
1129 (is_heap_until, is_heap): Use std::move when passing comparison
1131 * testsuite/23_containers/priority_queue/67085.cc: New test.
1134 * doc/xml/manual/abi.xml (abi.versioning.history): Add markup to
1135 macro names, filenames, and literal values. Document _GLIBCXX_RELEASE.
1136 Document that the deprecated _GLIBCXX_VERSION macro was removed for
1138 * doc/html/*: Regenerate.
1139 * include/Makefile.am (_GLIBCXX_RELEASE): Set value.
1140 * include/Makefile.in: Regenerate.
1141 * include/bits/c++config (_GLIBCXX_RELEASE): Add #define.
1142 * testsuite/ext/profile/mutex_extensions_neg.cc: Use lineno of 0 in
1145 2017-01-18 Jonathan Wakely <jwakely@redhat.com>
1148 * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
1149 aligned buffer instead of default-initialized variable.
1150 * testsuite/29_atomics/atomic/69301.cc: New test.
1151 * include/experimental/memory (observer_ptr::release): Use reserved
1153 * include/ext/pointer.h (_Pointer_adapter::operator++(int))
1154 (_Pointer_adapter::operator--(int)): Likewise.
1157 * include/experimental/random (randint): Use temporary instead of
1158 thread_local static.
1160 2017-01-17 Joshua Conner <joshconner@google.com>
1162 * crossconfig.m4: Add fuchsia OS.
1163 * configure: Regenerate.
1165 2017-01-17 Jonathan Wakely <jwakely@redhat.com>
1168 * doc/xml/manual/abi.xml (abi.versioning.history): Explain why the
1169 __GLIBCXX__ macro is not useful. Remove redundant date information
1170 and link to the GCC release timeline.
1171 (abi.versioning.active): Move partial sentence into the previous
1173 * doc/html/*: Regenerate.
1176 * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
1177 of remove_reference.
1178 * testsuite/18_support/nested_exception/79114.cc: New test.
1180 2017-01-17 Jakub Jelinek <jakub@redhat.com>
1183 * configure.ac: Add GCC_BASE_VER.
1184 * fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
1185 get version from BASE-VER file.
1186 * po/Makefile.in: Regenerated.
1187 * libsupc++/Makefile.in: Regenerated.
1188 * testsuite/Makefile.in: Regenerated.
1189 * src/Makefile.in: Regenerated.
1190 * configure: Regenerated.
1191 * Makefile.in: Regenerated.
1192 * include/Makefile.in: Regenerated.
1193 * doc/Makefile.in: Regenerated.
1194 * python/Makefile.in: Regenerated.
1195 * src/c++11/Makefile.in: Regenerated.
1196 * src/c++98/Makefile.in: Regenerated.
1197 * src/filesystem/Makefile.in: Regenerated.
1199 2017-01-16 Jonathan Wakely <jwakely@redhat.com>
1202 * src/c++11/functexcept.cc: Use new ABI for std::ios_base::failure
1204 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Don't override ABI
1205 for test, so new ios::failure can be caught.
1206 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1207 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1208 exceptions_failbit.cc: Likewise.
1209 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1210 exceptions_failbit.cc: Likewise.
1211 * testsuite/27_io/basic_istream/extractors_other/char/
1212 exceptions_null.cc: Likewise.
1213 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1214 exceptions_null.cc: Likewise.
1215 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1216 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1217 * testsuite/27_io/basic_ostream/inserters_other/char/
1218 exceptions_null.cc: Likewise.
1219 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1220 exceptions_null.cc: Likewise.
1221 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1224 * include/bits/locale_classes.h (locale::facet::__shim): Change from
1225 private to protected.
1226 * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
1227 make locale::facet::__shim accessible.
1229 2017-01-16 Ville Voutilainen <ville.voutilainen@gmail.com>
1232 * include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
1233 (merge(list&&, _StrictWeakOrdering)): Likewise.
1234 * testsuite/23_containers/list/operations/78389.cc: Add
1235 better test for the sizes.
1237 2017-01-14 Jonathan Wakely <jwakely@redhat.com>
1239 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
1240 Skip test when -D_GLIBCXX_PROFILE mode is included in options.
1241 * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
1242 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
1244 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
1245 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
1246 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
1247 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
1248 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
1250 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
1252 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
1254 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
1256 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
1258 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
1259 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
1260 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
1261 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
1262 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
1263 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
1264 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
1265 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
1266 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
1267 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
1268 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
1269 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
1270 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1272 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
1275 * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
1276 retry fclose on EINTR.
1278 * include/profile/base.h: Remove unused header that leads to header
1279 cycle in C++17 mode.
1282 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
1283 Make _If_sv private.
1284 [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
1285 basic_string_view arguments.
1288 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
1289 redundant option from cxxflags.
1290 (check_effective_target_cxx11-abi): Define.
1291 * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
1293 * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
1294 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1296 * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
1298 * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
1299 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
1301 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
1303 * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
1304 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
1306 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1308 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
1310 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
1312 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
1314 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
1316 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
1318 * testsuite/23_containers/list/61347.cc: Likewise.
1319 * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
1320 * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
1322 2017-01-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1325 * include/bits/list.tcc (merge(list&&)):
1326 Adjust list sizes if the comparator throws.
1327 (merge(list&&, _StrictWeakOrdering)): Likewise.
1328 (sort()): Splice elements back from the scratch buffers
1329 if the comparator throws.
1330 (sort(_StrictWeakOrdering)): Likewise.
1331 * testsuite/23_containers/list/operations/78389.cc: New.
1333 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
1335 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
1336 XFAIL for C++17 until node reinsertion supports fancy pointers.
1339 * testsuite/20_util/add_pointer/value.cc: Test forming function
1342 2017-01-13 Michael Brune <lucdanton@free.fr>
1345 * include/std/type_traits (__is_referenceable): Handle noexcept
1348 2017-01-12 Jonathan Wakely <jwakely@redhat.com>
1351 * include/bits/stl_queue.h (queue, priority_queue): Remove default
1352 member-initializers and define default constructors as templates with
1354 * include/bits/stl_stack.h (stack): Likewise.
1355 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
1357 * testsuite/23_containers/priority_queue/requirements/
1358 explicit_instantiation/1.cc: Test more instantiations.
1359 * testsuite/23_containers/priority_queue/requirements/
1360 explicit_instantiation/1_c++98.cc: Likewise.
1361 * testsuite/23_containers/queue/requirements/constructible.cc: New.
1362 * testsuite/23_containers/stack/requirements/constructible.cc: New.
1365 * doc/xml/manual/intro.xml: Document LWG 2781 change.
1366 * doc/html/*: Regenerate.
1367 * include/std/functional (_Function_base::_Ref_manager): Remove.
1368 (_Function_handler): Remove partial specializations for
1370 (function::target): Remove special case for const qualification.
1371 * testsuite/20_util/function/6.cc: Adjust tests for target type.
1372 * testsuite/20_util/function/7.cc: Likewise.
1373 * testsuite/20_util/function/8.cc: Likewise.
1375 2017-01-11 Jonathan Wakely <jwakely@redhat.com>
1378 * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
1379 (map::equal_range): Fix return type of heterogeneous overloads.
1380 * include/bits/stl_multimap.h (multimap::lower_bound)
1381 (multimap::upper_bound, multimap::equal_range): Likewise.
1382 * include/bits/stl_multiset.h (multiset::lower_bound)
1383 (multiset::upper_bound, multiset::equal_range): Likewise.
1384 * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
1385 (set::equal_range): Likewise.
1386 * testsuite/23_containers/map/operations/2.cc
1387 * testsuite/23_containers/multimap/operations/2.cc
1388 * testsuite/23_containers/multiset/operations/2.cc
1389 * testsuite/23_containers/set/operations/2.cc
1392 * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
1393 the heterogeneous comparison can only find one match.
1394 * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
1395 * testsuite/23_containers/map/operations/2.cc: Test count works with
1396 comparison function that just partitions rather than sorting.
1397 * testsuite/23_containers/set/operations/2.cc: Likewise.
1399 2017-01-11 Ville Voutilainen <ville.voutilainen@gmail.com>
1401 Reduce the size of variant, it doesn't need an index of
1402 type size_t internally.
1403 * include/std/variant (parse_numbers.h): New include.
1404 (__select_index): New.
1405 (_Variant_storage<false, _Types...>::_M_reset_impl): Use
1406 _index_type for comparison with variant_npos.
1407 (_Variant_storage<false, _Types...>::__index_type): New.
1408 (_Variant_storage<false, _Types...>::_M_index): Change the
1409 type from size_t to __index_type.
1410 (_Variant_storage<true, _Types...>::__index_type): New.
1411 (_Variant_storage<true, _Types...>::_M_index): Change the
1412 type from size_t to __index_type.
1413 (_Variant_base::_M_valid): Use _Storage::__index_type
1414 for comparison with variant_npos.
1415 (variant::index): Use _Base::_Storage::__index_type
1416 for comparison with variant_npos.
1417 * testsuite/20_util/variant/index_type.cc: New.
1419 2017-01-10 Jonathan Wakely <jwakely@redhat.com>
1421 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
1422 effective target selector to prevent running in C++17 mode.
1425 * include/bits/stl_queue.h (queue::c): Add default member initializer.
1426 (queue::queue()): Add constructor and define as defaulted.
1427 (queue::queue(_Sequence&&)): Remove default argument.
1428 (priority_queue::c, priority_queue::comp): Add default member
1430 (priority_queue::priority_queue()): Add constructor and define as
1432 (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
1433 Remove default argument for first parameter.
1434 * include/bits/stl_stack.h (stack::c): Add default member initializer.
1435 (stack::stack()): Add constructor and define as defaulted.
1436 (stack::stack(const _Sequence&)): Remove default argument.
1437 * testsuite/23_containers/priority_queue/requirements/
1438 explicit_instantiation/1.cc: Test explicit instantiation with
1439 non-DefaultConstructible sequence.
1440 * testsuite/23_containers/priority_queue/77528.cc: New test.
1441 * testsuite/23_containers/priority_queue/requirements/
1442 explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
1443 * testsuite/23_containers/queue/77528.cc: New test.
1444 * testsuite/23_containers/queue/requirements/explicit_instantiation/
1445 1.cc: Test explicit instantiation with non-DefaultConstructible
1447 * testsuite/23_containers/queue/requirements/explicit_instantiation/
1448 1_c++0x.cc: Replace with 1_c++98.cc.
1449 * testsuite/23_containers/stack/77528.cc: New test.
1450 * testsuite/23_containers/stack/requirements/explicit_instantiation/
1451 1.cc: Test explicit instantiation with non-DefaultConstructible
1453 * testsuite/23_containers/stack/requirements/explicit_instantiation/
1454 1_c++0x.cc: Replace with 1_c++98.cc.
1456 2017-01-10 Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
1458 * include/bits/locale_facets_nonio.tcc
1459 (time_get::_M_extract_via_format): Avoid compilation errors with
1460 non-standard struct tm.
1462 2017-01-10 François Dumont <fdumont@gcc.gnu.org>
1463 Jonathan Wakely <jwakely@redhat.com>
1465 * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
1466 (is_specialization, strip_versioned_namespace): New helpers functions
1467 to work with symbols in the versioned namespace.
1468 (Printer.add_version): Add second name using versioned namespace.
1469 (add_one_template_type_printer, add_one_type_printer): Add second
1470 type printers using versioned namespace.
1471 (register_type_printers): Add template type printer for basic_string.
1472 (build_libstdcxx_dictionary): Remove dead code.
1473 * python/libstdcxx/v6/xmethods.py: Make all matchers look for
1474 versioned namespace.
1475 * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
1477 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1479 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
1482 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
1483 functions separately on darwin and if they're missing define
1484 _GLIBCXX_NO_C99_ROUNDING_FUNCS.
1485 * config.h.in: Regenerate.
1486 * configure: Regenerate.
1487 * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
1488 (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
1490 * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
1491 to detect correct thread_local destructors.
1492 * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
1495 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
1496 Aditya Kumar <hiraditya@msn.com>
1499 * include/bits/basic_string.tcc
1500 (basic_string::find(const CharT*, size_type, size_type)): Optimize.
1502 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
1504 * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
1505 * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
1507 * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
1508 Include <cassert> header.
1511 * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
1512 * configure: Regenerate.
1514 2017-01-06 Barrett Adair <barrettellisadair@gmail.com>
1515 Jonathan Wakely <jwakely@redhat.com>
1517 * include/std/variant (variant, swap): Replace __and_ usage with fold
1520 2017-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1523 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
1524 * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
1525 GLIBCXX_CHECK_ASSEMBLER_HWCAP.
1526 * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
1528 * aclocal.m4: Regenerate.
1529 * configure: Regenerate.
1530 * Makefile.in, doc/Makefile.in, include/Makefile.in,
1531 libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
1532 src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
1533 src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
1535 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
1537 * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
1540 * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
1541 (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
1542 (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
1543 move function objects.
1544 (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
1545 (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
1546 * testsuite/25_algorithms/sort/78991.cc: New test.
1548 2017-01-05 Jonathan Wakely <jwakely@redhat.com>
1550 * include/bits/std_function.h (function::_Signature_type): Remove.
1551 (function::function(_Functor)): Adjust.
1553 2017-01-05 Tim Shen <timshen@google.com>
1556 * include/std/variant (__gen_vtable_impl): rename __unused to
1557 __dimensions to avoid naming conflict.
1559 2017-01-04 Jonathan Wakely <jwakely@redhat.com>
1562 * config.h.in: Regenerate.
1563 * configure: Likewise.
1564 * configure.ac: Check for __cxa_thread_atexit.
1565 * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
1566 Don't define __cxa_thread_atexit if libc provides it.
1568 2017-01-04 Ville Voutilainen <ville.voutilainen@gmail.com>
1570 Implement 2801, Default-constructibility of unique_ptr.
1571 * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
1572 (unique_ptr::_DeleterConstraint): Likewise.
1573 (unique_ptr()): Constrain.
1574 (unique_ptr(pointer)): Likewise.
1575 (unique_ptr(nullptr_t)): Likewise.
1576 (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
1577 (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
1578 (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
1579 (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
1580 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
1581 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
1582 * testsuite/20_util/unique_ptr/cons/default.cc: New.
1583 * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
1585 2017-01-04 Pauli Nieminen <suokkos@gmail.com>
1586 Jonathan Wakely <jwakely@redhat.com>
1589 * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
1590 * config.h.in: Regenerate.
1591 * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
1592 (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
1593 exports for exception_ptr, nested_exception, and future conditional.
1594 [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
1595 exports for exception_ptr, nested_exception, and future conditional.
1596 * configure: Regenerate.
1597 * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
1598 * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
1599 * libsupc++/eh_atomics.h: New file for internal use only.
1600 (__eh_atomic_inc, __eh_atomic_dec): New.
1601 * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
1602 (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
1603 (rethrow_exception): Use eh_atomics.h reference counting helpers.
1604 * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
1605 * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
1606 * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
1607 * libsupc++/exception_ptr.h: Likewise.
1608 * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
1609 * libsupc++/nested_exception.cc: Remove check for
1610 ATOMIC_INT_LOCK_FREE.
1611 * libsupc++/nested_exception.h: Likewise.
1612 * src/c++11/future.cc: Likewise.
1613 * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
1614 * testsuite/18_support/nested_exception/*: Likewise.
1615 * testsuite/30_threads/async/*: Likewise.
1616 * testsuite/30_threads/future/*: Likewise.
1617 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
1618 * testsuite/30_threads/packaged_task/*: Likewise.
1619 * testsuite/30_threads/promise/*: Likewise.
1620 * testsuite/30_threads/shared_future/*: Likewise.
1622 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
1624 * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
1625 defaults to https; adjust reference.
1627 2017-01-03 Jonathan Wakely <jwakely@redhat.com>
1630 * include/std/thread (thread(const thread&&)): Add deleted
1632 * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
1634 * doc/xml/manual/spine.xml: Update copyright years.
1635 * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
1636 * doc/xml/manual/test.xml: Likewise.
1637 * doc/html/*: Regenerate.
1639 2017-01-01 Gerald Pfeifer <gerald@pfeifer.com>
1641 * doc/xml/faq.xml: Update address of C++ ABI link.
1642 * doc/xml/manual/abi.xml: Ditto.
1644 2017-01-01 Jakub Jelinek <jakub@redhat.com>
1646 Update copyright years.
1648 Copyright (C) 2017 Free Software Foundation, Inc.
1650 Copying and distribution of this file, with or without modification,
1651 are permitted in any medium without royalty provided the copyright
1652 notice and this notice are preserved.