]> gcc.gnu.org Git - gcc.git/blob - libstdc++-v3/ChangeLog
libstdc++: Make istreambuf_iterator base class consistent (PR92285)
[gcc.git] / libstdc++-v3 / ChangeLog
1 2020-01-10 Jonathan Wakely <jwakely@redhat.com>
2
3 PR libstdc++/92285
4 * include/bits/streambuf_iterator.h (istreambuf_iterator): Make type
5 of base class independent of __cplusplus value.
6 [__cplusplus < 201103L] (istreambuf_iterator::reference): Override the
7 type defined in the base class
8 * testsuite/24_iterators/istreambuf_iterator/92285.cc: New test.
9 * testsuite/24_iterators/istreambuf_iterator/requirements/
10 base_classes.cc: Adjust expected base class for C++98.
11
12 2020-01-09 Olivier Hainque <hainque@adacore.com>
13
14 * doc/xml/manual/appendix_contributing.xml: Document _C2
15 as a reserved identifier, by VxWorks.
16 * include/bits/stl_map.h: Rename _C2 template typenames as _Cmp2.
17 * include/bits/stl_multimap.h: Likewise.
18
19 2020-01-09 Jonathan Wakely <jwakely@redhat.com>
20
21 * include/ext/extptr_allocator.h (_ExtPtr_allocator::operator==)
22 (_ExtPtr_allocator::operator!=): Add missing const qualifiers.
23 * include/ext/pointer.h (readable_traits<_Pointer_adapter<S>>): Add
24 partial specialization to disambiguate the two constrained
25 specializations.
26
27 * include/experimental/type_traits (experimental::is_pod_v): Disable
28 -Wdeprecated-declarations warnings around reference to std::is_pod.
29 * include/std/type_traits (is_pod_v): Likewise.
30 * testsuite/18_support/max_align_t/requirements/2.cc: Also check
31 is_standard_layout and is_trivial. Do not check is_pod for C++20.
32 * testsuite/20_util/is_pod/requirements/explicit_instantiation.cc:
33 Add -Wno-deprecated for C++20.
34 * testsuite/20_util/is_pod/requirements/typedefs.cc: Likewise.
35 * testsuite/20_util/is_pod/value.cc: Likewise.
36 * testsuite/experimental/type_traits/value.cc: Likewise.
37
38 2020-01-09 JeanHeyd "ThePhD" Meneide <phdofthehouse@gmail.com>
39
40 * include/bits/c++config (_GLIBCXX20_DEPRECATED): Add new macro.
41 * include/std/type_traits (is_pod, is_pod_v): Deprecate for C++20.
42 * testuite/20_util/is_pod/deprecated-2a.cc: New test.
43
44 2020-01-09 Jonathan Wakely <jwakely@redhat.com>
45
46 PR libstdc++/93205
47 * include/bits/random.h (operator>>): Check stream operation succeeds.
48 * include/bits/random.tcc (operator<<): Remove redundant __ostream_type
49 typedefs.
50 (operator>>): Remove redundant __istream_type typedefs. Check stream
51 operations succeed.
52 (__extract_params): New function to fill a vector from a stream.
53 * testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error line.
54
55 PR libstdc++/93208
56 * config/abi/pre/gnu.ver: Add new exports.
57 * include/std/memory_resource (memory_resource::~memory_resource()):
58 Do not define inline.
59 (monotonic_buffer_resource::~monotonic_buffer_resource()): Likewise.
60 * src/c++17/memory_resource.cc (memory_resource::~memory_resource()):
61 Define.
62 (monotonic_buffer_resource::~monotonic_buffer_resource()): Define.
63 * testsuite/20_util/monotonic_buffer_resource/93208.cc: New test.
64
65 2020-01-09 François Dumont <fdumont@gcc.gnu.org>
66
67 PR libstdc++/92124
68 * include/bits/hashtable.h (_Hashtable<>::__alloc_node_gen_t): New
69 template alias.
70 (_Hashtable<>::__fwd_value_for): New.
71 (_Hashtable<>::_M_assign_elements<>): Remove _NodeGenerator template
72 parameter.
73 (_Hashtable<>::_M_assign<>): Add _Ht template parameter.
74 (_Hashtable<>::operator=(const _Hashtable<>&)): Adapt.
75 (_Hashtable<>::_M_move_assign): Adapt. Replace std::move_if_noexcept
76 with std::move.
77 (_Hashtable<>::_Hashtable(const _Hashtable&)): Adapt.
78 (_Hashtable<>::_Hashtable(const _Hashtable&, const allocator_type&)):
79 Adapt.
80 (_Hashtable<>::_Hashtable(_Hashtable&&, const allocator_type&)):
81 Adapt.
82 * testsuite/23_containers/unordered_set/92124.cc: New.
83
84 2020-01-08 Jonathan Wakely <jwakely@redhat.com>
85
86 PR libstdc++/93201
87 * src/c++17/fs_ops.cc (do_remove_all): New function implementing more
88 detailed error reporting for remove_all. Check result of recursive
89 call before incrementing iterator.
90 (remove_all(const path&), remove_all(const path&, error_code&)): Use
91 do_remove_all.
92 * src/filesystem/ops.cc (remove_all(const path&, error_code&)): Check
93 result of recursive call before incrementing iterator.
94 * testsuite/27_io/filesystem/operations/remove_all.cc: Check errors
95 are reported correctly.
96 * testsuite/experimental/filesystem/operations/remove_all.cc: Likewise.
97
98 2020-01-07 Thomas Rodgers <trodgers@redhat.com>
99
100 * include/std/condition_variable
101 (condition_variable_any::wait_on): Rename to match current draft
102 standard.
103 (condition_variable_any::wait_on_until): Likewise.
104 (condition_variable_any::wait_on_for): Likewise.
105 * testsuite/30_threads/condition_variable_any/stop_token/wait_on.cc:
106 Adjust tests to account for renamed methods.
107
108 2020-01-07 François Dumont <fdumont@gcc.gnu.org>
109
110 PR libstdc++/92124
111 * include/bits/stl_tree.h
112 (_Rb_tree<>::_M_move_assign(_Rb_tree&, false_type)): Replace
113 std::move_if_noexcept by std::move.
114 * testsuite/23_containers/map/92124.cc: New.
115 * testsuite/23_containers/set/92124.cc: New.
116
117 2020-01-06 Jonathan Wakely <jwakely@redhat.com>
118
119 * include/std/stop_token (stop_token): Remove operator!= (LWG 3254).
120 (stop_source): Likewise (LWG 3362).
121 * testsuite/30_threads/stop_token/stop_source.cc: Test equality
122 comparisons.
123
124 * include/bits/stl_algobase.h (__is_byte_iter, __min_cmp)
125 (lexicographical_compare_three_way): Do not depend on
126 __cpp_lib_concepts.
127 * include/std/version (__cpp_lib_three_way_comparison): Only define
128 when __cpp_lib_concepts is defined.
129 * libsupc++/compare (__cpp_lib_three_way_comparison): Likewise.
130
131 2020-01-03 Jonathan Wakely <jwakely@redhat.com>
132
133 * include/bits/stl_algobase.h (lexicographical_compare_three_way):
134 Only define four-argument overload when __cpp_lib_concepts is defined.
135
136 2020-01-01 John David Anglin <danglin@gcc.gnu.org>
137
138 * config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update.
139
140 2020-01-01 Jakub Jelinek <jakub@redhat.com>
141
142 Update copyright years.
143 \f
144 Copyright (C) 2020 Free Software Foundation, Inc.
145
146 Copying and distribution of this file, with or without modification,
147 are permitted in any medium without royalty provided the copyright
148 notice and this notice are preserved.
This page took 0.103585 seconds and 6 git commands to generate.