1 2017-04-20 Edward Smith-Rowland <3dw4rd@verizon.net>
3 PR libstdc++/68397 std::tr1::expint fails ... long double arguments.
4 * include/tr1/exp_integral.tcc: Increase iteration limits.
5 * testsuite/tr1/5_numerical_facilities/special_functions/15_expint/
7 * testsuite/special_functions/14_expint/pr68397.cc: New test.
9 2017-04-20 Jonathan Wakely <jwakely@redhat.com>
12 * include/std/atomic [!_GLIBCXX_USE_C99_STDINT_TR1] (atomic_int8_t)
13 (atomic_uint8_t, atomic_int16_t, atomic_uint16_t, atomic_int32_t,
14 (atomic_uint32_t, atomic_int64_t, atomic_uint64_t)
15 (atomic_int_least8_t, atomic_uint_least8_t, atomic_int_least16_t)
16 (atomic_uint_least16_t, atomic_int_least32_t, atomic_uint_least32_t)
17 (atomic_int_least64_t, atomic_uint_least64_t, atomic_int_fast8_t)
18 (atomic_uint_fast8_t, atomic_int_fast16_t, atomic_uint_fast16_t)
19 (atomic_int_fast32_t, atomic_uint_fast32_t, atomic_int_fast64_t)
20 (atomic_uint_fast64_t, atomic_intmax_t, atomic_uintmax_t): Don't
23 2017-04-19 Jonathan Wakely <jwakely@redhat.com>
25 * doc/xml/manual/abi.xml: Rephrase one of the references to the
27 * doc/xml/manual/test.xml: Document DejaGnu 1.5.3 requirement.
28 * doc/html/*: Regenerate.
30 * libsupc++/new: Update comment on #endif directive.
33 * include/experimental/bits/fs_dir.h (directory_iterator)
34 (recursive_directory_iterator): Remove noexcept from defaulted
38 * include/std/type_traits (is_aggregate): Change __has_builtin checks.
39 * libsupc++/new (launder): Likewise.
41 2017-04-18 Jonathan Wakely <jwakely@redhat.com>
43 * include/std/functional (default_searcher, __boyer_moore_array_base)
44 (__is_std_equal_to, __boyer_moore_base_t, boyer_moore_searcher)
45 (boyer_moore_horspool_searcher): Remove redundant namespace
47 (default_searcher::operator()): Construct return value early and
48 advance second member in-place.
49 (boyer_moore_horspool_searcher::operator()): Increment random access
50 iterator directly instead of using std::next.
51 (boyer_moore_searcher::operator()): Fix return value.
52 * testsuite/20_util/function_objects/searchers.cc: Check both parts
55 2017-04-12 Gerald Pfeifer <gerald@pfeifer.com>
57 * doc/xml/faq.xml: Update reference link to C++ ABI for Itanium.
58 * doc/xml/manual/abi.xml. Ditto (thrice).
60 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
62 * doc/xml/manual/status_cxx2017.xml: Remove duplicate table entry.
63 * doc/html/*: Regenerate.
65 * testsuite/20_util/reference_wrapper/invoke.cc: Uncomment tests
68 * include/bits/ios_base.h: Correct comment.
69 * testsuite/util/testsuite_hooks.h: Likewise.
71 * doc/xml/manual/status_cxx2017.xml: Update C++17 status table.
72 * doc/xml/manual/appendix_contributing.xml (contrib.organization): Add
73 directories for debug, parallel and profile headers.
74 * doc/html/*: Regenerate.
76 * include/bits/char_traits.h (__gnu_cxx::char_traits): Add
77 _GLIBCXX14_CONSTEXPR on assign, compare, find, and length.
78 (std::char_traits<char>, std::char_traits<wchar_t>): Add
79 _GLIBCXX17_CONSTEXPR on assign.
80 (std::char_traits<char16_t>, std::char_traits<char32_t>): Add
81 _GLIBCXX17_CONSTEXPR on assign, compare, find, and length.
82 * testsuite/21_strings/char_traits/requirements/
83 constexpr_functions_c++17.cc: New test.
85 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
88 * include/bits/stl_pair.h (__nonesuch_no_braces): New.
89 (operator=(typename conditional<
90 __and_<is_copy_assignable<_T1>,
91 is_copy_assignable<_T2>>::value,
92 const pair&, const __nonesuch&>::type)): Change __nonesuch
93 to __nonesuch_no_braces.
94 (operator=(typename conditional<
95 __not_<__and_<is_copy_assignable<_T1>,
96 is_copy_assignable<_T2>>>::value,
97 const pair&, const __nonesuch&>::type)): Likewise.
98 (operator=(typename conditional<
99 __and_<is_move_assignable<_T1>,
100 is_move_assignable<_T2>>::value,
101 pair&&, __nonesuch&&>::type)): Likewise.
102 * testsuite/20_util/pair/79141.cc: New.
104 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
106 Implement std::is_aggregate.
107 * include/std/type_traits (is_aggregate, is_aggregate_v): New.
108 * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc:
110 * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise.
111 * testsuite/20_util/is_aggregate/value.cc: Likewise.
113 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
115 Adjust optional's pretty printer for LWG 2900.
116 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter.__init__):
117 Look at the nested payload in case of non-experimental optional.
119 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
121 Implement LWG 2900, The copy and move constructors
122 of optional are not constexpr.
123 * include/std/optional (_Optional_payload): New.
124 (_Optional_base): Remove the bool parameter.
125 (_Optional_base<_Tp, false>): Remove.
126 (_Optional_base()): Adjust.
127 (_Optional_base(nullopt_t)): Likewise.
128 (_Optional_base(in_place_t, _Args&&...)): Likewise.
129 (_Optional_base(in_place_t, initializer_list<_Up>, _Args&&...)):
131 (_Optional_base(const _Optional_base&)): Likewise.
132 (_Optional_base(_Optional_base&&)): Likewise.
133 (operator=(const _Optional_base&)): Likewise.
134 (operator=(_Optional_base&&)): Likewise.
135 (~_Optional_base()): Remove.
136 (_M_is_engaged()): Adjust.
137 (_M_get()): Likewise.
138 (_M_construct(_Args&&...)): Likewise.
139 (_M_destruct()): Likewise.
140 (_M_reset()): Likewise.
141 (_Optional_base::_Empty_byte): Remove.
142 (_Optional_base::_M_empty): Remove.
143 (_Optional_base::_M_payload): Adjust.
144 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
145 * testsuite/20_util/optional/constexpr/cons/value.cc: Add tests.
147 2017-03-28 Jonathan Wakely <jwakely@redhat.com>
150 * include/bits/random.tcc (generate_canonical): Use std::nextafter
151 or numeric_limits::epsilon() to reduce out-of-range values.
152 * testsuite/26_numerics/random/uniform_real_distribution/operators/
153 64351.cc: Verify complexity requirement is met.
155 * doc/xml/manual/abi.xml: Add xml:id anchor.
156 * doc/xml/manual/using.xml (manual.intro.using.macros): Document
157 _GLIBCXX_RELEASE. Link to new anchor for __GLIBCXX__ notes.
158 (concurrency.io.structure): Add markup.
159 * doc/html/*: Regenerate.
162 * include/bits/shared_ptr_base.h
163 (__shared_ptr::_M_enable_shared_from_this_with): Change parameters to
164 non-const and then use remove_cv to get unqualified type.
165 * testsuite/20_util/enable_shared_from_this/members/const.cc: Don't
166 cast away constness on object created const.
167 * testsuite/20_util/shared_ptr/cons/80229.cc: New test.
169 2017-03-26 Markus Trippelsdorf <markus@trippelsdorf.de>
172 * include/bits/stl_tree.h:
173 (_Rb_tree_header::_M_move_data(_Rb_tree_header&)): Also save _M_color.
175 2017-03-23 Jonathan Wakely <jwakely@redhat.com>
177 * testsuite/23_containers/array/tuple_interface/
178 tuple_element_debug_neg.cc: Adjust dg-error.
179 * testsuite/23_containers/list/operations/78389.cc: Fix less-than to
180 define a valid strict weak ordering.
181 * testsuite/23_containers/priority_queue/67085.cc: Disable test for
182 Debug Mode, due to debug checks making extra copies of predicate.
183 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
186 * doc/xml/faq.xml: Add link.
187 * doc/xml/manual/backwards_compatibility.xml: Remove outdated
188 information on pre-ISO headers. Replace broken link to C++ FAQ Lite.
189 * doc/xml/manual/io.xml: Update broken link.
190 * doc/html/*: Regenerate.
192 2017-03-23 Daniel Kruegler <daniel.kruegler@gmail.com>
194 Implement LWG 2686, Why is std::hash specialized for error_code,
195 but not error_condition?
196 * include/std/system_error (hash<error_condition>): Define for C++17.
197 * testsuite/20_util/hash/operators/size_t.cc (hash<error_condition>):
198 Instantiate test for error_condition.
199 * testsuite/20_util/hash/requirements/explicit_instantiation.cc
200 (hash<error_condition>): Instantiate hash<error_condition>.
202 * include/bits/c++config (_GLIBCXX17_INLINE): Define.
203 * include/bits/regex_constants.h (All std::regex_constants constants):
204 Add _GLIBCXX17_INLINE as per P0607R0.
205 * include/bits/std_mutex.h (defer_lock, try_to_lock, adopt_lock):
207 * include/bits/stl_pair.h (piecewise_construct): Likewise.
208 * include/bits/uses_allocator.h (allocator_arg, uses_allocator_v)
209 (__is_uses_allocator_constructible_v)
210 (__is_nothrow_uses_allocator_constructible_v): Likewise.
211 * include/std/chrono (treat_as_floating_point_v): Likewise.
212 * include/std/functional (is_bind_expression_v, is_placeholder_v):
214 * include/std/optional (nullopt): Likewise.
215 * include/std/ratio (ratio_equal_v, ratio_not_equal_v, ratio_less_v)
216 ratio_less_equal_v, ratio_greater_v, ratio_greater_equal_v): Likewise.
217 * include/std/system_error (is_error_code_enum_v)
218 (is_error_condition_enum_v): Likewise.
219 * include/std/tuple (tuple_size_v, ignore): Likewise.
220 (ignore): Declare ignore constexpr as per LWG 2773, declare assignment
221 constexpr as per LWG 2933.
222 * include/std/type_traits (All variable templates): Add
223 _GLIBCXX17_INLINE as per P0607R0.
224 * include/std/variant (variant_size_v, variant_npos, __index_of_v)
225 (__tuple_count_v, __exactly_once): Likewise.
226 * testsuite/18_support/headers/new/synopsis.cc
227 (hardware_destructive_interference_size)
228 (hardware_constructive_interference_size): Likewise for commented-out
230 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Add new
231 test function for constexpr std::ignore (LWG 2773).
232 * testsuite/20_util/tuple/creation_functions/constexpr_cpp14.cc: New
235 2017-03-22 Jonathan Wakely <jwakely@redhat.com>
237 * include/bits/shared_ptr.h (shared_ptr, weak_ptr): Add deduction
239 * include/bits/std_function.h (function): Likewise.
240 * include/bits/stl_pair.h (pair): Likewise.
241 * include/debug/array (__gnu_debug::array): Likewise.
242 * include/std/array (array): Likewise.
243 * include/std/functional (make_default_searcher)
244 (make_boyer_moore_searcher, make_boyer_moore_horspool_searcher):
245 Remove generator functions.
246 * include/std/tuple (tuple): Add deduction guides.
247 * include/std/valarray (valarray): Likewise.
248 * testsuite/20_util/function_objects/searchers.cc: Adjust to use
249 class template argument deduction instead of generator functions.
250 * testsuite/20_util/function/cons/deduction.cc: New test.
251 * testsuite/20_util/optional/cons/deduction_guide.cc: Rename to ...
252 * testsuite/20_util/optional/cons/deduction.cc: ... here.
253 * testsuite/20_util/pair/cons/deduction.cc: New test.
254 * testsuite/20_util/shared_ptr/cons/deduction.cc: New test.
255 * testsuite/20_util/tuple/cons/deduction.cc: New test.
256 * testsuite/20_util/tuple/element_access/get_neg.cc: Adjust dg-error.
257 * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: New test.
258 * testsuite/20_util/weak_ptr/cons/deduction.cc: New test.
259 * testsuite/23_containers/array/cons/deduction.cc: New test.
260 * testsuite/23_containers/array/cons/deduction_neg.cc: New test.
261 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
263 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise.
264 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
266 * testsuite/26_numerics/valarray/deduction.cc: New test.
267 * testsuite/30_threads/lock_guard/cons/deduction.cc: New test.
268 * testsuite/30_threads/scoped_lock/cons/deduction.cc: New test.
269 * testsuite/30_threads/unique_lock/cons/deduction.cc: New test.
271 2017-03-20 François Dumont <fdumont@gcc.gnu.org>
273 * include/bits/stl_deque.h (deque): Access allocator value_type only if
274 concept checks are enabled.
275 * include/bits/stl_stack.h (stack): Likewise.
276 * include/bits/stl_vector.h (vector): Likewise.
277 * include/bits/stl_list.h (list): Likewise and check
278 _SGIAssignableConcept only in C++03.
279 * include/bits/stl_map.h (map): Likewise.
280 * include/bits/stl_set.h (set): Likewise.
281 * include/bits/stl_multimap.h (multimap): Likewise.
282 * include/bits/stl_multiset.h (multiset): Likewise.
283 * include/bits/stl_queue.h (queue, priority_queue): Likewise.
285 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
287 * doc/xml/manual/appendix_contributing.xml: Convert link to
289 Update link to the C++ standard at ansi.org.
291 * doc/xml/faq.xml: Remove information redundant with the above;
292 instead add a reference.
294 2017-03-17 Jonathan Wakely <jwakely@redhat.com>
296 * src/c++11/codecvt.cc (range): Add non-type template parameter and
297 define oerloaded operators for reading and writing code units.
298 (range<Elem, false>): Define partial specialization for accessing
299 wide characters in potentially unaligned byte ranges.
300 (ucs2_span(const char16_t*, const char16_t*, ...))
301 (ucs4_span(const char16_t*, const char16_t*, ...)): Change parameters
302 to range<const char16_t, false> in order to avoid unaligned reads.
303 (__codecvt_utf16_base<char16_t>::do_out)
304 (__codecvt_utf16_base<char32_t>::do_out)
305 (__codecvt_utf16_base<wchar_t>::do_out): Use range specialization for
306 unaligned data to avoid unaligned writes.
307 (__codecvt_utf16_base<char16_t>::do_in)
308 (__codecvt_utf16_base<char32_t>::do_in)
309 (__codecvt_utf16_base<wchar_t>::do_in): Likewise for writes. Return
310 error if there are unprocessable trailing bytes.
311 (__codecvt_utf16_base<char16_t>::do_length)
312 (__codecvt_utf16_base<char32_t>::do_length)
313 (__codecvt_utf16_base<wchar_t>::do_length): Pass arguments of type
314 range<const char16_t, false> to span functions.
315 * testsuite/22_locale/codecvt/codecvt_utf16/misaligned.cc: New test.
317 2017-03-16 Jonathan Wakely <jwakely@redhat.com>
320 * src/c++11/codecvt.cc (to_integer(codecvt_mode)): Fix target type.
323 * src/c++11/codecvt.cc (__codecvt_utf16_base<wchar_t>::do_out)
324 (__codecvt_utf16_base<wchar_t>::do_in): Convert char arguments to
325 char16_t to work with UTF-16 instead of UTF-8.
326 * testsuite/22_locale/codecvt/codecvt_utf16/80041.cc: New test.
328 * src/c++11/codecvt.cc (codecvt<char16_t, char, mbstate_t>)
329 (codecvt<char32_t, char, mbstate_t>, __codecvt_utf8_base<char16_t>)
330 (__codecvt_utf8_base<char32_t>, __codecvt_utf8_base<wchar_t>)
331 (__codecvt_utf16_base<char16_t>, __codecvt_utf16_base<char32_t>)
332 (__codecvt_utf16_base<wchar_t>, __codecvt_utf8_utf16_base<char16_t>)
333 (__codecvt_utf8_utf16_base<char32_t>)
334 (__codecvt_utf8_utf16_base<wchar_t>): Fix do_encoding() and
335 do_max_length() return values.
336 * testsuite/22_locale/codecvt/codecvt_utf16/members.cc: New test.
337 * testsuite/22_locale/codecvt/codecvt_utf8/members.cc: New test.
338 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/members.cc: New test.
341 * include/bits/locale_conv.h (__do_str_codecvt): Set __count on
343 * src/c++11/codecvt.cc (operator&=, operator|=, operator~): Overloads
344 for manipulating codecvt_mode values.
345 (read_utf16_bom): Compare input to BOM constants instead of integral
346 constants that depend on endianness. Take mode parameter by
347 reference and adjust it, to distinguish between no BOM present and
348 UTF-16BE BOM present.
349 (ucs4_in, ucs2_span, ucs4_span): Adjust calls to read_utf16_bom.
350 (surrogates): New enumeration type.
351 (utf16_in, utf16_out): Add surrogates parameter to choose between
352 UTF-16 and UCS2 behaviour.
353 (utf16_span, ucs2_span): Use std::min not std::max.
354 (ucs2_out): Use std::min not std::max. Disallow surrogate pairs.
355 (ucs2_in): Likewise. Adjust calls to read_utf16_bom.
356 * testsuite/22_locale/codecvt/codecvt_utf16/79980.cc: New test.
357 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: New test.
360 * src/c++11/codecvt.cc (write_utf16_code_point): Don't write 0xffff
362 (__codecvt_utf8_utf16_base<char32_t>::do_in): Use native endianness
363 for internal representation.
364 (__codecvt_utf8_utf16_base<wchar_t>::do_in): Likewise.
365 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/79511.cc: New test.
368 * include/bits/stl_heap.h (__is_heap, push_heap, __adjust_heap)
369 (pop_heap, make_heap, sort_heap, is_heap_until, is_heap): Cope with
370 invalid instantiations using function types for _Compare argument.
371 * testsuite/25_algorithms/make_heap/80064.cc: New test.
374 * python/libstdcxx/v6/printers.py (find_type): Avoid gdb.Type.name
375 for GDB 7.6 compatibility, use gdb.Type.unqualified instead.
377 2017-03-15 Ville Voutilainen <ville.voutilainen@gmail.com>
379 Implement LWG 2857, {variant,optional,any}::emplace should
380 return the constructed value.
381 * include/std/any (emplace(_Args&&...)): Change the return type and
382 return a reference to the constructed value.
383 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
384 * include/std/optional (emplace(_Args&&...)): Likewise.
385 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
386 * include/std/variant (emplace<_Tp>(_Args&&...)): Likewise.
387 (emplace<_Tp>(initializer_list<_Up>, _Args&&...)): Likewise.
388 (emplace<_Np>(_Args&&...)): Likewise.
389 (emplace<_Np>(initializer_list<_Up>, _Args&&...)): Likewise.
390 * testsuite/20_util/any/assign/emplace.cc: Add tests for
391 checking the return value of emplace.
392 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust.
393 * testsuite/20_util/optional/assignment/6.cc: Add tests for
394 checking the return value of emplace.
395 * testsuite/20_util/variant/run.cc: Likewise.
397 2017-03-15 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
400 * include/ext/pb_ds/qdetail/binary_heap_/binary_heap_.hpp
402 (push_heap): Remove the wrong checking using is_heap.
403 (make_heap): Remove the assertion using is_heap.
404 * include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp
406 (resize_for_insert_if_needed): Add PB_DS_ASSERT_VALID after
409 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
412 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
414 * testsuite/ext/pb_ds/regression/priority_queues.cc: Fix copy&paste
417 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
419 * acinclude.m4 (GLIBCXX_CHECK_S_ISREG_OR_S_IFREG): Fix typo in
421 * config.h.in: Regenerate.
422 * configure: Regenerate.
423 * doc/Makefile.in: Regenerate.
425 2017-03-14 Jonathan Wakely <jwakely@redhat.com>
428 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
429 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace
430 with a constrained template.
431 [!_GLIBCXX_USE_CXX11_ABI]
432 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise.
433 * testsuite/21_strings/basic_string/cons/char/79162.cc: New test.
434 * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test.
436 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
439 * include/bits/list.tcc (merge(list&&)): Use const for the size_t
441 (merge(list&&, _StrictWeakOrdering)): Likewise.
442 * testsuite/23_containers/list/operations/80034.cc: New.
444 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
446 Implement LWG 2806, Base class of bad_optional_access.
447 * include/std/optional (bad_optional_access):
448 Derive from std::exception.
449 (bad_optional_access::bad_optional_access): Adjust.
450 (bad_optional_access::what): New.
451 (__throw_bad_optional_access(const char*)):
452 Remove the parameter and adjust calls.
453 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
454 * testsuite/20_util/optional/typedefs.cc: Likewise.
456 2017-03-12 Ville Voutilainen <ville.voutilainen@gmail.com>
458 Implement LWG 2934, optional<const T> doesn't compare with T.
459 * include/std/optional
460 (operator==(const optional<_Tp>&, const optional<_Tp>&)):
461 Turn into operator==(const optional<_Tp>&, const optional<_Up>&).
462 (operator!=(const optional<_Tp>&, const optional<_Tp>&)):
463 Turn into operator!=(const optional<_Tp>&, const optional<_Up>&).
464 (operator<(const optional<_Tp>&, const optional<_Tp>&)):
465 Turn into operator<(const optional<_Tp>&, const optional<_Up>&.
466 (operator>(const optional<_Tp>&, const optional<_Tp>&)):
467 Turn into operator>(const optional<_Tp>&, const optional<_Up>&.
468 (operator<=(const optional<_Tp>&, const optional<_Tp>&)):
469 Turn into operator<=(const optional<_Tp>&, const optional<_Up>&).
470 (operator>=(const optional<_Tp>&, const optional<_Tp>&)):
471 Turn into operator>=(const optional<_Tp>&, const optional<_Up>&).
472 (operator==(const optional<_Tp>&, const _Tp&)):
473 Turn into operator==(const optional<_Tp>&, const _Up&).
474 (operator==(const _Tp&, const optional<_Tp>&)):
475 Turn into operator==(const _Up&, const optional<_Tp>&).
476 (operator!=(const optional<_Tp>&, const _Tp&)):
477 Turn into operator!=(const optional<_Tp>&, const _Up&).
478 (operator!=(const _Tp&, const optional<_Tp>&)):
479 Turn into operator!=(const _Up&, const optional<_Tp>&).
480 (operator<(const optional<_Tp>&, const _Tp&)):
481 Turn into operator<(const optional<_Tp>&, const _Up&).
482 (operator<(const _Tp&, const optional<_Tp>&)):
483 Turn into operator<(const _Up&, const optional<_Tp>&).
484 (operator>(const optional<_Tp>&, const _Tp&)):
485 Turn into operator>(const optional<_Tp>&, const _Up&).
486 (operator>(const _Tp&, const optional<_Tp>&)):
487 Turn into operator>(const _Up&, const optional<_Tp>&).
488 (operator<=(const optional<_Tp>&, const _Tp&)):
489 Turn into operator<=(const optional<_Tp>&, const _Up&).
490 (operator<=(const _Tp&, const optional<_Tp>&)):
491 Turn into operator<=(const _Up&, const optional<_Tp>&).
492 (operator>=(const optional<_Tp>&, const _Tp&)):
493 Turn into operator>=(const optional<_Tp>&, const _Up&).
494 (operator>=(const _Tp&, const optional<_Tp>&)):
495 Turn into operator>=(const _Up&, const optional<_Tp>&).
496 * testsuite/20_util/optional/relops/7.cc: New.
498 2017-03-10 Jonathan Wakely <jwakely@redhat.com>
500 * testsuite/17_intro/names.cc: Undefine macros that clash with
501 identifiers in AIX system headers.
503 * include/bits/invoke.h (__invoke): Use __invoke_result instead of
504 result_of, and __is_nothrow_invocable instead of
505 __is_nothrow_callable.
506 * include/bits/shared_ptr_base.h (__shared_ptr): Use __is_invocable
507 instead of __is_callable.
508 * include/std/functional (invoke): use invoke_result_t instead of
509 result_of_t and is_nothrow_invocable instead of is_nothrow_callable.
510 (_Not_fn): Use __invoke_result instead of result_of.
511 * include/std/type_traits (__result_of_memobj, __result_of_memfun):
512 Remove partial specializations for reference_wrapper types.
513 (__result_of_impl): Use __inv_unwrap to strip reference_wrapper.
514 (__invoke_result): Define replacement for result_of and then use it to
516 (__is_callable_impl, __is_callable, __is_nothrow_callable): Replace
517 with __is_invocable_impl, __is_invocable, and __is_nothrow_invocable
519 (invoke_result, invoke_result_t): Define for C++17.
520 (is_callable, is_nothrow_callable): Replace with is_invocable,
521 is_invocable_r, is_nothrow_invocable, and is_nothrow_invocable_r.
522 (is_callable_v, is_nothrow_callable_v): Replace with is_invocable_v,
523 is_invocable_r_v, is_nothrow_invocable_v, and is_nothrow_invocable_r_v.
524 * include/std/variant (hash<variant<T...>>): Use is_nothrow_invocable_v
525 instead of is_nothrow_callable_v.
526 * testsuite/20_util/function_objects/invoke/59768.cc: Remove unused
528 * testsuite/20_util/function_objects/not_fn/1.cc: Use is_invocable
529 instead of is_callable.
530 * testsuite/20_util/is_callable/*: Rename directory and adjust tests
532 * testsuite/20_util/is_nothrow_callable/*: Likewise.
533 * testsuite/20_util/optional/hash.cc: Use is_invocable_v instead of
535 * testsuite/20_util/variant/hash.cc: Likewise.
537 2017-03-10 George Lander <george.lander@arm.com>
539 * acinclude.m4 (glibcxx_cv_obsolete_isnan): Define
540 _GLIBCXX_INCLUDE_NEXT_C_HEADERS before including math.h.
541 * configure: Regenerate.
543 2017-03-09 Jonathan Wakely <jwakely@redhat.com>
545 * include/std/functional (_Not_fn): Define macro to simplify
546 repetitive function definitions.
548 * doc/xml/manual/status_cxx2017.xml: Document std::byte support.
549 * include/c_global/cstddef (std::byte): Define for C++17.
550 * testsuite/18_support/byte/global_neg.cc: New test.
551 * testsuite/18_support/byte/ops.cc: New test.
552 * testsuite/18_support/byte/requirements.cc: New test.
554 2017-03-05 Jonathan Wakely <jwakely@redhat.com>
556 * doc/xml/manual/status_cxx2017.xml: Document P0156R2 status.
557 * doc/html/*: Regenerate.
558 * include/std/mutex (scoped_lock): Implement new C++17 template.
559 * testsuite/30_threads/scoped_lock/cons/1.cc: New test.
560 * testsuite/30_threads/scoped_lock/requirements/
561 explicit_instantiation.cc: New test.
562 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: New test.
564 2017-03-02 Gerald Pfeifer <gerald@pfeifer.com>
565 François Dumont <frs.dumont@gmail.com>
566 Jonathan Wakely <jwakely@redhat.com>
568 * doc/xml/manual/debug_mode.xml: Update and simplify note
569 on link- and run-time coexistence.
571 2017-03-02 Jonathan Wakely <jwakely@redhat.com>
573 * testsuite/17_intro/headers/names.cc: Rename to ...
574 * testsuite/17_intro/names.cc: ... here.
577 * include/bits/hashtable_policy.h (__clp2): Use reserved names for
578 parameters and local variables.
579 * include/bits/ios_base.h (make_error_code, make_error_condition):
581 * include/bits/list.tcc (list::sort): Likewise.
582 * include/bits/mask_array.h (mask_array): Likewise.
583 * include/bits/regex.h (regex_token_iterator): Likewise.
584 * include/bits/slice_array.h (slice_array): Likewise.
585 * include/bits/stl_algo.h (__sample): Likewise.
586 * include/std/memory (undeclare_no_pointers): Likewise.
587 * include/std/type_traits (is_callable_v, is_nothrow_callable_v):
589 * libsupc++/exception_ptr.h (__dest_thunk): Likewise.
590 * testsuite/17_intro/headers/names.cc: New test.
593 * include/std/functional (bind::_Res_type_impl): Fix incorrect use of
594 result_of that loses top-level cv-qualifiers.
595 * testsuite/20_util/bind/79798.cc: New test.
597 2017-03-01 Gerald Pfeifer <gerald@pfeifer.com>
599 * doc/xml/manual/documentation_hacking.xml: Tweak link to
602 2017-02-23 Jonathan Wakely <jwakely@redhat.com>
604 * include/experimental/iterator: Include <iterator>.
605 * testsuite/experimental/iterator/requirements.cc: Check for contents
608 2017-02-19 Dinka Ranns <dinka.ranns@googlemail.com>
610 C++17 GB50 resolution
611 * include/std/chrono (duration::operator++()): Add
612 _GLIBCXX17_CONSTEXPR.
613 (duration::operator++(int)): Likewise.
614 (duration::operator--()): Likewise.
615 (duration::operator--(int)): Likewise.
616 (duration::operator+=(const duration&)): Likewise.
617 (duration::operator-=(const duration&)): Likewise.
618 (duration::operator*=(const rep&)): Likewise.
619 (duration::operator/=(const rep&)): Likewise.
620 (duration::operator%=(const rep&)): Likewise.
621 (duration::operator%=(const duration&)): Likewise.
622 (time_point::operator+=(const duration&)): Likewise.
623 (time_point::operator-=(const duration&)): Likewise.
624 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: New test.
625 * testsuite/20_util/duration/literals/range.cc: Adjust dg-error.
626 * testsuite/20_util/time_point/arithmetic/constexpr.cc: New test.
628 2017-02-19 Gerald Pfeifer <gerald@pfeifer.com>
630 * doc/xml/manual/debug.xml: Adjust link to ThreadSanitizer.
632 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
634 * doc/xml/manual/io.xml: Update link to groups.google.com.
635 Tweak link description.
637 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
639 * doc/xml/manual/profile_mode.xml: Fix link.
641 2017-02-16 Gerald Pfeifer <gerald@pfeifer.com>
643 * doc/xml/manual/policy_data_structures.xml: Simplify and
644 standardize references to boost.org.
645 * doc/xml/manual/policy_data_structures_biblio.xml: Ditto.
646 * doc/xml/manual/shared_ptr.xml: Ditto.
648 2017-02-16 Jonathan Wakely <jwakely@redhat.com>
651 * src/c++11/snprintf_lite.cc (__concat_size_t): Calculate length
652 written to buffer, not length remaining in buffer.
654 2017-02-15 Tim Shen <timshen@google.com>
657 * include/std/variant (operator<(), operator>(), operator<=(),
658 operator>=(), operator==(), operator!=()): Implement P0393R3.
659 * testsuite/20_util/variant/compile.cc: Adjust tests.
660 * testsuite/20_util/variant/run.cc: Adjust tests.
662 2017-02-15 Tim Shen <timshen@google.com>
665 * include/std/variant (visit()): Forward variant types to the return
667 * testsuite/20_util/variant/compile.cc: Add test cases.
669 2017-02-13 H.J. Lu <hongjiu.lu@intel.com>
672 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
674 2017-02-13 Jakub Jelinek <jakub@redhat.com>
677 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
678 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
679 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Likewise.
680 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
681 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Likewise.
682 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
683 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Likewise.
684 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
685 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
687 2017-02-13 Jonathan Wakely <jwakely@redhat.com>
690 * include/std/future (__future_base::_Task_state::_M_run)
691 (__future_base::_Task_state::_M_run_delayed): Use lvalue types in
692 result_of expressions.
693 * testsuite/30_threads/packaged_task/79486.cc: New.
695 2017-02-11 Jonathan Wakely <jwakely@redhat.com>
698 * include/bits/shared_ptr_base.h (__shared_ptr(_Yp*, _Deleter))
699 (__shared_ptr(_Yp*, _Deleter, _Alloc)): Use lvalue types in
701 * testsuite/20_util/shared_ptr/cons/79467.cc: New.
703 * include/bits/atomic_base.h: Re-indent.
705 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
707 * doc/xml/manual/profile_mode.xml: Update a paper reference.
709 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
711 * src/c++11/snprintf_lite.cc (__err): Use https for bug reporting.
713 2017-02-08 Jonathan Wakely <jwakely@redhat.com>
715 * doc/xml/manual/policy_data_structures.xml: Fix spelling of author's
717 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise. Remove
718 broken links to texts that are no longer online.
719 * doc/xml/manual/profile_mode.xml: Update links to CGO 2009 paper and
721 * doc/xml/manual/using.xml: Update links to memory model information.
722 * doc/xml/manual/using_exceptions.xml: Update link to "Appendix E:
723 Standard-Library Exception Safety".
724 * doc/html/*: Regenerate.
726 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
728 * doc/xml/manual/profile_mode.xml: Unbreak link to
729 "Optimizing Sorting with Machine Learning Algorithms".
731 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
733 * src/c++11/snprintf_lite.cc (__err): Update bug reporting URL.
735 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
737 * doc/xml/manual/abi.xml: Update link to "Sun Studio 11: C++
740 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
742 * doc/html/ext/lwg-active.html: Remove.
743 * doc/html/ext/lwg-closed.html: Ditto.
744 * doc/html/ext/lwg-defects.html: Ditto.
746 * doc/Makefile.am (xml_extradir): Remove.
748 (stamp-html-docbook-lwg): Remove recipe...
749 (stamp-html-docbook-data): ...and its use here.
750 * doc/Makefile.in: Regenerate.
752 * doc/xml/manual/intro.xml: Shorten two paragraphs explaining
753 the relationship to the upstream working group.
754 Replace a local link to ../ext/lwg-active.html by the upstream one.
755 Replace all reference to ../ext/lwg-defects.html by a new entity
756 &DR; which refers to the upstream address.
758 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
760 * doc/xml/manual/status_cxx2017.xml: Fix link to N4284.
762 2017-02-06 Jonathan Wakely <jwakely@redhat.com>
765 * testsuite/20_util/duration/literals/range.cc: Prune extra output
768 2017-02-06 Gerald Pfeifer <gerald@pfeifer.com>
770 * doc/xml/manual/documentation_hacking.xml: Update URL of the
771 DocBook Element Reference. Use that term as link description
773 epubcheck has moved to GitHub.
774 Remove obsolete link to DocBook Publishing Tools.
776 2017-02-03 Jonathan Wakely <jwakely@redhat.com>
779 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Restore ABI override
780 so new ios::failure can be caught even when old ABI is the default.
781 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
782 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
783 exceptions_failbit.cc: Likewise.
784 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
785 exceptions_failbit.cc: Likewise.
786 * testsuite/27_io/basic_istream/extractors_other/char/
787 exceptions_null.cc: Likewise.
788 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
789 exceptions_null.cc: Likewise.
790 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
791 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
792 * testsuite/27_io/basic_ostream/inserters_other/char/
793 exceptions_null.cc: Likewise.
794 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
795 exceptions_null.cc: Likewise.
796 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
799 * src/c++11/Makefile.am: Add new files.
800 * src/c++11/Makefile.in: Regenerate.
801 * src/c++11/cow-string-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
802 (operator<<, operator>>, getline): Move explicit instantiations to ...
803 * src/c++11/cow-string-io-inst.cc: ... new file.
804 * src/c++11/cow-wstring-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
805 (operator<<, operator>>, getline): Move explicit instantiations to ...
806 * src/c++11/cow-wstring-io-inst.cc: ... new file.
807 * src/c++11/functexcept.cc (__throw_ios_failure, __throw_system_error)
808 (__throw_future_error, __throw_bad_function_call):
809 (__throw_regex_error): Move functions for C++11 exceptions to the
810 files that define the exception types.
811 * src/c++11/functional.cc (__throw_bad_function_call): Move here.
812 * src/c++11/future.cc (__throw_future_error): Likewise.
813 * src/c++11/ios.cc (__throw_ios_failure): Likewise.
814 * src/c++11/regex.cc (__throw_regex_error): Likewise.
815 * src/c++11/snprintf_lite.cc (__concat_size_t): Print decimal
816 representation directly instead of calling __int_to_char.
817 * src/c++11/sso_string.cc (__sso_string): New file for definition
818 of __sso_string type.
819 * src/c++11/string-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
820 explicit instantiations of narrow string I/O functions.
821 * src/c++11/system_error.cc (__throw_system_error): Move here.
822 (__sso_string): Move to new file.
823 * src/c++11/wstring-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
824 explicit instantiations of wide string I/O functions.
825 * src/c++98/misc-inst.cc [_GLIBCXX_USE_CXX11_ABI] (operator<<)
826 (operator>>, getline): Remove explicit instantiations from here.
828 2017-02-02 H.J. Lu <hongjiu.lu@intel.com>
830 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
832 2017-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
834 * configure.host: Separate Solaris/SPARC and x86 baselines.
835 * config/abi/post/solaris2.10/baseline_symbols.txt: Move ...
836 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: ... here.
837 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Move ...
838 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
840 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Move ...
841 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: ... here.
842 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: New file.
843 * config/abi/post/solaris2.11/baseline_symbols.txt: Move ...
844 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: ... here.
845 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Move ...
846 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
848 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Move ...
849 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: ... here.
850 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: New file.
852 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
853 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
854 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
855 * config/abi/post/solaris2.11/baseline_symbols.txt: Likewise.
856 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Likewise.
857 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Likewise.
859 2017-02-01 Jonathan Wakely <jwakely@redhat.com>
862 * include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
864 (_Iter_comp_to_iter): Likewise.
865 * testsuite/25_algorithms/search/78346.cc: New test.
868 * config/abi/pre/gnu.ver: Remove recently added symbols.
869 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
870 (basic_string::_M_copy_assign): Remove.
871 (basic_string::operator=(const basic_string&)): Don't dispatch to
872 _M_copy_assign. If source object is small just deallocate, otherwise
873 perform new allocation before making any changes.
874 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
875 (basic_string::_M_copy_assign(const basic_string&, true_type)):
877 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
878 Test cases where the allocators are equal or the string is small.
879 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
882 2017-01-30 Ville Voutilainen <ville.voutilainen@gmail.com>
884 Implement LWG 2825, LWG 2756 breaks class template argument
885 deduction for optional.
886 * include/std/optional: Add a deduction guide.
887 * testsuite/20_util/optional/cons/deduction_guide.cc: New.
889 2017-01-27 Jonathan Wakely <jwakely@redhat.com>
892 * config/abi/pre/gnu.ver: Add new symbols.
893 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
894 (basic_string::_M_copy_assign): New overloaded functions to perform
896 (basic_string::operator=(const basic_string&)): Dispatch to
898 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
899 (basic_string::_M_copy_assign(const basic_string&, true_type)):
900 Define, performing rollback on exception.
901 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
902 Test exception-safety guarantee.
903 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
905 * testsuite/util/testsuite_allocator.h (uneq_allocator::swap): Make
908 2017-01-26 Jonathan Wakely <jwakely@redhat.com>
911 * include/tr1/complex (conj): Remove using-declaration and restore
912 overloads, reverting previous change.
914 * testsuite/23_containers/list/operations/78389.cc: Fix for C++11
916 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
917 Mark as unsupported in C++98 mode.
918 * testsuite/23_containers/queue/requirements/constructible.cc:
920 * testsuite/23_containers/stack/requirements/constructible.cc:
922 * testsuite/25_algorithms/make_heap/movable.cc: Fix for C++11 mode.
925 * include/bits/c++config (literals::string_view_literals::__7): Add.
926 Only declare versioned namespaces for the relevant C++ dialects.
927 * include/experimental/bits/erase_if.h (fundamentals_v2::__detail):
928 Add versioning macros.
929 * include/experimental/bits/lfts_config.h:
930 (fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add.
931 * include/experimental/string_view (fundamentals_v2::__detail):
932 Add versioning macros.
933 (fundamentals_v2::__detail::__identity): Remove.
934 (fundamentals_v2::__detail::__idt): Use common_type instead of
935 __detail::__identity.
936 * include/std/string_view (__detail::__identity, __detail::__idt):
938 (literals::string_view_literals): Fix nesting of versioning macros.
941 * libsupc++/del_opa.cc (operator delete(void*, std::align_val_t))
942 [!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN
943 && !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC]:
944 Retrieve original pointer value allocated by malloc.
945 * libsupc++/new_opa.cc [!_GLIBCXX_HAVE_ALIGNED_ALLOC
946 && !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN
947 && !_GLIBCXX_HAVE__ALIGNED_MALLOC] (aligned_alloc(size_t, size_t)):
948 Define, adjusting pointer value allocated by malloc and storing for
949 retrieval by operator delete.
951 2017-01-26 Jakub Jelinek <jakub@redhat.com>
953 * libsupc++/eh_atomics.h: Update copyright years.
954 * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years.
956 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
960 * include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
961 (proj(T), conj(T)): Change return types per DR 1522.
962 * include/tr1/complex (conj): Remove overloads and use std::conj.
963 * testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
964 * testsuite/26_numerics/complex/dr781.cc: ... this, and update.
965 * testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
966 real(T) and imag(T). Allow testing for C++11 too.
968 2017-01-24 Jonathan Wakely <jwakely@redhat.com>
971 * include/experimental/string_view (operator==): Check sizes first.
972 * include/std/string_view (operator==): Likewise.
974 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
976 * testsuite/experimental/array/make_array.cc: Restore <functional>
979 2017-01-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
981 * testsuite/29_atomics/atomic/69301.cc: Require atomic builtins.
983 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
986 * include/experimental/array (__make_array_elem): New class template
987 and partial specialization.
988 (__is_reference_wrapper): Move into __make_array_elem specialization.
989 (make_array): Use __make_array_elem to determine element type and move
990 static assertion into specialization. Qualify std::forward call.
991 (to_array): Add exception specifiation.
992 * testsuite/experimental/array/make_array.cc: Test argument types
993 without a common type.
994 * testsuite/experimental/array/neg.cc: Adjust expected error message.
996 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
998 * doc/xml/manual/debug.xml: code.google.com uses https now.
1000 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
1002 * doc/xml/manual/test.xml: Fix link into gccint online manual.
1004 2017-01-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1006 Make poisoned hashes SFINAE away the call operator of the hash.
1007 * include/bits/functional_hash.h
1008 (__poison_hash::__enable_hash_call): New.
1009 * include/std/optional (__optional_hash_call_base): New.
1010 (hash<optional<_Tp>>): Derive from the new base,
1011 move the hash function into that base.
1012 * include/std/variant (__variant_hash_call_base_impl): New.
1013 (__variant_hash_call_base): Likewise.
1014 (hash<variant<_Types...>>): Derive from the new base,
1015 move the hash function into that base.
1016 * testsuite/20_util/optional/hash.cc: Add tests for is_callable.
1017 * testsuite/20_util/variant/hash.cc: Likewise.
1019 2017-01-20 Joe Seymour <joe.s@somniumtech.com>
1021 * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t.
1022 * configure: Regenerate.
1024 2017-01-20 Jonathan Wakely <jwakely@redhat.com>
1027 * include/bits/random.h (uniform_real_distribution::param_type)
1028 (normal_distribution::param_type, lognormal_distribution::param_type)
1029 (gamma_distribution::param_type, chi_squared_distribution::param_type)
1030 (cauchy_distribution::param_type, fisher_f_distribution::param_type)
1031 (student_t_distribution::param_type)
1032 (bernoulli_distribution::param_type, binomial_distribution::param_type)
1033 (geometric_distribution::param_type)
1034 (negative_binomial_distribution::param_type)
1035 (poisson_distribution::param_type)
1036 (exponential_distribution::param_type)
1037 (weibull_distribution::param_type)
1038 (extreme_value_distribution::param_type)
1039 (discrete_distribution::param_type)
1040 (piecewise_constant_distribution::param_type)
1041 (piecewise_linear_distribution::param_type): Define operator!=.
1042 * include/bits/uniform_int_dist.h
1043 (uniform_int_distribution::param_type): Likewise.
1044 * include/ext/random (beta_distribution::param_type)
1045 (rice_distribution::param_type, nakagami_distribution::param_type)
1046 (pareto_distribution::param_type, k_distribution::param_type)
1047 (arcsine_distribution::param_type, hoyt_distribution::param_type)
1048 (triangular_distribution::param_type)
1049 (von_mises_distribution::param_type)
1050 (hypergeometric_distribution::param_type)
1051 (logistic_distribution::param_type)
1052 (uniform_on_sphere_distribution::param_type)
1053 (uniform_inside_sphere_distribution::param_type): Likewise.
1054 * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc:
1055 Test construction with param_type.
1056 * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc:
1058 * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
1060 * testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc:
1062 * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
1064 * testsuite/26_numerics/random/extreme_value_distribution/cons/
1066 * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc:
1068 * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc:
1070 * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc:
1072 * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc:
1074 * testsuite/26_numerics/random/negative_binomial_distribution/cons/
1076 * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
1078 * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc:
1080 * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
1082 * testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc:
1084 * testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc:
1086 * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc:
1088 * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise.
1089 * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise.
1090 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
1091 * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc:
1093 * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise.
1094 * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise.
1095 * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise.
1096 * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
1097 * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise.
1098 * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise.
1099 * testsuite/ext/random/triangular_distribution/cons/parms.cc:
1101 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/
1103 * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise.
1106 * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
1107 (__allocator_traits_base::__size_type): Remove.
1108 (allocator_traits::_Ptr): New class template to detect const and void
1109 pointer types without instantiating pointer_traits::rebind
1111 (allocator_traits::_Diff): Likewise for detecting difference_type.
1112 (allocator_traits::_Size): New class template to detect size_type
1113 without instantiating make_unsigned unnecessarily.
1114 * include/bits/ptr_traits.h (pointer_traits::element_type): Use
1115 __detected_or_t instead of __detected_or_t_.
1116 * include/std/type_traits (__detected_or_t_): Remove.
1117 * testsuite/20_util/allocator_traits/members/pointers.cc: New test.
1121 * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
1122 Replace with class template using void_t.
1123 (__alloc_rebind): Define in terms of
1124 __allocator_traits_base::__rebind.
1125 (allocator_traits): Remove unconditional static_assert for
1127 * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
1128 (pointer_traits::__rebind): Replace with class template using void_t.
1129 (pointer_traits::rebind): Define in terms of __rebind.
1130 (pointer_traits): Remove unconditional static_assert for rebind.
1131 * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
1132 * testsuite/20_util/pointer_traits/rebind.cc: New test.
1135 * include/experimental/any (__any_caster): Avoid instantiating
1136 manager function for types that can't be stored in any.
1137 * include/std/any (__any_caster): Likewise.
1138 * testsuite/20_util/any/misc/any_cast.cc: Test non-copyable type.
1139 * testsuite/experimental/any/misc/any_cast.cc: Likewise.
1142 * include/bits/stl_algo.h (is_partitioned): Use increment instead of
1145 2017-01-19 Jonathan Wakely <jwakely@redhat.com>
1148 * include/bits/shared_ptr_base.h (__enable_shared_from_this_base):
1150 (__enable_shared_from_this): Declare __shared_ptr as a friend.
1151 * testsuite/ext/shared_ptr/1.cc: New test.
1154 * include/bits/stl_algo.h (is_partitioned): Don't retest the partition
1156 * testsuite/25_algorithms/is_partitioned/2.cc: New test.
1158 * doc/xml/manual/abi.xml: Fix typo.
1159 * doc/html/manual/abi.html: Likewise.
1162 * include/bits/predefined_ops.h (_Iter_less_val, _Val_less_iter): Add
1163 converting constructors from _Iter_less_iter.
1164 (_Iter_comp_val, _Val_comp_iter): Add converting constructors from
1166 (__iter_comp_val(_Iter_comp_iter<C>): Use converting constructor.
1167 (__val_comp_iter(_Iter_comp_iter<C>): Likewise.
1168 * include/bits/stl_heap.h (__is_heap_until, __push_heap, __pop_heap)
1169 (__make_heap, __sort_heap): Change _Compare parameters to references.
1170 (__is_heap, push_heap, __adjust_heap, __pop_heap, pop_heap)
1171 (__make_heap, make_heap, sort_heap, is_heap_until): Pass comparison
1172 functions as lvalues.
1173 (is_heap): Call __is_heap_until directly to avoid copying __comp.
1174 * testsuite/23_containers/priority_queue/67085.cc: Adjust test to
1175 count copies during construction with empty sequence.
1178 * include/bits/stl_heap.h (__is_heap): Use _GLIBCXX_MOVE.
1179 (__make_heap, __sort_heap): Don't use _GLIBCXX_MOVE inside loops.
1180 * testsuite/23_containers/priority_queue/67085.cc: Adjust expected
1182 * testsuite/25_algorithms/make_heap/movable.cc: New test.
1185 * include/bits/stl_heap.h (push_heap, __adjust_heap, __pop_heap)
1186 (pop_heap, __make_heap, make_heap, __sort_heap, sort_heap): Use
1187 _GLIBCXX_MOVE when passing comparison function to other functions.
1188 (is_heap_until, is_heap): Use std::move when passing comparison
1190 * testsuite/23_containers/priority_queue/67085.cc: New test.
1193 * doc/xml/manual/abi.xml (abi.versioning.history): Add markup to
1194 macro names, filenames, and literal values. Document _GLIBCXX_RELEASE.
1195 Document that the deprecated _GLIBCXX_VERSION macro was removed for
1197 * doc/html/*: Regenerate.
1198 * include/Makefile.am (_GLIBCXX_RELEASE): Set value.
1199 * include/Makefile.in: Regenerate.
1200 * include/bits/c++config (_GLIBCXX_RELEASE): Add #define.
1201 * testsuite/ext/profile/mutex_extensions_neg.cc: Use lineno of 0 in
1204 2017-01-18 Jonathan Wakely <jwakely@redhat.com>
1207 * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
1208 aligned buffer instead of default-initialized variable.
1209 * testsuite/29_atomics/atomic/69301.cc: New test.
1210 * include/experimental/memory (observer_ptr::release): Use reserved
1212 * include/ext/pointer.h (_Pointer_adapter::operator++(int))
1213 (_Pointer_adapter::operator--(int)): Likewise.
1216 * include/experimental/random (randint): Use temporary instead of
1217 thread_local static.
1219 2017-01-17 Joshua Conner <joshconner@google.com>
1221 * crossconfig.m4: Add fuchsia OS.
1222 * configure: Regenerate.
1224 2017-01-17 Jonathan Wakely <jwakely@redhat.com>
1227 * doc/xml/manual/abi.xml (abi.versioning.history): Explain why the
1228 __GLIBCXX__ macro is not useful. Remove redundant date information
1229 and link to the GCC release timeline.
1230 (abi.versioning.active): Move partial sentence into the previous
1232 * doc/html/*: Regenerate.
1235 * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
1236 of remove_reference.
1237 * testsuite/18_support/nested_exception/79114.cc: New test.
1239 2017-01-17 Jakub Jelinek <jakub@redhat.com>
1242 * configure.ac: Add GCC_BASE_VER.
1243 * fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
1244 get version from BASE-VER file.
1245 * po/Makefile.in: Regenerated.
1246 * libsupc++/Makefile.in: Regenerated.
1247 * testsuite/Makefile.in: Regenerated.
1248 * src/Makefile.in: Regenerated.
1249 * configure: Regenerated.
1250 * Makefile.in: Regenerated.
1251 * include/Makefile.in: Regenerated.
1252 * doc/Makefile.in: Regenerated.
1253 * python/Makefile.in: Regenerated.
1254 * src/c++11/Makefile.in: Regenerated.
1255 * src/c++98/Makefile.in: Regenerated.
1256 * src/filesystem/Makefile.in: Regenerated.
1258 2017-01-16 Jonathan Wakely <jwakely@redhat.com>
1261 * src/c++11/functexcept.cc: Use new ABI for std::ios_base::failure
1263 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Don't override ABI
1264 for test, so new ios::failure can be caught.
1265 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1266 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1267 exceptions_failbit.cc: Likewise.
1268 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1269 exceptions_failbit.cc: Likewise.
1270 * testsuite/27_io/basic_istream/extractors_other/char/
1271 exceptions_null.cc: Likewise.
1272 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1273 exceptions_null.cc: Likewise.
1274 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1275 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1276 * testsuite/27_io/basic_ostream/inserters_other/char/
1277 exceptions_null.cc: Likewise.
1278 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1279 exceptions_null.cc: Likewise.
1280 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1283 * include/bits/locale_classes.h (locale::facet::__shim): Change from
1284 private to protected.
1285 * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
1286 make locale::facet::__shim accessible.
1288 2017-01-16 Ville Voutilainen <ville.voutilainen@gmail.com>
1291 * include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
1292 (merge(list&&, _StrictWeakOrdering)): Likewise.
1293 * testsuite/23_containers/list/operations/78389.cc: Add
1294 better test for the sizes.
1296 2017-01-14 Jonathan Wakely <jwakely@redhat.com>
1298 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
1299 Skip test when -D_GLIBCXX_PROFILE mode is included in options.
1300 * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
1301 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
1303 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
1304 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
1305 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
1306 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
1307 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
1309 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
1311 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
1313 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
1315 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
1317 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
1318 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
1319 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
1320 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
1321 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
1322 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
1323 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
1324 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
1325 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
1326 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
1327 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
1328 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
1329 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1331 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
1334 * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
1335 retry fclose on EINTR.
1337 * include/profile/base.h: Remove unused header that leads to header
1338 cycle in C++17 mode.
1341 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
1342 Make _If_sv private.
1343 [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
1344 basic_string_view arguments.
1347 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
1348 redundant option from cxxflags.
1349 (check_effective_target_cxx11-abi): Define.
1350 * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
1352 * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
1353 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1355 * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
1357 * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
1358 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
1360 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
1362 * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
1363 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
1365 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1367 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
1369 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
1371 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
1373 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
1375 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
1377 * testsuite/23_containers/list/61347.cc: Likewise.
1378 * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
1379 * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
1381 2017-01-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1384 * include/bits/list.tcc (merge(list&&)):
1385 Adjust list sizes if the comparator throws.
1386 (merge(list&&, _StrictWeakOrdering)): Likewise.
1387 (sort()): Splice elements back from the scratch buffers
1388 if the comparator throws.
1389 (sort(_StrictWeakOrdering)): Likewise.
1390 * testsuite/23_containers/list/operations/78389.cc: New.
1392 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
1394 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
1395 XFAIL for C++17 until node reinsertion supports fancy pointers.
1398 * testsuite/20_util/add_pointer/value.cc: Test forming function
1401 2017-01-13 Michael Brune <lucdanton@free.fr>
1404 * include/std/type_traits (__is_referenceable): Handle noexcept
1407 2017-01-12 Jonathan Wakely <jwakely@redhat.com>
1410 * include/bits/stl_queue.h (queue, priority_queue): Remove default
1411 member-initializers and define default constructors as templates with
1413 * include/bits/stl_stack.h (stack): Likewise.
1414 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
1416 * testsuite/23_containers/priority_queue/requirements/
1417 explicit_instantiation/1.cc: Test more instantiations.
1418 * testsuite/23_containers/priority_queue/requirements/
1419 explicit_instantiation/1_c++98.cc: Likewise.
1420 * testsuite/23_containers/queue/requirements/constructible.cc: New.
1421 * testsuite/23_containers/stack/requirements/constructible.cc: New.
1424 * doc/xml/manual/intro.xml: Document LWG 2781 change.
1425 * doc/html/*: Regenerate.
1426 * include/std/functional (_Function_base::_Ref_manager): Remove.
1427 (_Function_handler): Remove partial specializations for
1429 (function::target): Remove special case for const qualification.
1430 * testsuite/20_util/function/6.cc: Adjust tests for target type.
1431 * testsuite/20_util/function/7.cc: Likewise.
1432 * testsuite/20_util/function/8.cc: Likewise.
1434 2017-01-11 Jonathan Wakely <jwakely@redhat.com>
1437 * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
1438 (map::equal_range): Fix return type of heterogeneous overloads.
1439 * include/bits/stl_multimap.h (multimap::lower_bound)
1440 (multimap::upper_bound, multimap::equal_range): Likewise.
1441 * include/bits/stl_multiset.h (multiset::lower_bound)
1442 (multiset::upper_bound, multiset::equal_range): Likewise.
1443 * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
1444 (set::equal_range): Likewise.
1445 * testsuite/23_containers/map/operations/2.cc
1446 * testsuite/23_containers/multimap/operations/2.cc
1447 * testsuite/23_containers/multiset/operations/2.cc
1448 * testsuite/23_containers/set/operations/2.cc
1451 * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
1452 the heterogeneous comparison can only find one match.
1453 * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
1454 * testsuite/23_containers/map/operations/2.cc: Test count works with
1455 comparison function that just partitions rather than sorting.
1456 * testsuite/23_containers/set/operations/2.cc: Likewise.
1458 2017-01-11 Ville Voutilainen <ville.voutilainen@gmail.com>
1460 Reduce the size of variant, it doesn't need an index of
1461 type size_t internally.
1462 * include/std/variant (parse_numbers.h): New include.
1463 (__select_index): New.
1464 (_Variant_storage<false, _Types...>::_M_reset_impl): Use
1465 _index_type for comparison with variant_npos.
1466 (_Variant_storage<false, _Types...>::__index_type): New.
1467 (_Variant_storage<false, _Types...>::_M_index): Change the
1468 type from size_t to __index_type.
1469 (_Variant_storage<true, _Types...>::__index_type): New.
1470 (_Variant_storage<true, _Types...>::_M_index): Change the
1471 type from size_t to __index_type.
1472 (_Variant_base::_M_valid): Use _Storage::__index_type
1473 for comparison with variant_npos.
1474 (variant::index): Use _Base::_Storage::__index_type
1475 for comparison with variant_npos.
1476 * testsuite/20_util/variant/index_type.cc: New.
1478 2017-01-10 Jonathan Wakely <jwakely@redhat.com>
1480 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
1481 effective target selector to prevent running in C++17 mode.
1484 * include/bits/stl_queue.h (queue::c): Add default member initializer.
1485 (queue::queue()): Add constructor and define as defaulted.
1486 (queue::queue(_Sequence&&)): Remove default argument.
1487 (priority_queue::c, priority_queue::comp): Add default member
1489 (priority_queue::priority_queue()): Add constructor and define as
1491 (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
1492 Remove default argument for first parameter.
1493 * include/bits/stl_stack.h (stack::c): Add default member initializer.
1494 (stack::stack()): Add constructor and define as defaulted.
1495 (stack::stack(const _Sequence&)): Remove default argument.
1496 * testsuite/23_containers/priority_queue/requirements/
1497 explicit_instantiation/1.cc: Test explicit instantiation with
1498 non-DefaultConstructible sequence.
1499 * testsuite/23_containers/priority_queue/77528.cc: New test.
1500 * testsuite/23_containers/priority_queue/requirements/
1501 explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
1502 * testsuite/23_containers/queue/77528.cc: New test.
1503 * testsuite/23_containers/queue/requirements/explicit_instantiation/
1504 1.cc: Test explicit instantiation with non-DefaultConstructible
1506 * testsuite/23_containers/queue/requirements/explicit_instantiation/
1507 1_c++0x.cc: Replace with 1_c++98.cc.
1508 * testsuite/23_containers/stack/77528.cc: New test.
1509 * testsuite/23_containers/stack/requirements/explicit_instantiation/
1510 1.cc: Test explicit instantiation with non-DefaultConstructible
1512 * testsuite/23_containers/stack/requirements/explicit_instantiation/
1513 1_c++0x.cc: Replace with 1_c++98.cc.
1515 2017-01-10 Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
1517 * include/bits/locale_facets_nonio.tcc
1518 (time_get::_M_extract_via_format): Avoid compilation errors with
1519 non-standard struct tm.
1521 2017-01-10 François Dumont <fdumont@gcc.gnu.org>
1522 Jonathan Wakely <jwakely@redhat.com>
1524 * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
1525 (is_specialization, strip_versioned_namespace): New helpers functions
1526 to work with symbols in the versioned namespace.
1527 (Printer.add_version): Add second name using versioned namespace.
1528 (add_one_template_type_printer, add_one_type_printer): Add second
1529 type printers using versioned namespace.
1530 (register_type_printers): Add template type printer for basic_string.
1531 (build_libstdcxx_dictionary): Remove dead code.
1532 * python/libstdcxx/v6/xmethods.py: Make all matchers look for
1533 versioned namespace.
1534 * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
1536 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1538 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
1541 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
1542 functions separately on darwin and if they're missing define
1543 _GLIBCXX_NO_C99_ROUNDING_FUNCS.
1544 * config.h.in: Regenerate.
1545 * configure: Regenerate.
1546 * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
1547 (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
1549 * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
1550 to detect correct thread_local destructors.
1551 * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
1554 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
1555 Aditya Kumar <hiraditya@msn.com>
1558 * include/bits/basic_string.tcc
1559 (basic_string::find(const CharT*, size_type, size_type)): Optimize.
1561 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
1563 * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
1564 * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
1566 * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
1567 Include <cassert> header.
1570 * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
1571 * configure: Regenerate.
1573 2017-01-06 Barrett Adair <barrettellisadair@gmail.com>
1574 Jonathan Wakely <jwakely@redhat.com>
1576 * include/std/variant (variant, swap): Replace __and_ usage with fold
1579 2017-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1582 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
1583 * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
1584 GLIBCXX_CHECK_ASSEMBLER_HWCAP.
1585 * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
1587 * aclocal.m4: Regenerate.
1588 * configure: Regenerate.
1589 * Makefile.in, doc/Makefile.in, include/Makefile.in,
1590 libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
1591 src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
1592 src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
1594 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
1596 * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
1599 * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
1600 (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
1601 (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
1602 move function objects.
1603 (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
1604 (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
1605 * testsuite/25_algorithms/sort/78991.cc: New test.
1607 2017-01-05 Jonathan Wakely <jwakely@redhat.com>
1609 * include/bits/std_function.h (function::_Signature_type): Remove.
1610 (function::function(_Functor)): Adjust.
1612 2017-01-05 Tim Shen <timshen@google.com>
1615 * include/std/variant (__gen_vtable_impl): rename __unused to
1616 __dimensions to avoid naming conflict.
1618 2017-01-04 Jonathan Wakely <jwakely@redhat.com>
1621 * config.h.in: Regenerate.
1622 * configure: Likewise.
1623 * configure.ac: Check for __cxa_thread_atexit.
1624 * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
1625 Don't define __cxa_thread_atexit if libc provides it.
1627 2017-01-04 Ville Voutilainen <ville.voutilainen@gmail.com>
1629 Implement 2801, Default-constructibility of unique_ptr.
1630 * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
1631 (unique_ptr::_DeleterConstraint): Likewise.
1632 (unique_ptr()): Constrain.
1633 (unique_ptr(pointer)): Likewise.
1634 (unique_ptr(nullptr_t)): Likewise.
1635 (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
1636 (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
1637 (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
1638 (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
1639 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
1640 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
1641 * testsuite/20_util/unique_ptr/cons/default.cc: New.
1642 * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
1644 2017-01-04 Pauli Nieminen <suokkos@gmail.com>
1645 Jonathan Wakely <jwakely@redhat.com>
1648 * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
1649 * config.h.in: Regenerate.
1650 * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
1651 (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
1652 exports for exception_ptr, nested_exception, and future conditional.
1653 [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
1654 exports for exception_ptr, nested_exception, and future conditional.
1655 * configure: Regenerate.
1656 * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
1657 * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
1658 * libsupc++/eh_atomics.h: New file for internal use only.
1659 (__eh_atomic_inc, __eh_atomic_dec): New.
1660 * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
1661 (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
1662 (rethrow_exception): Use eh_atomics.h reference counting helpers.
1663 * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
1664 * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
1665 * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
1666 * libsupc++/exception_ptr.h: Likewise.
1667 * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
1668 * libsupc++/nested_exception.cc: Remove check for
1669 ATOMIC_INT_LOCK_FREE.
1670 * libsupc++/nested_exception.h: Likewise.
1671 * src/c++11/future.cc: Likewise.
1672 * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
1673 * testsuite/18_support/nested_exception/*: Likewise.
1674 * testsuite/30_threads/async/*: Likewise.
1675 * testsuite/30_threads/future/*: Likewise.
1676 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
1677 * testsuite/30_threads/packaged_task/*: Likewise.
1678 * testsuite/30_threads/promise/*: Likewise.
1679 * testsuite/30_threads/shared_future/*: Likewise.
1681 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
1683 * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
1684 defaults to https; adjust reference.
1686 2017-01-03 Jonathan Wakely <jwakely@redhat.com>
1689 * include/std/thread (thread(const thread&&)): Add deleted
1691 * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
1693 * doc/xml/manual/spine.xml: Update copyright years.
1694 * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
1695 * doc/xml/manual/test.xml: Likewise.
1696 * doc/html/*: Regenerate.
1698 2017-01-01 Gerald Pfeifer <gerald@pfeifer.com>
1700 * doc/xml/faq.xml: Update address of C++ ABI link.
1701 * doc/xml/manual/abi.xml: Ditto.
1703 2017-01-01 Jakub Jelinek <jakub@redhat.com>
1705 Update copyright years.
1707 Copyright (C) 2017 Free Software Foundation, Inc.
1709 Copying and distribution of this file, with or without modification,
1710 are permitted in any medium without royalty provided the copyright
1711 notice and this notice are preserved.