1 2017-04-28 Tom de Vries <tom@codesourcery.com>
3 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
4 superfluous '{ target *-*-* }' in dg-(error|warning|message|bogus).
6 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
8 * include/ext/pb_ds/detail/list_update_map_/iterators_fn_imps.hpp
9 (PB_DS_CLASS_C_DEC::end()): Remove redundant const in cast type.
10 * testsuite/util/testsuite_rng.h (twister_rand_gen::get_prob()):
13 2017-04-26 Jonathan Wakely <jwakely@redhat.com>
15 * testsuite/23_containers/deque/allocator/move_assign-2.cc: Improve
16 comment. Ensure first test works because allocator type propagates and
17 not because is_always_equal is true.
18 * testsuite/23_containers/vector/52591.cc: Likewise. Restore original
19 testcase that instantiates the move-assignment operator.
21 2017-04-24 Jonathan Wakely <jwakely@redhat.com>
24 * include/bits/random.tcc (gamma_distribution::operator()): Fix magic
25 number used in loop condition.
28 * include/bits/refwrap.h (ref, cref): Qualify calls.
29 * testsuite/20_util/reference_wrapper/80504.cc: New test.
32 * include/experimental/optional (optional::swap): Fix exception
35 2017-04-21 Jonathan Wakely <jwakely@redhat.com>
38 * include/std/future (_State_baseV2::_Setter::operator()): Remove
39 _S_check calls that are done after the pointer to the shared state is
41 (_State_baseV2::_Setter<_Res, void>): Define specialization for void
42 as partial specialization so it can be defined within the definition
44 (_State_baseV2::__setter): Call _S_check.
45 (_State_baseV2::__setter(promise<void>*)): Add overload for use by
46 promise<void>::set_value and promise<void>::set_value_at_thread_exit.
47 (promise<T>, promise<T&>, promise<void>): Make _State a friend.
48 (_State_baseV2::_Setter<void, void>): Remove explicit specialization.
49 (promise<void>::set_value, promise<void>::set_value_at_thread_exit):
50 Use new __setter overload.
51 * testsuite/30_threads/promise/members/at_thread_exit2.cc: New test.
52 * testsuite/30_threads/promise/members/set_exception.cc: Test
53 promise<T&> and promise<void> specializations.
54 * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
55 Test for no_state error condition.
56 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
58 * include/backward/auto_ptr.h: Ignore deprecated warnings from use
60 * include/bits/shared_ptr.h: Likewise.
61 * include/bits/shared_ptr_base.h: Likewise.
62 * include/bits/unique_ptr.h: Likewise.
63 * libstdc++-v3/testsuite/20_util/default_delete/48631_neg.cc: Adjust
65 * libstdc++-v3/testsuite/20_util/default_delete/void_neg.cc: Likewise.
66 * libstdc++-v3/testsuite/20_util/unique_ptr/assign/48635_neg.cc:
68 * libstdc++-v3/testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc:
71 2017-04-20 Edward Smith-Rowland <3dw4rd@verizon.net>
73 PR libstdc++/68397 std::tr1::expint fails ... long double arguments.
74 * include/tr1/exp_integral.tcc: Increase iteration limits.
75 * testsuite/tr1/5_numerical_facilities/special_functions/15_expint/
77 * testsuite/special_functions/14_expint/pr68397.cc: New test.
79 2017-04-20 Jonathan Wakely <jwakely@redhat.com>
82 * include/std/atomic [!_GLIBCXX_USE_C99_STDINT_TR1] (atomic_int8_t)
83 (atomic_uint8_t, atomic_int16_t, atomic_uint16_t, atomic_int32_t,
84 (atomic_uint32_t, atomic_int64_t, atomic_uint64_t)
85 (atomic_int_least8_t, atomic_uint_least8_t, atomic_int_least16_t)
86 (atomic_uint_least16_t, atomic_int_least32_t, atomic_uint_least32_t)
87 (atomic_int_least64_t, atomic_uint_least64_t, atomic_int_fast8_t)
88 (atomic_uint_fast8_t, atomic_int_fast16_t, atomic_uint_fast16_t)
89 (atomic_int_fast32_t, atomic_uint_fast32_t, atomic_int_fast64_t)
90 (atomic_uint_fast64_t, atomic_intmax_t, atomic_uintmax_t): Don't
93 2017-04-19 Jonathan Wakely <jwakely@redhat.com>
95 * doc/xml/manual/abi.xml: Rephrase one of the references to the
97 * doc/xml/manual/test.xml: Document DejaGnu 1.5.3 requirement.
98 * doc/html/*: Regenerate.
100 * libsupc++/new: Update comment on #endif directive.
103 * include/experimental/bits/fs_dir.h (directory_iterator)
104 (recursive_directory_iterator): Remove noexcept from defaulted
108 * include/std/type_traits (is_aggregate): Change __has_builtin checks.
109 * libsupc++/new (launder): Likewise.
111 2017-04-18 Jonathan Wakely <jwakely@redhat.com>
113 * include/std/functional (default_searcher, __boyer_moore_array_base)
114 (__is_std_equal_to, __boyer_moore_base_t, boyer_moore_searcher)
115 (boyer_moore_horspool_searcher): Remove redundant namespace
117 (default_searcher::operator()): Construct return value early and
118 advance second member in-place.
119 (boyer_moore_horspool_searcher::operator()): Increment random access
120 iterator directly instead of using std::next.
121 (boyer_moore_searcher::operator()): Fix return value.
122 * testsuite/20_util/function_objects/searchers.cc: Check both parts
125 2017-04-12 Gerald Pfeifer <gerald@pfeifer.com>
127 * doc/xml/faq.xml: Update reference link to C++ ABI for Itanium.
128 * doc/xml/manual/abi.xml. Ditto (thrice).
130 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
132 * doc/xml/manual/status_cxx2017.xml: Remove duplicate table entry.
133 * doc/html/*: Regenerate.
135 * testsuite/20_util/reference_wrapper/invoke.cc: Uncomment tests
138 * include/bits/ios_base.h: Correct comment.
139 * testsuite/util/testsuite_hooks.h: Likewise.
141 * doc/xml/manual/status_cxx2017.xml: Update C++17 status table.
142 * doc/xml/manual/appendix_contributing.xml (contrib.organization): Add
143 directories for debug, parallel and profile headers.
144 * doc/html/*: Regenerate.
146 * include/bits/char_traits.h (__gnu_cxx::char_traits): Add
147 _GLIBCXX14_CONSTEXPR on assign, compare, find, and length.
148 (std::char_traits<char>, std::char_traits<wchar_t>): Add
149 _GLIBCXX17_CONSTEXPR on assign.
150 (std::char_traits<char16_t>, std::char_traits<char32_t>): Add
151 _GLIBCXX17_CONSTEXPR on assign, compare, find, and length.
152 * testsuite/21_strings/char_traits/requirements/
153 constexpr_functions_c++17.cc: New test.
155 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
158 * include/bits/stl_pair.h (__nonesuch_no_braces): New.
159 (operator=(typename conditional<
160 __and_<is_copy_assignable<_T1>,
161 is_copy_assignable<_T2>>::value,
162 const pair&, const __nonesuch&>::type)): Change __nonesuch
163 to __nonesuch_no_braces.
164 (operator=(typename conditional<
165 __not_<__and_<is_copy_assignable<_T1>,
166 is_copy_assignable<_T2>>>::value,
167 const pair&, const __nonesuch&>::type)): Likewise.
168 (operator=(typename conditional<
169 __and_<is_move_assignable<_T1>,
170 is_move_assignable<_T2>>::value,
171 pair&&, __nonesuch&&>::type)): Likewise.
172 * testsuite/20_util/pair/79141.cc: New.
174 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
176 Implement std::is_aggregate.
177 * include/std/type_traits (is_aggregate, is_aggregate_v): New.
178 * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc:
180 * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise.
181 * testsuite/20_util/is_aggregate/value.cc: Likewise.
183 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
185 Adjust optional's pretty printer for LWG 2900.
186 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter.__init__):
187 Look at the nested payload in case of non-experimental optional.
189 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
191 Implement LWG 2900, The copy and move constructors
192 of optional are not constexpr.
193 * include/std/optional (_Optional_payload): New.
194 (_Optional_base): Remove the bool parameter.
195 (_Optional_base<_Tp, false>): Remove.
196 (_Optional_base()): Adjust.
197 (_Optional_base(nullopt_t)): Likewise.
198 (_Optional_base(in_place_t, _Args&&...)): Likewise.
199 (_Optional_base(in_place_t, initializer_list<_Up>, _Args&&...)):
201 (_Optional_base(const _Optional_base&)): Likewise.
202 (_Optional_base(_Optional_base&&)): Likewise.
203 (operator=(const _Optional_base&)): Likewise.
204 (operator=(_Optional_base&&)): Likewise.
205 (~_Optional_base()): Remove.
206 (_M_is_engaged()): Adjust.
207 (_M_get()): Likewise.
208 (_M_construct(_Args&&...)): Likewise.
209 (_M_destruct()): Likewise.
210 (_M_reset()): Likewise.
211 (_Optional_base::_Empty_byte): Remove.
212 (_Optional_base::_M_empty): Remove.
213 (_Optional_base::_M_payload): Adjust.
214 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
215 * testsuite/20_util/optional/constexpr/cons/value.cc: Add tests.
217 2017-03-28 Jonathan Wakely <jwakely@redhat.com>
220 * include/bits/random.tcc (generate_canonical): Use std::nextafter
221 or numeric_limits::epsilon() to reduce out-of-range values.
222 * testsuite/26_numerics/random/uniform_real_distribution/operators/
223 64351.cc: Verify complexity requirement is met.
225 * doc/xml/manual/abi.xml: Add xml:id anchor.
226 * doc/xml/manual/using.xml (manual.intro.using.macros): Document
227 _GLIBCXX_RELEASE. Link to new anchor for __GLIBCXX__ notes.
228 (concurrency.io.structure): Add markup.
229 * doc/html/*: Regenerate.
232 * include/bits/shared_ptr_base.h
233 (__shared_ptr::_M_enable_shared_from_this_with): Change parameters to
234 non-const and then use remove_cv to get unqualified type.
235 * testsuite/20_util/enable_shared_from_this/members/const.cc: Don't
236 cast away constness on object created const.
237 * testsuite/20_util/shared_ptr/cons/80229.cc: New test.
239 2017-03-26 Markus Trippelsdorf <markus@trippelsdorf.de>
242 * include/bits/stl_tree.h:
243 (_Rb_tree_header::_M_move_data(_Rb_tree_header&)): Also save _M_color.
245 2017-03-23 Jonathan Wakely <jwakely@redhat.com>
247 * testsuite/23_containers/array/tuple_interface/
248 tuple_element_debug_neg.cc: Adjust dg-error.
249 * testsuite/23_containers/list/operations/78389.cc: Fix less-than to
250 define a valid strict weak ordering.
251 * testsuite/23_containers/priority_queue/67085.cc: Disable test for
252 Debug Mode, due to debug checks making extra copies of predicate.
253 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
256 * doc/xml/faq.xml: Add link.
257 * doc/xml/manual/backwards_compatibility.xml: Remove outdated
258 information on pre-ISO headers. Replace broken link to C++ FAQ Lite.
259 * doc/xml/manual/io.xml: Update broken link.
260 * doc/html/*: Regenerate.
262 2017-03-23 Daniel Kruegler <daniel.kruegler@gmail.com>
264 Implement LWG 2686, Why is std::hash specialized for error_code,
265 but not error_condition?
266 * include/std/system_error (hash<error_condition>): Define for C++17.
267 * testsuite/20_util/hash/operators/size_t.cc (hash<error_condition>):
268 Instantiate test for error_condition.
269 * testsuite/20_util/hash/requirements/explicit_instantiation.cc
270 (hash<error_condition>): Instantiate hash<error_condition>.
272 * include/bits/c++config (_GLIBCXX17_INLINE): Define.
273 * include/bits/regex_constants.h (All std::regex_constants constants):
274 Add _GLIBCXX17_INLINE as per P0607R0.
275 * include/bits/std_mutex.h (defer_lock, try_to_lock, adopt_lock):
277 * include/bits/stl_pair.h (piecewise_construct): Likewise.
278 * include/bits/uses_allocator.h (allocator_arg, uses_allocator_v)
279 (__is_uses_allocator_constructible_v)
280 (__is_nothrow_uses_allocator_constructible_v): Likewise.
281 * include/std/chrono (treat_as_floating_point_v): Likewise.
282 * include/std/functional (is_bind_expression_v, is_placeholder_v):
284 * include/std/optional (nullopt): Likewise.
285 * include/std/ratio (ratio_equal_v, ratio_not_equal_v, ratio_less_v)
286 ratio_less_equal_v, ratio_greater_v, ratio_greater_equal_v): Likewise.
287 * include/std/system_error (is_error_code_enum_v)
288 (is_error_condition_enum_v): Likewise.
289 * include/std/tuple (tuple_size_v, ignore): Likewise.
290 (ignore): Declare ignore constexpr as per LWG 2773, declare assignment
291 constexpr as per LWG 2933.
292 * include/std/type_traits (All variable templates): Add
293 _GLIBCXX17_INLINE as per P0607R0.
294 * include/std/variant (variant_size_v, variant_npos, __index_of_v)
295 (__tuple_count_v, __exactly_once): Likewise.
296 * testsuite/18_support/headers/new/synopsis.cc
297 (hardware_destructive_interference_size)
298 (hardware_constructive_interference_size): Likewise for commented-out
300 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Add new
301 test function for constexpr std::ignore (LWG 2773).
302 * testsuite/20_util/tuple/creation_functions/constexpr_cpp14.cc: New
305 2017-03-22 Jonathan Wakely <jwakely@redhat.com>
307 * include/bits/shared_ptr.h (shared_ptr, weak_ptr): Add deduction
309 * include/bits/std_function.h (function): Likewise.
310 * include/bits/stl_pair.h (pair): Likewise.
311 * include/debug/array (__gnu_debug::array): Likewise.
312 * include/std/array (array): Likewise.
313 * include/std/functional (make_default_searcher)
314 (make_boyer_moore_searcher, make_boyer_moore_horspool_searcher):
315 Remove generator functions.
316 * include/std/tuple (tuple): Add deduction guides.
317 * include/std/valarray (valarray): Likewise.
318 * testsuite/20_util/function_objects/searchers.cc: Adjust to use
319 class template argument deduction instead of generator functions.
320 * testsuite/20_util/function/cons/deduction.cc: New test.
321 * testsuite/20_util/optional/cons/deduction_guide.cc: Rename to ...
322 * testsuite/20_util/optional/cons/deduction.cc: ... here.
323 * testsuite/20_util/pair/cons/deduction.cc: New test.
324 * testsuite/20_util/shared_ptr/cons/deduction.cc: New test.
325 * testsuite/20_util/tuple/cons/deduction.cc: New test.
326 * testsuite/20_util/tuple/element_access/get_neg.cc: Adjust dg-error.
327 * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: New test.
328 * testsuite/20_util/weak_ptr/cons/deduction.cc: New test.
329 * testsuite/23_containers/array/cons/deduction.cc: New test.
330 * testsuite/23_containers/array/cons/deduction_neg.cc: New test.
331 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
333 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise.
334 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
336 * testsuite/26_numerics/valarray/deduction.cc: New test.
337 * testsuite/30_threads/lock_guard/cons/deduction.cc: New test.
338 * testsuite/30_threads/scoped_lock/cons/deduction.cc: New test.
339 * testsuite/30_threads/unique_lock/cons/deduction.cc: New test.
341 2017-03-20 François Dumont <fdumont@gcc.gnu.org>
343 * include/bits/stl_deque.h (deque): Access allocator value_type only if
344 concept checks are enabled.
345 * include/bits/stl_stack.h (stack): Likewise.
346 * include/bits/stl_vector.h (vector): Likewise.
347 * include/bits/stl_list.h (list): Likewise and check
348 _SGIAssignableConcept only in C++03.
349 * include/bits/stl_map.h (map): Likewise.
350 * include/bits/stl_set.h (set): Likewise.
351 * include/bits/stl_multimap.h (multimap): Likewise.
352 * include/bits/stl_multiset.h (multiset): Likewise.
353 * include/bits/stl_queue.h (queue, priority_queue): Likewise.
355 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
357 * doc/xml/manual/appendix_contributing.xml: Convert link to
359 Update link to the C++ standard at ansi.org.
361 * doc/xml/faq.xml: Remove information redundant with the above;
362 instead add a reference.
364 2017-03-17 Jonathan Wakely <jwakely@redhat.com>
366 * src/c++11/codecvt.cc (range): Add non-type template parameter and
367 define oerloaded operators for reading and writing code units.
368 (range<Elem, false>): Define partial specialization for accessing
369 wide characters in potentially unaligned byte ranges.
370 (ucs2_span(const char16_t*, const char16_t*, ...))
371 (ucs4_span(const char16_t*, const char16_t*, ...)): Change parameters
372 to range<const char16_t, false> in order to avoid unaligned reads.
373 (__codecvt_utf16_base<char16_t>::do_out)
374 (__codecvt_utf16_base<char32_t>::do_out)
375 (__codecvt_utf16_base<wchar_t>::do_out): Use range specialization for
376 unaligned data to avoid unaligned writes.
377 (__codecvt_utf16_base<char16_t>::do_in)
378 (__codecvt_utf16_base<char32_t>::do_in)
379 (__codecvt_utf16_base<wchar_t>::do_in): Likewise for writes. Return
380 error if there are unprocessable trailing bytes.
381 (__codecvt_utf16_base<char16_t>::do_length)
382 (__codecvt_utf16_base<char32_t>::do_length)
383 (__codecvt_utf16_base<wchar_t>::do_length): Pass arguments of type
384 range<const char16_t, false> to span functions.
385 * testsuite/22_locale/codecvt/codecvt_utf16/misaligned.cc: New test.
387 2017-03-16 Jonathan Wakely <jwakely@redhat.com>
390 * src/c++11/codecvt.cc (to_integer(codecvt_mode)): Fix target type.
393 * src/c++11/codecvt.cc (__codecvt_utf16_base<wchar_t>::do_out)
394 (__codecvt_utf16_base<wchar_t>::do_in): Convert char arguments to
395 char16_t to work with UTF-16 instead of UTF-8.
396 * testsuite/22_locale/codecvt/codecvt_utf16/80041.cc: New test.
398 * src/c++11/codecvt.cc (codecvt<char16_t, char, mbstate_t>)
399 (codecvt<char32_t, char, mbstate_t>, __codecvt_utf8_base<char16_t>)
400 (__codecvt_utf8_base<char32_t>, __codecvt_utf8_base<wchar_t>)
401 (__codecvt_utf16_base<char16_t>, __codecvt_utf16_base<char32_t>)
402 (__codecvt_utf16_base<wchar_t>, __codecvt_utf8_utf16_base<char16_t>)
403 (__codecvt_utf8_utf16_base<char32_t>)
404 (__codecvt_utf8_utf16_base<wchar_t>): Fix do_encoding() and
405 do_max_length() return values.
406 * testsuite/22_locale/codecvt/codecvt_utf16/members.cc: New test.
407 * testsuite/22_locale/codecvt/codecvt_utf8/members.cc: New test.
408 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/members.cc: New test.
411 * include/bits/locale_conv.h (__do_str_codecvt): Set __count on
413 * src/c++11/codecvt.cc (operator&=, operator|=, operator~): Overloads
414 for manipulating codecvt_mode values.
415 (read_utf16_bom): Compare input to BOM constants instead of integral
416 constants that depend on endianness. Take mode parameter by
417 reference and adjust it, to distinguish between no BOM present and
418 UTF-16BE BOM present.
419 (ucs4_in, ucs2_span, ucs4_span): Adjust calls to read_utf16_bom.
420 (surrogates): New enumeration type.
421 (utf16_in, utf16_out): Add surrogates parameter to choose between
422 UTF-16 and UCS2 behaviour.
423 (utf16_span, ucs2_span): Use std::min not std::max.
424 (ucs2_out): Use std::min not std::max. Disallow surrogate pairs.
425 (ucs2_in): Likewise. Adjust calls to read_utf16_bom.
426 * testsuite/22_locale/codecvt/codecvt_utf16/79980.cc: New test.
427 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: New test.
430 * src/c++11/codecvt.cc (write_utf16_code_point): Don't write 0xffff
432 (__codecvt_utf8_utf16_base<char32_t>::do_in): Use native endianness
433 for internal representation.
434 (__codecvt_utf8_utf16_base<wchar_t>::do_in): Likewise.
435 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/79511.cc: New test.
438 * include/bits/stl_heap.h (__is_heap, push_heap, __adjust_heap)
439 (pop_heap, make_heap, sort_heap, is_heap_until, is_heap): Cope with
440 invalid instantiations using function types for _Compare argument.
441 * testsuite/25_algorithms/make_heap/80064.cc: New test.
444 * python/libstdcxx/v6/printers.py (find_type): Avoid gdb.Type.name
445 for GDB 7.6 compatibility, use gdb.Type.unqualified instead.
447 2017-03-15 Ville Voutilainen <ville.voutilainen@gmail.com>
449 Implement LWG 2857, {variant,optional,any}::emplace should
450 return the constructed value.
451 * include/std/any (emplace(_Args&&...)): Change the return type and
452 return a reference to the constructed value.
453 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
454 * include/std/optional (emplace(_Args&&...)): Likewise.
455 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
456 * include/std/variant (emplace<_Tp>(_Args&&...)): Likewise.
457 (emplace<_Tp>(initializer_list<_Up>, _Args&&...)): Likewise.
458 (emplace<_Np>(_Args&&...)): Likewise.
459 (emplace<_Np>(initializer_list<_Up>, _Args&&...)): Likewise.
460 * testsuite/20_util/any/assign/emplace.cc: Add tests for
461 checking the return value of emplace.
462 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust.
463 * testsuite/20_util/optional/assignment/6.cc: Add tests for
464 checking the return value of emplace.
465 * testsuite/20_util/variant/run.cc: Likewise.
467 2017-03-15 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
470 * include/ext/pb_ds/qdetail/binary_heap_/binary_heap_.hpp
472 (push_heap): Remove the wrong checking using is_heap.
473 (make_heap): Remove the assertion using is_heap.
474 * include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp
476 (resize_for_insert_if_needed): Add PB_DS_ASSERT_VALID after
479 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
482 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
484 * testsuite/ext/pb_ds/regression/priority_queues.cc: Fix copy&paste
487 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
489 * acinclude.m4 (GLIBCXX_CHECK_S_ISREG_OR_S_IFREG): Fix typo in
491 * config.h.in: Regenerate.
492 * configure: Regenerate.
493 * doc/Makefile.in: Regenerate.
495 2017-03-14 Jonathan Wakely <jwakely@redhat.com>
498 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
499 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace
500 with a constrained template.
501 [!_GLIBCXX_USE_CXX11_ABI]
502 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise.
503 * testsuite/21_strings/basic_string/cons/char/79162.cc: New test.
504 * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test.
506 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
509 * include/bits/list.tcc (merge(list&&)): Use const for the size_t
511 (merge(list&&, _StrictWeakOrdering)): Likewise.
512 * testsuite/23_containers/list/operations/80034.cc: New.
514 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
516 Implement LWG 2806, Base class of bad_optional_access.
517 * include/std/optional (bad_optional_access):
518 Derive from std::exception.
519 (bad_optional_access::bad_optional_access): Adjust.
520 (bad_optional_access::what): New.
521 (__throw_bad_optional_access(const char*)):
522 Remove the parameter and adjust calls.
523 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
524 * testsuite/20_util/optional/typedefs.cc: Likewise.
526 2017-03-12 Ville Voutilainen <ville.voutilainen@gmail.com>
528 Implement LWG 2934, optional<const T> doesn't compare with T.
529 * include/std/optional
530 (operator==(const optional<_Tp>&, const optional<_Tp>&)):
531 Turn into operator==(const optional<_Tp>&, const optional<_Up>&).
532 (operator!=(const optional<_Tp>&, const optional<_Tp>&)):
533 Turn into operator!=(const optional<_Tp>&, const optional<_Up>&).
534 (operator<(const optional<_Tp>&, const optional<_Tp>&)):
535 Turn into operator<(const optional<_Tp>&, const optional<_Up>&.
536 (operator>(const optional<_Tp>&, const optional<_Tp>&)):
537 Turn into operator>(const optional<_Tp>&, const optional<_Up>&.
538 (operator<=(const optional<_Tp>&, const optional<_Tp>&)):
539 Turn into operator<=(const optional<_Tp>&, const optional<_Up>&).
540 (operator>=(const optional<_Tp>&, const optional<_Tp>&)):
541 Turn into operator>=(const optional<_Tp>&, const optional<_Up>&).
542 (operator==(const optional<_Tp>&, const _Tp&)):
543 Turn into operator==(const optional<_Tp>&, const _Up&).
544 (operator==(const _Tp&, const optional<_Tp>&)):
545 Turn into operator==(const _Up&, const optional<_Tp>&).
546 (operator!=(const optional<_Tp>&, const _Tp&)):
547 Turn into operator!=(const optional<_Tp>&, const _Up&).
548 (operator!=(const _Tp&, const optional<_Tp>&)):
549 Turn into operator!=(const _Up&, const optional<_Tp>&).
550 (operator<(const optional<_Tp>&, const _Tp&)):
551 Turn into operator<(const optional<_Tp>&, const _Up&).
552 (operator<(const _Tp&, const optional<_Tp>&)):
553 Turn into operator<(const _Up&, const optional<_Tp>&).
554 (operator>(const optional<_Tp>&, const _Tp&)):
555 Turn into operator>(const optional<_Tp>&, const _Up&).
556 (operator>(const _Tp&, const optional<_Tp>&)):
557 Turn into operator>(const _Up&, const optional<_Tp>&).
558 (operator<=(const optional<_Tp>&, const _Tp&)):
559 Turn into operator<=(const optional<_Tp>&, const _Up&).
560 (operator<=(const _Tp&, const optional<_Tp>&)):
561 Turn into operator<=(const _Up&, const optional<_Tp>&).
562 (operator>=(const optional<_Tp>&, const _Tp&)):
563 Turn into operator>=(const optional<_Tp>&, const _Up&).
564 (operator>=(const _Tp&, const optional<_Tp>&)):
565 Turn into operator>=(const _Up&, const optional<_Tp>&).
566 * testsuite/20_util/optional/relops/7.cc: New.
568 2017-03-10 Jonathan Wakely <jwakely@redhat.com>
570 * testsuite/17_intro/names.cc: Undefine macros that clash with
571 identifiers in AIX system headers.
573 * include/bits/invoke.h (__invoke): Use __invoke_result instead of
574 result_of, and __is_nothrow_invocable instead of
575 __is_nothrow_callable.
576 * include/bits/shared_ptr_base.h (__shared_ptr): Use __is_invocable
577 instead of __is_callable.
578 * include/std/functional (invoke): use invoke_result_t instead of
579 result_of_t and is_nothrow_invocable instead of is_nothrow_callable.
580 (_Not_fn): Use __invoke_result instead of result_of.
581 * include/std/type_traits (__result_of_memobj, __result_of_memfun):
582 Remove partial specializations for reference_wrapper types.
583 (__result_of_impl): Use __inv_unwrap to strip reference_wrapper.
584 (__invoke_result): Define replacement for result_of and then use it to
586 (__is_callable_impl, __is_callable, __is_nothrow_callable): Replace
587 with __is_invocable_impl, __is_invocable, and __is_nothrow_invocable
589 (invoke_result, invoke_result_t): Define for C++17.
590 (is_callable, is_nothrow_callable): Replace with is_invocable,
591 is_invocable_r, is_nothrow_invocable, and is_nothrow_invocable_r.
592 (is_callable_v, is_nothrow_callable_v): Replace with is_invocable_v,
593 is_invocable_r_v, is_nothrow_invocable_v, and is_nothrow_invocable_r_v.
594 * include/std/variant (hash<variant<T...>>): Use is_nothrow_invocable_v
595 instead of is_nothrow_callable_v.
596 * testsuite/20_util/function_objects/invoke/59768.cc: Remove unused
598 * testsuite/20_util/function_objects/not_fn/1.cc: Use is_invocable
599 instead of is_callable.
600 * testsuite/20_util/is_callable/*: Rename directory and adjust tests
602 * testsuite/20_util/is_nothrow_callable/*: Likewise.
603 * testsuite/20_util/optional/hash.cc: Use is_invocable_v instead of
605 * testsuite/20_util/variant/hash.cc: Likewise.
607 2017-03-10 George Lander <george.lander@arm.com>
609 * acinclude.m4 (glibcxx_cv_obsolete_isnan): Define
610 _GLIBCXX_INCLUDE_NEXT_C_HEADERS before including math.h.
611 * configure: Regenerate.
613 2017-03-09 Jonathan Wakely <jwakely@redhat.com>
615 * include/std/functional (_Not_fn): Define macro to simplify
616 repetitive function definitions.
618 * doc/xml/manual/status_cxx2017.xml: Document std::byte support.
619 * include/c_global/cstddef (std::byte): Define for C++17.
620 * testsuite/18_support/byte/global_neg.cc: New test.
621 * testsuite/18_support/byte/ops.cc: New test.
622 * testsuite/18_support/byte/requirements.cc: New test.
624 2017-03-05 Jonathan Wakely <jwakely@redhat.com>
626 * doc/xml/manual/status_cxx2017.xml: Document P0156R2 status.
627 * doc/html/*: Regenerate.
628 * include/std/mutex (scoped_lock): Implement new C++17 template.
629 * testsuite/30_threads/scoped_lock/cons/1.cc: New test.
630 * testsuite/30_threads/scoped_lock/requirements/
631 explicit_instantiation.cc: New test.
632 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: New test.
634 2017-03-02 Gerald Pfeifer <gerald@pfeifer.com>
635 François Dumont <frs.dumont@gmail.com>
636 Jonathan Wakely <jwakely@redhat.com>
638 * doc/xml/manual/debug_mode.xml: Update and simplify note
639 on link- and run-time coexistence.
641 2017-03-02 Jonathan Wakely <jwakely@redhat.com>
643 * testsuite/17_intro/headers/names.cc: Rename to ...
644 * testsuite/17_intro/names.cc: ... here.
647 * include/bits/hashtable_policy.h (__clp2): Use reserved names for
648 parameters and local variables.
649 * include/bits/ios_base.h (make_error_code, make_error_condition):
651 * include/bits/list.tcc (list::sort): Likewise.
652 * include/bits/mask_array.h (mask_array): Likewise.
653 * include/bits/regex.h (regex_token_iterator): Likewise.
654 * include/bits/slice_array.h (slice_array): Likewise.
655 * include/bits/stl_algo.h (__sample): Likewise.
656 * include/std/memory (undeclare_no_pointers): Likewise.
657 * include/std/type_traits (is_callable_v, is_nothrow_callable_v):
659 * libsupc++/exception_ptr.h (__dest_thunk): Likewise.
660 * testsuite/17_intro/headers/names.cc: New test.
663 * include/std/functional (bind::_Res_type_impl): Fix incorrect use of
664 result_of that loses top-level cv-qualifiers.
665 * testsuite/20_util/bind/79798.cc: New test.
667 2017-03-01 Gerald Pfeifer <gerald@pfeifer.com>
669 * doc/xml/manual/documentation_hacking.xml: Tweak link to
672 2017-02-23 Jonathan Wakely <jwakely@redhat.com>
674 * include/experimental/iterator: Include <iterator>.
675 * testsuite/experimental/iterator/requirements.cc: Check for contents
678 2017-02-19 Dinka Ranns <dinka.ranns@googlemail.com>
680 C++17 GB50 resolution
681 * include/std/chrono (duration::operator++()): Add
682 _GLIBCXX17_CONSTEXPR.
683 (duration::operator++(int)): Likewise.
684 (duration::operator--()): Likewise.
685 (duration::operator--(int)): Likewise.
686 (duration::operator+=(const duration&)): Likewise.
687 (duration::operator-=(const duration&)): Likewise.
688 (duration::operator*=(const rep&)): Likewise.
689 (duration::operator/=(const rep&)): Likewise.
690 (duration::operator%=(const rep&)): Likewise.
691 (duration::operator%=(const duration&)): Likewise.
692 (time_point::operator+=(const duration&)): Likewise.
693 (time_point::operator-=(const duration&)): Likewise.
694 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: New test.
695 * testsuite/20_util/duration/literals/range.cc: Adjust dg-error.
696 * testsuite/20_util/time_point/arithmetic/constexpr.cc: New test.
698 2017-02-19 Gerald Pfeifer <gerald@pfeifer.com>
700 * doc/xml/manual/debug.xml: Adjust link to ThreadSanitizer.
702 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
704 * doc/xml/manual/io.xml: Update link to groups.google.com.
705 Tweak link description.
707 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
709 * doc/xml/manual/profile_mode.xml: Fix link.
711 2017-02-16 Gerald Pfeifer <gerald@pfeifer.com>
713 * doc/xml/manual/policy_data_structures.xml: Simplify and
714 standardize references to boost.org.
715 * doc/xml/manual/policy_data_structures_biblio.xml: Ditto.
716 * doc/xml/manual/shared_ptr.xml: Ditto.
718 2017-02-16 Jonathan Wakely <jwakely@redhat.com>
721 * src/c++11/snprintf_lite.cc (__concat_size_t): Calculate length
722 written to buffer, not length remaining in buffer.
724 2017-02-15 Tim Shen <timshen@google.com>
727 * include/std/variant (operator<(), operator>(), operator<=(),
728 operator>=(), operator==(), operator!=()): Implement P0393R3.
729 * testsuite/20_util/variant/compile.cc: Adjust tests.
730 * testsuite/20_util/variant/run.cc: Adjust tests.
732 2017-02-15 Tim Shen <timshen@google.com>
735 * include/std/variant (visit()): Forward variant types to the return
737 * testsuite/20_util/variant/compile.cc: Add test cases.
739 2017-02-13 H.J. Lu <hongjiu.lu@intel.com>
742 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
744 2017-02-13 Jakub Jelinek <jakub@redhat.com>
747 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
748 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
749 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Likewise.
750 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
751 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Likewise.
752 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
753 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Likewise.
754 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
755 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
757 2017-02-13 Jonathan Wakely <jwakely@redhat.com>
760 * include/std/future (__future_base::_Task_state::_M_run)
761 (__future_base::_Task_state::_M_run_delayed): Use lvalue types in
762 result_of expressions.
763 * testsuite/30_threads/packaged_task/79486.cc: New.
765 2017-02-11 Jonathan Wakely <jwakely@redhat.com>
768 * include/bits/shared_ptr_base.h (__shared_ptr(_Yp*, _Deleter))
769 (__shared_ptr(_Yp*, _Deleter, _Alloc)): Use lvalue types in
771 * testsuite/20_util/shared_ptr/cons/79467.cc: New.
773 * include/bits/atomic_base.h: Re-indent.
775 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
777 * doc/xml/manual/profile_mode.xml: Update a paper reference.
779 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
781 * src/c++11/snprintf_lite.cc (__err): Use https for bug reporting.
783 2017-02-08 Jonathan Wakely <jwakely@redhat.com>
785 * doc/xml/manual/policy_data_structures.xml: Fix spelling of author's
787 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise. Remove
788 broken links to texts that are no longer online.
789 * doc/xml/manual/profile_mode.xml: Update links to CGO 2009 paper and
791 * doc/xml/manual/using.xml: Update links to memory model information.
792 * doc/xml/manual/using_exceptions.xml: Update link to "Appendix E:
793 Standard-Library Exception Safety".
794 * doc/html/*: Regenerate.
796 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
798 * doc/xml/manual/profile_mode.xml: Unbreak link to
799 "Optimizing Sorting with Machine Learning Algorithms".
801 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
803 * src/c++11/snprintf_lite.cc (__err): Update bug reporting URL.
805 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
807 * doc/xml/manual/abi.xml: Update link to "Sun Studio 11: C++
810 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
812 * doc/html/ext/lwg-active.html: Remove.
813 * doc/html/ext/lwg-closed.html: Ditto.
814 * doc/html/ext/lwg-defects.html: Ditto.
816 * doc/Makefile.am (xml_extradir): Remove.
818 (stamp-html-docbook-lwg): Remove recipe...
819 (stamp-html-docbook-data): ...and its use here.
820 * doc/Makefile.in: Regenerate.
822 * doc/xml/manual/intro.xml: Shorten two paragraphs explaining
823 the relationship to the upstream working group.
824 Replace a local link to ../ext/lwg-active.html by the upstream one.
825 Replace all reference to ../ext/lwg-defects.html by a new entity
826 &DR; which refers to the upstream address.
828 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
830 * doc/xml/manual/status_cxx2017.xml: Fix link to N4284.
832 2017-02-06 Jonathan Wakely <jwakely@redhat.com>
835 * testsuite/20_util/duration/literals/range.cc: Prune extra output
838 2017-02-06 Gerald Pfeifer <gerald@pfeifer.com>
840 * doc/xml/manual/documentation_hacking.xml: Update URL of the
841 DocBook Element Reference. Use that term as link description
843 epubcheck has moved to GitHub.
844 Remove obsolete link to DocBook Publishing Tools.
846 2017-02-03 Jonathan Wakely <jwakely@redhat.com>
849 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Restore ABI override
850 so new ios::failure can be caught even when old ABI is the default.
851 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
852 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
853 exceptions_failbit.cc: Likewise.
854 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
855 exceptions_failbit.cc: Likewise.
856 * testsuite/27_io/basic_istream/extractors_other/char/
857 exceptions_null.cc: Likewise.
858 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
859 exceptions_null.cc: Likewise.
860 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
861 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
862 * testsuite/27_io/basic_ostream/inserters_other/char/
863 exceptions_null.cc: Likewise.
864 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
865 exceptions_null.cc: Likewise.
866 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
869 * src/c++11/Makefile.am: Add new files.
870 * src/c++11/Makefile.in: Regenerate.
871 * src/c++11/cow-string-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
872 (operator<<, operator>>, getline): Move explicit instantiations to ...
873 * src/c++11/cow-string-io-inst.cc: ... new file.
874 * src/c++11/cow-wstring-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
875 (operator<<, operator>>, getline): Move explicit instantiations to ...
876 * src/c++11/cow-wstring-io-inst.cc: ... new file.
877 * src/c++11/functexcept.cc (__throw_ios_failure, __throw_system_error)
878 (__throw_future_error, __throw_bad_function_call):
879 (__throw_regex_error): Move functions for C++11 exceptions to the
880 files that define the exception types.
881 * src/c++11/functional.cc (__throw_bad_function_call): Move here.
882 * src/c++11/future.cc (__throw_future_error): Likewise.
883 * src/c++11/ios.cc (__throw_ios_failure): Likewise.
884 * src/c++11/regex.cc (__throw_regex_error): Likewise.
885 * src/c++11/snprintf_lite.cc (__concat_size_t): Print decimal
886 representation directly instead of calling __int_to_char.
887 * src/c++11/sso_string.cc (__sso_string): New file for definition
888 of __sso_string type.
889 * src/c++11/string-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
890 explicit instantiations of narrow string I/O functions.
891 * src/c++11/system_error.cc (__throw_system_error): Move here.
892 (__sso_string): Move to new file.
893 * src/c++11/wstring-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
894 explicit instantiations of wide string I/O functions.
895 * src/c++98/misc-inst.cc [_GLIBCXX_USE_CXX11_ABI] (operator<<)
896 (operator>>, getline): Remove explicit instantiations from here.
898 2017-02-02 H.J. Lu <hongjiu.lu@intel.com>
900 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
902 2017-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
904 * configure.host: Separate Solaris/SPARC and x86 baselines.
905 * config/abi/post/solaris2.10/baseline_symbols.txt: Move ...
906 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: ... here.
907 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Move ...
908 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
910 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Move ...
911 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: ... here.
912 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: New file.
913 * config/abi/post/solaris2.11/baseline_symbols.txt: Move ...
914 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: ... here.
915 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Move ...
916 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
918 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Move ...
919 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: ... here.
920 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: New file.
922 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
923 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
924 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
925 * config/abi/post/solaris2.11/baseline_symbols.txt: Likewise.
926 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Likewise.
927 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Likewise.
929 2017-02-01 Jonathan Wakely <jwakely@redhat.com>
932 * include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
934 (_Iter_comp_to_iter): Likewise.
935 * testsuite/25_algorithms/search/78346.cc: New test.
938 * config/abi/pre/gnu.ver: Remove recently added symbols.
939 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
940 (basic_string::_M_copy_assign): Remove.
941 (basic_string::operator=(const basic_string&)): Don't dispatch to
942 _M_copy_assign. If source object is small just deallocate, otherwise
943 perform new allocation before making any changes.
944 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
945 (basic_string::_M_copy_assign(const basic_string&, true_type)):
947 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
948 Test cases where the allocators are equal or the string is small.
949 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
952 2017-01-30 Ville Voutilainen <ville.voutilainen@gmail.com>
954 Implement LWG 2825, LWG 2756 breaks class template argument
955 deduction for optional.
956 * include/std/optional: Add a deduction guide.
957 * testsuite/20_util/optional/cons/deduction_guide.cc: New.
959 2017-01-27 Jonathan Wakely <jwakely@redhat.com>
962 * config/abi/pre/gnu.ver: Add new symbols.
963 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
964 (basic_string::_M_copy_assign): New overloaded functions to perform
966 (basic_string::operator=(const basic_string&)): Dispatch to
968 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
969 (basic_string::_M_copy_assign(const basic_string&, true_type)):
970 Define, performing rollback on exception.
971 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
972 Test exception-safety guarantee.
973 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
975 * testsuite/util/testsuite_allocator.h (uneq_allocator::swap): Make
978 2017-01-26 Jonathan Wakely <jwakely@redhat.com>
981 * include/tr1/complex (conj): Remove using-declaration and restore
982 overloads, reverting previous change.
984 * testsuite/23_containers/list/operations/78389.cc: Fix for C++11
986 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
987 Mark as unsupported in C++98 mode.
988 * testsuite/23_containers/queue/requirements/constructible.cc:
990 * testsuite/23_containers/stack/requirements/constructible.cc:
992 * testsuite/25_algorithms/make_heap/movable.cc: Fix for C++11 mode.
995 * include/bits/c++config (literals::string_view_literals::__7): Add.
996 Only declare versioned namespaces for the relevant C++ dialects.
997 * include/experimental/bits/erase_if.h (fundamentals_v2::__detail):
998 Add versioning macros.
999 * include/experimental/bits/lfts_config.h:
1000 (fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add.
1001 * include/experimental/string_view (fundamentals_v2::__detail):
1002 Add versioning macros.
1003 (fundamentals_v2::__detail::__identity): Remove.
1004 (fundamentals_v2::__detail::__idt): Use common_type instead of
1005 __detail::__identity.
1006 * include/std/string_view (__detail::__identity, __detail::__idt):
1008 (literals::string_view_literals): Fix nesting of versioning macros.
1011 * libsupc++/del_opa.cc (operator delete(void*, std::align_val_t))
1012 [!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN
1013 && !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC]:
1014 Retrieve original pointer value allocated by malloc.
1015 * libsupc++/new_opa.cc [!_GLIBCXX_HAVE_ALIGNED_ALLOC
1016 && !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN
1017 && !_GLIBCXX_HAVE__ALIGNED_MALLOC] (aligned_alloc(size_t, size_t)):
1018 Define, adjusting pointer value allocated by malloc and storing for
1019 retrieval by operator delete.
1021 2017-01-26 Jakub Jelinek <jakub@redhat.com>
1023 * libsupc++/eh_atomics.h: Update copyright years.
1024 * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years.
1026 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
1030 * include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
1031 (proj(T), conj(T)): Change return types per DR 1522.
1032 * include/tr1/complex (conj): Remove overloads and use std::conj.
1033 * testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
1034 * testsuite/26_numerics/complex/dr781.cc: ... this, and update.
1035 * testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
1036 real(T) and imag(T). Allow testing for C++11 too.
1038 2017-01-24 Jonathan Wakely <jwakely@redhat.com>
1041 * include/experimental/string_view (operator==): Check sizes first.
1042 * include/std/string_view (operator==): Likewise.
1044 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
1046 * testsuite/experimental/array/make_array.cc: Restore <functional>
1049 2017-01-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
1051 * testsuite/29_atomics/atomic/69301.cc: Require atomic builtins.
1053 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
1056 * include/experimental/array (__make_array_elem): New class template
1057 and partial specialization.
1058 (__is_reference_wrapper): Move into __make_array_elem specialization.
1059 (make_array): Use __make_array_elem to determine element type and move
1060 static assertion into specialization. Qualify std::forward call.
1061 (to_array): Add exception specifiation.
1062 * testsuite/experimental/array/make_array.cc: Test argument types
1063 without a common type.
1064 * testsuite/experimental/array/neg.cc: Adjust expected error message.
1066 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
1068 * doc/xml/manual/debug.xml: code.google.com uses https now.
1070 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
1072 * doc/xml/manual/test.xml: Fix link into gccint online manual.
1074 2017-01-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1076 Make poisoned hashes SFINAE away the call operator of the hash.
1077 * include/bits/functional_hash.h
1078 (__poison_hash::__enable_hash_call): New.
1079 * include/std/optional (__optional_hash_call_base): New.
1080 (hash<optional<_Tp>>): Derive from the new base,
1081 move the hash function into that base.
1082 * include/std/variant (__variant_hash_call_base_impl): New.
1083 (__variant_hash_call_base): Likewise.
1084 (hash<variant<_Types...>>): Derive from the new base,
1085 move the hash function into that base.
1086 * testsuite/20_util/optional/hash.cc: Add tests for is_callable.
1087 * testsuite/20_util/variant/hash.cc: Likewise.
1089 2017-01-20 Joe Seymour <joe.s@somniumtech.com>
1091 * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t.
1092 * configure: Regenerate.
1094 2017-01-20 Jonathan Wakely <jwakely@redhat.com>
1097 * include/bits/random.h (uniform_real_distribution::param_type)
1098 (normal_distribution::param_type, lognormal_distribution::param_type)
1099 (gamma_distribution::param_type, chi_squared_distribution::param_type)
1100 (cauchy_distribution::param_type, fisher_f_distribution::param_type)
1101 (student_t_distribution::param_type)
1102 (bernoulli_distribution::param_type, binomial_distribution::param_type)
1103 (geometric_distribution::param_type)
1104 (negative_binomial_distribution::param_type)
1105 (poisson_distribution::param_type)
1106 (exponential_distribution::param_type)
1107 (weibull_distribution::param_type)
1108 (extreme_value_distribution::param_type)
1109 (discrete_distribution::param_type)
1110 (piecewise_constant_distribution::param_type)
1111 (piecewise_linear_distribution::param_type): Define operator!=.
1112 * include/bits/uniform_int_dist.h
1113 (uniform_int_distribution::param_type): Likewise.
1114 * include/ext/random (beta_distribution::param_type)
1115 (rice_distribution::param_type, nakagami_distribution::param_type)
1116 (pareto_distribution::param_type, k_distribution::param_type)
1117 (arcsine_distribution::param_type, hoyt_distribution::param_type)
1118 (triangular_distribution::param_type)
1119 (von_mises_distribution::param_type)
1120 (hypergeometric_distribution::param_type)
1121 (logistic_distribution::param_type)
1122 (uniform_on_sphere_distribution::param_type)
1123 (uniform_inside_sphere_distribution::param_type): Likewise.
1124 * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc:
1125 Test construction with param_type.
1126 * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc:
1128 * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
1130 * testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc:
1132 * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
1134 * testsuite/26_numerics/random/extreme_value_distribution/cons/
1136 * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc:
1138 * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc:
1140 * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc:
1142 * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc:
1144 * testsuite/26_numerics/random/negative_binomial_distribution/cons/
1146 * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
1148 * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc:
1150 * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
1152 * testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc:
1154 * testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc:
1156 * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc:
1158 * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise.
1159 * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise.
1160 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
1161 * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc:
1163 * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise.
1164 * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise.
1165 * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise.
1166 * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
1167 * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise.
1168 * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise.
1169 * testsuite/ext/random/triangular_distribution/cons/parms.cc:
1171 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/
1173 * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise.
1176 * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
1177 (__allocator_traits_base::__size_type): Remove.
1178 (allocator_traits::_Ptr): New class template to detect const and void
1179 pointer types without instantiating pointer_traits::rebind
1181 (allocator_traits::_Diff): Likewise for detecting difference_type.
1182 (allocator_traits::_Size): New class template to detect size_type
1183 without instantiating make_unsigned unnecessarily.
1184 * include/bits/ptr_traits.h (pointer_traits::element_type): Use
1185 __detected_or_t instead of __detected_or_t_.
1186 * include/std/type_traits (__detected_or_t_): Remove.
1187 * testsuite/20_util/allocator_traits/members/pointers.cc: New test.
1191 * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
1192 Replace with class template using void_t.
1193 (__alloc_rebind): Define in terms of
1194 __allocator_traits_base::__rebind.
1195 (allocator_traits): Remove unconditional static_assert for
1197 * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
1198 (pointer_traits::__rebind): Replace with class template using void_t.
1199 (pointer_traits::rebind): Define in terms of __rebind.
1200 (pointer_traits): Remove unconditional static_assert for rebind.
1201 * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
1202 * testsuite/20_util/pointer_traits/rebind.cc: New test.
1205 * include/experimental/any (__any_caster): Avoid instantiating
1206 manager function for types that can't be stored in any.
1207 * include/std/any (__any_caster): Likewise.
1208 * testsuite/20_util/any/misc/any_cast.cc: Test non-copyable type.
1209 * testsuite/experimental/any/misc/any_cast.cc: Likewise.
1212 * include/bits/stl_algo.h (is_partitioned): Use increment instead of
1215 2017-01-19 Jonathan Wakely <jwakely@redhat.com>
1218 * include/bits/shared_ptr_base.h (__enable_shared_from_this_base):
1220 (__enable_shared_from_this): Declare __shared_ptr as a friend.
1221 * testsuite/ext/shared_ptr/1.cc: New test.
1224 * include/bits/stl_algo.h (is_partitioned): Don't retest the partition
1226 * testsuite/25_algorithms/is_partitioned/2.cc: New test.
1228 * doc/xml/manual/abi.xml: Fix typo.
1229 * doc/html/manual/abi.html: Likewise.
1232 * include/bits/predefined_ops.h (_Iter_less_val, _Val_less_iter): Add
1233 converting constructors from _Iter_less_iter.
1234 (_Iter_comp_val, _Val_comp_iter): Add converting constructors from
1236 (__iter_comp_val(_Iter_comp_iter<C>): Use converting constructor.
1237 (__val_comp_iter(_Iter_comp_iter<C>): Likewise.
1238 * include/bits/stl_heap.h (__is_heap_until, __push_heap, __pop_heap)
1239 (__make_heap, __sort_heap): Change _Compare parameters to references.
1240 (__is_heap, push_heap, __adjust_heap, __pop_heap, pop_heap)
1241 (__make_heap, make_heap, sort_heap, is_heap_until): Pass comparison
1242 functions as lvalues.
1243 (is_heap): Call __is_heap_until directly to avoid copying __comp.
1244 * testsuite/23_containers/priority_queue/67085.cc: Adjust test to
1245 count copies during construction with empty sequence.
1248 * include/bits/stl_heap.h (__is_heap): Use _GLIBCXX_MOVE.
1249 (__make_heap, __sort_heap): Don't use _GLIBCXX_MOVE inside loops.
1250 * testsuite/23_containers/priority_queue/67085.cc: Adjust expected
1252 * testsuite/25_algorithms/make_heap/movable.cc: New test.
1255 * include/bits/stl_heap.h (push_heap, __adjust_heap, __pop_heap)
1256 (pop_heap, __make_heap, make_heap, __sort_heap, sort_heap): Use
1257 _GLIBCXX_MOVE when passing comparison function to other functions.
1258 (is_heap_until, is_heap): Use std::move when passing comparison
1260 * testsuite/23_containers/priority_queue/67085.cc: New test.
1263 * doc/xml/manual/abi.xml (abi.versioning.history): Add markup to
1264 macro names, filenames, and literal values. Document _GLIBCXX_RELEASE.
1265 Document that the deprecated _GLIBCXX_VERSION macro was removed for
1267 * doc/html/*: Regenerate.
1268 * include/Makefile.am (_GLIBCXX_RELEASE): Set value.
1269 * include/Makefile.in: Regenerate.
1270 * include/bits/c++config (_GLIBCXX_RELEASE): Add #define.
1271 * testsuite/ext/profile/mutex_extensions_neg.cc: Use lineno of 0 in
1274 2017-01-18 Jonathan Wakely <jwakely@redhat.com>
1277 * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
1278 aligned buffer instead of default-initialized variable.
1279 * testsuite/29_atomics/atomic/69301.cc: New test.
1280 * include/experimental/memory (observer_ptr::release): Use reserved
1282 * include/ext/pointer.h (_Pointer_adapter::operator++(int))
1283 (_Pointer_adapter::operator--(int)): Likewise.
1286 * include/experimental/random (randint): Use temporary instead of
1287 thread_local static.
1289 2017-01-17 Joshua Conner <joshconner@google.com>
1291 * crossconfig.m4: Add fuchsia OS.
1292 * configure: Regenerate.
1294 2017-01-17 Jonathan Wakely <jwakely@redhat.com>
1297 * doc/xml/manual/abi.xml (abi.versioning.history): Explain why the
1298 __GLIBCXX__ macro is not useful. Remove redundant date information
1299 and link to the GCC release timeline.
1300 (abi.versioning.active): Move partial sentence into the previous
1302 * doc/html/*: Regenerate.
1305 * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
1306 of remove_reference.
1307 * testsuite/18_support/nested_exception/79114.cc: New test.
1309 2017-01-17 Jakub Jelinek <jakub@redhat.com>
1312 * configure.ac: Add GCC_BASE_VER.
1313 * fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
1314 get version from BASE-VER file.
1315 * po/Makefile.in: Regenerated.
1316 * libsupc++/Makefile.in: Regenerated.
1317 * testsuite/Makefile.in: Regenerated.
1318 * src/Makefile.in: Regenerated.
1319 * configure: Regenerated.
1320 * Makefile.in: Regenerated.
1321 * include/Makefile.in: Regenerated.
1322 * doc/Makefile.in: Regenerated.
1323 * python/Makefile.in: Regenerated.
1324 * src/c++11/Makefile.in: Regenerated.
1325 * src/c++98/Makefile.in: Regenerated.
1326 * src/filesystem/Makefile.in: Regenerated.
1328 2017-01-16 Jonathan Wakely <jwakely@redhat.com>
1331 * src/c++11/functexcept.cc: Use new ABI for std::ios_base::failure
1333 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Don't override ABI
1334 for test, so new ios::failure can be caught.
1335 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1336 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1337 exceptions_failbit.cc: Likewise.
1338 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1339 exceptions_failbit.cc: Likewise.
1340 * testsuite/27_io/basic_istream/extractors_other/char/
1341 exceptions_null.cc: Likewise.
1342 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1343 exceptions_null.cc: Likewise.
1344 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1345 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1346 * testsuite/27_io/basic_ostream/inserters_other/char/
1347 exceptions_null.cc: Likewise.
1348 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1349 exceptions_null.cc: Likewise.
1350 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1353 * include/bits/locale_classes.h (locale::facet::__shim): Change from
1354 private to protected.
1355 * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
1356 make locale::facet::__shim accessible.
1358 2017-01-16 Ville Voutilainen <ville.voutilainen@gmail.com>
1361 * include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
1362 (merge(list&&, _StrictWeakOrdering)): Likewise.
1363 * testsuite/23_containers/list/operations/78389.cc: Add
1364 better test for the sizes.
1366 2017-01-14 Jonathan Wakely <jwakely@redhat.com>
1368 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
1369 Skip test when -D_GLIBCXX_PROFILE mode is included in options.
1370 * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
1371 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
1373 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
1374 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
1375 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
1376 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
1377 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
1379 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
1381 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
1383 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
1385 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
1387 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
1388 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
1389 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
1390 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
1391 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
1392 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
1393 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
1394 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
1395 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
1396 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
1397 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
1398 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
1399 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1401 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
1404 * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
1405 retry fclose on EINTR.
1407 * include/profile/base.h: Remove unused header that leads to header
1408 cycle in C++17 mode.
1411 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
1412 Make _If_sv private.
1413 [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
1414 basic_string_view arguments.
1417 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
1418 redundant option from cxxflags.
1419 (check_effective_target_cxx11-abi): Define.
1420 * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
1422 * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
1423 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1425 * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
1427 * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
1428 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
1430 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
1432 * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
1433 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
1435 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1437 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
1439 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
1441 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
1443 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
1445 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
1447 * testsuite/23_containers/list/61347.cc: Likewise.
1448 * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
1449 * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
1451 2017-01-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1454 * include/bits/list.tcc (merge(list&&)):
1455 Adjust list sizes if the comparator throws.
1456 (merge(list&&, _StrictWeakOrdering)): Likewise.
1457 (sort()): Splice elements back from the scratch buffers
1458 if the comparator throws.
1459 (sort(_StrictWeakOrdering)): Likewise.
1460 * testsuite/23_containers/list/operations/78389.cc: New.
1462 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
1464 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
1465 XFAIL for C++17 until node reinsertion supports fancy pointers.
1468 * testsuite/20_util/add_pointer/value.cc: Test forming function
1471 2017-01-13 Michael Brune <lucdanton@free.fr>
1474 * include/std/type_traits (__is_referenceable): Handle noexcept
1477 2017-01-12 Jonathan Wakely <jwakely@redhat.com>
1480 * include/bits/stl_queue.h (queue, priority_queue): Remove default
1481 member-initializers and define default constructors as templates with
1483 * include/bits/stl_stack.h (stack): Likewise.
1484 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
1486 * testsuite/23_containers/priority_queue/requirements/
1487 explicit_instantiation/1.cc: Test more instantiations.
1488 * testsuite/23_containers/priority_queue/requirements/
1489 explicit_instantiation/1_c++98.cc: Likewise.
1490 * testsuite/23_containers/queue/requirements/constructible.cc: New.
1491 * testsuite/23_containers/stack/requirements/constructible.cc: New.
1494 * doc/xml/manual/intro.xml: Document LWG 2781 change.
1495 * doc/html/*: Regenerate.
1496 * include/std/functional (_Function_base::_Ref_manager): Remove.
1497 (_Function_handler): Remove partial specializations for
1499 (function::target): Remove special case for const qualification.
1500 * testsuite/20_util/function/6.cc: Adjust tests for target type.
1501 * testsuite/20_util/function/7.cc: Likewise.
1502 * testsuite/20_util/function/8.cc: Likewise.
1504 2017-01-11 Jonathan Wakely <jwakely@redhat.com>
1507 * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
1508 (map::equal_range): Fix return type of heterogeneous overloads.
1509 * include/bits/stl_multimap.h (multimap::lower_bound)
1510 (multimap::upper_bound, multimap::equal_range): Likewise.
1511 * include/bits/stl_multiset.h (multiset::lower_bound)
1512 (multiset::upper_bound, multiset::equal_range): Likewise.
1513 * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
1514 (set::equal_range): Likewise.
1515 * testsuite/23_containers/map/operations/2.cc
1516 * testsuite/23_containers/multimap/operations/2.cc
1517 * testsuite/23_containers/multiset/operations/2.cc
1518 * testsuite/23_containers/set/operations/2.cc
1521 * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
1522 the heterogeneous comparison can only find one match.
1523 * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
1524 * testsuite/23_containers/map/operations/2.cc: Test count works with
1525 comparison function that just partitions rather than sorting.
1526 * testsuite/23_containers/set/operations/2.cc: Likewise.
1528 2017-01-11 Ville Voutilainen <ville.voutilainen@gmail.com>
1530 Reduce the size of variant, it doesn't need an index of
1531 type size_t internally.
1532 * include/std/variant (parse_numbers.h): New include.
1533 (__select_index): New.
1534 (_Variant_storage<false, _Types...>::_M_reset_impl): Use
1535 _index_type for comparison with variant_npos.
1536 (_Variant_storage<false, _Types...>::__index_type): New.
1537 (_Variant_storage<false, _Types...>::_M_index): Change the
1538 type from size_t to __index_type.
1539 (_Variant_storage<true, _Types...>::__index_type): New.
1540 (_Variant_storage<true, _Types...>::_M_index): Change the
1541 type from size_t to __index_type.
1542 (_Variant_base::_M_valid): Use _Storage::__index_type
1543 for comparison with variant_npos.
1544 (variant::index): Use _Base::_Storage::__index_type
1545 for comparison with variant_npos.
1546 * testsuite/20_util/variant/index_type.cc: New.
1548 2017-01-10 Jonathan Wakely <jwakely@redhat.com>
1550 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
1551 effective target selector to prevent running in C++17 mode.
1554 * include/bits/stl_queue.h (queue::c): Add default member initializer.
1555 (queue::queue()): Add constructor and define as defaulted.
1556 (queue::queue(_Sequence&&)): Remove default argument.
1557 (priority_queue::c, priority_queue::comp): Add default member
1559 (priority_queue::priority_queue()): Add constructor and define as
1561 (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
1562 Remove default argument for first parameter.
1563 * include/bits/stl_stack.h (stack::c): Add default member initializer.
1564 (stack::stack()): Add constructor and define as defaulted.
1565 (stack::stack(const _Sequence&)): Remove default argument.
1566 * testsuite/23_containers/priority_queue/requirements/
1567 explicit_instantiation/1.cc: Test explicit instantiation with
1568 non-DefaultConstructible sequence.
1569 * testsuite/23_containers/priority_queue/77528.cc: New test.
1570 * testsuite/23_containers/priority_queue/requirements/
1571 explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
1572 * testsuite/23_containers/queue/77528.cc: New test.
1573 * testsuite/23_containers/queue/requirements/explicit_instantiation/
1574 1.cc: Test explicit instantiation with non-DefaultConstructible
1576 * testsuite/23_containers/queue/requirements/explicit_instantiation/
1577 1_c++0x.cc: Replace with 1_c++98.cc.
1578 * testsuite/23_containers/stack/77528.cc: New test.
1579 * testsuite/23_containers/stack/requirements/explicit_instantiation/
1580 1.cc: Test explicit instantiation with non-DefaultConstructible
1582 * testsuite/23_containers/stack/requirements/explicit_instantiation/
1583 1_c++0x.cc: Replace with 1_c++98.cc.
1585 2017-01-10 Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
1587 * include/bits/locale_facets_nonio.tcc
1588 (time_get::_M_extract_via_format): Avoid compilation errors with
1589 non-standard struct tm.
1591 2017-01-10 François Dumont <fdumont@gcc.gnu.org>
1592 Jonathan Wakely <jwakely@redhat.com>
1594 * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
1595 (is_specialization, strip_versioned_namespace): New helpers functions
1596 to work with symbols in the versioned namespace.
1597 (Printer.add_version): Add second name using versioned namespace.
1598 (add_one_template_type_printer, add_one_type_printer): Add second
1599 type printers using versioned namespace.
1600 (register_type_printers): Add template type printer for basic_string.
1601 (build_libstdcxx_dictionary): Remove dead code.
1602 * python/libstdcxx/v6/xmethods.py: Make all matchers look for
1603 versioned namespace.
1604 * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
1606 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1608 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
1611 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
1612 functions separately on darwin and if they're missing define
1613 _GLIBCXX_NO_C99_ROUNDING_FUNCS.
1614 * config.h.in: Regenerate.
1615 * configure: Regenerate.
1616 * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
1617 (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
1619 * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
1620 to detect correct thread_local destructors.
1621 * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
1624 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
1625 Aditya Kumar <hiraditya@msn.com>
1628 * include/bits/basic_string.tcc
1629 (basic_string::find(const CharT*, size_type, size_type)): Optimize.
1631 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
1633 * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
1634 * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
1636 * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
1637 Include <cassert> header.
1640 * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
1641 * configure: Regenerate.
1643 2017-01-06 Barrett Adair <barrettellisadair@gmail.com>
1644 Jonathan Wakely <jwakely@redhat.com>
1646 * include/std/variant (variant, swap): Replace __and_ usage with fold
1649 2017-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1652 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
1653 * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
1654 GLIBCXX_CHECK_ASSEMBLER_HWCAP.
1655 * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
1657 * aclocal.m4: Regenerate.
1658 * configure: Regenerate.
1659 * Makefile.in, doc/Makefile.in, include/Makefile.in,
1660 libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
1661 src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
1662 src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
1664 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
1666 * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
1669 * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
1670 (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
1671 (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
1672 move function objects.
1673 (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
1674 (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
1675 * testsuite/25_algorithms/sort/78991.cc: New test.
1677 2017-01-05 Jonathan Wakely <jwakely@redhat.com>
1679 * include/bits/std_function.h (function::_Signature_type): Remove.
1680 (function::function(_Functor)): Adjust.
1682 2017-01-05 Tim Shen <timshen@google.com>
1685 * include/std/variant (__gen_vtable_impl): rename __unused to
1686 __dimensions to avoid naming conflict.
1688 2017-01-04 Jonathan Wakely <jwakely@redhat.com>
1691 * config.h.in: Regenerate.
1692 * configure: Likewise.
1693 * configure.ac: Check for __cxa_thread_atexit.
1694 * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
1695 Don't define __cxa_thread_atexit if libc provides it.
1697 2017-01-04 Ville Voutilainen <ville.voutilainen@gmail.com>
1699 Implement 2801, Default-constructibility of unique_ptr.
1700 * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
1701 (unique_ptr::_DeleterConstraint): Likewise.
1702 (unique_ptr()): Constrain.
1703 (unique_ptr(pointer)): Likewise.
1704 (unique_ptr(nullptr_t)): Likewise.
1705 (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
1706 (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
1707 (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
1708 (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
1709 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
1710 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
1711 * testsuite/20_util/unique_ptr/cons/default.cc: New.
1712 * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
1714 2017-01-04 Pauli Nieminen <suokkos@gmail.com>
1715 Jonathan Wakely <jwakely@redhat.com>
1718 * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
1719 * config.h.in: Regenerate.
1720 * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
1721 (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
1722 exports for exception_ptr, nested_exception, and future conditional.
1723 [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
1724 exports for exception_ptr, nested_exception, and future conditional.
1725 * configure: Regenerate.
1726 * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
1727 * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
1728 * libsupc++/eh_atomics.h: New file for internal use only.
1729 (__eh_atomic_inc, __eh_atomic_dec): New.
1730 * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
1731 (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
1732 (rethrow_exception): Use eh_atomics.h reference counting helpers.
1733 * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
1734 * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
1735 * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
1736 * libsupc++/exception_ptr.h: Likewise.
1737 * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
1738 * libsupc++/nested_exception.cc: Remove check for
1739 ATOMIC_INT_LOCK_FREE.
1740 * libsupc++/nested_exception.h: Likewise.
1741 * src/c++11/future.cc: Likewise.
1742 * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
1743 * testsuite/18_support/nested_exception/*: Likewise.
1744 * testsuite/30_threads/async/*: Likewise.
1745 * testsuite/30_threads/future/*: Likewise.
1746 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
1747 * testsuite/30_threads/packaged_task/*: Likewise.
1748 * testsuite/30_threads/promise/*: Likewise.
1749 * testsuite/30_threads/shared_future/*: Likewise.
1751 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
1753 * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
1754 defaults to https; adjust reference.
1756 2017-01-03 Jonathan Wakely <jwakely@redhat.com>
1759 * include/std/thread (thread(const thread&&)): Add deleted
1761 * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
1763 * doc/xml/manual/spine.xml: Update copyright years.
1764 * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
1765 * doc/xml/manual/test.xml: Likewise.
1766 * doc/html/*: Regenerate.
1768 2017-01-01 Gerald Pfeifer <gerald@pfeifer.com>
1770 * doc/xml/faq.xml: Update address of C++ ABI link.
1771 * doc/xml/manual/abi.xml: Ditto.
1773 2017-01-01 Jakub Jelinek <jakub@redhat.com>
1775 Update copyright years.
1777 Copyright (C) 2017 Free Software Foundation, Inc.
1779 Copying and distribution of this file, with or without modification,
1780 are permitted in any medium without royalty provided the copyright
1781 notice and this notice are preserved.