1 2017-08-14 Release Manager
5 2017-07-26 Richard Biener <rguenther@suse.de>
8 2017-06-02 Richard Biener <rguenther@suse.de>
9 Markus Eisenmann <meisenmann.lba@fh-salzburg.ac.at>
12 * libsupc++/eh_alloc.cc (pool::free): Keep list properly
13 sorted and add missing freelist item merging cases.
15 2017-07-25 Jonathan Wakely <jwakely@redhat.com>
17 Backport from mainline
18 2017-06-09 Jonathan Wakely <jwakely@redhat.com>
20 * doc/xml/manual/intro.xml: Document LWG 2802, 2873 and 2942 changes.
21 * include/bits/shared_ptr.h (shared_ptr): Use rvalues for deleters
23 * include/bits/shared_ptr_base.h (_Sp_ebo_helper, _Sp_counted_deleter
24 (_Sp_counted_deleter::_Impl, __shared_count, __shared_ptr): Likewise.
25 * testsuite/20_util/shared_ptr/cons/lwg2802.cc: New.
27 Backport from mainline
28 2017-06-05 Jonathan Wakely <jwakely@redhat.com>
30 * include/bits/shared_ptr_base.h (__shared_ptr::owner_before)
31 (__weak_ptr::owner_before, _Sp_owner_less::operator()): Add noexcept
32 specifiers as per LWG 2873 and LWG 2942.
33 * testsuite/20_util/owner_less/noexcept.cc: New.
34 * testsuite/20_util/shared_ptr/observers/owner_before.cc: Test
36 * testsuite/20_util/weak_ptr/observers/owner_before.cc: Likewise.
38 Backport from mainline
39 2017-04-28 Jonathan Wakely <jwakely@redhat.com>
42 * include/bits/stl_construct.h (_Destroy, _Destroy_n): Add static
43 assertions to ensure type is destructible.
44 (destroy_at, destroy, destroy_n): Move from stl_uninitialized.h.
45 * include/bits/stl_uninitialized.h (destroy_at, destroy, destroy_n):
46 Move to stl_construct.h.
47 * testsuite/20_util/specialized_algorithms/memory_management_tools/
48 destroy_neg.cc: New test.
49 * testsuite/23_containers/vector/cons/destructible_neg.cc: New test.
51 Backport from mainline
52 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
54 * configure: Regenerate.
55 * doc/xml/manual/status_cxx2017.xml: Update status table.
56 * doc/html/*: Regenerate.
57 * include/Makefile.am: Add new header.
58 * include/Makefile.in: Regenerate.
59 * include/experimental/source_location: New header implementing N4519.
60 * testsuite/experimental/source_location/1.cc: New test.
62 Backport from mainline
63 2017-07-06 Jonathan Wakely <jwakely@redhat.com>
65 * include/bits/uses_allocator.h (__use_alloc(const _Alloc&&)): Add
66 deleted overload to prevent dangling references to rvalues.
67 * include/experimental/memory_resource
68 (polymorphic_allocator::construct): Do not call __use_alloc with
71 Backport from mainline
72 2017-06-08 Jonathan Wakely <jwakely@redhat.com>
75 * include/bits/std_function.h (function::function(function&&))
76 (function::operator=(funtion&&)): Add noexcept.
77 * testsuite/20_util/function/assign/move.cc: Check for noexcept.
78 * testsuite/20_util/function/cons/move.cc: Likewise.
80 Backport from mainline
81 2017-07-15 Jonathan Wakely <jwakely@redhat.com>
83 * include/std/mutex (scoped_lock): Reorder std::adopt_lock_t parameter
85 * testsuite/30_threads/scoped_lock/cons/1.cc: Reorder arguments.
86 * testsuite/30_threads/scoped_lock/cons/deduction.cc: Test deduction
87 with std::adopt_lock_t.
88 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: Check
91 Backport from mainline
92 2017-07-14 Jason Merrill <jason@redhat.com>
93 Jonathan Wakely <jwakely@redhat.com>
95 * include/std/variant (variant::variant(_Tp&&)): Constrain to remove
96 the constructor for empty variants from the candidate functions
97 during class template argument deduction.
98 * testsuite/20_util/variant/deduction.cc: New.
100 Backport from mainline
101 2017-06-02 Jonathan Wakely <jwakely@redhat.com>
104 * include/std/variant (__erased_ctor, __erased_assign, __erased_swap)
105 (__erased_hash): Remove constexpr specifier and qualify calls to
107 (__erased_dtor): Remove constexpr specifier and use _Destroy.
109 Backport from mainline
110 2017-05-20 Tim Shen <timshen@google.com>
113 * include/std/variant(variant::variant): SFINAE on is_same first.
114 * testsuite/20_util/variant/any.cc: test case.
116 2017-07-11 Jonathan Wakely <jwakely@redhat.com>
118 Backport from mainline
119 2017-04-21 Jonathan Wakely <jwakely@redhat.com>
122 * include/std/future (_State_baseV2::_Setter::operator()): Remove
123 _S_check calls that are done after the pointer to the shared state is
124 already dereferenced.
125 (_State_baseV2::_Setter<_Res, void>): Define specialization for void
126 as partial specialization so it can be defined within the definition
128 (_State_baseV2::__setter): Call _S_check.
129 (_State_baseV2::__setter(promise<void>*)): Add overload for use by
130 promise<void>::set_value and promise<void>::set_value_at_thread_exit.
131 (promise<T>, promise<T&>, promise<void>): Make _State a friend.
132 (_State_baseV2::_Setter<void, void>): Remove explicit specialization.
133 (promise<void>::set_value, promise<void>::set_value_at_thread_exit):
134 Use new __setter overload.
135 * testsuite/30_threads/promise/members/at_thread_exit2.cc: New test.
136 * testsuite/30_threads/promise/members/set_exception.cc: Test
137 promise<T&> and promise<void> specializations.
138 * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
139 Test for no_state error condition.
140 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
142 2017-06-27 Jonathan Wakely <jwakely@redhat.com>
145 * include/bits/stl_algo.h (sample): Qualify with _GLIBCXX_STD_A not
147 * testsuite/25_algorithms/sample/81221.cc: New.
149 2017-06-21 Ville Voutilainen <ville.voutilainen@gmail.com>
151 Backport from mainline
152 2017-06-21 Ville Voutilainen <ville.voutilainen@gmail.com>
156 * include/std/istream:
157 (__is_convertible_to_basic_istream_test(basic_istream<_Ch, _Up>*)): New.
158 (__do_is_convertible_to_basic_istream_impl): Likewise.
159 (__is_convertible_to_basic_istream_impl): Likewise.
160 (__is_convertible_to_basic_istream): Use the new base.
161 (__rvalue_istream_type): New.
162 (operator>>(_Istream&&, _Tp&&)): Use the new helper alias
163 for the SFINAE check, convert to the helper alias type before
164 doing the actual extraction.
165 * include/std/ostream:
166 (__is_convertible_to_basic_ostream_test(basic_ostream<_Ch, _Up>*)): New.
167 (__do_is_convertible_to_basic_ostream_impl): Likewise.
168 (__is_convertible_to_basic_ostream_impl): Likewise.
169 (__is_convertible_to_basic_ostream): Use the new base.
170 (__rvalue_ostream_type): New.
171 (operator<<(_Ostream&&, const _Tp&)): Use the new helper alias
172 for the SFINAE check, convert to the helper alias type before
173 doing the actual insertion.
174 * testsuite/27_io/rvalue_streams-2.cc: Add new tests.
176 2017-06-21 Uros Bizjak <ubizjak@gmail.com>
178 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
180 2017-06-21 Jonathan Wakely <jwakely@redhat.com>
183 * configure: Regenerate.
185 2017-06-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
187 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: Regenerate.
188 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: Likewise.
189 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: Likewise.
190 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: Likewise.
191 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: Likewise.
192 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
194 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: Likewise.
195 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
198 2017-06-18 H.J. Lu <hongjiu.lu@intel.com>
201 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
203 2017-06-16 Jakub Jelinek <jakub@redhat.com>
206 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
208 2017-06-16 Jonathan Wakely <jwakely@redhat.com>
210 * include/bits/locale_conv.h (wbuffer_convert::sync): Fix condition.
211 * testsuite/22_locale/conversions/buffer/2.cc: New.
213 * doc/xml/manual/appendix_contributing.xml: Link to the list of bad
214 names, and link to the test docs and note higher DejaGnu version
216 * doc/xml/manual/allocator.xml: Fix ViewCVS URLs.
217 * doc/xml/manual/mt_allocator.xml: Likewise.
218 * doc/xml/manual/test.xml: Correct instructions on running tests.
219 * doc/html/*: Regenerate.
222 * acinclude.m4: Bump libtool_VERSION.
223 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
224 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
225 * config/abi/pre/gnu.ver: Add wstring constructor symbols to new
226 GLIBCXX_3.4.24 version.
227 * doc/xml/manual/abi.xml: Document new versions.
228 * doc/html/*: Regenerate.
229 * testsuite/21_strings/basic_string/cons/char/8.cc: Use base object
230 constructors to ensure required symbols are exported.
231 * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise.
232 * testsuite/util/testsuite_abi.cc: Add new version.
234 * include/bits/locale_conv.h (wbuffer_convert::_M_put): Add missing
236 * testsuite/21_strings/basic_string_view/operations/copy/char/1.cc:
238 * testsuite/21_strings/basic_string_view/operations/copy/wchar_t/1.cc:
240 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc: Add
241 missing return statements.
242 * testsuite/23_containers/unordered_map/modifiers/insert_or_assign.cc:
244 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
246 * testsuite/special_functions/14_expint/pr68397.cc: Likewise.
248 2017-06-07 Jonathan Wakely <jwakely@redhat.com>
251 * include/bits/regex_compiler.h (__compile_nfa): Add template argument
252 list to specify traits type.
253 * testsuite/28_regex/basic_regex/ctors/basic/iter.cc: New.
255 2017-05-19 Jonathan Wakely <jwakely@redhat.com>
258 * include/bits/stl_algo.h (search): Add new overload for C++17.
259 * testsuite/25_algorithms/search/searcher.cc: New.
261 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
264 * include/std/functional (_Mem_fn_traits_base): Add specializations
265 for noexcept member function types.
266 * testsuite/20_util/function_objects/mem_fn/80478.cc: New test.
268 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
270 * doc/xml/manual/policy_data_structures.xml: Fix typo.
271 * doc/xml/manual/test_policy_data_structures.xml: Likewise.
272 * doc/html/*: Regenerate.
274 * doc/xml/manual/abi.xml: Document latest library versions.
275 * doc/xml/manual/build_hacking.xml: Document requirement to update
276 abi.xml when bumping library versions.
277 * doc/html/*: Regenerate.
279 2017-05-15 Jonathan Wakely <jwakely@redhat.com>
282 * include/bits/node_handle.h (_Node_insert_return): Reorder members.
283 (tuple_size, tuple_element): Remove partial specializations.
284 * include/bits/stl_tree.h (_Rb_tree::insert_return_type): Use
285 const_iterator for std::set.
286 * testsuite/23_containers/map/modifiers/extract.cc: New.
287 * testsuite/23_containers/set/modifiers/extract.cc: New.
288 * testsuite/23_containers/unordered_map/modifiers/extract.cc: New.
289 * testsuite/23_containers/unordered_set/modifiers/extract.cc: New.
291 2017-05-12 Jonathan Wakely <jwakely@redhat.com>
294 * include/std/utility (tuple_size<cv T>) [__cplusplus > 201402L]:
295 Only define partial specializations when tuple_size<T>::value is
297 * testsuite/20_util/tuple/78939.cc: New.
299 2017-05-02 Release Manager
301 * GCC 7.1.0 released.
303 2017-04-19 Jonathan Wakely <jwakely@redhat.com>
305 * doc/xml/manual/abi.xml: Rephrase one of the references to the
307 * doc/xml/manual/test.xml: Document DejaGnu 1.5.3 requirement.
308 * doc/html/*: Regenerate.
310 * libsupc++/new: Update comment on #endif directive.
313 * include/experimental/bits/fs_dir.h (directory_iterator)
314 (recursive_directory_iterator): Remove noexcept from defaulted
318 * include/std/type_traits (is_aggregate): Change __has_builtin checks.
319 * libsupc++/new (launder): Likewise.
321 2017-04-18 Jonathan Wakely <jwakely@redhat.com>
323 * include/std/functional (default_searcher, __boyer_moore_array_base)
324 (__is_std_equal_to, __boyer_moore_base_t, boyer_moore_searcher)
325 (boyer_moore_horspool_searcher): Remove redundant namespace
327 (default_searcher::operator()): Construct return value early and
328 advance second member in-place.
329 (boyer_moore_horspool_searcher::operator()): Increment random access
330 iterator directly instead of using std::next.
331 (boyer_moore_searcher::operator()): Fix return value.
332 * testsuite/20_util/function_objects/searchers.cc: Check both parts
335 2017-04-12 Gerald Pfeifer <gerald@pfeifer.com>
337 * doc/xml/faq.xml: Update reference link to C++ ABI for Itanium.
338 * doc/xml/manual/abi.xml. Ditto (thrice).
340 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
342 * doc/xml/manual/status_cxx2017.xml: Remove duplicate table entry.
343 * doc/html/*: Regenerate.
345 * testsuite/20_util/reference_wrapper/invoke.cc: Uncomment tests
348 * include/bits/ios_base.h: Correct comment.
349 * testsuite/util/testsuite_hooks.h: Likewise.
351 * doc/xml/manual/status_cxx2017.xml: Update C++17 status table.
352 * doc/xml/manual/appendix_contributing.xml (contrib.organization): Add
353 directories for debug, parallel and profile headers.
354 * doc/html/*: Regenerate.
356 * include/bits/char_traits.h (__gnu_cxx::char_traits): Add
357 _GLIBCXX14_CONSTEXPR on assign, compare, find, and length.
358 (std::char_traits<char>, std::char_traits<wchar_t>): Add
359 _GLIBCXX17_CONSTEXPR on assign.
360 (std::char_traits<char16_t>, std::char_traits<char32_t>): Add
361 _GLIBCXX17_CONSTEXPR on assign, compare, find, and length.
362 * testsuite/21_strings/char_traits/requirements/
363 constexpr_functions_c++17.cc: New test.
365 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
368 * include/bits/stl_pair.h (__nonesuch_no_braces): New.
369 (operator=(typename conditional<
370 __and_<is_copy_assignable<_T1>,
371 is_copy_assignable<_T2>>::value,
372 const pair&, const __nonesuch&>::type)): Change __nonesuch
373 to __nonesuch_no_braces.
374 (operator=(typename conditional<
375 __not_<__and_<is_copy_assignable<_T1>,
376 is_copy_assignable<_T2>>>::value,
377 const pair&, const __nonesuch&>::type)): Likewise.
378 (operator=(typename conditional<
379 __and_<is_move_assignable<_T1>,
380 is_move_assignable<_T2>>::value,
381 pair&&, __nonesuch&&>::type)): Likewise.
382 * testsuite/20_util/pair/79141.cc: New.
384 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
386 Implement std::is_aggregate.
387 * include/std/type_traits (is_aggregate, is_aggregate_v): New.
388 * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc:
390 * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise.
391 * testsuite/20_util/is_aggregate/value.cc: Likewise.
393 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
395 Adjust optional's pretty printer for LWG 2900.
396 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter.__init__):
397 Look at the nested payload in case of non-experimental optional.
399 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
401 Implement LWG 2900, The copy and move constructors
402 of optional are not constexpr.
403 * include/std/optional (_Optional_payload): New.
404 (_Optional_base): Remove the bool parameter.
405 (_Optional_base<_Tp, false>): Remove.
406 (_Optional_base()): Adjust.
407 (_Optional_base(nullopt_t)): Likewise.
408 (_Optional_base(in_place_t, _Args&&...)): Likewise.
409 (_Optional_base(in_place_t, initializer_list<_Up>, _Args&&...)):
411 (_Optional_base(const _Optional_base&)): Likewise.
412 (_Optional_base(_Optional_base&&)): Likewise.
413 (operator=(const _Optional_base&)): Likewise.
414 (operator=(_Optional_base&&)): Likewise.
415 (~_Optional_base()): Remove.
416 (_M_is_engaged()): Adjust.
417 (_M_get()): Likewise.
418 (_M_construct(_Args&&...)): Likewise.
419 (_M_destruct()): Likewise.
420 (_M_reset()): Likewise.
421 (_Optional_base::_Empty_byte): Remove.
422 (_Optional_base::_M_empty): Remove.
423 (_Optional_base::_M_payload): Adjust.
424 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
425 * testsuite/20_util/optional/constexpr/cons/value.cc: Add tests.
427 2017-03-28 Jonathan Wakely <jwakely@redhat.com>
430 * include/bits/random.tcc (generate_canonical): Use std::nextafter
431 or numeric_limits::epsilon() to reduce out-of-range values.
432 * testsuite/26_numerics/random/uniform_real_distribution/operators/
433 64351.cc: Verify complexity requirement is met.
435 * doc/xml/manual/abi.xml: Add xml:id anchor.
436 * doc/xml/manual/using.xml (manual.intro.using.macros): Document
437 _GLIBCXX_RELEASE. Link to new anchor for __GLIBCXX__ notes.
438 (concurrency.io.structure): Add markup.
439 * doc/html/*: Regenerate.
442 * include/bits/shared_ptr_base.h
443 (__shared_ptr::_M_enable_shared_from_this_with): Change parameters to
444 non-const and then use remove_cv to get unqualified type.
445 * testsuite/20_util/enable_shared_from_this/members/const.cc: Don't
446 cast away constness on object created const.
447 * testsuite/20_util/shared_ptr/cons/80229.cc: New test.
449 2017-03-26 Markus Trippelsdorf <markus@trippelsdorf.de>
452 * include/bits/stl_tree.h:
453 (_Rb_tree_header::_M_move_data(_Rb_tree_header&)): Also save _M_color.
455 2017-03-23 Jonathan Wakely <jwakely@redhat.com>
457 * testsuite/23_containers/array/tuple_interface/
458 tuple_element_debug_neg.cc: Adjust dg-error.
459 * testsuite/23_containers/list/operations/78389.cc: Fix less-than to
460 define a valid strict weak ordering.
461 * testsuite/23_containers/priority_queue/67085.cc: Disable test for
462 Debug Mode, due to debug checks making extra copies of predicate.
463 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
466 * doc/xml/faq.xml: Add link.
467 * doc/xml/manual/backwards_compatibility.xml: Remove outdated
468 information on pre-ISO headers. Replace broken link to C++ FAQ Lite.
469 * doc/xml/manual/io.xml: Update broken link.
470 * doc/html/*: Regenerate.
472 2017-03-23 Daniel Kruegler <daniel.kruegler@gmail.com>
474 Implement LWG 2686, Why is std::hash specialized for error_code,
475 but not error_condition?
476 * include/std/system_error (hash<error_condition>): Define for C++17.
477 * testsuite/20_util/hash/operators/size_t.cc (hash<error_condition>):
478 Instantiate test for error_condition.
479 * testsuite/20_util/hash/requirements/explicit_instantiation.cc
480 (hash<error_condition>): Instantiate hash<error_condition>.
482 * include/bits/c++config (_GLIBCXX17_INLINE): Define.
483 * include/bits/regex_constants.h (All std::regex_constants constants):
484 Add _GLIBCXX17_INLINE as per P0607R0.
485 * include/bits/std_mutex.h (defer_lock, try_to_lock, adopt_lock):
487 * include/bits/stl_pair.h (piecewise_construct): Likewise.
488 * include/bits/uses_allocator.h (allocator_arg, uses_allocator_v)
489 (__is_uses_allocator_constructible_v)
490 (__is_nothrow_uses_allocator_constructible_v): Likewise.
491 * include/std/chrono (treat_as_floating_point_v): Likewise.
492 * include/std/functional (is_bind_expression_v, is_placeholder_v):
494 * include/std/optional (nullopt): Likewise.
495 * include/std/ratio (ratio_equal_v, ratio_not_equal_v, ratio_less_v)
496 ratio_less_equal_v, ratio_greater_v, ratio_greater_equal_v): Likewise.
497 * include/std/system_error (is_error_code_enum_v)
498 (is_error_condition_enum_v): Likewise.
499 * include/std/tuple (tuple_size_v, ignore): Likewise.
500 (ignore): Declare ignore constexpr as per LWG 2773, declare assignment
501 constexpr as per LWG 2933.
502 * include/std/type_traits (All variable templates): Add
503 _GLIBCXX17_INLINE as per P0607R0.
504 * include/std/variant (variant_size_v, variant_npos, __index_of_v)
505 (__tuple_count_v, __exactly_once): Likewise.
506 * testsuite/18_support/headers/new/synopsis.cc
507 (hardware_destructive_interference_size)
508 (hardware_constructive_interference_size): Likewise for commented-out
510 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Add new
511 test function for constexpr std::ignore (LWG 2773).
512 * testsuite/20_util/tuple/creation_functions/constexpr_cpp14.cc: New
515 2017-03-22 Jonathan Wakely <jwakely@redhat.com>
517 * include/bits/shared_ptr.h (shared_ptr, weak_ptr): Add deduction
519 * include/bits/std_function.h (function): Likewise.
520 * include/bits/stl_pair.h (pair): Likewise.
521 * include/debug/array (__gnu_debug::array): Likewise.
522 * include/std/array (array): Likewise.
523 * include/std/functional (make_default_searcher)
524 (make_boyer_moore_searcher, make_boyer_moore_horspool_searcher):
525 Remove generator functions.
526 * include/std/tuple (tuple): Add deduction guides.
527 * include/std/valarray (valarray): Likewise.
528 * testsuite/20_util/function_objects/searchers.cc: Adjust to use
529 class template argument deduction instead of generator functions.
530 * testsuite/20_util/function/cons/deduction.cc: New test.
531 * testsuite/20_util/optional/cons/deduction_guide.cc: Rename to ...
532 * testsuite/20_util/optional/cons/deduction.cc: ... here.
533 * testsuite/20_util/pair/cons/deduction.cc: New test.
534 * testsuite/20_util/shared_ptr/cons/deduction.cc: New test.
535 * testsuite/20_util/tuple/cons/deduction.cc: New test.
536 * testsuite/20_util/tuple/element_access/get_neg.cc: Adjust dg-error.
537 * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: New test.
538 * testsuite/20_util/weak_ptr/cons/deduction.cc: New test.
539 * testsuite/23_containers/array/cons/deduction.cc: New test.
540 * testsuite/23_containers/array/cons/deduction_neg.cc: New test.
541 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
543 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise.
544 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
546 * testsuite/26_numerics/valarray/deduction.cc: New test.
547 * testsuite/30_threads/lock_guard/cons/deduction.cc: New test.
548 * testsuite/30_threads/scoped_lock/cons/deduction.cc: New test.
549 * testsuite/30_threads/unique_lock/cons/deduction.cc: New test.
551 2017-03-20 François Dumont <fdumont@gcc.gnu.org>
553 * include/bits/stl_deque.h (deque): Access allocator value_type only if
554 concept checks are enabled.
555 * include/bits/stl_stack.h (stack): Likewise.
556 * include/bits/stl_vector.h (vector): Likewise.
557 * include/bits/stl_list.h (list): Likewise and check
558 _SGIAssignableConcept only in C++03.
559 * include/bits/stl_map.h (map): Likewise.
560 * include/bits/stl_set.h (set): Likewise.
561 * include/bits/stl_multimap.h (multimap): Likewise.
562 * include/bits/stl_multiset.h (multiset): Likewise.
563 * include/bits/stl_queue.h (queue, priority_queue): Likewise.
565 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
567 * doc/xml/manual/appendix_contributing.xml: Convert link to
569 Update link to the C++ standard at ansi.org.
571 * doc/xml/faq.xml: Remove information redundant with the above;
572 instead add a reference.
574 2017-03-17 Jonathan Wakely <jwakely@redhat.com>
576 * src/c++11/codecvt.cc (range): Add non-type template parameter and
577 define oerloaded operators for reading and writing code units.
578 (range<Elem, false>): Define partial specialization for accessing
579 wide characters in potentially unaligned byte ranges.
580 (ucs2_span(const char16_t*, const char16_t*, ...))
581 (ucs4_span(const char16_t*, const char16_t*, ...)): Change parameters
582 to range<const char16_t, false> in order to avoid unaligned reads.
583 (__codecvt_utf16_base<char16_t>::do_out)
584 (__codecvt_utf16_base<char32_t>::do_out)
585 (__codecvt_utf16_base<wchar_t>::do_out): Use range specialization for
586 unaligned data to avoid unaligned writes.
587 (__codecvt_utf16_base<char16_t>::do_in)
588 (__codecvt_utf16_base<char32_t>::do_in)
589 (__codecvt_utf16_base<wchar_t>::do_in): Likewise for writes. Return
590 error if there are unprocessable trailing bytes.
591 (__codecvt_utf16_base<char16_t>::do_length)
592 (__codecvt_utf16_base<char32_t>::do_length)
593 (__codecvt_utf16_base<wchar_t>::do_length): Pass arguments of type
594 range<const char16_t, false> to span functions.
595 * testsuite/22_locale/codecvt/codecvt_utf16/misaligned.cc: New test.
597 2017-03-16 Jonathan Wakely <jwakely@redhat.com>
600 * src/c++11/codecvt.cc (to_integer(codecvt_mode)): Fix target type.
603 * src/c++11/codecvt.cc (__codecvt_utf16_base<wchar_t>::do_out)
604 (__codecvt_utf16_base<wchar_t>::do_in): Convert char arguments to
605 char16_t to work with UTF-16 instead of UTF-8.
606 * testsuite/22_locale/codecvt/codecvt_utf16/80041.cc: New test.
608 * src/c++11/codecvt.cc (codecvt<char16_t, char, mbstate_t>)
609 (codecvt<char32_t, char, mbstate_t>, __codecvt_utf8_base<char16_t>)
610 (__codecvt_utf8_base<char32_t>, __codecvt_utf8_base<wchar_t>)
611 (__codecvt_utf16_base<char16_t>, __codecvt_utf16_base<char32_t>)
612 (__codecvt_utf16_base<wchar_t>, __codecvt_utf8_utf16_base<char16_t>)
613 (__codecvt_utf8_utf16_base<char32_t>)
614 (__codecvt_utf8_utf16_base<wchar_t>): Fix do_encoding() and
615 do_max_length() return values.
616 * testsuite/22_locale/codecvt/codecvt_utf16/members.cc: New test.
617 * testsuite/22_locale/codecvt/codecvt_utf8/members.cc: New test.
618 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/members.cc: New test.
621 * include/bits/locale_conv.h (__do_str_codecvt): Set __count on
623 * src/c++11/codecvt.cc (operator&=, operator|=, operator~): Overloads
624 for manipulating codecvt_mode values.
625 (read_utf16_bom): Compare input to BOM constants instead of integral
626 constants that depend on endianness. Take mode parameter by
627 reference and adjust it, to distinguish between no BOM present and
628 UTF-16BE BOM present.
629 (ucs4_in, ucs2_span, ucs4_span): Adjust calls to read_utf16_bom.
630 (surrogates): New enumeration type.
631 (utf16_in, utf16_out): Add surrogates parameter to choose between
632 UTF-16 and UCS2 behaviour.
633 (utf16_span, ucs2_span): Use std::min not std::max.
634 (ucs2_out): Use std::min not std::max. Disallow surrogate pairs.
635 (ucs2_in): Likewise. Adjust calls to read_utf16_bom.
636 * testsuite/22_locale/codecvt/codecvt_utf16/79980.cc: New test.
637 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: New test.
640 * src/c++11/codecvt.cc (write_utf16_code_point): Don't write 0xffff
642 (__codecvt_utf8_utf16_base<char32_t>::do_in): Use native endianness
643 for internal representation.
644 (__codecvt_utf8_utf16_base<wchar_t>::do_in): Likewise.
645 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/79511.cc: New test.
648 * include/bits/stl_heap.h (__is_heap, push_heap, __adjust_heap)
649 (pop_heap, make_heap, sort_heap, is_heap_until, is_heap): Cope with
650 invalid instantiations using function types for _Compare argument.
651 * testsuite/25_algorithms/make_heap/80064.cc: New test.
654 * python/libstdcxx/v6/printers.py (find_type): Avoid gdb.Type.name
655 for GDB 7.6 compatibility, use gdb.Type.unqualified instead.
657 2017-03-15 Ville Voutilainen <ville.voutilainen@gmail.com>
659 Implement LWG 2857, {variant,optional,any}::emplace should
660 return the constructed value.
661 * include/std/any (emplace(_Args&&...)): Change the return type and
662 return a reference to the constructed value.
663 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
664 * include/std/optional (emplace(_Args&&...)): Likewise.
665 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
666 * include/std/variant (emplace<_Tp>(_Args&&...)): Likewise.
667 (emplace<_Tp>(initializer_list<_Up>, _Args&&...)): Likewise.
668 (emplace<_Np>(_Args&&...)): Likewise.
669 (emplace<_Np>(initializer_list<_Up>, _Args&&...)): Likewise.
670 * testsuite/20_util/any/assign/emplace.cc: Add tests for
671 checking the return value of emplace.
672 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust.
673 * testsuite/20_util/optional/assignment/6.cc: Add tests for
674 checking the return value of emplace.
675 * testsuite/20_util/variant/run.cc: Likewise.
677 2017-03-15 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
680 * include/ext/pb_ds/qdetail/binary_heap_/binary_heap_.hpp
682 (push_heap): Remove the wrong checking using is_heap.
683 (make_heap): Remove the assertion using is_heap.
684 * include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp
686 (resize_for_insert_if_needed): Add PB_DS_ASSERT_VALID after
689 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
692 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
694 * testsuite/ext/pb_ds/regression/priority_queues.cc: Fix copy&paste
697 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
699 * acinclude.m4 (GLIBCXX_CHECK_S_ISREG_OR_S_IFREG): Fix typo in
701 * config.h.in: Regenerate.
702 * configure: Regenerate.
703 * doc/Makefile.in: Regenerate.
705 2017-03-14 Jonathan Wakely <jwakely@redhat.com>
708 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
709 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace
710 with a constrained template.
711 [!_GLIBCXX_USE_CXX11_ABI]
712 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise.
713 * testsuite/21_strings/basic_string/cons/char/79162.cc: New test.
714 * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test.
716 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
719 * include/bits/list.tcc (merge(list&&)): Use const for the size_t
721 (merge(list&&, _StrictWeakOrdering)): Likewise.
722 * testsuite/23_containers/list/operations/80034.cc: New.
724 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
726 Implement LWG 2806, Base class of bad_optional_access.
727 * include/std/optional (bad_optional_access):
728 Derive from std::exception.
729 (bad_optional_access::bad_optional_access): Adjust.
730 (bad_optional_access::what): New.
731 (__throw_bad_optional_access(const char*)):
732 Remove the parameter and adjust calls.
733 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
734 * testsuite/20_util/optional/typedefs.cc: Likewise.
736 2017-03-12 Ville Voutilainen <ville.voutilainen@gmail.com>
738 Implement LWG 2934, optional<const T> doesn't compare with T.
739 * include/std/optional
740 (operator==(const optional<_Tp>&, const optional<_Tp>&)):
741 Turn into operator==(const optional<_Tp>&, const optional<_Up>&).
742 (operator!=(const optional<_Tp>&, const optional<_Tp>&)):
743 Turn into operator!=(const optional<_Tp>&, const optional<_Up>&).
744 (operator<(const optional<_Tp>&, const optional<_Tp>&)):
745 Turn into operator<(const optional<_Tp>&, const optional<_Up>&.
746 (operator>(const optional<_Tp>&, const optional<_Tp>&)):
747 Turn into operator>(const optional<_Tp>&, const optional<_Up>&.
748 (operator<=(const optional<_Tp>&, const optional<_Tp>&)):
749 Turn into operator<=(const optional<_Tp>&, const optional<_Up>&).
750 (operator>=(const optional<_Tp>&, const optional<_Tp>&)):
751 Turn into operator>=(const optional<_Tp>&, const optional<_Up>&).
752 (operator==(const optional<_Tp>&, const _Tp&)):
753 Turn into operator==(const optional<_Tp>&, const _Up&).
754 (operator==(const _Tp&, const optional<_Tp>&)):
755 Turn into operator==(const _Up&, const optional<_Tp>&).
756 (operator!=(const optional<_Tp>&, const _Tp&)):
757 Turn into operator!=(const optional<_Tp>&, const _Up&).
758 (operator!=(const _Tp&, const optional<_Tp>&)):
759 Turn into operator!=(const _Up&, const optional<_Tp>&).
760 (operator<(const optional<_Tp>&, const _Tp&)):
761 Turn into operator<(const optional<_Tp>&, const _Up&).
762 (operator<(const _Tp&, const optional<_Tp>&)):
763 Turn into operator<(const _Up&, const optional<_Tp>&).
764 (operator>(const optional<_Tp>&, const _Tp&)):
765 Turn into operator>(const optional<_Tp>&, const _Up&).
766 (operator>(const _Tp&, const optional<_Tp>&)):
767 Turn into operator>(const _Up&, const optional<_Tp>&).
768 (operator<=(const optional<_Tp>&, const _Tp&)):
769 Turn into operator<=(const optional<_Tp>&, const _Up&).
770 (operator<=(const _Tp&, const optional<_Tp>&)):
771 Turn into operator<=(const _Up&, const optional<_Tp>&).
772 (operator>=(const optional<_Tp>&, const _Tp&)):
773 Turn into operator>=(const optional<_Tp>&, const _Up&).
774 (operator>=(const _Tp&, const optional<_Tp>&)):
775 Turn into operator>=(const _Up&, const optional<_Tp>&).
776 * testsuite/20_util/optional/relops/7.cc: New.
778 2017-03-10 Jonathan Wakely <jwakely@redhat.com>
780 * testsuite/17_intro/names.cc: Undefine macros that clash with
781 identifiers in AIX system headers.
783 * include/bits/invoke.h (__invoke): Use __invoke_result instead of
784 result_of, and __is_nothrow_invocable instead of
785 __is_nothrow_callable.
786 * include/bits/shared_ptr_base.h (__shared_ptr): Use __is_invocable
787 instead of __is_callable.
788 * include/std/functional (invoke): use invoke_result_t instead of
789 result_of_t and is_nothrow_invocable instead of is_nothrow_callable.
790 (_Not_fn): Use __invoke_result instead of result_of.
791 * include/std/type_traits (__result_of_memobj, __result_of_memfun):
792 Remove partial specializations for reference_wrapper types.
793 (__result_of_impl): Use __inv_unwrap to strip reference_wrapper.
794 (__invoke_result): Define replacement for result_of and then use it to
796 (__is_callable_impl, __is_callable, __is_nothrow_callable): Replace
797 with __is_invocable_impl, __is_invocable, and __is_nothrow_invocable
799 (invoke_result, invoke_result_t): Define for C++17.
800 (is_callable, is_nothrow_callable): Replace with is_invocable,
801 is_invocable_r, is_nothrow_invocable, and is_nothrow_invocable_r.
802 (is_callable_v, is_nothrow_callable_v): Replace with is_invocable_v,
803 is_invocable_r_v, is_nothrow_invocable_v, and is_nothrow_invocable_r_v.
804 * include/std/variant (hash<variant<T...>>): Use is_nothrow_invocable_v
805 instead of is_nothrow_callable_v.
806 * testsuite/20_util/function_objects/invoke/59768.cc: Remove unused
808 * testsuite/20_util/function_objects/not_fn/1.cc: Use is_invocable
809 instead of is_callable.
810 * testsuite/20_util/is_callable/*: Rename directory and adjust tests
812 * testsuite/20_util/is_nothrow_callable/*: Likewise.
813 * testsuite/20_util/optional/hash.cc: Use is_invocable_v instead of
815 * testsuite/20_util/variant/hash.cc: Likewise.
817 2017-03-10 George Lander <george.lander@arm.com>
819 * acinclude.m4 (glibcxx_cv_obsolete_isnan): Define
820 _GLIBCXX_INCLUDE_NEXT_C_HEADERS before including math.h.
821 * configure: Regenerate.
823 2017-03-09 Jonathan Wakely <jwakely@redhat.com>
825 * include/std/functional (_Not_fn): Define macro to simplify
826 repetitive function definitions.
828 * doc/xml/manual/status_cxx2017.xml: Document std::byte support.
829 * include/c_global/cstddef (std::byte): Define for C++17.
830 * testsuite/18_support/byte/global_neg.cc: New test.
831 * testsuite/18_support/byte/ops.cc: New test.
832 * testsuite/18_support/byte/requirements.cc: New test.
834 2017-03-05 Jonathan Wakely <jwakely@redhat.com>
836 * doc/xml/manual/status_cxx2017.xml: Document P0156R2 status.
837 * doc/html/*: Regenerate.
838 * include/std/mutex (scoped_lock): Implement new C++17 template.
839 * testsuite/30_threads/scoped_lock/cons/1.cc: New test.
840 * testsuite/30_threads/scoped_lock/requirements/
841 explicit_instantiation.cc: New test.
842 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: New test.
844 2017-03-02 Gerald Pfeifer <gerald@pfeifer.com>
845 François Dumont <frs.dumont@gmail.com>
846 Jonathan Wakely <jwakely@redhat.com>
848 * doc/xml/manual/debug_mode.xml: Update and simplify note
849 on link- and run-time coexistence.
851 2017-03-02 Jonathan Wakely <jwakely@redhat.com>
853 * testsuite/17_intro/headers/names.cc: Rename to ...
854 * testsuite/17_intro/names.cc: ... here.
857 * include/bits/hashtable_policy.h (__clp2): Use reserved names for
858 parameters and local variables.
859 * include/bits/ios_base.h (make_error_code, make_error_condition):
861 * include/bits/list.tcc (list::sort): Likewise.
862 * include/bits/mask_array.h (mask_array): Likewise.
863 * include/bits/regex.h (regex_token_iterator): Likewise.
864 * include/bits/slice_array.h (slice_array): Likewise.
865 * include/bits/stl_algo.h (__sample): Likewise.
866 * include/std/memory (undeclare_no_pointers): Likewise.
867 * include/std/type_traits (is_callable_v, is_nothrow_callable_v):
869 * libsupc++/exception_ptr.h (__dest_thunk): Likewise.
870 * testsuite/17_intro/headers/names.cc: New test.
873 * include/std/functional (bind::_Res_type_impl): Fix incorrect use of
874 result_of that loses top-level cv-qualifiers.
875 * testsuite/20_util/bind/79798.cc: New test.
877 2017-03-01 Gerald Pfeifer <gerald@pfeifer.com>
879 * doc/xml/manual/documentation_hacking.xml: Tweak link to
882 2017-02-23 Jonathan Wakely <jwakely@redhat.com>
884 * include/experimental/iterator: Include <iterator>.
885 * testsuite/experimental/iterator/requirements.cc: Check for contents
888 2017-02-19 Dinka Ranns <dinka.ranns@googlemail.com>
890 C++17 GB50 resolution
891 * include/std/chrono (duration::operator++()): Add
892 _GLIBCXX17_CONSTEXPR.
893 (duration::operator++(int)): Likewise.
894 (duration::operator--()): Likewise.
895 (duration::operator--(int)): Likewise.
896 (duration::operator+=(const duration&)): Likewise.
897 (duration::operator-=(const duration&)): Likewise.
898 (duration::operator*=(const rep&)): Likewise.
899 (duration::operator/=(const rep&)): Likewise.
900 (duration::operator%=(const rep&)): Likewise.
901 (duration::operator%=(const duration&)): Likewise.
902 (time_point::operator+=(const duration&)): Likewise.
903 (time_point::operator-=(const duration&)): Likewise.
904 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: New test.
905 * testsuite/20_util/duration/literals/range.cc: Adjust dg-error.
906 * testsuite/20_util/time_point/arithmetic/constexpr.cc: New test.
908 2017-02-19 Gerald Pfeifer <gerald@pfeifer.com>
910 * doc/xml/manual/debug.xml: Adjust link to ThreadSanitizer.
912 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
914 * doc/xml/manual/io.xml: Update link to groups.google.com.
915 Tweak link description.
917 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
919 * doc/xml/manual/profile_mode.xml: Fix link.
921 2017-02-16 Gerald Pfeifer <gerald@pfeifer.com>
923 * doc/xml/manual/policy_data_structures.xml: Simplify and
924 standardize references to boost.org.
925 * doc/xml/manual/policy_data_structures_biblio.xml: Ditto.
926 * doc/xml/manual/shared_ptr.xml: Ditto.
928 2017-02-16 Jonathan Wakely <jwakely@redhat.com>
931 * src/c++11/snprintf_lite.cc (__concat_size_t): Calculate length
932 written to buffer, not length remaining in buffer.
934 2017-02-15 Tim Shen <timshen@google.com>
937 * include/std/variant (operator<(), operator>(), operator<=(),
938 operator>=(), operator==(), operator!=()): Implement P0393R3.
939 * testsuite/20_util/variant/compile.cc: Adjust tests.
940 * testsuite/20_util/variant/run.cc: Adjust tests.
942 2017-02-15 Tim Shen <timshen@google.com>
945 * include/std/variant (visit()): Forward variant types to the return
947 * testsuite/20_util/variant/compile.cc: Add test cases.
949 2017-02-13 H.J. Lu <hongjiu.lu@intel.com>
952 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
954 2017-02-13 Jakub Jelinek <jakub@redhat.com>
957 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
958 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
959 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Likewise.
960 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
961 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Likewise.
962 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
963 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Likewise.
964 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
965 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
967 2017-02-13 Jonathan Wakely <jwakely@redhat.com>
970 * include/std/future (__future_base::_Task_state::_M_run)
971 (__future_base::_Task_state::_M_run_delayed): Use lvalue types in
972 result_of expressions.
973 * testsuite/30_threads/packaged_task/79486.cc: New.
975 2017-02-11 Jonathan Wakely <jwakely@redhat.com>
978 * include/bits/shared_ptr_base.h (__shared_ptr(_Yp*, _Deleter))
979 (__shared_ptr(_Yp*, _Deleter, _Alloc)): Use lvalue types in
981 * testsuite/20_util/shared_ptr/cons/79467.cc: New.
983 * include/bits/atomic_base.h: Re-indent.
985 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
987 * doc/xml/manual/profile_mode.xml: Update a paper reference.
989 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
991 * src/c++11/snprintf_lite.cc (__err): Use https for bug reporting.
993 2017-02-08 Jonathan Wakely <jwakely@redhat.com>
995 * doc/xml/manual/policy_data_structures.xml: Fix spelling of author's
997 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise. Remove
998 broken links to texts that are no longer online.
999 * doc/xml/manual/profile_mode.xml: Update links to CGO 2009 paper and
1001 * doc/xml/manual/using.xml: Update links to memory model information.
1002 * doc/xml/manual/using_exceptions.xml: Update link to "Appendix E:
1003 Standard-Library Exception Safety".
1004 * doc/html/*: Regenerate.
1006 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1008 * doc/xml/manual/profile_mode.xml: Unbreak link to
1009 "Optimizing Sorting with Machine Learning Algorithms".
1011 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1013 * src/c++11/snprintf_lite.cc (__err): Update bug reporting URL.
1015 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1017 * doc/xml/manual/abi.xml: Update link to "Sun Studio 11: C++
1020 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
1022 * doc/html/ext/lwg-active.html: Remove.
1023 * doc/html/ext/lwg-closed.html: Ditto.
1024 * doc/html/ext/lwg-defects.html: Ditto.
1026 * doc/Makefile.am (xml_extradir): Remove.
1028 (stamp-html-docbook-lwg): Remove recipe...
1029 (stamp-html-docbook-data): ...and its use here.
1030 * doc/Makefile.in: Regenerate.
1032 * doc/xml/manual/intro.xml: Shorten two paragraphs explaining
1033 the relationship to the upstream working group.
1034 Replace a local link to ../ext/lwg-active.html by the upstream one.
1035 Replace all reference to ../ext/lwg-defects.html by a new entity
1036 &DR; which refers to the upstream address.
1038 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
1040 * doc/xml/manual/status_cxx2017.xml: Fix link to N4284.
1042 2017-02-06 Jonathan Wakely <jwakely@redhat.com>
1045 * testsuite/20_util/duration/literals/range.cc: Prune extra output
1048 2017-02-06 Gerald Pfeifer <gerald@pfeifer.com>
1050 * doc/xml/manual/documentation_hacking.xml: Update URL of the
1051 DocBook Element Reference. Use that term as link description
1052 instead of "online".
1053 epubcheck has moved to GitHub.
1054 Remove obsolete link to DocBook Publishing Tools.
1056 2017-02-03 Jonathan Wakely <jwakely@redhat.com>
1059 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Restore ABI override
1060 so new ios::failure can be caught even when old ABI is the default.
1061 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1062 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1063 exceptions_failbit.cc: Likewise.
1064 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1065 exceptions_failbit.cc: Likewise.
1066 * testsuite/27_io/basic_istream/extractors_other/char/
1067 exceptions_null.cc: Likewise.
1068 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1069 exceptions_null.cc: Likewise.
1070 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1071 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1072 * testsuite/27_io/basic_ostream/inserters_other/char/
1073 exceptions_null.cc: Likewise.
1074 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1075 exceptions_null.cc: Likewise.
1076 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1079 * src/c++11/Makefile.am: Add new files.
1080 * src/c++11/Makefile.in: Regenerate.
1081 * src/c++11/cow-string-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
1082 (operator<<, operator>>, getline): Move explicit instantiations to ...
1083 * src/c++11/cow-string-io-inst.cc: ... new file.
1084 * src/c++11/cow-wstring-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
1085 (operator<<, operator>>, getline): Move explicit instantiations to ...
1086 * src/c++11/cow-wstring-io-inst.cc: ... new file.
1087 * src/c++11/functexcept.cc (__throw_ios_failure, __throw_system_error)
1088 (__throw_future_error, __throw_bad_function_call):
1089 (__throw_regex_error): Move functions for C++11 exceptions to the
1090 files that define the exception types.
1091 * src/c++11/functional.cc (__throw_bad_function_call): Move here.
1092 * src/c++11/future.cc (__throw_future_error): Likewise.
1093 * src/c++11/ios.cc (__throw_ios_failure): Likewise.
1094 * src/c++11/regex.cc (__throw_regex_error): Likewise.
1095 * src/c++11/snprintf_lite.cc (__concat_size_t): Print decimal
1096 representation directly instead of calling __int_to_char.
1097 * src/c++11/sso_string.cc (__sso_string): New file for definition
1098 of __sso_string type.
1099 * src/c++11/string-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
1100 explicit instantiations of narrow string I/O functions.
1101 * src/c++11/system_error.cc (__throw_system_error): Move here.
1102 (__sso_string): Move to new file.
1103 * src/c++11/wstring-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
1104 explicit instantiations of wide string I/O functions.
1105 * src/c++98/misc-inst.cc [_GLIBCXX_USE_CXX11_ABI] (operator<<)
1106 (operator>>, getline): Remove explicit instantiations from here.
1108 2017-02-02 H.J. Lu <hongjiu.lu@intel.com>
1110 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
1112 2017-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1114 * configure.host: Separate Solaris/SPARC and x86 baselines.
1115 * config/abi/post/solaris2.10/baseline_symbols.txt: Move ...
1116 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: ... here.
1117 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Move ...
1118 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
1120 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Move ...
1121 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: ... here.
1122 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: New file.
1123 * config/abi/post/solaris2.11/baseline_symbols.txt: Move ...
1124 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: ... here.
1125 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Move ...
1126 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
1128 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Move ...
1129 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: ... here.
1130 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: New file.
1132 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
1133 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
1134 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
1135 * config/abi/post/solaris2.11/baseline_symbols.txt: Likewise.
1136 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Likewise.
1137 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Likewise.
1139 2017-02-01 Jonathan Wakely <jwakely@redhat.com>
1142 * include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
1144 (_Iter_comp_to_iter): Likewise.
1145 * testsuite/25_algorithms/search/78346.cc: New test.
1148 * config/abi/pre/gnu.ver: Remove recently added symbols.
1149 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1150 (basic_string::_M_copy_assign): Remove.
1151 (basic_string::operator=(const basic_string&)): Don't dispatch to
1152 _M_copy_assign. If source object is small just deallocate, otherwise
1153 perform new allocation before making any changes.
1154 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
1155 (basic_string::_M_copy_assign(const basic_string&, true_type)):
1157 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1158 Test cases where the allocators are equal or the string is small.
1159 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1162 2017-01-30 Ville Voutilainen <ville.voutilainen@gmail.com>
1164 Implement LWG 2825, LWG 2756 breaks class template argument
1165 deduction for optional.
1166 * include/std/optional: Add a deduction guide.
1167 * testsuite/20_util/optional/cons/deduction_guide.cc: New.
1169 2017-01-27 Jonathan Wakely <jwakely@redhat.com>
1172 * config/abi/pre/gnu.ver: Add new symbols.
1173 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1174 (basic_string::_M_copy_assign): New overloaded functions to perform
1176 (basic_string::operator=(const basic_string&)): Dispatch to
1178 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
1179 (basic_string::_M_copy_assign(const basic_string&, true_type)):
1180 Define, performing rollback on exception.
1181 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1182 Test exception-safety guarantee.
1183 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1185 * testsuite/util/testsuite_allocator.h (uneq_allocator::swap): Make
1188 2017-01-26 Jonathan Wakely <jwakely@redhat.com>
1191 * include/tr1/complex (conj): Remove using-declaration and restore
1192 overloads, reverting previous change.
1194 * testsuite/23_containers/list/operations/78389.cc: Fix for C++11
1196 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
1197 Mark as unsupported in C++98 mode.
1198 * testsuite/23_containers/queue/requirements/constructible.cc:
1200 * testsuite/23_containers/stack/requirements/constructible.cc:
1202 * testsuite/25_algorithms/make_heap/movable.cc: Fix for C++11 mode.
1205 * include/bits/c++config (literals::string_view_literals::__7): Add.
1206 Only declare versioned namespaces for the relevant C++ dialects.
1207 * include/experimental/bits/erase_if.h (fundamentals_v2::__detail):
1208 Add versioning macros.
1209 * include/experimental/bits/lfts_config.h:
1210 (fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add.
1211 * include/experimental/string_view (fundamentals_v2::__detail):
1212 Add versioning macros.
1213 (fundamentals_v2::__detail::__identity): Remove.
1214 (fundamentals_v2::__detail::__idt): Use common_type instead of
1215 __detail::__identity.
1216 * include/std/string_view (__detail::__identity, __detail::__idt):
1218 (literals::string_view_literals): Fix nesting of versioning macros.
1221 * libsupc++/del_opa.cc (operator delete(void*, std::align_val_t))
1222 [!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN
1223 && !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC]:
1224 Retrieve original pointer value allocated by malloc.
1225 * libsupc++/new_opa.cc [!_GLIBCXX_HAVE_ALIGNED_ALLOC
1226 && !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN
1227 && !_GLIBCXX_HAVE__ALIGNED_MALLOC] (aligned_alloc(size_t, size_t)):
1228 Define, adjusting pointer value allocated by malloc and storing for
1229 retrieval by operator delete.
1231 2017-01-26 Jakub Jelinek <jakub@redhat.com>
1233 * libsupc++/eh_atomics.h: Update copyright years.
1234 * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years.
1236 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
1240 * include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
1241 (proj(T), conj(T)): Change return types per DR 1522.
1242 * include/tr1/complex (conj): Remove overloads and use std::conj.
1243 * testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
1244 * testsuite/26_numerics/complex/dr781.cc: ... this, and update.
1245 * testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
1246 real(T) and imag(T). Allow testing for C++11 too.
1248 2017-01-24 Jonathan Wakely <jwakely@redhat.com>
1251 * include/experimental/string_view (operator==): Check sizes first.
1252 * include/std/string_view (operator==): Likewise.
1254 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
1256 * testsuite/experimental/array/make_array.cc: Restore <functional>
1259 2017-01-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
1261 * testsuite/29_atomics/atomic/69301.cc: Require atomic builtins.
1263 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
1266 * include/experimental/array (__make_array_elem): New class template
1267 and partial specialization.
1268 (__is_reference_wrapper): Move into __make_array_elem specialization.
1269 (make_array): Use __make_array_elem to determine element type and move
1270 static assertion into specialization. Qualify std::forward call.
1271 (to_array): Add exception specifiation.
1272 * testsuite/experimental/array/make_array.cc: Test argument types
1273 without a common type.
1274 * testsuite/experimental/array/neg.cc: Adjust expected error message.
1276 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
1278 * doc/xml/manual/debug.xml: code.google.com uses https now.
1280 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
1282 * doc/xml/manual/test.xml: Fix link into gccint online manual.
1284 2017-01-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1286 Make poisoned hashes SFINAE away the call operator of the hash.
1287 * include/bits/functional_hash.h
1288 (__poison_hash::__enable_hash_call): New.
1289 * include/std/optional (__optional_hash_call_base): New.
1290 (hash<optional<_Tp>>): Derive from the new base,
1291 move the hash function into that base.
1292 * include/std/variant (__variant_hash_call_base_impl): New.
1293 (__variant_hash_call_base): Likewise.
1294 (hash<variant<_Types...>>): Derive from the new base,
1295 move the hash function into that base.
1296 * testsuite/20_util/optional/hash.cc: Add tests for is_callable.
1297 * testsuite/20_util/variant/hash.cc: Likewise.
1299 2017-01-20 Joe Seymour <joe.s@somniumtech.com>
1301 * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t.
1302 * configure: Regenerate.
1304 2017-01-20 Jonathan Wakely <jwakely@redhat.com>
1307 * include/bits/random.h (uniform_real_distribution::param_type)
1308 (normal_distribution::param_type, lognormal_distribution::param_type)
1309 (gamma_distribution::param_type, chi_squared_distribution::param_type)
1310 (cauchy_distribution::param_type, fisher_f_distribution::param_type)
1311 (student_t_distribution::param_type)
1312 (bernoulli_distribution::param_type, binomial_distribution::param_type)
1313 (geometric_distribution::param_type)
1314 (negative_binomial_distribution::param_type)
1315 (poisson_distribution::param_type)
1316 (exponential_distribution::param_type)
1317 (weibull_distribution::param_type)
1318 (extreme_value_distribution::param_type)
1319 (discrete_distribution::param_type)
1320 (piecewise_constant_distribution::param_type)
1321 (piecewise_linear_distribution::param_type): Define operator!=.
1322 * include/bits/uniform_int_dist.h
1323 (uniform_int_distribution::param_type): Likewise.
1324 * include/ext/random (beta_distribution::param_type)
1325 (rice_distribution::param_type, nakagami_distribution::param_type)
1326 (pareto_distribution::param_type, k_distribution::param_type)
1327 (arcsine_distribution::param_type, hoyt_distribution::param_type)
1328 (triangular_distribution::param_type)
1329 (von_mises_distribution::param_type)
1330 (hypergeometric_distribution::param_type)
1331 (logistic_distribution::param_type)
1332 (uniform_on_sphere_distribution::param_type)
1333 (uniform_inside_sphere_distribution::param_type): Likewise.
1334 * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc:
1335 Test construction with param_type.
1336 * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc:
1338 * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
1340 * testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc:
1342 * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
1344 * testsuite/26_numerics/random/extreme_value_distribution/cons/
1346 * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc:
1348 * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc:
1350 * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc:
1352 * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc:
1354 * testsuite/26_numerics/random/negative_binomial_distribution/cons/
1356 * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
1358 * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc:
1360 * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
1362 * testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc:
1364 * testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc:
1366 * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc:
1368 * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise.
1369 * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise.
1370 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
1371 * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc:
1373 * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise.
1374 * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise.
1375 * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise.
1376 * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
1377 * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise.
1378 * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise.
1379 * testsuite/ext/random/triangular_distribution/cons/parms.cc:
1381 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/
1383 * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise.
1386 * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
1387 (__allocator_traits_base::__size_type): Remove.
1388 (allocator_traits::_Ptr): New class template to detect const and void
1389 pointer types without instantiating pointer_traits::rebind
1391 (allocator_traits::_Diff): Likewise for detecting difference_type.
1392 (allocator_traits::_Size): New class template to detect size_type
1393 without instantiating make_unsigned unnecessarily.
1394 * include/bits/ptr_traits.h (pointer_traits::element_type): Use
1395 __detected_or_t instead of __detected_or_t_.
1396 * include/std/type_traits (__detected_or_t_): Remove.
1397 * testsuite/20_util/allocator_traits/members/pointers.cc: New test.
1401 * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
1402 Replace with class template using void_t.
1403 (__alloc_rebind): Define in terms of
1404 __allocator_traits_base::__rebind.
1405 (allocator_traits): Remove unconditional static_assert for
1407 * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
1408 (pointer_traits::__rebind): Replace with class template using void_t.
1409 (pointer_traits::rebind): Define in terms of __rebind.
1410 (pointer_traits): Remove unconditional static_assert for rebind.
1411 * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
1412 * testsuite/20_util/pointer_traits/rebind.cc: New test.
1415 * include/experimental/any (__any_caster): Avoid instantiating
1416 manager function for types that can't be stored in any.
1417 * include/std/any (__any_caster): Likewise.
1418 * testsuite/20_util/any/misc/any_cast.cc: Test non-copyable type.
1419 * testsuite/experimental/any/misc/any_cast.cc: Likewise.
1422 * include/bits/stl_algo.h (is_partitioned): Use increment instead of
1425 2017-01-19 Jonathan Wakely <jwakely@redhat.com>
1428 * include/bits/shared_ptr_base.h (__enable_shared_from_this_base):
1430 (__enable_shared_from_this): Declare __shared_ptr as a friend.
1431 * testsuite/ext/shared_ptr/1.cc: New test.
1434 * include/bits/stl_algo.h (is_partitioned): Don't retest the partition
1436 * testsuite/25_algorithms/is_partitioned/2.cc: New test.
1438 * doc/xml/manual/abi.xml: Fix typo.
1439 * doc/html/manual/abi.html: Likewise.
1442 * include/bits/predefined_ops.h (_Iter_less_val, _Val_less_iter): Add
1443 converting constructors from _Iter_less_iter.
1444 (_Iter_comp_val, _Val_comp_iter): Add converting constructors from
1446 (__iter_comp_val(_Iter_comp_iter<C>): Use converting constructor.
1447 (__val_comp_iter(_Iter_comp_iter<C>): Likewise.
1448 * include/bits/stl_heap.h (__is_heap_until, __push_heap, __pop_heap)
1449 (__make_heap, __sort_heap): Change _Compare parameters to references.
1450 (__is_heap, push_heap, __adjust_heap, __pop_heap, pop_heap)
1451 (__make_heap, make_heap, sort_heap, is_heap_until): Pass comparison
1452 functions as lvalues.
1453 (is_heap): Call __is_heap_until directly to avoid copying __comp.
1454 * testsuite/23_containers/priority_queue/67085.cc: Adjust test to
1455 count copies during construction with empty sequence.
1458 * include/bits/stl_heap.h (__is_heap): Use _GLIBCXX_MOVE.
1459 (__make_heap, __sort_heap): Don't use _GLIBCXX_MOVE inside loops.
1460 * testsuite/23_containers/priority_queue/67085.cc: Adjust expected
1462 * testsuite/25_algorithms/make_heap/movable.cc: New test.
1465 * include/bits/stl_heap.h (push_heap, __adjust_heap, __pop_heap)
1466 (pop_heap, __make_heap, make_heap, __sort_heap, sort_heap): Use
1467 _GLIBCXX_MOVE when passing comparison function to other functions.
1468 (is_heap_until, is_heap): Use std::move when passing comparison
1470 * testsuite/23_containers/priority_queue/67085.cc: New test.
1473 * doc/xml/manual/abi.xml (abi.versioning.history): Add markup to
1474 macro names, filenames, and literal values. Document _GLIBCXX_RELEASE.
1475 Document that the deprecated _GLIBCXX_VERSION macro was removed for
1477 * doc/html/*: Regenerate.
1478 * include/Makefile.am (_GLIBCXX_RELEASE): Set value.
1479 * include/Makefile.in: Regenerate.
1480 * include/bits/c++config (_GLIBCXX_RELEASE): Add #define.
1481 * testsuite/ext/profile/mutex_extensions_neg.cc: Use lineno of 0 in
1484 2017-01-18 Jonathan Wakely <jwakely@redhat.com>
1487 * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
1488 aligned buffer instead of default-initialized variable.
1489 * testsuite/29_atomics/atomic/69301.cc: New test.
1490 * include/experimental/memory (observer_ptr::release): Use reserved
1492 * include/ext/pointer.h (_Pointer_adapter::operator++(int))
1493 (_Pointer_adapter::operator--(int)): Likewise.
1496 * include/experimental/random (randint): Use temporary instead of
1497 thread_local static.
1499 2017-01-17 Joshua Conner <joshconner@google.com>
1501 * crossconfig.m4: Add fuchsia OS.
1502 * configure: Regenerate.
1504 2017-01-17 Jonathan Wakely <jwakely@redhat.com>
1507 * doc/xml/manual/abi.xml (abi.versioning.history): Explain why the
1508 __GLIBCXX__ macro is not useful. Remove redundant date information
1509 and link to the GCC release timeline.
1510 (abi.versioning.active): Move partial sentence into the previous
1512 * doc/html/*: Regenerate.
1515 * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
1516 of remove_reference.
1517 * testsuite/18_support/nested_exception/79114.cc: New test.
1519 2017-01-17 Jakub Jelinek <jakub@redhat.com>
1522 * configure.ac: Add GCC_BASE_VER.
1523 * fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
1524 get version from BASE-VER file.
1525 * po/Makefile.in: Regenerated.
1526 * libsupc++/Makefile.in: Regenerated.
1527 * testsuite/Makefile.in: Regenerated.
1528 * src/Makefile.in: Regenerated.
1529 * configure: Regenerated.
1530 * Makefile.in: Regenerated.
1531 * include/Makefile.in: Regenerated.
1532 * doc/Makefile.in: Regenerated.
1533 * python/Makefile.in: Regenerated.
1534 * src/c++11/Makefile.in: Regenerated.
1535 * src/c++98/Makefile.in: Regenerated.
1536 * src/filesystem/Makefile.in: Regenerated.
1538 2017-01-16 Jonathan Wakely <jwakely@redhat.com>
1541 * src/c++11/functexcept.cc: Use new ABI for std::ios_base::failure
1543 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Don't override ABI
1544 for test, so new ios::failure can be caught.
1545 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1546 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1547 exceptions_failbit.cc: Likewise.
1548 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1549 exceptions_failbit.cc: Likewise.
1550 * testsuite/27_io/basic_istream/extractors_other/char/
1551 exceptions_null.cc: Likewise.
1552 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1553 exceptions_null.cc: Likewise.
1554 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1555 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1556 * testsuite/27_io/basic_ostream/inserters_other/char/
1557 exceptions_null.cc: Likewise.
1558 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1559 exceptions_null.cc: Likewise.
1560 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1563 * include/bits/locale_classes.h (locale::facet::__shim): Change from
1564 private to protected.
1565 * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
1566 make locale::facet::__shim accessible.
1568 2017-01-16 Ville Voutilainen <ville.voutilainen@gmail.com>
1571 * include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
1572 (merge(list&&, _StrictWeakOrdering)): Likewise.
1573 * testsuite/23_containers/list/operations/78389.cc: Add
1574 better test for the sizes.
1576 2017-01-14 Jonathan Wakely <jwakely@redhat.com>
1578 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
1579 Skip test when -D_GLIBCXX_PROFILE mode is included in options.
1580 * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
1581 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
1583 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
1584 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
1585 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
1586 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
1587 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
1589 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
1591 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
1593 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
1595 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
1597 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
1598 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
1599 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
1600 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
1601 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
1602 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
1603 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
1604 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
1605 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
1606 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
1607 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
1608 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
1609 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1611 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
1614 * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
1615 retry fclose on EINTR.
1617 * include/profile/base.h: Remove unused header that leads to header
1618 cycle in C++17 mode.
1621 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
1622 Make _If_sv private.
1623 [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
1624 basic_string_view arguments.
1627 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
1628 redundant option from cxxflags.
1629 (check_effective_target_cxx11-abi): Define.
1630 * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
1632 * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
1633 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1635 * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
1637 * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
1638 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
1640 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
1642 * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
1643 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
1645 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1647 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
1649 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
1651 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
1653 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
1655 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
1657 * testsuite/23_containers/list/61347.cc: Likewise.
1658 * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
1659 * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
1661 2017-01-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1664 * include/bits/list.tcc (merge(list&&)):
1665 Adjust list sizes if the comparator throws.
1666 (merge(list&&, _StrictWeakOrdering)): Likewise.
1667 (sort()): Splice elements back from the scratch buffers
1668 if the comparator throws.
1669 (sort(_StrictWeakOrdering)): Likewise.
1670 * testsuite/23_containers/list/operations/78389.cc: New.
1672 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
1674 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
1675 XFAIL for C++17 until node reinsertion supports fancy pointers.
1678 * testsuite/20_util/add_pointer/value.cc: Test forming function
1681 2017-01-13 Michael Brune <lucdanton@free.fr>
1684 * include/std/type_traits (__is_referenceable): Handle noexcept
1687 2017-01-12 Jonathan Wakely <jwakely@redhat.com>
1690 * include/bits/stl_queue.h (queue, priority_queue): Remove default
1691 member-initializers and define default constructors as templates with
1693 * include/bits/stl_stack.h (stack): Likewise.
1694 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
1696 * testsuite/23_containers/priority_queue/requirements/
1697 explicit_instantiation/1.cc: Test more instantiations.
1698 * testsuite/23_containers/priority_queue/requirements/
1699 explicit_instantiation/1_c++98.cc: Likewise.
1700 * testsuite/23_containers/queue/requirements/constructible.cc: New.
1701 * testsuite/23_containers/stack/requirements/constructible.cc: New.
1704 * doc/xml/manual/intro.xml: Document LWG 2781 change.
1705 * doc/html/*: Regenerate.
1706 * include/std/functional (_Function_base::_Ref_manager): Remove.
1707 (_Function_handler): Remove partial specializations for
1709 (function::target): Remove special case for const qualification.
1710 * testsuite/20_util/function/6.cc: Adjust tests for target type.
1711 * testsuite/20_util/function/7.cc: Likewise.
1712 * testsuite/20_util/function/8.cc: Likewise.
1714 2017-01-11 Jonathan Wakely <jwakely@redhat.com>
1717 * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
1718 (map::equal_range): Fix return type of heterogeneous overloads.
1719 * include/bits/stl_multimap.h (multimap::lower_bound)
1720 (multimap::upper_bound, multimap::equal_range): Likewise.
1721 * include/bits/stl_multiset.h (multiset::lower_bound)
1722 (multiset::upper_bound, multiset::equal_range): Likewise.
1723 * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
1724 (set::equal_range): Likewise.
1725 * testsuite/23_containers/map/operations/2.cc
1726 * testsuite/23_containers/multimap/operations/2.cc
1727 * testsuite/23_containers/multiset/operations/2.cc
1728 * testsuite/23_containers/set/operations/2.cc
1731 * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
1732 the heterogeneous comparison can only find one match.
1733 * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
1734 * testsuite/23_containers/map/operations/2.cc: Test count works with
1735 comparison function that just partitions rather than sorting.
1736 * testsuite/23_containers/set/operations/2.cc: Likewise.
1738 2017-01-11 Ville Voutilainen <ville.voutilainen@gmail.com>
1740 Reduce the size of variant, it doesn't need an index of
1741 type size_t internally.
1742 * include/std/variant (parse_numbers.h): New include.
1743 (__select_index): New.
1744 (_Variant_storage<false, _Types...>::_M_reset_impl): Use
1745 _index_type for comparison with variant_npos.
1746 (_Variant_storage<false, _Types...>::__index_type): New.
1747 (_Variant_storage<false, _Types...>::_M_index): Change the
1748 type from size_t to __index_type.
1749 (_Variant_storage<true, _Types...>::__index_type): New.
1750 (_Variant_storage<true, _Types...>::_M_index): Change the
1751 type from size_t to __index_type.
1752 (_Variant_base::_M_valid): Use _Storage::__index_type
1753 for comparison with variant_npos.
1754 (variant::index): Use _Base::_Storage::__index_type
1755 for comparison with variant_npos.
1756 * testsuite/20_util/variant/index_type.cc: New.
1758 2017-01-10 Jonathan Wakely <jwakely@redhat.com>
1760 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
1761 effective target selector to prevent running in C++17 mode.
1764 * include/bits/stl_queue.h (queue::c): Add default member initializer.
1765 (queue::queue()): Add constructor and define as defaulted.
1766 (queue::queue(_Sequence&&)): Remove default argument.
1767 (priority_queue::c, priority_queue::comp): Add default member
1769 (priority_queue::priority_queue()): Add constructor and define as
1771 (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
1772 Remove default argument for first parameter.
1773 * include/bits/stl_stack.h (stack::c): Add default member initializer.
1774 (stack::stack()): Add constructor and define as defaulted.
1775 (stack::stack(const _Sequence&)): Remove default argument.
1776 * testsuite/23_containers/priority_queue/requirements/
1777 explicit_instantiation/1.cc: Test explicit instantiation with
1778 non-DefaultConstructible sequence.
1779 * testsuite/23_containers/priority_queue/77528.cc: New test.
1780 * testsuite/23_containers/priority_queue/requirements/
1781 explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
1782 * testsuite/23_containers/queue/77528.cc: New test.
1783 * testsuite/23_containers/queue/requirements/explicit_instantiation/
1784 1.cc: Test explicit instantiation with non-DefaultConstructible
1786 * testsuite/23_containers/queue/requirements/explicit_instantiation/
1787 1_c++0x.cc: Replace with 1_c++98.cc.
1788 * testsuite/23_containers/stack/77528.cc: New test.
1789 * testsuite/23_containers/stack/requirements/explicit_instantiation/
1790 1.cc: Test explicit instantiation with non-DefaultConstructible
1792 * testsuite/23_containers/stack/requirements/explicit_instantiation/
1793 1_c++0x.cc: Replace with 1_c++98.cc.
1795 2017-01-10 Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
1797 * include/bits/locale_facets_nonio.tcc
1798 (time_get::_M_extract_via_format): Avoid compilation errors with
1799 non-standard struct tm.
1801 2017-01-10 François Dumont <fdumont@gcc.gnu.org>
1802 Jonathan Wakely <jwakely@redhat.com>
1804 * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
1805 (is_specialization, strip_versioned_namespace): New helpers functions
1806 to work with symbols in the versioned namespace.
1807 (Printer.add_version): Add second name using versioned namespace.
1808 (add_one_template_type_printer, add_one_type_printer): Add second
1809 type printers using versioned namespace.
1810 (register_type_printers): Add template type printer for basic_string.
1811 (build_libstdcxx_dictionary): Remove dead code.
1812 * python/libstdcxx/v6/xmethods.py: Make all matchers look for
1813 versioned namespace.
1814 * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
1816 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1818 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
1821 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
1822 functions separately on darwin and if they're missing define
1823 _GLIBCXX_NO_C99_ROUNDING_FUNCS.
1824 * config.h.in: Regenerate.
1825 * configure: Regenerate.
1826 * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
1827 (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
1829 * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
1830 to detect correct thread_local destructors.
1831 * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
1834 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
1835 Aditya Kumar <hiraditya@msn.com>
1838 * include/bits/basic_string.tcc
1839 (basic_string::find(const CharT*, size_type, size_type)): Optimize.
1841 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
1843 * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
1844 * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
1846 * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
1847 Include <cassert> header.
1850 * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
1851 * configure: Regenerate.
1853 2017-01-06 Barrett Adair <barrettellisadair@gmail.com>
1854 Jonathan Wakely <jwakely@redhat.com>
1856 * include/std/variant (variant, swap): Replace __and_ usage with fold
1859 2017-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1862 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
1863 * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
1864 GLIBCXX_CHECK_ASSEMBLER_HWCAP.
1865 * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
1867 * aclocal.m4: Regenerate.
1868 * configure: Regenerate.
1869 * Makefile.in, doc/Makefile.in, include/Makefile.in,
1870 libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
1871 src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
1872 src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
1874 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
1876 * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
1879 * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
1880 (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
1881 (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
1882 move function objects.
1883 (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
1884 (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
1885 * testsuite/25_algorithms/sort/78991.cc: New test.
1887 2017-01-05 Jonathan Wakely <jwakely@redhat.com>
1889 * include/bits/std_function.h (function::_Signature_type): Remove.
1890 (function::function(_Functor)): Adjust.
1892 2017-01-05 Tim Shen <timshen@google.com>
1895 * include/std/variant (__gen_vtable_impl): rename __unused to
1896 __dimensions to avoid naming conflict.
1898 2017-01-04 Jonathan Wakely <jwakely@redhat.com>
1901 * config.h.in: Regenerate.
1902 * configure: Likewise.
1903 * configure.ac: Check for __cxa_thread_atexit.
1904 * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
1905 Don't define __cxa_thread_atexit if libc provides it.
1907 2017-01-04 Ville Voutilainen <ville.voutilainen@gmail.com>
1909 Implement 2801, Default-constructibility of unique_ptr.
1910 * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
1911 (unique_ptr::_DeleterConstraint): Likewise.
1912 (unique_ptr()): Constrain.
1913 (unique_ptr(pointer)): Likewise.
1914 (unique_ptr(nullptr_t)): Likewise.
1915 (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
1916 (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
1917 (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
1918 (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
1919 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
1920 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
1921 * testsuite/20_util/unique_ptr/cons/default.cc: New.
1922 * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
1924 2017-01-04 Pauli Nieminen <suokkos@gmail.com>
1925 Jonathan Wakely <jwakely@redhat.com>
1928 * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
1929 * config.h.in: Regenerate.
1930 * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
1931 (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
1932 exports for exception_ptr, nested_exception, and future conditional.
1933 [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
1934 exports for exception_ptr, nested_exception, and future conditional.
1935 * configure: Regenerate.
1936 * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
1937 * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
1938 * libsupc++/eh_atomics.h: New file for internal use only.
1939 (__eh_atomic_inc, __eh_atomic_dec): New.
1940 * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
1941 (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
1942 (rethrow_exception): Use eh_atomics.h reference counting helpers.
1943 * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
1944 * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
1945 * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
1946 * libsupc++/exception_ptr.h: Likewise.
1947 * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
1948 * libsupc++/nested_exception.cc: Remove check for
1949 ATOMIC_INT_LOCK_FREE.
1950 * libsupc++/nested_exception.h: Likewise.
1951 * src/c++11/future.cc: Likewise.
1952 * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
1953 * testsuite/18_support/nested_exception/*: Likewise.
1954 * testsuite/30_threads/async/*: Likewise.
1955 * testsuite/30_threads/future/*: Likewise.
1956 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
1957 * testsuite/30_threads/packaged_task/*: Likewise.
1958 * testsuite/30_threads/promise/*: Likewise.
1959 * testsuite/30_threads/shared_future/*: Likewise.
1961 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
1963 * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
1964 defaults to https; adjust reference.
1966 2017-01-03 Jonathan Wakely <jwakely@redhat.com>
1969 * include/std/thread (thread(const thread&&)): Add deleted
1971 * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
1973 * doc/xml/manual/spine.xml: Update copyright years.
1974 * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
1975 * doc/xml/manual/test.xml: Likewise.
1976 * doc/html/*: Regenerate.
1978 2017-01-01 Gerald Pfeifer <gerald@pfeifer.com>
1980 * doc/xml/faq.xml: Update address of C++ ABI link.
1981 * doc/xml/manual/abi.xml: Ditto.
1983 2017-01-01 Jakub Jelinek <jakub@redhat.com>
1985 Update copyright years.
1987 Copyright (C) 2017 Free Software Foundation, Inc.
1989 Copying and distribution of this file, with or without modification,
1990 are permitted in any medium without royalty provided the copyright
1991 notice and this notice are preserved.