]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/ChangeLog
Add experimental::sample and experimental::shuffle from N4531
[thirdparty/gcc.git] / libstdc++-v3 / ChangeLog
CommitLineData
37cb7887
JW
12018-06-25 Jonathan Wakely <jwakely@redhat.com>
2
3 * include/experimental/algorithm (sample, shuffle): Add new overloads
4 using per-thread random number engine.
5 * testsuite/experimental/algorithm/sample.cc: Simpify and reduce
6 dependencies by using __gnu_test::test_container.
7 * testsuite/experimental/algorithm/sample-2.cc: New.
8 * testsuite/experimental/algorithm/shuffle.cc: New.
9
d72888d3
JW
102018-06-22 Jonathan Wakely <jwakely@redhat.com>
11
626d407b
JW
12 * config/abi/pre/gnu.ver: Fix __cxx11::basic_string patterns for
13 different size_t mangling on 32-bit targets.
14
0b4bc9a1
JW
15 PR libstdc++/86280
16 * include/experimental/memory_resource
17 (__resource_adaptor_common::_AlignMgr::_M_token_size): Use type large
18 enough for result of left shift.
19
d72888d3
JW
20 PR libstdc++/86138
21 * include/bits/basic_string.tcc:
22 [__cplusplus > 201402 && !_GLIBCXX_USE_CXX11_ABI]
23 (basic_string<char>::_Rep::_S_empty_rep_storage)
24 (basic_string<wchar_t>::_Rep::_S_empty_rep_storage): Add explicit
25 instantiation declarations.
26 [__cplusplus > 201402] (operator>>, operator<<, getline): Re-enable
27 explicit instantiation declarations.
28 * testsuite/21_strings/basic_string/cons/char/86138.cc: New.
29 * testsuite/21_strings/basic_string/cons/wchar_t/86138.cc: New.
30
7956c508
JW
312018-06-21 Jonathan Wakely <jwakely@redhat.com>
32
cda121ac
JW
33 PR libstdc++/83328
34 * acinclude.m4 (libtool_VERSION): Bump to 6:26:0.
35 * config/abi/pre/gnu.ver: Add GLIBCXX_3.4.26 and export new symbol.
36 * configure: Regenerate.
37 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
38 (basic_string::insert(const_iterator, initializer_list<C>)): Add.
39 [_GLIBCXX_USE_CXX11_ABI && !_GLIBCXX_DEFINING_STRING_INSTANTIATIONS]
40 (basic_string::insert(iterator, initializer_list<C>)): Suppress
41 definition.
42 * include/debug/string (basic_string::insert(iterator, C)): Change
43 first parameter to const_iterator.
44 (basic_string::insert(iterator, size_type, C)): Likewise. Change
45 return type to iterator.
46 (basic_string::insert(iterator, InputIterator, InputIterator)):
47 Likewise.
48 (basic_string::insert(iterator, initializer_list<C>)): Change first
49 parameter to const_iterator and return type to iterator.
50 * src/c++11/string-inst.cc: Extend comment.
51 * testsuite/21_strings/basic_string/modifiers/insert/char/83328.cc:
52 New.
53 * testsuite/21_strings/basic_string/modifiers/insert/wchar_t/83328.cc:
54 New.
55 * testsuite/util/testsuite_abi.cc: Add new symbol version.
56
5cfd8620
JW
57 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
58
e9df6a8f
JW
59 PR libstdc++/70940
60 * include/experimental/memory_resource
61 (__resource_adaptor_imp::do_deallocate): Add missing return.
62 * testsuite/experimental/memory_resource/new_delete_resource.cc: New.
63 * testsuite/experimental/memory_resource/resource_adaptor.cc: Test
64 resource_adaptor with std::allocator, __gnu_cxx::new_allocator and
65 __gnu_cxx::malloc_allocator.
66
7956c508
JW
67 PR libstdc++/70940
68 * include/experimental/memory_resource (__resource_adaptor_common):
69 New base class.
70 (__resource_adaptor_common::_AlignMgr): Helper for obtaining aligned
71 pointer from unaligned, and vice versa.
72 (__resource_adaptor_imp::do_allocate): Use _AlignMgr to adjust
73 allocated pointer to meet alignment request.
74 (__resource_adaptor_imp::do_deallocate): Use _AlignMgr to retrieve
75 original pointer for deallocation.
76 (__resource_adaptor_imp::do_is_equal): Reformat.
77 (__resource_adaptor_imp::_S_aligned_size): Remove.
78 (__resource_adaptor_imp::_S_supported): Remove.
79 (new_delete_resource): Use __gnu_cxx::new_allocator.
80 * testsuite/experimental/memory_resource/resource_adaptor.cc: Test
81 extended alignments and use debug_allocator to check for matching
82 allocate/deallocate pairs.
83
802743ba
FD
842018-06-21 François Dumont <fdumont@gcc.gnu.org>
85
89de39a9 86 * include/debug/safe_iterator.h
802743ba 87 (_Safe_iterator<>(const _Safe_iterator<_MutableIterator,>& __x)):
89de39a9 88 Compare __x base iterator with a value-initialized iterator of the
802743ba
FD
89 same type.
90
d9addf33
JW
912018-06-20 Jonathan Wakely <jwakely@redhat.com>
92
e70359b3
JW
93 PR libstdc++/70966
94 * include/experimental/memory_resource (__resource_adaptor_imp): Add
95 static assertions to enforce requirements on pointer types.
96 (__resource_adaptor_imp::get_allocator()): Add noexcept.
97 (new_delete_resource, null_memory_resource): Return address of an
98 object with dynamic storage duration.
99 (__null_memory_resource): Remove.
100 * testsuite/experimental/memory_resource/70966.cc: New.
101
d9addf33
JW
102 * testsuite/20_util/duration/arithmetic/dr3050.cc: Add new test
103 missed from recent commit.
104
828d6449
JW
1052018-06-19 Jonathan Wakely <jwakely@redhat.com>
106
107 * include/std/utility: Remove unused <exception> header.
108
8499a82c
JW
1092018-06-18 Jonathan Wakely <jwakely@redhat.com>
110
05891e9f
JW
111 LWG 2975 ensure construct(pair<T,U>*, ...) used to construct pairs
112 * include/std/scoped_allocator (__not_pair): Define SFINAE helper.
113 (construct(_Tp*, _Args&&...)): Remove from overload set when _Tp is
114 a specialization of std::pair.
115 * testsuite/20_util/scoped_allocator/construct_pair.cc: Ensure
116 pair elements are constructed correctly.
117
b0874c66
JW
118 LWG 2989 hide path iostream operators from normal lookup
119 * include/bits/fs_path.h (operator<<, operator>>): Define inline as
120 friends.
121 * testsuite/27_io/filesystem/path/io/dr2989.cc: New.
122
8499a82c
JW
123 LWG 3050 Fix cv-qualification of convertibility constraints
124 * include/std/chrono (duration, operator*, operator/, operator%): Use
125 const-qualified type as source type in is_convertible constraints.
126 * testsuite/20_util/duration/arithmetic/dr3050.cc: New.
127 * testsuite/20_util/duration/cons/dr3050.cc: New.
128 * testsuite/20_util/duration/literals/range.cc: Rename to...
129 * testsuite/20_util/duration/literals/range_neg.cc: Here. Adjust
130 dg-error lineno.
131
4f9eae9f
MR
1322018-06-18 Maya Rashish <coypu@sdf.org>
133
134 * crossconfig.m4: Handle OpenBSD just like NetBSD.
135 * configure: Rebuilt.
136
3be9ded2
JW
1372018-06-18 Jonathan Wakely <jwakely@redhat.com>
138
410fb7d7
JW
139 P0754R2 <version> header
140 * include/Makefile.am: Add new header.
141 * include/Makefile.in: Regenerate.
142 * include/bits/c++config: Change doxygen comment to suggest <version>
143 instead of <iosfwd>.
144 * include/precompiled/stdc++.h: Include <cwchar> and <cwctype>
145 unconditionally. Add C++17 and C++20 headers.
146 * include/std/version: New header.
147 * testsuite/17_intro/headers/c++2017/all_attributes.cc: New.
148 * testsuite/17_intro/headers/c++2017/all_no_exceptions.cc: New.
149 * testsuite/17_intro/headers/c++2017/all_no_rtti.cc: New.
150 * testsuite/17_intro/headers/c++2017/all_pedantic_errors.cc: New.
151 * testsuite/17_intro/headers/c++2017/operator_names.cc: New.
152 * testsuite/17_intro/headers/c++2017/stdc++.cc: New.
153 * testsuite/17_intro/headers/c++2017/stdc++_multiple_inclusion.cc:
154 New.
155 * testsuite/17_intro/headers/c++2020/all_attributes.cc: New.
156 * testsuite/17_intro/headers/c++2020/all_no_exceptions.cc: New.
157 * testsuite/17_intro/headers/c++2020/all_no_rtti.cc: New.
158 * testsuite/17_intro/headers/c++2020/all_pedantic_errors.cc: New.
159 * testsuite/17_intro/headers/c++2020/operator_names.cc: New.
160 * testsuite/17_intro/headers/c++2020/stdc++.cc: New.
161 * testsuite/17_intro/headers/c++2020/stdc++_multiple_inclusion.cc:
162 New.
163 * testsuite/18_support/headers/version/macros.cc: New.
164 * testsuite/18_support/headers/version/macros.cc: New.
165
7314856c
JW
166 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Only check when
167 enable_libstdcxx_filesystem_ts = yes. Check for link, readlink and
168 symlink.
169 * config.h.in: Regenerate.
170 * configure: Regenerate.
171 * configure.ac: Remove AC_CHECK_FUNCS for link, readlink and symlink.
172
3be9ded2
JW
173 LWG 3035. std::allocator's constructors should be constexpr
174 * include/bits/allocator.h (allocator): Add constexpr to constructors
175 for C++2a. Replace dynamic exception specifications with NOTHROW
176 macro.
177 (allocator, operator==, operator!=): Replace USE_NOEXCEPT macro with
178 NOTHROW.
179 * include/bits/c++config (_GLIBCXX20_CONSTEXPR): Define.
180 * include/ext/malloc_allocator.h (malloc_allocator): Add constexpr
181 to constructors for C++2a.
182 * include/ext/new_allocator.h (new_allocator): Likewise.
183
5d84e6c5
JW
1842018-06-16 Jonathan Wakely <jwakely@redhat.com>
185
186 LWG 3076 basic_string CTAD ambiguity
187 * doc/xml/manual/intro.xml: Document LWG 3076 change.
188 * include/bits/basic_string.h
189 [__cpp_deduction_guides && !_GLIBCXX_DEFINING_STRING_INSTANTIATIONS]
190 (basic_string(const _CharT*, const _Alloc&)): Turn into a function
191 template constrained by _RequireAllocator.
192 (basic_string(size_type, _CharT, const _Alloc&)): Likewise.
193 * src/c++11/string-inst.cc (_GLIBCXX_DEFINING_STRING_INSTANTIATIONS):
194 Define.
195 * testsuite/21_strings/basic_string/cons/char/deduction.cc: Test
196 deduction
197 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
198 Likewise.
199
cb4f9a8c
JW
2002018-06-15 Jonathan Wakely <jwakely@redhat.com>
201
525d67d4
JW
202 PR libstdc++/86169
203 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
204 (basic_string::data()): Unshare string.
205 * testsuite/21_strings/basic_string/operations/data/char/86169.cc:
206 New.
207
36eec25a
JW
208 * include/std/string_view (basic_string_view(const CharT*)): Remove
209 check for null pointer and add nonnull attribute.
210 (compare(const CharT*), compare(size_type, size_type, const CharT*))
211 (find(const CharT*, size_type), rfind(const CharT*, size_type))
212 (find_first_of(const CharT*, size_type))
213 (find_last_of(const CharT*, size_type))
214 (find_first_not_of(const CharT*, size_type))
215 (find_last_not_of(const CharT*, size_type)): Add nonnull attribute.
216 * testsuite/21_strings/basic_string_view/cons/char/nonnull.cc: New.
217 * testsuite/21_strings/basic_string_view/operations/compare/char/
218 nonnull.cc: New.
219 * testsuite/21_strings/basic_string_view/operations/find/char/
220 nonnull.cc: New.
221 * testsuite/21_strings/basic_string_view/operations/rfind/char/
222 nonnull.cc: New.
223
3438bf7b
JW
224 PR libstdc++/86168
225 * include/bits/random.h (random_device(const string&)): Remove
226 default argument.
227
5a95794c
JW
228 * include/bits/char_traits.h (__cpp_lib_constexpr_char_traits): Only
229 define for C++17 and above.
230
7f93abd8
JW
231 LWG 2993 reference_wrapper<T> conversion from T&&
232 * doc/xml/manual/intro.xml: Document LWG 2993 change.
233 * include/bits/refwrap.h (reference_wrapper(_Tp&)): Remove.
234 (reference_wrapper(_Tp&&)): Remove.
235 (reference_wrapper<_Up>(_Up&&)): Define new constructor as constrained
236 template.
237 (reference_wrapper): Add deduction guide.
238 * testsuite/20_util/reference_wrapper/deduction.cc: New.
239 * testsuite/20_util/reference_wrapper/lwg2993.cc: New.
240
cb4f9a8c
JW
241 LWG 3039 Unnecessary decay in thread and packaged_task
242 * include/std/future (__constrain_pkgdtask): Replace with ...
243 (packaged_task::__not_same): New alias template, using
244 __remove_cvref_t instead of decay.
245 * include/std/thread (thread::__not_same): Add comment.
246
977ac63e
JW
2472018-06-14 Jonathan Wakely <jwakely@redhat.com>
248
53e926c8
JW
249 LWG 3075 basic_string needs deduction guides from basic_string_view
250 * testsuite/21_strings/basic_string/cons/char/deduction.cc: Test
251 deduction from string views.
252 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
253 Likewise.
254
db5ab3aa
JW
255 LWG 3074 make scalar types non-deduced in valarray non-member functions
256 * include/bits/valarray_after.h (_DEFINE_EXPR_BINARY_FUNCTION): Change
257 scalar parameters to be a non-deduced context.
258 * include/std/valarray (_DEFINE_BINARY_OPERATOR): Likewise. Adjust
259 whitespace.
260 * testsuite/26_numerics/valarray/operators.cc: Test scalar operands.
261 * testsuite/26_numerics/valarray/transcend.cc: New.
262
2d26d4ce
JW
263 * include/std/tuple (__cpp_lib_tuple_element_t, tuple_element_t):
264 Move back to <utility>.
265 * include/std/utility (__cpp_lib_tuple_element_t. tuple_element_t):
266 Restore to here.
267
e9ecac30
JW
268 P0935R0 Eradicating unnecessarily explicit default constructors
269 * include/backward/strstream (strstreambuf): Add non-explicit default
270 constructor.
271 * include/bits/locale_conv.h (wbuffer_convert, wstring_convert):
272 Likewise.
273 * include/bits/regex.h (match_results): Likewise.
274 * testsuite/22_locale/conversions/buffer/1.cc: Test for non-explicit
275 default constructor.
276 * testsuite/22_locale/conversions/string/1.cc: Likewise.
277 * testsuite/28_regex/match_results/ctors/char/default.cc: Likewise.
278 * testsuite/28_regex/match_results/ctors/wchar_t/default.cc: Likewise.
279
74755c6a
JW
280 * include/std/tuple (__cpp_lib_tuple_element_t): Move feature test
281 macro from <utility> and change type to long.
282 * include/std/utility (__cpp_lib_tuple_element_t): Remove.
283 * testsuite/20_util/tuple/tuple_element_t.cc: Check for feature test
284 macro.
285
977ac63e
JW
286 P0935R0 Eradicating unnecessarily explicit default constructors
287 * include/bits/random.h (uniform_real_distribution::param_type)
288 (normal_distribution::param_type, lognormal_distribution::param_type)
289 (gamma_distribution::param_type, chi_squared_distribution::param_type)
290 (cauchy_distribution::param_type, fisher_f_distribution::param_type)
291 (student_t_distribution::param_type)
292 (bernoulli_distribution::param_type)
293 (binomial_distribution::param_type)
294 (geometric_distribution::param_type)
295 (negative_binomial_distribution::param_type)
296 (poisson_distribution::param_type)
297 (exponential_distribution::param_type)
298 (weibull_distribution::param_type)
299 (extreme_value_distribution::param_type): Add non-explicit default
300 constructors. Remove default argument for first parameter of explicit
301 constructors.
302 * include/bits/uniform_int_dist.h
303 (uniform_int_distribution::param_type): Likewise.
304 * include/ext/random
305 (beta_distribution::param_type, rice_distribution::param_type)
306 (nakagami_distribution::param_type, pareto_distribution::param_type)
307 (k_distribution::param_type, arcsine_distribution::param_type)
308 (hoyt_distribution::param_type, triangular_distribution::param_type)
309 (von_mises_distribution::param_type)
310 (hypergeometric_distribution::param_type)
311 (logistic_distribution::param_type)
312 (uniform_inside_sphere_distribution::param_type): Likewise.
313 (uniform_on_sphere_distribution::param_type): Make default constructor
314 non-explicit.
315 * testsuite/26_numerics/random/bernoulli_distribution/cons/default.cc:
316 Test param_type for non-explicit default constructor.
317 * testsuite/26_numerics/random/binomial_distribution/cons/default.cc:
318 Likewise.
319 * testsuite/26_numerics/random/cauchy_distribution/cons/default.cc:
320 Likewise.
321 * testsuite/26_numerics/random/chi_squared_distribution/cons/default.cc:
322 Likewise.
323 * testsuite/26_numerics/random/discrete_distribution/cons/default.cc:
324 Likewise.
325 * testsuite/26_numerics/random/exponential_distribution/cons/default.cc:
326 Likewise.
327 * testsuite/26_numerics/random/extreme_value_distribution/cons/default.cc:
328 Likewise.
329 * testsuite/26_numerics/random/fisher_f_distribution/cons/default.cc:
330 Likewise.
331 * testsuite/26_numerics/random/gamma_distribution/cons/default.cc:
332 Likewise.
333 * testsuite/26_numerics/random/geometric_distribution/cons/default.cc:
334 Likewise.
335 * testsuite/26_numerics/random/lognormal_distribution/cons/default.cc:
336 Likewise.
337 * testsuite/26_numerics/random/negative_binomial_distribution/cons/default.cc:
338 Likewise.
339 * testsuite/26_numerics/random/normal_distribution/cons/default.cc:
340 Likewise.
341 * testsuite/26_numerics/random/piecewise_constant_distribution/cons/default.cc:
342 Likewise.
343 * testsuite/26_numerics/random/piecewise_linear_distribution/cons/default.cc:
344 Likewise.
345 * testsuite/26_numerics/random/poisson_distribution/cons/default.cc:
346 Likewise.
347 * testsuite/26_numerics/random/student_t_distribution/cons/default.cc:
348 Likewise.
349 * testsuite/26_numerics/random/uniform_int_distribution/cons/default.cc:
350 Likewise.
351 * testsuite/26_numerics/random/uniform_real_distribution/cons/default.cc:
352 Likewise.
353 * testsuite/26_numerics/random/weibull_distribution/cons/default.cc:
354 Likewise.
355 * testsuite/ext/random/arcsine_distribution/cons/default.cc: Likewise.
356 * testsuite/ext/random/beta_distribution/cons/default.cc: Likewise.
357 * testsuite/ext/random/hoyt_distribution/cons/default.cc: Likewise.
358 * testsuite/ext/random/hypergeometric_distribution/cons/default.cc:
359 Likewise.
360 * testsuite/ext/random/k_distribution/cons/default.cc: Likewise.
361 * testsuite/ext/random/logistic_distribution/cons/default.cc: Likewise.
362 * testsuite/ext/random/nakagami_distribution/cons/default.cc: Likewise.
363 * testsuite/ext/random/normal_mv_distribution/cons/default.cc:
364 Likewise.
365 * testsuite/ext/random/pareto_distribution/cons/default.cc: Likewise.
366 * testsuite/ext/random/rice_distribution/cons/default.cc: Likewise.
367 * testsuite/ext/random/triangular_distribution/cons/default.cc:
368 Likewise.
369 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/default.cc:
370 Likewise.
371 * testsuite/ext/random/uniform_on_sphere_distribution/cons/default.cc:
372 Likewise.
373 * testsuite/ext/random/von_mises_distribution/cons/default.cc:
374 Likewise.
375
4c1d999a
DT
3762018-06-14 Daniel Trebbien <dtrebbien@gmail.com>
377 Jonathan Wakely <jwakely@redhat.com>
378
379 PR libstdc++/83982
380 * include/bits/vector.tcc (vector::_M_default_append(size_type)):
381 Default-construct new elements before moving existing ones.
382 * testsuite/23_containers/vector/capacity/resize/strong_guarantee.cc:
383 New.
384
1cc56f07
JW
3852018-06-13 Jonathan Wakely <jwakely@redhat.com>
386
387 PR libstdc++/86127
388 * include/bits/forward_list.h (_Fwd_list_base::_Tp_alloc_type): Remove
389 unused typedef.
1cc56f07
JW
390 (_Fwd_list_base::_M_create_node, _Fwd_list_base::_M_erase_after):
391 Use node allocator to create and destroy elements.
392 (forward_list::_Tp_alloc_type): Remove unused typedef.
393 (forward_list::_Alloc_traits): Use allocator_traits instead of
394 __gnu_cxx::__alloc_traits.
395
cde650fe
FD
3962018-06-13 François Dumont <fdumont@gcc.gnu.org>
397
eb04ee1d
FD
398 * include/debug/helper_functions.h
399 (__gnu_debug::_Safe_iterator<>): Add declaration.
400 (__can_advance(_Ite, _Size)): New.
401 (__can_advance(const _Safe_iterator<>&, _Size)): Overload declaration.
402 * include/debug/functions.h
403 (__gnu_debug::_Safe_iterator<>): Remove declaration.
404 * include/debug/stl_iterator.h
405 (__can_advance(const _Safe_iterator<>&)): New definition.
406 * include/debug/stl_iterator.h
407 (__can_advance(const std::reverse_iterator<>&, _Size)): New.
408 (__can_advance(const std::move_iterator<>&, _Size)): New.
409 * include/debug/macros.h (__glibcxx_check_can_increment): New.
410 * include/debug/debug.h (__glibcxx_requires_can_increment): New.
411 * include/bits/stl_algobase.h (fill_n): Use latter.
412 * testsuite/25_algorithms/fill_n/2.cc: New.
413 * testsuite/25_algorithms/fill_n/debug/1_neg.cc: New.
414 * testsuite/25_algorithms/fill_n/debug/2_neg.cc: New.
415 * testsuite/25_algorithms/fill_n/debug/3_neg.cc: New.
416 * testsuite/25_algorithms/fill_n/debug/4_neg.cc: New.
417
cde650fe
FD
418 * include/debug/debug.h (__glibcxx_requires_can_increment_range): New.
419 (__glibcxx_requires_can_decrement_range): New.
420
84a9d3b6
FD
4212018-06-12 François Dumont <fdumont@gcc.gnu.org>
422
423 * include/debug/macros.h (__glibcxx_check_can_increment_range): New.
424 (__glibcxx_check_can_decrement_range): New.
84a9d3b6
FD
425 * include/bits/stl_algobase.h (std::copy(_II, _II, _OI)): Use
426 __glibcxx_requires_can_increment_range.
427 (std::move(_II, _II, _OI)): Likewise.
428 (std::copy_backward(_BI, _BI, _BI2)): Use
429 __glibcxx_requires_can_decrement_range.
430 (std::move_backward(_BI, _BI, _BI2)): Likewise.
431 * testsuite/25_algorithms/copy_backward/debug/1_neg.cc: New.
432 * testsuite/25_algorithms/copy_backward/debug/2_neg.cc: New.
433 * testsuite/25_algorithms/copy_backward/debug/3_neg.cc: New.
434 * testsuite/25_algorithms/equal/debug/1_neg.cc: New.
435 * testsuite/25_algorithms/equal/debug/2_neg.cc: New.
436 * testsuite/25_algorithms/equal/debug/3_neg.cc: New.
437
dd9db6f8
JW
4382018-06-12 Jonathan Wakely <jwakely@redhat.com>
439
440 P0935R0 Eradicating unnecessarily explicit default constructors
441 * include/bits/random.h (linear_congruential_engine)
442 (mersenne_twister_engine, subtract_with_carry_engine, random_device)
443 (uniform_real_distribution, normal_distribution)
444 (lognormal_distribution, gamma_distribution, chi_squared_distribution)
445 (cauchy_distribution, fisher_f_distribution, student_t_distribution)
446 (bernoulli_distribution, binomial_distribution,geometric_distribution)
447 (negative_binomial_distribution, exponential_distribution)
448 (weibull_distribution, extreme_value_distribution): Add non-explicit
449 default constructors. Remove default argument for first parameter of
450 explicit constructors.
451 (piecewise_constant_distribution, piecewise_linear_distribution):
452 Make default constructor non-explicit.
453 * include/bits/uniform_int_dist.h (uniform_int_distribution): Add
454 non-explicit default constructors. Remove default argument for first
455 parameter of explicit constructor.
8513bec3 456 * include/ext/random
dd9db6f8
JW
457 (simd_fast_mersenne_twister_engine, beta_distribution)
458 (rice_distribution, nakagami_distribution, pareto_distribution)
459 (k_distribution, arcsine_distribution, hoyt_distribution)
460 (triangular_distribution, von_mises_distribution)
461 (hypergeometric_distribution, logistic_distribution)
462 (uniform_inside_sphere_distribution): Likewise.
463 (uniform_on_sphere_distribution): Make default constructor
464 non-explicit.
465 * testsuite/26_numerics/random/bernoulli_distribution/cons/default.cc:
466 Test for non-explicit default constructor. Fix references to standard.
467 * testsuite/26_numerics/random/binomial_distribution/cons/default.cc:
468 Likewise.
469 * testsuite/26_numerics/random/cauchy_distribution/cons/default.cc:
470 Likewise.
471 * testsuite/26_numerics/random/chi_squared_distribution/cons/default.cc:
472 Likewise.
473 * testsuite/26_numerics/random/discrete_distribution/cons/default.cc:
474 Likewise.
475 * testsuite/26_numerics/random/exponential_distribution/cons/default.cc:
476 Likewise.
477 * testsuite/26_numerics/random/extreme_value_distribution/cons/default.cc:
478 Likewise.
479 * testsuite/26_numerics/random/fisher_f_distribution/cons/default.cc:
480 Likewise.
481 * testsuite/26_numerics/random/gamma_distribution/cons/default.cc:
482 Likewise.
483 * testsuite/26_numerics/random/geometric_distribution/cons/default.cc:
484 Likewise.
485 * testsuite/26_numerics/random/lognormal_distribution/cons/default.cc:
486 Likewise.
487 * testsuite/26_numerics/random/negative_binomial_distribution/cons/default.cc:
488 Likewise.
489 * testsuite/26_numerics/random/normal_distribution/cons/default.cc:
490 Likewise.
491 * testsuite/26_numerics/random/piecewise_constant_distribution/cons/default.cc:
492 Likewise.
493 * testsuite/26_numerics/random/piecewise_linear_distribution/cons/default.cc:
494 Likewise.
495 * testsuite/26_numerics/random/poisson_distribution/cons/default.cc:
496 Likewise.
497 * testsuite/26_numerics/random/student_t_distribution/cons/default.cc:
498 Likewise.
499 * testsuite/26_numerics/random/uniform_int_distribution/cons/default.cc:
500 Likewise.
501 * testsuite/26_numerics/random/uniform_real_distribution/cons/default.cc:
502 Likewise.
503 * testsuite/26_numerics/random/weibull_distribution/cons/default.cc:
504 Likewise.
505 * testsuite/ext/random/arcsine_distribution/cons/default.cc: Likewise.
506 * testsuite/ext/random/beta_distribution/cons/default.cc: Likewise.
507 * testsuite/ext/random/hoyt_distribution/cons/default.cc: Likewise.
508 * testsuite/ext/random/hypergeometric_distribution/cons/default.cc:
509 Likewise.
510 * testsuite/ext/random/k_distribution/cons/default.cc: Likewise.
511 * testsuite/ext/random/logistic_distribution/cons/default.cc: Likewise.
512 * testsuite/ext/random/nakagami_distribution/cons/default.cc: Likewise.
513 * testsuite/ext/random/normal_mv_distribution/cons/default.cc:
514 Likewise.
515 * testsuite/ext/random/pareto_distribution/cons/default.cc: Likewise.
516 * testsuite/ext/random/rice_distribution/cons/default.cc: Likewise.
517 * testsuite/ext/random/triangular_distribution/cons/default.cc:
518 Likewise.
519 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/default.cc:
520 Likewise.
521 * testsuite/ext/random/uniform_on_sphere_distribution/cons/default.cc:
522 Likewise.
523 * testsuite/ext/random/von_mises_distribution/cons/default.cc:
524 Likewise.
525 * testsuite/util/testsuite_common_types.h
526 (implicitly_default_constructible): New helper.
527
a1417556
JW
5282018-06-08 Jonathan Wakely <jwakely@redhat.com>
529
530 * include/bits/ios_base.h (ios::Init::Init(const Init&))
531 (ios::Init::operator=): Define as defaulted.
532 * include/bits/stl_bvector.h (_Bit_reference(const _Bit_reference&)):
533 Likewise.
534 * include/bits/stream_iterator.h (istream_iterator::operator=)
535 (ostream_iterator::operator=): Likewise.
536 * include/bits/streambuf_iterator.h (istreambuf_iterator::operator=)
537 Likewise.
538 * include/std/bitset (bitset::reference::reference(const reference&)):
539 Likewise.
540 * include/std/complex (complex<float>::complex(const complex&))
541 (complex<double>::complex(const complex&))
542 (complex<long double>::complex(const complex&)): Likewise.
543
c962b2c3
JW
5442018-06-07 Jonathan Wakely <jwakely@redhat.com>
545
546 * include/bits/regex.h (sub_match): Add noexcept to default
547 constructor and length observer.
548 (match_results): Add noexcept to default constructor and observers
549 with no preconditions. Define destructor as defaulted.
550 (operator==, operator!=, swap): Add noexcept.
551 (regex_iterator): Add default member initializers and define default
552 constructor and destructor as defaulted. Add noexcept to equality
553 and dereference operators.
554
7a205f50
FD
5552018-06-07 François Dumont <fdumont@gcc.gnu.org>
556
557 * src/c++11/debug.cc
558 (_Safe_iterator_base::_M_detach()): Reset state only if needed.
559 (_Safe_iterator_base::_M_detach_single()): Likewise.
560 (_Safe_local_iterator_base::_M_detach()): Reset state only if needed.
561 (_Safe_local_iterator_base::_M_detach_single()): Likewise.
562
9d67f13e
JW
5632018-06-06 Jonathan Wakely <jwakely@redhat.com>
564
565 * include/bits/shared_ptr_base.h (__shared_count): Remove redundant
566 move of const value.
567
fe16acf2
JJ
5682018-06-06 Jakub Jelinek <jakub@redhat.com>
569
570 PR c++/86068
571 * include/bits/c++config: Check __cpp_transactional_memory >= 201500L
572 rather than __cpp_transactional_memory >= 201505L.
573
7db54ccd
JW
5742018-06-06 Jonathan Wakely <jwakely@redhat.com>
575
576 PR libstdc++/86008
577 * include/bits/quoted_string.h (_Quoted_string<basic_string_view, C>):
578 Define new partial specialization.
579 * include/std/iomanip (quoted(basic_string_view<C,T>, C, C)): Define
580 new overload.
581 (operator<<(basic_ostream<C,T>&, const _Quoted_string<S,C>&)): Use
582 value not reference for iteration.
583 * testsuite/27_io/manipulators/standard/char/quoted.cc: Adjust
584 comment.
585 * testsuite/27_io/manipulators/standard/char/quoted_sv.cc: New test.
586 * testsuite/27_io/manipulators/standard/wchar_t/quoted.cc: Adjust
587 comment.
588
ce6efef8
JW
5892018-06-05 Jonathan Wakely <jwakely@redhat.com>
590
d4b695e4
JW
591 * include/std/type_traits: Fix comment typos.
592
ce6efef8
JW
593 * testsuite/27_io/filesystem/operations/read_symlink.cc: XFAIL for
594 mingw* targets.
595 * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
596 * testsuite/experimental/filesystem/operations/read_symlink.cc:
597 Likewise.
598
d31238cf
FD
5992018-06-05 François Dumont <fdumont@gcc.gnu.org>
600
601 * include/bits/stl_tempbuf.h
602 (_Temporary_buffer(_FwdIte, _FwdIte)): Delete, replaced by...
603 (_Temporary_buffer(_FwdIte, size_type)): ...this, new.
604 * include/ext/memory (temporary_buffer<>(_FwdIte, _FwdIte)): Adapt.
605 * include/bits/stl_algo.h (__stable_partition): Adapt.
606 (__inplace_merge): Adapt.
607 (__stable_sort): Adapt.
608
dbda636d
JW
6092018-06-04 Jonathan Wakely <jwakely@redhat.com>
610
d552d819
JW
611 PR libstdc++/85930
612 * include/bits/shared_ptr_base.h [!__cpp_rtti]: Include <typeinfo>
613 unconditionally. Remove redundant declaration.
614 [!__cpp_rtti] (_Sp_make_shared_tag::_S_ti): Fix location of
615 alignment-specifier.
616
389f7757
JW
617 * include/bits/postypes.h (fpos): Define special members as defaulted.
618
dbda636d
JW
619 PR libstdc++/85930
620 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Align
621 the static variable correctly.
622
9534a5e6
JW
6232018-05-24 Jonathan Wakely <jwakely@redhat.com>
624
625 PR libstdc++/78870 support std::filesystem on Windows
626 * config.h.in: Regenerate.
627 * configure: Regenerate.
628 * configure.ac: Check for link, readlink and symlink.
629 * include/bits/fs_path.h (path::operator/=(const path&)): Move
630 definition out of class body.
631 (path::is_absolute(), path::_M_append(path)): Likewise.
632 (operator<<(basic_ostream, const path&)): Use std::quoted directly.
633 (operator>>(basic_istream, path&)): Likewise.
634 (u8path): Reorder definitions and fix Windows implementation.
635 (path::is_absolute()): Define inline and fix for Windows.
636 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::operator/=(const path&)):
637 Define POSIX version inline.
638 (path::_M_append(path)): Define inline.
639 * include/experimental/bits/fs_path.h (path::is_absolute()): Move
640 definition out of class body.
641 (operator<<(basic_ostream, const path&)): Fix type of delimiter and
642 escape characters.
643 (operator>>(basic_istream, path&)): Likewise.
644 (path::is_absolute()): Define inline and fix for Windows.
645 * src/filesystem/dir-common.h (__gnu_posix): New namespace.
646 (__gnu_posix::char_type, __gnu_posix::DIR, __gnu_posix::dirent)
647 (__gnu_posix::opendir, __gnu_posix::readdir, __gnu_posix::closedir):
648 Define as adaptors for Windows functions/types or as
649 using-declarations for POSIX functions/types.
650 (_Dir_base, get_file_type): Qualify names to use declarations from
651 __gnu_posix namespace.
652 (_Dir_base::is_dor_or_dotdot): New helper functions.
653 * src/filesystem/dir.cc (_Dir, recursive_directory_iterator): Qualify
654 names to use declarations from __gnu_posix namespace.
655 * src/filesystem/ops-common.h (__gnu_posix): New nested namespace.
656 (__gnu_posix::open, __gnu_posix::close, __gnu_posix::stat_type)
657 (__gnu_posix::stat, __gnu_posix::lstat, __gnu_posix::mode_t)
658 (__gnu_posix::chmod, __gnu_posix::mkdir, __gnu_posix::getcwd)
659 (__gnu_posix::chdir, __gnu_posix::utimbuf, __gnu_posix::utime)
660 (__gnu_posix::rename, __gnu_posix::truncate, __gnu_posix::char_type):
661 Define as adaptors for Windows functions/types or as
662 using-declarations for POSIX functions/types.
663 (stat_type, do_copy_file): Qualify names to use declarations from
664 __gnu_posix namespace.
665 (do_space): Declare new function.
666 (make_file_type): Only use S_ISLNK if defined.
667 * src/filesystem/ops.cc (char_ptr, filesystem::canonical): Use
668 path::value_type not char.
669 (filesystem::copy, create_dir, filesystem::create_directory): Qualify
670 names to use declarations from __gnu_posix namespace.
671 (filesystem::create_hard_link): Check HAVE_LINK autoconf macro and
672 add implementation for Windows.
673 (filesystem::create_symlink): Check HAVE_SYMLINK autoconf macro.
674 (filesystem::current_path(error_code&)): Use __gnu_posix::getcwd.
675 [!_PC_PATH_MAX]: Don't use pathconf.
676 [PATH_MAX]: Use if defined.
677 (filesystem::current_path(const path&, error_code&))
678 (filesystem::equivalent, do_stat, filesystem::hard_link_count)
679 (filesystem::last_write_time, filesystem::permissions): Use names
680 from __gnu_posix.
681 (filesystem::read_symlink): Check HAVE_READLINK autoconf macro.
682 (filesystem::remove) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Add
683 implementation for Windows.
684 (filesystem::rename, filesystem::resize_file): Use names from
685 __gnu_posix.
686 (filesystem::space): Use do_space.
687 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Get absolute path to directory.
688 (filesystem::status, filesystem::symlink_status): Use names from
689 __gnu_posix.
690 (filesystem::temp_directory_path): Add implementation for Windows.
691 * src/filesystem/path.cc (dot): Define constant.
692 (path::replace_extension): Use dot.
693 (path::_M_find_extension): Likewise. Use path::string_type not
694 std::string.
695 (path::_M_split_cmpts): Use dot.
696 (filesystem_error::_M_get_what): Use u8string() not native().
697 * src/filesystem/std-dir.cc (_Dir, recursive_directory_iterator):
698 Qualify names to use declarations from __gnu_posix namespace.
699 * src/filesystem/std-ops.cc (filesystem::absolute(const path&)): Use
700 correct error_code.
701 (filesystem::absolute(const path&, error_code&)): Add implementation
702 for Windows.
703 (char_ptr, filesystem::canonical): Use path::value_type not char.
704 (do_copy_file): Use names from __gnu_posix.
705 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Do not use fchmod, fchmodat or
706 sendfile.
707 (filesystem::copy, create_dir, filesystem::create_directory): Qualify
708 names to use declarations from __gnu_posix namespace.
709 (filesystem::create_hard_link): Check HAVE_LINK autoconf macro and
710 add implementation for Windows.
711 (filesystem::create_symlink): Check HAVE_SYMLINK autoconf macro.
712 (filesystem::current_path(error_code&)): Use __gnu_posix::getcwd.
713 [!_PC_PATH_MAX]: Don't use pathconf.
714 [PATH_MAX]: Use if defined.
715 (filesystem::current_path(const path&, error_code&))
716 (filesystem::equivalent, do_stat, filesystem::hard_link_count)
717 (filesystem::last_write_time, filesystem::permissions): Use names
718 from __gnu_posix.
719 (filesystem::read_symlink): Check HAVE_READLINK autoconf macro.
720 (filesystem::remove) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Add
721 implementation for Windows.
722 (filesystem::rename, filesystem::resize_file): Use names from
723 __gnu_posix.
724 (do_space): Define.
725 (filesystem::space): Use do_space.
726 (filesystem::status, filesystem::symlink_status): Use names from
727 __gnu_posix.
728 (filesystem::temp_directory_path): Add implementation for Windows.
729 * src/filesystem/std-path.cc
730 [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::operator/=(const path&)):
731 Define for Windows.
732 (dot): Define constant.
733 (path::replace_extension, is_dot): Use dot.
734 (path::lexically_normal): Check _M_type instead of calling
735 non-existent function.
736 (path::_M_find_extension): Use dot. Use path::string_type not
737 std::string.
738 (path::_M_split_cmpts): Use dot.
739 (filesystem_error::_M_get_what): Use u8string() not native().
740 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Do not
741 use symlinks.
742 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
743 Likewise.
744 * testsuite/27_io/filesystem/operations/absolute.cc: Use
745 __gnu_test::root_path() instead of "/" and add Windows-specific tests.
746 * testsuite/27_io/filesystem/operations/canonical.cc: Use
747 path::string() to get narrow string, not path::native().
748 * testsuite/27_io/filesystem/operations/copy.cc: Construct fstreams
749 with std::filesystem::path not std::basic_string.
750 * testsuite/27_io/filesystem/operations/copy_file.cc: Likewise.
751 * testsuite/27_io/filesystem/operations/exists.cc: Use
752 __gnu_test::root_path() instead of "/".
753 * testsuite/27_io/filesystem/operations/is_empty.cc: Construct
754 fstreams with std::filesystem::path not std::basic_string.
755 * testsuite/27_io/filesystem/operations/last_write_time.cc: Use
756 path::string() to get narrow string.
757 * testsuite/27_io/filesystem/operations/space.cc: Check results for
758 errors, expect sensible values otherwise.
759 * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Add
760 helpers for adjusting the environment on Windows.
761 * testsuite/27_io/filesystem/path/append/path.cc: Test
762 Windows-specific behaviour.
763 * testsuite/27_io/filesystem/path/construct/format.cc: Fix creation
764 of path::string_type objects.
765 * testsuite/27_io/filesystem/path/construct/locale.cc: Compare native
766 string to wide string on Windows.
767 * testsuite/27_io/filesystem/path/decompose/root_directory.cc: Allow
768 for backslash as root-directory.
769 * testsuite/27_io/filesystem/path/decompose/stem.cc: Use
770 path::string() to get narrow string.
771 * testsuite/27_io/filesystem/path/itr/traversal.cc: Test Windows-style
772 paths.
773 * testsuite/27_io/filesystem/path/native/string.cc: Use string_type
774 not std::string.
775 * testsuite/27_io/filesystem/path/query/is_absolute.cc: Adjust for
776 different definintion of absolute paths on Windows.
777 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
778 Do not use symlinks.
779 * testsuite/experimental/filesystem/operations/absolute.cc: Test
780 Windows behaviour.
781 * testsuite/experimental/filesystem/operations/copy.cc: Construct
782 fstreams with NTCTS not std::basic_string.
783 * testsuite/experimental/filesystem/operations/copy_file.cc: Likewise.
784 * testsuite/experimental/filesystem/operations/exists.cc: Use
785 __gnu_test::root_path() instead of "/".
786 * testsuite/experimental/filesystem/operations/is_empty.cc: Construct
787 fstreams with NTCTS not std::basic_string.
788 * testsuite/experimental/filesystem/operations/last_write_time.cc:
789 Use path::string() to get narrow string.
790 * testsuite/experimental/filesystem/operations/space.cc: Use
791 __gnu_test::root_path() instead of "/".
792 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
793 Add helpers for adjusting the environment on Windows.
794 * testsuite/experimental/filesystem/path/append/path.cc: Use
795 path::string() to get narrow strings for comparisons.
796 * testsuite/experimental/filesystem/path/concat/path.cc: Likewise.
797 * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
798 Likewise.
799 * testsuite/experimental/filesystem/path/decompose/stem.cc: Likewise.
800 * testsuite/experimental/filesystem/path/native/string.cc: Use
801 string_type not std::string.
802 * testsuite/experimental/filesystem/path/query/is_absolute.cc:
803 Adjust for different definintion of absolute paths on Windows.
804 * testsuite/util/testsuite_fs.h (__gnu_test::root_path()): New
805 function.
806 (__gnu_test::scoped_file): Construct fstreams with NTCTS not
807 std::basic_string.
808
22f1f4c7
JW
8092018-05-31 Jonathan Wakely <jwakely@redhat.com>
810
811 PR libstdc++/85951
812 * include/std/type_traits [_GLIBCXX_USE_C99_STDINT_TR1]: Do not define
813 uint_least16_t and uint_least32_t.
814 (__make_unsigned<wchar_t>): Define unconditionally.
815 (__make_unsigned_selector<_Tp, true, false>): Remove intermediate
816 typedefs.
817 (__make_unsigned_selector_base): New type to provide helper templates.
818 (__make_unsigned_selector<_Tp, false, true>): Reimplement using
819 __make_unsigned_selector_base helpers.
820 (__make_unsigned<char16_t>, __make_unsigned<char32_t>): Define.
821 (__make_signed_selector<_Tp, true, false>): Remove intermediate
822 typedefs.
823 (__make_signed<wchar_t>, __make_signed<char16_t>)
824 (__make_signed<char32_t>)): Define unconditionally.
825 * testsuite/20_util/make_signed/requirements/typedefs-3.cc: Check
826 wchar_t, char16_t and char32_t are transformed correctly.
827 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust
828 dg-error lineno.
829 * testsuite/20_util/make_unsigned/requirements/typedefs-3.cc: Check
830 wchar_t, char16_t and char32_t are transformed correctly.
831 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Adjust
832 dg-error lineno.
833
5baa6f8e
JW
8342018-05-29 Jonathan Wakely <jwakely@redhat.com>
835
836 * include/std/variant (__erased_dtor): Qualify call to __get.
837
538a7cd0
FD
8382018-05-27 François Dumont <fdumont@gcc.gnu.org>
839
840 * include/bits/stl_tree.h (_Rb_tree_impl(_Node_allocator&&)): New.
841 (_Rb_tree(const allocator_type&)): Use latter.
842 * include/bits/stl_map.h (map(const allocator_type&)): Likewise.
843 (map(initializer_list<value_type>, const allocator_type&)): Likewise.
844 (map(_InputIterator, _InputIterator, const allocator_type&)): Likewise.
845 * include/bits/stl_multimap.h
846 (multimap(const allocator_type&)): Likewise.
847 (multimap(initializer_list<value_type>, const allocator_type&)):
848 Likewise.
849 (multimap(_InputIterator, _InputIterator, const allocator_type&)):
850 Likewise.
851 * include/bits/stl_set.h (set(const allocator_type&)): Likewise.
852 (set(initializer_list<value_type>, const allocator_type&)): Likewise.
853 (set(_InputIterator, _InputIterator, const allocator_type&)): Likewise.
854 * include/bits/stl_multiset.h
855 (multiset(const allocator_type&)): Likewise.
856 (multiset(initializer_list<value_type>, const allocator_type&)):
857 Likewise.
858 (multiset(_InputIterator, _InputIterator, const allocator_type&)):
859 Likewise.
860
18b11937
FD
8612018-05-25 François Dumont <fdumont@gcc.gnu.org>
862
863 PR libstdc++/85768
864 * src/c++11/debug.cc: Remove backtrace usage.
865
95c921d1
MR
8662018-05-24 Maya Rashish <coypu@sdf.org>
867
868 PR target/85904
869 * crossconfig.m4: Test for aligned_alloc on netbsd.
870 * configure: Regenerate.
871
25999a11
JW
8722018-05-24 Jonathan Wakely <jwakely@redhat.com>
873
874 PR libstdc++/69769
875 PR libstdc++/85886
876 * include/bits/atomic_base.h (__atomic_base::value_type)
877 (__atomic_base::difference_type): Add new typedefs.
878 * include/std/atomic (atomic<bool>::value_type, atomic<T>::value_type)
879 (atomic<T*>::value_type, atomic<T*>::difference_type): Likewise.
880 (atomic<T*>::operator++, atomic<T*>::operator--)
881 (atomic<T*>::operator+=, atomic<T*>::operator-=)
882 (atomic<T*>::fetch_add, atomic<T*>::fetch_sub): Add static assertion
883 to enforce C++17 requirement on pointer arithmetic.
884 (__atomic_val_t, __atomic_diff_t): New alias templates.
885 (atomic_init, atomic_store_explicit, atomic_exchange_explicit)
886 (atomic_compare_exchange_weak_explicit)
887 (atomic_compare_exchange_strong_explicit, atomic_store)
888 (atomic_exchange, atomic_compare_exchange_weak)
889 (atomic_compare_exchange_strong): Use __atomic_val_t to make
890 scalar parameters be non-deduced contexts.
891 (atomic_fetch_add_explicit, atomic_fetch_sub_explicit)
892 (atomic_fetch_add, atomic_fetch_sub): Change first parameter to be
893 atomic instead of __atomic_base, and use __atomic_diff_t for scalar
894 parameters.
895 (atomic_fetch_and_explicit, atomic_fetch_or_explicit)
896 (atomic_fetch_xor_explicit, atomic_fetch_and, atomic_fetch_or)
897 (atomic_fetch_xor): Use __atomic_val_t for scalar parameters.
898 (atomic_fetch_add_explicit, atomic_fetch_sub_explicit)
899 (atomic_fetch_add, atomic_fetch_sub): Remove overloads for atomic
900 address types.
901 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error lineno.
902 * testsuite/29_atomics/atomic/69769.cc: New test.
903 * testsuite/29_atomics/atomic/nonmembers.cc: New test.
904 * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc:
905 Disable test for C++17 and later.
906 * testsuite/29_atomics/atomic/requirements/typedefs.cc: New test.
907 * testsuite/29_atomics/atomic_integral/nonmembers.cc: New test.
908 * testsuite/29_atomics/atomic_integral/requirements/typedefs.cc: New
909 test.
910
cf290ea3
JW
9112018-05-23 Jonathan Wakely <jwakely@redhat.com>
912
49d729ea
JW
913 * include/bits/fs_path.h (path::__is_encoded_char): Change from class
914 template to alias template.
915 (path::__value_type_is_char): Use remove_const_t.
916 (path:_S_string_from_iter): New helper function.
917 (path::_S_convert(InputIter, __null_terminated))
918 (path::_S_convert_loc(InputIter, __null_terminated, const locale&)):
919 Use _S_string_from_iter.
920 (path::string<_CharT, _Allocator>(const _Allocator&)): Allow sharing
921 rep for COW strings.
922 * include/experimental/bits/fs_path.h (path::__is_encoded_char):
923 Change from class template to alias template.
924 (path::__value_type_is_char): Use remove_const.
925 (path:_S_string_from_iter): New helper function.
926 (path::_S_convert(InputIter, __null_terminated))
927 (path::_S_convert_loc(InputIter, __null_terminated, const locale&)):
928 Use _S_string_from_iter.
929 * testsuite/27_io/filesystem/path/append/source.cc: Test appending
930 wide strings.
931 * testsuite/27_io/filesystem/path/concat/strings.cc: Check for exact
932 string equality, not path equivalence.
933 * testsuite/27_io/filesystem/path/construct/format.cc: Check
934 construction from std::string and std::wstring and input iterators.
935 * testsuite/27_io/filesystem/path/construct/locale.cc: Check
936 construction from iterators.
937 * testsuite/experimental/filesystem/path/concat/strings.cc: Check for
938 exact string equality, not path equivalence.
939 * testsuite/experimental/filesystem/path/construct/locale.cc: Check
940 construction from iterators.
941
cf290ea3
JW
942 * include/bits/fs_path.h (path::_M_type): Change default member
943 initializer to _Filename.
944 (path::begin): Create past-the-end iterator for empty path.
945 * src/filesystem/std-path.cc (path::remove_filename()): Remove
946 debugging check.
947 (path::has_relative_path()): Return false for empty filenames.
948 (path::_M_split_cmpts): Set _M_type to _Filename for empty paths.
949 Fix offset of empty final component.
950 * testsuite/27_io/filesystem/path/itr/components.cc: New.
951 * testsuite/27_io/filesystem/path/itr/traversal.cc: Add new inputs.
952
b0292359
JW
9532018-05-21 Jonathan Wakely <jwakely@redhat.com>
954
955 Add support for opening file streams from wide character strings.
956 * config/io/basic_file_stdio.cc [_GLIBCXX_HAVE__WFOPEN]
957 (__basic_file<char>::open(const wchar_t*, ios_base::openmode)):
958 Define new overload.
959 * config/io/basic_file_stdio.h [_GLIBCXX_HAVE__WFOPEN]
960 (__basic_file<char>::open(const wchar_t*, ios_base::openmode)):
961 Declare new overload.
962 * configure.ac: Check for _wfopen.
963 * crossconfig.m4: Likewise.
964 * configure: Regenerate.
965 * config.h.in: Regenerate.
966 * include/bits/fstream.tcc [_GLIBCXX_HAVE__WFOPEN]
967 (basic_filebuf<C,T>::open(const wchar_t*, ios_base::openmode)):
968 Define new overload.
969 * include/std/fstream [_GLIBCXX_HAVE__WFOPEN]
970 (basic_filebuf<C,T>::open(const wchar_t*, ios_base::openmode)):
971 Declare new overload.
972 [_GLIBCXX_HAVE__WFOPEN]
973 (basic_ifstream<C,T>::basic_ifstream(const wchar_t*, openmode))
974 (basic_ifstream<C,T>::basic_open(const wchar_t*, openmode))
975 (basic_ofstream<C,T>::basic_ifstream(const wchar_t*, openmode))
976 (basic_ofstream<C,T>::basic_open(const wchar_t*, openmode))
977 (basic_fstream<C,T>::basic_ifstream(const wchar_t*, openmode))
978 (basic_fstream<C,T>::basic_open(const wchar_t*, openmode)): Define
979 new overloads.
980 * testsuite/27_io/basic_filebuf/open/wchar_t/1.cc: New.
981 * testsuite/27_io/basic_ifstream/cons/wchar_t/1.cc: New.
982 * testsuite/27_io/basic_ifstream/open/wchar_t/1.cc: New.
983 * testsuite/27_io/basic_ofstream/cons/wchar_t/1.cc: New.
984 * testsuite/27_io/basic_ofstream/open/wchar_t/1.cc: New.
985 * testsuite/27_io/basic_fstream/cons/wchar_t/1.cc: New.
986 * testsuite/27_io/basic_fstream/open/wchar_t/1.cc: New.
987
8b6d2d3b
FD
9882018-05-21 François Dumont <fdumont@gcc.gnu.org>
989
990 PR libstdc++/85845
991 * include/bits/stl_tree.h
992 (_Rb_tree_impl(_Rb_tree_impl&&, _Node_allocator&&)): Fix noexcept
993 qualification.
994
f5a9710a
JW
9952018-05-21 Jonathan Wakely <jwakely@redhat.com>
996
8a49324e
JW
997 * src/filesystem/std-ops.cc (absolute): Report an error for empty
998 paths.
999 (weakly_canonical(const path&)): Do not call canonical on empty path.
1000 (weakly_canonical(const path&, error_code&)): Likewise.
1001 * testsuite/27_io/filesystem/operations/absolute.cc: Check for errors.
1002
cc343938
JW
1003 PR libstdc++/85818
1004 * testsuite/experimental/filesystem/path/preferred_separator.cc: Add
1005 dg-require-filesystem-ts.
1006
f5a9710a
JW
1007 PR libstdc++/85843
1008 * src/c++11/cow-stdexcept.cc (logic_error, runtime_error): Explicitly
1009 initialize base class to avoid warnings.
1010
a76400f4
JW
10112018-05-19 Jonathan Wakely <jwakely@redhat.com>
1012
1013 * src/c++11/codecvt.cc (__codecvt_utf8_base<wchar_t>::do_in)
1014 [__SIZEOF_WCHAR_T__==2 && __BYTE_ORDER__!=__ORDER_BIG_ENDIAN__]: Set
1015 little_endian element in bitmask.
1016 * testsuite/22_locale/codecvt/codecvt_utf8/69703.cc: Run all tests.
1017 * testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc: New.
1018
8b0cd47a
FD
10192018-05-18 François Dumont <fdumont@gcc.gnu.org>
1020
1021 * include/bits/stl_tree.h
1022 (_Rb_tree_impl(_Rb_tree_impl&&, _Node_allocator&&)): New.
1023 (_Rb_tree(_Rb_tree&&, _Node_allocator&&, true_type)): New, use latter.
1024 (_Rb_tree(_Rb_tree&&, _Node_allocator&&, false_type)): New.
1025 (_Rb_tree(_Rb_tree&&, _Node_allocator&&)): Adapt, use latters.
1026 * include/debug/map.h
1027 (map(map&&, const_allocator_type&)): Add noexcept qualitication.
1028 * include/debug/multimap.h
1029 (multimap(multimap&&, const_allocator_type&)): Likewise.
1030 * include/debug/set.h
1031 (set(set&&, const_allocator_type&)): Likewise.
1032 * include/debug/multiset.h
1033 (multiset(multiset&&, const_allocator_type&)): Likewise.
1034 * testsuite/23_containers/map/cons/noexcept_default_construct.cc:
1035 Add checks.
1036 * testsuite/23_containers/map/cons/noexcept_move_construct.cc:
1037 Add checks.
1038 * testsuite/23_containers/multimap/cons/noexcept_default_construct.cc:
1039 Add checks.
1040 * testsuite/23_containers/multimap/cons/noexcept_move_construct.cc:
1041 Add checks.
1042 * testsuite/23_containers/multiset/cons/noexcept_default_construct.cc:
1043 Add checks.
1044 * testsuite/23_containers/multiset/cons/noexcept_move_construct.cc:
1045 Add checks.
1046 * testsuite/23_containers/set/cons/noexcept_default_construct.cc:
1047 Add checks.
1048 * testsuite/23_containers/set/cons/noexcept_move_construct.cc:
1049 Add checks.
1050
f07c2237
JM
10512018-05-18 Jason Merrill <jason@redhat.com>
1052
1053 * include/bits/stl_deque.h (_Deque_iterator): Constrain constructor
1054 for conversion to const_iterator. Add defaulted copy ops.
1055 * libsupc++/new (bad_alloc): Add defaulted copy ops.
1056 * libsupc++/exception.h (exception): Add defaulted copy ops.
1057 * include/std/system_error (system_error): Add defaulted copy ops.
1058 * include/std/stdexcept (domain_error, invalid_argument)
1059 (length_error, out_of_range, range_error, overflow_error)
1060 (underflow_error): Add defaulted copy ops.
1061 * include/bits/stl_iterator.h (reverse_iterator): Add defaulted
1062 copy assignment.
1063 * include/bits/allocator.h (allocator): Add defaulted copy assignment.
1064 * include/ext/throw_allocator.h (condition_base): Add defaulted
1065 default and copy ctor and copy assignment.
1066
2d76fab4
JW
10672018-05-18 Jonathan Wakely <jwakely@redhat.com>
1068
1069 PR libstdc++/85098
1070 * include/bits/regex.h [__cplusplus < 201703L] (basic_regex::icase)
1071 (basic_regex::nosubs, basic_regex::optimize, basic_regex::collate)
1072 (basic_regex::ECMAScript, basic_regex::basic, basic_regex::extended)
1073 (basic_regex::awk, basic_regex::grep, basic_regex::egrep): Add
1074 definitions.
1075 * include/bits/regex_automaton.h (_NFA::_M_insert_state): Adjust
1076 whitespace.
1077 * include/bits/regex_compiler.tcc (__INSERT_REGEX_MATCHER): Add
1078 braces around body of do-while.
1079 * testsuite/28_regex/basic_regex/85098.cc: New
1080
ff03245e
JW
10812018-05-17 Jonathan Wakely <jwakely@redhat.com>
1082
079638f9
JW
1083 PR libstdc++/85818
1084 * src/filesystem/path.cc (path::preferred_separator): Add used
1085 attribute.
1086 * testsuite/experimental/filesystem/path/preferred_separator.cc: New.
1087
ff03245e
JW
1088 PR libstdc++/85812
1089 * libsupc++/cxxabi_init_exception.h (__cxa_free_exception): Declare.
1090 * libsupc++/exception_ptr.h (make_exception_ptr) [__cpp_exceptions]:
1091 Refactor to separate non-throwing and throwing implementations.
1092 [__cpp_rtti && !_GLIBCXX_HAVE_CDTOR_CALLABI]: Deallocate the memory
1093 if constructing the object throws.
1094
e4a5135f
JW
10952018-05-15 Jonathan Wakely <jwakely@redhat.com>
1096
5a7960da
JW
1097 PR libstdc++/85749
1098 * include/bits/random.h (__detail::__is_seed_seq): New SFINAE helper.
1099 (linear_congruential_engine, mersenne_twister_engine)
1100 (subtract_with_carry_engine, discard_block_engine)
1101 (independent_bits_engine, shuffle_order_engine): Use __is_seed_seq to
1102 constrain function templates taking seed sequences.
1103 * include/bits/random.tcc (linear_congruential_engine::seed(_Sseq&))
1104 (mersenne_twister_engine::seed(_Sseq&))
1105 (subtract_with_carry_engine::seed(_Sseq&)): Change return types to
1106 match declarations.
1107 * include/ext/random (simd_fast_mersenne_twister_engine): Use
1108 __is_seed_seq to constrain function templates taking seed sequences.
1109 * include/ext/random.tcc (simd_fast_mersenne_twister_engine::seed):
1110 Change return type to match declaration.
1111 * testsuite/26_numerics/random/discard_block_engine/cons/seed_seq2.cc:
1112 New.
1113 * testsuite/26_numerics/random/independent_bits_engine/cons/
1114 seed_seq2.cc: New.
1115 * testsuite/26_numerics/random/linear_congruential_engine/cons/
1116 seed_seq2.cc: New.
1117 * testsuite/26_numerics/random/mersenne_twister_engine/cons/
1118 seed_seq2.cc: New.
1119 * testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error lineno.
1120 * testsuite/26_numerics/random/shuffle_order_engine/cons/seed_seq2.cc:
1121 New.
1122 * testsuite/26_numerics/random/subtract_with_carry_engine/cons/
1123 seed_seq2.cc: New.
1124 * testsuite/ext/random/simd_fast_mersenne_twister_engine/cons/
1125 seed_seq2.cc: New.
1126
c3b61fda
JW
1127 PR libstdc++/83891
1128 * include/bits/fs_path.h (path::is_absolute()): Use same definition
1129 for all operating systems.
1130 * include/experimental/bits/fs_path.h (path::is_absolute()): Likewise.
1131 * testsuite/27_io/filesystem/path/query/is_absolute.cc: New.
1132 * testsuite/27_io/filesystem/path/query/is_relative.cc: Fix comment.
1133 * testsuite/experimental/filesystem/path/query/is_absolute.cc: New.
1134
b0e01682
JW
1135 * testsuite/27_io/filesystem/path/decompose/extension.cc: Remove
1136 unused <vector> header.
1137 * testsuite/27_io/filesystem/path/query/empty.cc: Likewise.
1138 * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise.
1139 * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise.
1140 * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise.
1141 * testsuite/27_io/filesystem/path/query/has_relative_path.cc:
1142 Likewise.
1143 * testsuite/27_io/filesystem/path/query/has_root_directory.cc:
1144 Likewise.
1145 * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise.
1146 * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise.
1147 * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise.
1148 * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise.
1149 * testsuite/experimental/filesystem/path/decompose/extension.cc:
1150 Likewise.
1151 * testsuite/experimental/filesystem/path/query/empty.cc: Likewise.
1152 * testsuite/experimental/filesystem/path/query/has_extension.cc:
1153 Likewise.
1154 * testsuite/experimental/filesystem/path/query/has_filename.cc:
1155 Likewise.
1156 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
1157 Likewise.
1158 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
1159 Likewise.
1160 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
1161 Likewise.
1162 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
1163 Likewise.
1164 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
1165 Likewise.
1166 * testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise.
1167 * testsuite/experimental/filesystem/path/query/is_relative.cc:
1168 Likewise.
1169
6cda876d
JW
1170 PR libstdc++/84159
1171 * include/bits/fs_path.h (path::operator/=, path::append): Construct
1172 temporary path before calling _M_append.
1173 (path::_M_append): Change parameter to path and implement C++17
1174 semantics.
1175 * testsuite/27_io/filesystem/path/append/path.cc: Add helper function
1176 and more examples from the standard.
1177 * testsuite/27_io/filesystem/path/append/source.cc: New.
1178 * testsuite/27_io/filesystem/path/decompose/filename.cc: Add comment.
1179 * testsuite/27_io/filesystem/path/nonmember/append.cc: New.
1180
e4a5135f
JW
1181 * include/std/variant (__gen_vtable_impl::__visit_invoke): Qualify
1182 __invoke to prevent ADL.
1183
3846b8e4
JW
11842018-05-14 Jonathan Wakely <jwakely@redhat.com>
1185
e77497ab
JW
1186 PR libstdc++/81256
1187 * include/bits/fstream.tcc (basic_filebuf::close): Do not swallow
1188 exceptions from _M_terminate_output().
1189 * include/std/fstream (basic_filebuf::~basic_filebuf): Swallow any
1190 exceptions from close().
1191 * testsuite/27_io/basic_filebuf/close/81256.cc: New.
1192
cd2f262b
JW
1193 * include/bits/valarray_array.h (__valarray_get_memory): Remove.
1194 (__valarray_get_storage): Call operator new directly. Remove ignored
1195 top-level restrict qualifier and add malloc attribute instead.
1196 (_Array<_Tp>::_Array(size_t)): Remove unused constructor.
1197
6bfbebb0
JW
1198 PR libstdc++/67554
1199 * include/bits/valarray_array.h (_Array_copy_ctor<_Tp, true>)
1200 (_Array_copier<_Tp, true>): Do not pass null pointers to memcpy.
1201
3846b8e4
JW
1202 PR libstdc++/82966
1203 * include/bits/node_handle.h (_Node_handle_common::_M_swap): Use value
1204 instead of type.
1205 * testsuite/23_containers/set/modifiers/node_swap.cc: New.
1206
456dbc72
VV
12072018-05-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1208
1209 PR libstdc++/80165
1210 * testsuite/20_util/variant/80165.cc: New.
1211
0f8a1c15
JW
12122018-05-10 Jonathan Wakely <jwakely@redhat.com>
1213
1214 * doc/xml/faq.xml: Link to C++17 status. Add note to outdated answer.
1215 * doc/xml/manual/debug_mode.xml: Add array and forward_list to list
1216 of C++11 containers with Debug Mode support.
1217 * doc/xml/manual/using.xml: Document Dual ABI for ios_base::failure.
1218 * doc/html/*: Regenerate.
1219
a6e1cfdd
JM
12202018-05-10 Jason Merrill <jason@redhat.com>
1221
1222 * include/bits/regex_compiler.h (_S_cache_size): Change from
1223 function to variable.
1224
88bf4c34
ESR
12252018-05-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1226
1227 PR libstdc++/83140 - assoc_legendre returns negated value when m is odd
1228 * include/tr1/legendre_function.tcc (__assoc_legendre_p): Add __phase
1229 argument defaulted to +1. Doxy comments on same.
1230 * testsuite/special_functions/02_assoc_legendre/
3a2e98ce 1231 check_value.cc: Regen.
88bf4c34 1232 * testsuite/tr1/5_numerical_facilities/special_functions/
3a2e98ce 1233 02_assoc_legendre/check_value.cc: Regen.
88bf4c34 1234
daf69489
JW
12352018-05-10 Jonathan Wakely <jwakely@redhat.com>
1236
1237 PR libstdc++/85729
1238 * include/bits/c++config.h (__replacement_assert): Add linkage
1239 specification.
1240 * include/bits/std_abs.h: Add comment to closing brace of block.
1241 * include/c_global/cstddef: Add linkage specification.
1242 * include/c_global/cstring: Likewise.
1243 * include/c_global/cwchar: Likewise.
1244
6c882d0f
FD
12452018-05-09 François Dumont <fdumont@gcc.gnu.org>
1246
1247 * include/debug/safe_iterator.h (_Safe_iterator<>::_M_constant()):
1248 Rename in...
1249 (_Safe_iterator<>::_S_constant()): ...that.
1250 * include/debug/safe_local_iterator.h
1251 (_Safe_local_iterator<>::_M_constant()): Rename in...
1252 (_Safe_local_iterator<>::_S_constant()): ...that.
1253 * include/debug/formatter.h: Remove bits/cpp_type_traits.h include.
1254 (_Iterator_state::__rbegin): New.
1255 (_Iterator_state::__rmiddle): New.
1256 (_Iterator_state::__rend): New.
1257 (_Parameter::_Parameter(const _Safe_iterator<>&, const char*,
1258 _Is_iterator)): Use _Safe_iterator<>::_S_constant. Grab normal underlying
1259 iterator type.
1260 (_Parameter::_Parameter(const _Safe_local_iterator<>&, const char*,
1261 _Is_iterator)): Likewise.
1262 (_Parameter::_S_reverse_state(_Iterator_state)): New.
0f8a1c15 1263 (_Parameter(__gnu_cxx::__normal_iterator<> const&, const char*,
6c882d0f
FD
1264 _Is_iterator)): New.
1265 (_Parameter(std::reverse_iterator<> const&, const char*,
1266 _Is_iterator)): New.
1267 (_Parameter(std::reverse_iterator<_Safe_iterator<>> const&,
1268 const char*, _Is_iterator)): New.
1269 (_Parameter(std::move_iterator<> const&, const char*, _Is_iterator):
1270 New.
1271 (_Parameter(std::move_iterator<_Safe_iterator<>> const&, const char*,
1272 _Is_iterator)): New.
1273 * testsuite/24_iterators/move_iterator/debug_neg.cc: New.
1274 * testsuite/24_iterators/normal_iterator/debug_neg.cc: New.
1275 * testsuite/24_iterators/reverse_iterator/debug_neg.cc: New.
1276
88b1e41c
JW
12772018-05-09 Jonathan Wakely <jwakely@redhat.com>
1278
1279 * include/bits/std_function.h (_Base_manager::_M_get_pointer):
1280 Use constexpr if in C++17 mode.
1281 (_Base_manager::_M_clone(_Any_data&, const _Any_data&, true_type)):
1282 Copy from const object.
1283 * testsuite/20_util/function/cons/non_copyconstructible.cc: New.
1284
a5277405
FD
12852018-05-08 François Dumont <fdumont@gcc.gnu.org>
1286
e95a74fd
FD
1287 * src/c++11/debug.cc [_GLIBCXX_HAVE_EXECINFO_H]: Include execinfo.h.
1288 [_GLIBCXX_HAVE_EXECINFO_H](_Error_formatter::_M_error): Render
1289 backtrace.
1290
90aabc7e
FD
1291 * include/debug/macros.h (__glibcxx_check_valid_range_at): New.
1292 * include/debug/functions.h (__check_valid_range): Use latter.
1293 * include/debug/macros.h (__glibcxx_check_valid_constructor_range): New,
1294 use latter.
1295 * include/debug/deque
1296 (deque::deque<_Iter>(_Iter, _Iter, const _Alloc&)): Use latter.
1297 * include/debug/forward_list
1298 (forward_list::forward_list<_Iter>(_Iter, _Iter, const _Alloc&)):
1299 Likewise.
1300 * include/debug/list
1301 (list::list<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
1302 * include/debug/list
1303 (list::list<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
1304 * include/debug/map.h
1305 (map::map<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
1306 (map::map<_Iter>(_Iter, _Iter, const _Compare&, const _Alloc&)):
1307 Likewise.
1308 * include/debug/multimap.h
1309 (multimap::multimap<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
1310 (multimap::multimap<_Iter>(_Iter, _Iter, const _Compare&,
1311 const _Alloc&)): Likewise.
1312 * include/debug/set.h
1313 (set::set<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
1314 (set::set<_Iter>(_Iter, _Iter, const _Compare&, const _Alloc&)):
1315 Likewise.
1316 * include/debug/multiset.h
1317 (multiset::multiset<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
1318 (multiset::multiset<_Iter>(_Iter, _Iter, const _Compare&,
1319 const _Alloc&)): Likewise.
1320 * include/debug/string
1321 (basic_string::basic_string<_Iter>(_Iter, _Iter, const _Alloc&)):
1322 Likewise.
1323 * include/debug/unordered_map
1324 (unordered_map::unordered_map<_Iter>(_Iter, _Iter, const _Alloc&)):
1325 Likewise.
1326 (unordered_multimap::unordered_multimap<_Iter>(_Iter, _Iter,
1327 const _Alloc&)): Likewise.
1328 * include/debug/unordered_set
1329 (unordered_set::unordered_set<_Iter>(_Iter, _Iter, const _Alloc&)):
1330 Likewise.
1331 (unordered_multiset::unordered_multiset<_Iter>(_Iter, _Iter,
1332 const _Alloc&)): Likewise.
1333 * include/debug/vector
1334 (vector::vector<_Iter>(_Iter, _Iter, const _Alloc&)): Use latter.
1335
a5277405
FD
1336 * include/debug/formatter.h (_Error_formatter::_M_function): New.
1337 (_Error_formatter(const char*, unsigned int)): Adapt.
1338 (_Error_formatter::_M_at): Rename in...
1339 (_Error_formatter::_S_at): ...that and adapt.
1340 * include/debug/macros.h (_GLIBCXX_DEBUG_VERIFY_AT_F): New.
1341 (_GLIBCXX_DEBUG_VERIFY_AT, _GLIBCXX_DEBUG_VERIFY): Adapt.
1342 * src/c++11/debug.cc (_Error_formatter::_M_error): Render _M_function
1343 when available.
1344
41c3db9f
JW
13452018-05-08 Jonathan Wakely <jwakely@redhat.com>
1346
ec332f1b
JW
1347 * include/bits/regex_automaton.h (_NFA_base::_M_paren_stack, _NFA):
1348 Use normal std::vector even in Debug Mode.
1349
41c3db9f
JW
1350 PR libstdc++/85672
1351 * include/Makefile.am [!ENABLE_FLOAT128]: Change c++config.h entry
1352 to #undef _GLIBCXX_USE_FLOAT128 instead of defining it to zero.
1353 * include/Makefile.in: Regenerate.
1354 * include/bits/c++config (_GLIBCXX_USE_FLOAT128): Move definition
1355 within conditional block.
1356
a989f637
JW
13572018-05-07 Jonathan Wakely <jwakely@redhat.com>
1358
b83f5981
JW
1359 * doc/xml/manual/using.xml (table.cmd_options): Document that the
1360 C++17 Filesystem implementation also needs -lstdc++fs.
1361
a989f637
JW
1362 PR libstdc++/85671
1363 * include/bits/fs_path.h (operator/): Permit copy elision.
1364 * include/experimental/bits/fs_path.h (operator/): Likewise.
1365
228aa0ec
ESR
13662018-05-07 Edward Smith-Rowland <3dw4rd@verizon.net>
1367
1368 Moar PR libstdc++/80506
1369 * include/bits/random.tcc (gamma_distribution::__generate_impl()):
1370 Fix magic number used in loop condition.
1371
d6ed6b07
JW
13722018-05-04 Jonathan Wakely <jwakely@redhat.com>
1373
1374 PR libstdc++/85642 fix is_nothrow_default_constructible<optional<T>>
1375 * include/std/optional (_Optional_payload): Add noexcept to default
1376 constructor. Re-indent.
1377 (_Optional_payload<_Tp, true, true, true>): Likewise. Add noexcept to
1378 constructor for copying disengaged payloads.
1379 (_Optional_payload<_Tp, true, false, true>): Likewise.
1380 (_Optional_payload<_Tp, true, true, false>): Likewise.
1381 (_Optional_payload<_Tp, true, false, false>): Likewise.
1382 * testsuite/20_util/optional/cons/85642.cc: New.
1383 * testsuite/20_util/optional/cons/value_neg.cc: Adjust dg-error lines.
1384
6791489e
JW
13852018-05-03 Jonathan Wakely <jwakely@redhat.com>
1386
86f66562
JW
1387 PR libstdc++/82644
1388 * include/tr1/cmath [__STRICT_ANSI__] (hypergf, hypergl, hyperg): Use
1389 inline definitions instead of using-declarations.
1390 [__STRICT_ANSI__] (conf_hypergf, conf_hypergl, conf_hyperg): Likewise.
1391 * testsuite/tr1/5_numerical_facilities/special_functions/
1392 07_conf_hyperg/compile_cxx17.cc: New.
1393 * testsuite/tr1/5_numerical_facilities/special_functions/
1394 17_hyperg/compile_cxx17.cc: New.
1395
1ee021f2
JW
1396 PR libstdc++/84769
1397 * include/std/variant (visit): Qualify std::get call.
1398
2e023647
JW
1399 PR libstdc++/85632 use uintmax_t for arithmetic
1400 * src/filesystem/ops.cc (experimental::filesystem::space): Perform
1401 arithmetic in result type.
1402 * src/filesystem/std-ops.cc (filesystem::space): Likewise.
1403 * testsuite/27_io/filesystem/operations/space.cc: Check total capacity
1404 is greater than free space.
1405 * testsuite/experimental/filesystem/operations/space.cc: New.
1406
adba76a3
JW
1407 * testsuite/20_util/remove_cvref/requirements/alias_decl.cc: New.
1408 * testsuite/20_util/remove_cvref/requirements/explicit_instantiation.cc:
1409 New.
1410 * testsuite/20_util/remove_cvref/value.cc: New.
1411 * testsuite/20_util/remove_cvref/value_ext.cc: New.
1412
852ee53c
JW
1413 PR libstdc++/84087 LWG DR 2268 basic_string default arguments
1414 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI=1]
1415 (append(const basic_string&, size_type, size_type)
1416 (assign(const basic_string&, size_type, size_type)
1417 (insert(size_type, const basic_string&, size_type, size_type)
1418 (replace(size_type,size_type,const basic_string&,size_type,size_type)
1419 (compare(size_type,size_type,constbasic_string&,size_type,size_type)):
1420 Add default arguments (LWG 2268).
1421 [_GLIBCXX_USE_CXX11_ABI=0]
1422 (append(const basic_string&, size_type, size_type)
1423 (assign(const basic_string&, size_type, size_type)
1424 (insert(size_type, const basic_string&, size_type, size_type)
1425 (replace(size_type,size_type,const basic_string&,size_type,size_type)
1426 (compare(size_type,size_type,constbasic_string&,size_type,size_type)):
1427 Likewise.
1428 * testsuite/21_strings/basic_string/dr2268.cc: New test.
1429
d49b3426
JW
1430 PR libstdc++/84535
1431 * include/std/thread (thread::__not_same): New SFINAE helper.
1432 (thread::thread(_Callable&&, _Args&&...)): Add SFINAE constraint that
1433 first argument is not a std::thread. Add static assertion to check
1434 INVOKE expression is valid.
1435 (thread::thread(thread&), thread::thread(const thread&&)): Remove.
1436 (thread::_Invoke::_M_invoke, thread::_Invoke::operator()): Use
1437 __invoke_result for return types and remove exception specifications.
1438 * testsuite/30_threads/thread/cons/84535.cc: New.
1439
9e3ef542
JW
1440 * include/std/future (__async_result_of): Use __invoke_result instead
1441 of result_of.
1442
6791489e
JW
1443 * include/std/any (any_cast): Use __remove_cvref_t.
1444 * include/std/tuple (__make_tuple): Likewise.
1445 * include/std/type_traits (__remove_cvref_t): Define.
1446 (__result_of_memobj, __result_of_memfun): Use __remove_cvref_t.
1447 [__cplusplus > 201703L] (remove_cvref, remove_cvref_t): Define.
1448 * include/std/variant (__erased_hash): Use __remove_cvref_t.
1449
27db01d8
FD
14502018-05-02 François Dumont <fdumont@gcc.gnu.org>
1451
1452 * include/bits/deque.tcc (deque<>::_M_assign_aux): Cast to void to
1453 ensure overloaded comma not used.
1454 * include/bits/list.tcc (list<>::_M_assign_dispatch): Likewise.
1455 * include/bits/vector.tcc (vector<>::_M_assign_aux): Likewise.
1456 * include/bits/stl_bvector.h (vector<bool>::_M_assign_aux): Likewise.
1457 * testsuite/23_containers/deque/modifiers/assign/1.cc: New.
1458 * testsuite/23_containers/list/modifiers/assign/1.cc: New.
1459 * testsuite/23_containers/vector/bool/modifiers/assign/1.cc: New.
1460 * testsuite/23_containers/vector/modifiers/assign/1.cc: New.
1461
c6d42579
JW
14622018-05-02 Jonathan Wakely <jwakely@redhat.com>
1463
85d0fad4
JW
1464 PR libstdc++/68197
1465 * include/bits/ios_base.h (ios_base::iword, ios_base::pword): Cast
1466 indices to unsigned.
1467 * src/c++11/ios.cc (ios_base::_M_grow_words): Treat negative indices
1468 as failure. Refactor error handling.
1469 * testsuite/27_io/ios_base/storage/68197.cc: New.
1470
1b749ae9
JW
1471 PR libstdc++/57997
1472 PR libstdc++/83860
1473 * include/bits/gslice_array.h (gslice_array): Define default
1474 constructor as deleted, as per C++11 standard.
1475 * include/bits/mask_array.h (mask_array): Likewise.
1476 * include/bits/slice_array.h (slice_array): Likewise.
1477 * include/bits/valarray_after.h (_GBase, _GClos, _IBase, _IClos): Move
1478 to namespace __detail.
1479 (_GBase::_M_expr, _IBase::_M_expr): Use _ValArrayRef for type of data
1480 members.
1481 * include/bits/valarray_before.h (_ValArrayRef): New helper for type
1482 of data members in closure objects.
1483 (_FunBase, _ValFunClos, _RefFunClos, _UnBase, _UnClos, _BinBase)
1484 (_BinBase2, _BinBase1, _BinClos, _SBase, _SClos): Move to namespace
1485 __detail.
1486 (_FunBase::_M_expr, _UnBase::_M_expr, _BinBase::_M_expr1)
1487 (_BinBase::_M_expr2, _BinBase2::_M_expr1, _BinBase1::_M_expr2)
1488 (_SBase::_M_expr): Use _ValArrayRef for type of data members.
1489 * include/std/valarray (_UnClos, _BinClos, _SClos, _GClos, _IClos)
1490 (_ValFunClos, _RefFunClos): Move to namespace __detail and add
1491 using-declarations to namespace std.
1492 * testsuite/26_numerics/valarray/83860.cc: New.
1493
59bcf900
JW
1494 * testsuite/backward/strstream_move.cc: Remove duplicate function
1495 call.
1496
c6d42579
JW
1497 PR libstdc++/69608
1498 * include/backward/strstream (strstreambuf): Define move constructor
1499 and move assignment operator.
1500 (istrstream, ostrstream, strstream): Likewise.
1501 * testsuite/backward/strstream_move.cc: New.
1502
f421e442
TMQMF
15032018-05-01 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
1504
1505 PR libstdc++/84654
1506 * acinclude.m4: Set ENABLE_FLOAT128 instead of _GLIBCXX_USE_FLOAT128.
1507 * config.h.in: Remove references to _GLIBCXX_USE_FLOAT128.
1508 * configure: Regenerate.
1509 * include/Makefile.am: Replace the value of _GLIBCXX_USE_FLOAT128
1510 based on ENABLE_FLOAT128.
1511 * include/Makefile.in: Regenerate.
1512 * include/bits/c++config: Define _GLIBCXX_USE_FLOAT128.
1513 [!defined(__FLOAT128__) && !defined(__SIZEOF_FLOAT128__)]: Undefine
1514 _GLIBCXX_USE_FLOAT128.
1515
7b47ecf2
L
15162018-04-24 H.J. Lu <hongjiu.lu@intel.com>
1517
1518 * configure: Regenerated.
1519
a0e1df88
JJ
15202018-04-19 Jakub Jelinek <jakub@redhat.com>
1521
1522 * configure: Regenerated.
1523
05b14480
JW
15242018-04-18 Jonathan Wakely <jwakely@redhat.com>
1525 Jakub Jelinek <jakub@redhat.com>
1526
1527 PR libstdc++/85442
1528 * src/c++11/Makefile.am: Don't generate debuginfo again for
1529 cxx11-ios_failure-lt.s and cxx11-ios_failure.s files.
1530 * src/c++11/Makefile.in: Regenerate.
1531
8cc8789f
JW
15322018-04-18 Jonathan Wakely <jwakely@redhat.com>
1533
1534 PR libstdc++/84442
1535 * testsuite/30_threads/thread/cons/terminate.cc
1536 [!_GLIBCXX_USE_C99_STDLIB] : Use _exit or std::exit instead of _Exit.
1537
001ddaa8
DM
15382018-04-18 David Malcolm <dmalcolm@redhat.com>
1539
1540 PR jit/85384
1541 * configure: Regenerate.
1542
ef0e80d2
JW
15432018-04-16 Jonathan Wakely <jwakely@redhat.com>
1544
1545 * testsuite/experimental/filesystem/file_status/1.cc: Add
1546 -DUSE_FILESYSTEM_TS to dg-options.
1547 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
1548 Likewise.
1549 * testsuite/experimental/filesystem/iterators/pop.cc: Likewise.
1550 * testsuite/experimental/filesystem/iterators/
1551 recursive_directory_iterator.cc: Likewise.
1552 * testsuite/experimental/filesystem/operations/absolute.cc: Likewise.
1553 * testsuite/experimental/filesystem/operations/canonical.cc: Likewise.
1554 * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
1555 * testsuite/experimental/filesystem/operations/copy_file.cc: Likewise.
1556 * testsuite/experimental/filesystem/operations/create_directories.cc:
1557 Likewise.
1558 * testsuite/experimental/filesystem/operations/create_directory.cc:
1559 Likewise.
1560 * testsuite/experimental/filesystem/operations/create_symlink.cc:
1561 Likewise.
1562 * testsuite/experimental/filesystem/operations/current_path.cc:
1563 Likewise.
1564 * testsuite/experimental/filesystem/operations/equivalent.cc: Likewise.
1565 * testsuite/experimental/filesystem/operations/exists.cc: Likewise.
1566 * testsuite/experimental/filesystem/operations/file_size.cc: Likewise.
1567 * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise.
1568 * testsuite/experimental/filesystem/operations/last_write_time.cc:
1569 Likewise.
1570 * testsuite/experimental/filesystem/operations/permissions.cc:
1571 Likewise.
1572 * testsuite/experimental/filesystem/operations/read_symlink.cc:
1573 Likewise.
1574 * testsuite/experimental/filesystem/operations/remove.cc: Likewise.
1575 * testsuite/experimental/filesystem/operations/remove_all.cc: Likewise.
1576 * testsuite/experimental/filesystem/operations/status.cc: Likewise.
1577 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
1578 Likewise.
1579 * testsuite/experimental/filesystem/path/append/path.cc: Likewise.
1580 * testsuite/experimental/filesystem/path/assign/assign.cc: Likewise.
1581 * testsuite/experimental/filesystem/path/assign/copy.cc: Likewise.
1582 * testsuite/experimental/filesystem/path/compare/compare.cc: Likewise.
1583 * testsuite/experimental/filesystem/path/compare/path.cc: Likewise.
1584 * testsuite/experimental/filesystem/path/compare/strings.cc: Likewise.
1585 * testsuite/experimental/filesystem/path/concat/path.cc: Likewise.
1586 * testsuite/experimental/filesystem/path/concat/strings.cc: Likewise.
1587 * testsuite/experimental/filesystem/path/construct/copy.cc: Likewise.
1588 * testsuite/experimental/filesystem/path/construct/default.cc:
1589 Likewise.
1590 * testsuite/experimental/filesystem/path/construct/locale.cc: Likewise.
1591 * testsuite/experimental/filesystem/path/construct/range.cc: Likewise.
1592 * testsuite/experimental/filesystem/path/construct/string_view.cc:
1593 Likewise.
1594 * testsuite/experimental/filesystem/path/decompose/extension.cc:
1595 Likewise.
1596 * testsuite/experimental/filesystem/path/decompose/filename.cc:
1597 Likewise.
1598 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
1599 Likewise.
1600 * testsuite/experimental/filesystem/path/decompose/relative_path.cc:
1601 Likewise.
1602 * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
1603 Likewise.
1604 * testsuite/experimental/filesystem/path/decompose/root_name.cc:
1605 Likewise.
1606 * testsuite/experimental/filesystem/path/decompose/root_path.cc:
1607 Likewise.
1608 * testsuite/experimental/filesystem/path/decompose/stem.cc: Likewise.
1609 * testsuite/experimental/filesystem/path/generic/generic_string.cc:
1610 Likewise.
1611 * testsuite/experimental/filesystem/path/itr/traversal.cc: Likewise.
1612 * testsuite/experimental/filesystem/path/modifiers/clear.cc: Likewise.
1613 * testsuite/experimental/filesystem/path/modifiers/make_preferred.cc:
1614 Likewise.
1615 * testsuite/experimental/filesystem/path/modifiers/remove_filename.cc:
1616 Likewise.
1617 * testsuite/experimental/filesystem/path/modifiers/replace_extension.cc:
1618 Likewise.
1619 * testsuite/experimental/filesystem/path/modifiers/replace_filename.cc:
1620 Likewise.
1621 * testsuite/experimental/filesystem/path/modifiers/swap.cc: Likewise.
1622 * testsuite/experimental/filesystem/path/native/string.cc: Likewise.
1623 * testsuite/experimental/filesystem/path/nonmember/hash_value.cc:
1624 Likewise.
1625 * testsuite/experimental/filesystem/path/query/empty.cc: Likewise.
1626 * testsuite/experimental/filesystem/path/query/has_extension.cc:
1627 Likewise.
1628 * testsuite/experimental/filesystem/path/query/has_filename.cc:
1629 Likewise.
1630 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
1631 Likewise.
1632 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
1633 Likewise.
1634 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
1635 Likewise.
1636 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
1637 Likewise.
1638 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
1639 Likewise.
1640 * testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise.
1641 * testsuite/experimental/filesystem/path/query/is_relative.cc:
1642 Likewise.
1643
06258a7f
JW
16442018-04-13 Jonathan Wakely <jwakely@redhat.com>
1645
272277dc
JW
1646 * src/c++11/Makefile.am: Fix sed command.
1647 * src/c++11/Makefile.in: Regenerate.
1648
06258a7f
JW
1649 * src/c++11/Makefile.am: Rewrite sed rule to be less fragile and to
1650 handle mangled names starting with double underscores on darwin.
1651 * src/c++11/Makefile.in: Regenerate.
1652
ee3e8f43
JW
16532018-04-12 Jonathan Wakely <jwakely@redhat.com>
1654
741346a2
JW
1655 * src/c++11/Makefile.am: Fix comment.
1656 * src/c++11/Makefile.in: Regenerate.
1657 * src/c++11/cxx11-ios_failure.cc: Fix comment.
1658 * src/c++98/ios_failure.cc: Likewise.
1659
ee3e8f43
JW
1660 * src/c++11/ios.cc: Remove redundant macro definition.
1661
52556a87
JW
16622018-04-11 Jonathan Wakely <jwakely@redhat.com>
1663
1664 * doc/xml/manual/abi.xml: Document header locations in recent
1665 releases.
1666 * doc/xml/manual/evolution.xml: Add API changes since GCC 5.
1667 * doc/xml/manual/spine.xml: Update copyright years.
1668 * doc/xml/manual/strings.xml: Adjust tolower example to avoid
1669 undefined behaviour.
1670 * doc/xml/manual/test.xml: Update outdated notes on VERIFY in tests.
1671 * doc/html/*: Regenerate.
1672
5f302518
JW
16732018-04-10 Jonathan Wakely <jwakely@redhat.com>
1674
25949ee3
JW
1675 * doc/xml/faq.xml: Update links to archived copy of SGI STL docs.
1676 * doc/xml/manual/backwards_compatibility.xml: Likewise.
1677 * doc/xml/manual/containers.xml: Likewise.
1678 * doc/xml/manual/debug_mode.xml: Likewise.
1679 * doc/xml/manual/extensions.xml: Likewise.
1680 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise.
1681 * doc/xml/manual/using.xml: Likewise.
1682 * doc/xml/manual/utilities.xml: Likewise.
1683
5f302518
JW
1684 PR libstdc++/85222
1685 * src/c++11/Makefile.am [ENABLE_DUAL_ABI]: Add special rules for
1686 cxx11-ios_failure.cc to rewrite type info for __ios_failure.
1687 * src/c++11/Makefile.in: Regenerate.
1688 * src/c++11/cxx11-ios_failure.cc (__ios_failure, __iosfail_type_info):
1689 New types.
1690 [_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here.
1691 * src/c++11/ios.cc (__throw_ios_failure): Remove definition.
1692 * src/c++98/ios_failure.cc (__construct_ios_failure)
1693 (__destroy_ios_failure, is_ios_failure_handler): New functions.
1694 [!_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here.
1695 * testsuite/27_io/ios_base/failure/dual_abi.cc: New.
1696 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Revert changes to
1697 handler types, to always catch std::ios_base::failure.
1698 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1699 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1700 exceptions_failbit.cc: Likewise.
1701 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1702 exceptions_failbit.cc: Likewise.
1703 * testsuite/27_io/basic_istream/extractors_other/char/
1704 exceptions_null.cc: Likewise.
1705 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1706 exceptions_null.cc: Likewise.
1707 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1708 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1709 * testsuite/27_io/basic_ostream/inserters_other/char/
1710 exceptions_null.cc: Likewise.
1711 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1712 exceptions_null.cc: Likewise.
1713 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1714
970d3d90
JW
17152018-04-05 Jonathan Wakely <jwakely@redhat.com>
1716
1717 * include/std/variant (_VARIANT_RELATION_FUNCTION_TEMPLATE): Qualify
1718 __get calls to avoid ADL and avoid ambiguity due to Clang bug.
1719
c73847e7
JW
17202018-04-03 Jonathan Wakely <jwakely@redhat.com>
1721
1722 PR libstdc++/85183
1723 * include/std/variant (_Move_assign_base::operator=): Fix incorrect
1724 value categories.
1725 * testsuite/20_util/variant/85183.cc: New.
1726
aafaa325
JW
17272018-03-26 Jonathan Wakely <jwakely@redhat.com>
1728
1729 * include/std/variant (__get): Qualify calls to avoid ADL.
1730 (__select_index): Adjust whitespace.
1731 (variant): Add using-declaration to workaround Clang bug.
1732
7c69a7d9
JW
17332018-03-22 Jonathan Wakely <jwakely@redhat.com>
1734
1735 PR libstdc++/85040
1736 * include/bits/stl_function.h (greater::__not_overloaded)
1737 (less::__not_overloaded, greater_equal::__not_overloaded)
1738 (less_equal::__not_overloaded): Fix ambiguous specializations.
1739 * testsuite/20_util/function_objects/comparisons_pointer.cc: Add
970d3d90 1740 tests for type with overloaded operators.
7c69a7d9 1741
83872062
RO
17422018-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1743
1744 PR libstdc++/77691
1745 * testsuite/experimental/memory_resource/resource_adaptor.cc:
1746 xfail execution on 32-bit Solaris/x86.
1747
5a0729f5
JW
17482018-03-21 Jonathan Wakely <jwakely@redhat.com>
1749
1750 * testsuite/20_util/function_objects/comparisons_pointer.cc: Use
1751 VERIFY instead of assert.
1752 * testsuite/20_util/hash/84998.cc: New test.
1753 * testsuite/23_containers/vector/cons/destructible_debug_neg.cc: New
1754 copy of test adjusted for Debug Mode.
1755 * testsuite/23_containers/vector/cons/destructible_neg.cc: Do not run
1756 test in Debug Mode.
1757
5dfb5e5b
FD
17582018-03-20 François Dumont <fdumont@gcc.gnu.org>
1759
1760 PR libstdc++/84998
1761 * include/bits/stl_bvector.h: Fix std::hash friend declaration.
1762 * include/std/bitset: Likewise.
1763 * include/bits/stl_map.h (std::map<>): Fix _Rb_tree_merge_helper friend
1764 declaration.
1765 * include/bits/stl_multimap.h (std::multimap<>): Likewise.
1766 * include/bits/stl_multiset.h (std::multiset<>): Likewise.
1767 * include/bits/stl_set.h (std::set<>): Likewise.
1768 * include/bits/unordered_map.h (std::unordered_map<>): Fix
1769 _Hash_merge_helper friend declaration.
1770 (std::unordered_multimap<>): Likewise.
1771 * include/bits/unordered_set.h (std::unordered_set<>): Likewise.
1772 (std::unordered_multiset<>): Likewise.
1773
1de51fbc
GP
17742018-03-19 Gerald Pfeifer <gerald@pfeifer.com>
1775
8c00b6a4
GP
1776 * doc/xml/api.xml: www.fsf.org has moved to https. Also omit
1777 trailing slash for domain level link.
1778 * doc/xml/faq.xml: Ditto.
1779 * doc/xml/manual/appendix_free.xml (software): Ditto.
1780 * doc/xml/manual/intro.xml: Ditto.
1781 * doc/xml/manual/spine.xml: Ditto.
1782 * doc/xml/spine.xml: Ditto.
1783
5dfb5e5b
FD
17842018-03-19 Gerald Pfeifer <gerald@pfeifer.com>
1785
1de51fbc
GP
1786 * doc/xml/manual/documentation_hacking.xml: Adjust link to
1787 docbook.org.
1788
0fb9dc36
JW
17892018-03-17 Jonathan Wakely <jwakely@redhat.com>
1790
1791 * testsuite/20_util/function_objects/comparisons_pointer.cc: Adjust
1792 to compile as C++98.
1793
0b3ec8f4
JW
17942018-03-14 Jonathan Wakely <jwakely@redhat.com>
1795
1796 PR libstdc++/78420
1797 * include/bits/stl_function.h (greater<_Tp*>, less<_Tp*>)
1798 (greater_equal<_Tp*>, less_equal<_Tp>*): Add partial specializations
1799 to ensure total order for pointers.
1800 (greater<void>, less<void>, greater_equal<void>, less_equal<void>):
1801 Add operator() overloads for pointer arguments and make generic
1802 overloads dispatch to new _S_cmp functions when comparisons would
1803 use built-in operators for pointers.
1804 * testsuite/20_util/function_objects/comparisons_pointer.cc: New.
1805
97ca95ac
JW
18062018-03-12 Jonathan Wakely <jwakely@redhat.com>
1807
1808 PR libstdc++/84773
1809 PR libstdc++/83662
1810 * crossconfig.m4: Check for aligned_alloc etc. on freebsd and mingw32.
1811 * configure: Regenerate.
1812 * include/c_global/cstdlib [_GLIBCXX_HAVE_ALIGNED_ALLOC]
1813 (aligned_alloc): Add using-declaration.
1814 * testsuite/18_support/aligned_alloc/aligned_alloc.cc: New test.
1815
5da6b013
FD
18162018-03-09 François Dumont <fdumont@gcc.gnu.org>
1817
1818 * python/libstdcxx/v6/printers.py (build_libstdcxx_dictionary):
1819 Fix std::_Fwd_list_iterator and std::_Fwd_list_const_iterator printers
1820 registration.
1821
311735db
JW
18222018-03-09 Jonathan Wakely <jwakely@redhat.com>
1823
5dbbf899
JW
1824 PR libstdc++/84769
1825 * include/std/variant (get<_Tp, _Types...>, get_if<_Tp, _Types...>):
1826 Qualify calls to get<_Np, Types...> and get_if<_Np, _Types...>.
1827
311735db
JW
1828 src/filesystem/ops.cc (create_dir): Pass error_code to is_directory.
1829 src/filesystem/std-ops.cc (create_dir): Likewise.
1830
fe6bd21a
FD
18312018-03-08 François Dumont <fdumont@gcc.gnu.org>
1832
1833 * python/libstdcxx/v6/printers.py (NodeIteratorPrinter): New.
1834 (StdListIteratorPrinter): Inherit from latter.
1835 (StdFwdListIteratorPrinter): New, inherit from latter.
1836 (StdDebugIteratorPrinter.to_string): Use non-debug iterator printer
1837 when iterator has no associated container.
1838 (build_libstdcxx_dictionary): Add __gnu_cxx::_Fwd_list_iterator and
1839 __gnu_cxx::_Fwd_list_const_iterator printers. Remove __norm namespace
1840 registrations.
1841 * testsuite/libstdc++-prettyprinters/debug.cc: Adapt.
1842 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Adapt.
1843
447346e4
VV
18442018-03-06 Ville Voutilainen <ville.voutilainen@gmail.com>
1845
1846 PR libstdc++/84601
1847 * include/std/optional (_Optional_payload): Split into multiple
1848 specializations that can handle different cases of trivial or
1849 non-trivial assignment operators.
1850 * testsuite/20_util/optional/84601.cc: New.
1851 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
1852
2f03003d
JW
18532018-03-02 Jonathan Wakely <jwakely@redhat.com>
1854
1855 PR libstdc++/84671
1856 * include/bits/parse_numbers.h (_Number_help): Add partial
1857 specialization to handle digit separators. Adjust partial
1858 specialization for recursion temrination to require _Pow == 1ULL.
1859 * testsuite/20_util/duration/literals/84671.cc: New
1860
23c3a059
VV
18612018-02-27 Ville Voutilainen <ville.voutilainen@gmail.com>
1862
1863 Implement the missing bits of LWG 2769
1864 * include/std/any (any_cast(const any&)): Add static_assert.
1865 (any_cast(any&)): Likewise.
1866 (any_cast(any&&)): Likewise, and remove the handling
1867 for copyable-but-not-movable type.
1868 * testsuite/20_util/any/misc/any_cast.cc: Adjust.
1869 * testsuite/20_util/any/misc/any_cast_neg.cc: Likewise, and
1870 add new tests.
1871
cc535146
JW
18722018-02-23 Jonathan Wakely <jwakely@redhat.com>
1873
1874 PR libstdc++/84532
1875 * include/std/thread (thread::__make_invoker): Construct tuple
1876 directly instead of using make_tuple.
1877 * testsuite/30_threads/async/84532.cc: New.
1878 * testsuite/30_threads/thread/84532.cc: New.
1879
549b1796
FD
18802018-02-20 François Dumont <fdumont@gcc.gnu.org>
1881
1882 * include/ext/aligned_buffer.h [_GLIBCXX_INLINE_VERSION]
1883 (template<> __aligned_buffer): Define as __aligned_membuf alias.
1884
14e335ed
IT
18852018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
1886
1887 PR target/84148
1888 * configure: Regenerate.
1889
51f174c0
JW
18902018-02-15 Jonathan Wakely <jwakely@redhat.com>
1891
1892 PR libstdc++/81797
1893 * configure.ac (INCLUDE_DIR_NOTPARALLEL): Define.
1894 * configure: Regenerate.
1895 * include/Makefile.am (INCLUDE_DIR_NOTPARALLEL): Add .NOTPARALLEL when
1896 defined.
1897 * include/Makefile.in: Regenerate.
1898
73ebece3
JW
18992018-01-29 Jonathan Wakely <jwakely@redhat.com>
1900
50ea03f4
JW
1901 PR libstdc++/83833
1902 * testsuite/26_numerics/random/chi_squared_distribution/83833.cc:
1903 Add -ffloat-store to options for m68k and ia32.
1904
b53e4e1c
JW
1905 * doc/xml/faq.xml: Update copyright years.
1906 * doc/html/*: Regenerate.
1907
73ebece3
JW
1908 PR libstdc++/83658
1909 * include/std/any (any::__do_emplace): Only set _M_manager after
1910 constructing the contained object.
1911 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust dg-error line.
1912 * testsuite/20_util/any/modifiers/83658.cc: New test.
1913
58078de7
JW
19142018-01-25 Jonathan Wakely <jwakely@redhat.com>
1915
1916 PR libstdc++/81076
1917 * include/c_global/cstddef (__byte_operand): Define primary template.
1918 * testsuite/18_support/byte/81076.cc: New test.
1919
a46c4287
CL
19202018-01-19 Christophe Lyon <christophe.lyon@linaro.org>
1921
1922 * testsuite/ext/special_functions/airy_ai/check_nan.cc: Fix
58078de7 1923 dg-options and dg-add-options order.
a46c4287
CL
1924 * testsuite/ext/special_functions/airy_bi/check_nan.cc: Likewise.
1925 * testsuite/ext/special_functions/conf_hyperg/check_nan.cc:
1926 Likewise.
1927 * testsuite/ext/special_functions/hyperg/check_nan.cc: Likewise.
1928 * testsuite/special_functions/01_assoc_laguerre/check_nan.cc:
1929 Likewise.
1930 * testsuite/special_functions/02_assoc_legendre/check_nan.cc:
1931 Likewise.
1932 * testsuite/special_functions/03_beta/check_nan.cc: Likewise.
1933 * testsuite/special_functions/04_comp_ellint_1/check_nan.cc:
1934 Likewise.
1935 * testsuite/special_functions/05_comp_ellint_2/check_nan.cc:
1936 Likewise.
1937 * testsuite/special_functions/06_comp_ellint_3/check_nan.cc:
1938 Likewise.
1939 * testsuite/special_functions/06_comp_ellint_3/pr66689.cc:
1940 Likewise.
1941 * testsuite/special_functions/07_cyl_bessel_i/check_nan.cc:
1942 Likewise.
1943 * testsuite/special_functions/08_cyl_bessel_j/check_nan.cc:
1944 Likewise.
1945 * testsuite/special_functions/09_cyl_bessel_k/check_nan.cc:
1946 Likewise.
1947 * testsuite/special_functions/10_cyl_neumann/check_nan.cc:
1948 Likewise.
1949 * testsuite/special_functions/11_ellint_1/check_nan.cc: Likewise.
1950 * testsuite/special_functions/12_ellint_2/check_nan.cc: Likewise.
1951 * testsuite/special_functions/13_ellint_3/check_nan.cc: Likewise.
1952 * testsuite/special_functions/13_ellint_3/pr66689.cc: Likewise.
1953 * testsuite/special_functions/14_expint/check_nan.cc: Likewise.
1954 * testsuite/special_functions/15_hermite/check_nan.cc: Likewise.
1955 * testsuite/special_functions/16_laguerre/check_nan.cc: Likewise.
1956 * testsuite/special_functions/17_legendre/check_nan.cc: Likewise.
1957 * testsuite/special_functions/18_riemann_zeta/check_nan.cc:
1958 Likewise.
1959 * testsuite/special_functions/19_sph_bessel/check_nan.cc:
1960 Likewise.
1961 * testsuite/special_functions/20_sph_legendre/check_nan.cc:
1962 Likewise.
1963 * testsuite/special_functions/21_sph_neumann/check_nan.cc:
1964 Likewise.
1965
dac867c9
UB
19662018-01-18 Uros Bizjak <ubizjak@gmail.com>
1967
1968 * configure.ac (AC_CHECK_HEADERS): Add linux/types.h. Conditionally
1969 include linux/types.h when checking linux/random.h header.
1970 * config.h.in: Regenerate.
1971 * configure: Ditto.
1972 * src/c++11/random.cc: Conditionally include linux/types.h.
1973
229433c9
EB
19742018-01-16 Eric Botcazou <ebotcazou@adacore.com>
1975
1976 * testsuite/17_intro/names.cc: Undefine 'y' on SPARC/Linux.
1977
cce6078d
JW
19782018-01-16 Jonathan Wakely <jwakely@redhat.com>
1979
1980 PR libstdc++/83834
1981 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Replace std::c[a-g]* wildcard
1982 pattern with exact match for std::cerr.
1983
b0e63d94
JW
19842018-01-15 Jonathan Wakely <jwakely@redhat.com>
1985
8b3085e7
JW
1986 PR libstdc++/83833
1987 * include/bits/random.h (chi_squared_distribution::param): Update
1988 gamma distribution parameter.
1989 * testsuite/26_numerics/random/chi_squared_distribution/83833.cc: New
1990 test.
1991
b0e63d94
JW
1992 PR libstdc++/83830
1993 * include/std/type_traits (has_unique_object_representations_v): Add
1994 variable template.
1995 * testsuite/20_util/has_unique_object_representations/value.cc: Check
1996 variable template.
1997
c89f2d24
VV
19982018-01-15 Ville Voutilainen <ville.voutilainen@gmail.com>
1999
2000 Make optional conditionally
2001 trivially_{copy,move}_{constructible,assignable}
2002 * include/std/optional (_Optional_payload): Fix the comment in
2003 the class head and turn into a primary and one specialization.
2004 (_Optional_payload::_M_engaged): Strike the NSDMI.
2005 (_Optional_payload<_Tp, false>::operator=(const _Optional_payload&)):
2006 New.
2007 (_Optional_payload<_Tp, false>::operator=(_Optional_payload&&)):
2008 Likewise.
2009 (_Optional_payload<_Tp, false>::_M_get): Likewise.
2010 (_Optional_payload<_Tp, false>::_M_reset): Likewise.
2011 (_Optional_base_impl): Likewise.
2012 (_Optional_base): Turn into a primary and three specializations.
2013 (optional(nullopt)): Change the base init.
2014 * testsuite/20_util/optional/assignment/8.cc: New.
2015 * testsuite/20_util/optional/cons/trivial.cc: Likewise.
2016 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
2017
bab0a26d
JW
20182018-01-15 Jonathan Wakely <jwakely@redhat.com>
2019
2020 PR libstdc++/80276
2021 * python/libstdcxx/v6/printers.py (strip_inline_namespaces): New.
2022 (get_template_arg_list): New.
2023 (StdVariantPrinter._template_args): Remove, use get_template_arg_list
2024 instead.
2025 (TemplateTypePrinter): Rewrite to work with gdb.Type objects instead
2026 of strings and regular expressions.
2027 (add_one_template_type_printer): Adapt to new TemplateTypePrinter.
2028 (FilteringTypePrinter): Add docstring. Match using startswith. Use
2029 strip_inline_namespaces instead of strip_versioned_namespace.
2030 (add_one_type_printer): Prepend namespace to match argument.
2031 (register_type_printers): Add type printers for char16_t and char32_t
2032 string types and for types using cxx11 ABI. Update calls to
2033 add_one_template_type_printer to provide default argument dicts.
2034 * testsuite/libstdc++-prettyprinters/80276.cc: New test.
2035 * testsuite/libstdc++-prettyprinters/whatis.cc: Remove tests for
2036 basic_string<unsigned char> and basic_string<signed char>.
2037 * testsuite/libstdc++-prettyprinters/whatis2.cc: Duplicate whatis.cc
2038 to test local variables, without overriding _GLIBCXX_USE_CXX11_ABI.
2039
a61bac1e
AS
20402018-01-14 Andreas Schwab <schwab@linux-m68k.org>
2041
2042 PR libstdc++/81092
2043 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
2044
8532713f
TS
20452018-01-13 Tim Shen <timshen@google.com>
2046
2047 PR libstdc++/83601
2048 * include/bits/regex.tcc (regex_replace): Fix escaping in sed.
2049 * testsuite/28_regex/algorithms/regex_replace/char/pr83601.cc: Tests.
2050 * testsuite/28_regex/algorithms/regex_replace/wchar_t/pr83601.cc: Tests.
2051
c969e34e
RO
20522018-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2053
2054 PR libstdc++/64054
2055 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc:
2056 Remove dg-xfail-run-if.
2057
75ce74bb
FD
20582018-01-10 François Dumont <fdumont@gcc.gnu.org>
2059
2060 * include/bits/forward_list.h
2061 (_Fwd_list_node_base(_Fwd_list_node_base&&)): New.
2062 (_Fwd_list_node_base& operator=(_Fwd_list_node_base&&)): New.
2063 (_Fwd_list_node_base(const _Fwd_list_node_base&)): Explicit delete.
2064 (_Fwd_list_node_base& operator=(const _Fwd_list_node_base&)): Likewise.
2065 (_Fwd_list_impl()): Add noexcept qualification.
2066 (_Fwd_list_impl(const _Node_alloc_type&)): Delete.
2067 (_Fwd_list_impl(_Fwd_list_impl&&)): New, default.
2068 (_Fwd_list_impl(_Fwd_list_impl&&, _Node_alloc_type&&)): New.
2069 (_Fwd_list_base()): Default.
2070 (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&, true_type)): New.
2071 (_Fwd_list_base(_Fwd_list_base&&)): Default.
2072 (forward_list<>()): Default.
2073 (forward_list<>(forward_list&&)): Default.
2074 (forward_list(forward_list&&, _Node_alloc_type&&, false_type)): New.
2075 (forward_list(forward_list&&, _Node_alloc_type&&, true_type)): New.
2076 (forward_list(forward_list&&, const _Alloc&)): Adapt to use latters.
2077 * include/bits/forward_list.tcc
2078 (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&)): Adapt to use
2079 _M_impl._M_head move assignment.
2080 (forward_list<>::merge(forward_list<>&&, _Comp)): Likewise.
2081 * testsuite/23_containers/forward_list/allocator/default_init.cc: New.
2082
8273aa77
JW
20832018-01-09 Jonathan Wakely <jwakely@redhat.com>
2084
2085 PR libstdc++/80276
2086 * python/libstdcxx/v6/printers.py (SharedPointerPrinter)
2087 (UniquePointerPrinter): Print correct template argument, not type of
2088 the pointer.
2089 (TemplateTypePrinter._recognizer.recognize): Handle failure to lookup
2090 a type.
2091 * testsuite/libstdc++-prettyprinters/cxx11.cc: Test unique_ptr of
2092 array type.
2093 * testsuite/libstdc++-prettyprinters/cxx17.cc: Test shared_ptr and
2094 weak_ptr of array types.
2095
0f146257
FD
20962018-01-09 François Dumont <fdumont@gcc.gnu.org>
2097
2098 PR libstdc++/83709
2099 * include/bits/hashtable_policy.h
2100 (__distance_fwd(_Iterator, _Iterator, input_iterator_tag)): Return 1 if
2101 __first != __last.
2102 (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, true_type)): New.
2103 (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, false_type)):
2104 Add false_type parameter.
2105 (_Insert_base::insert): Adapt.
2106 * include/bits/hashtable.h (_Hashtable::operator=(initializzr_list<>)):
2107 Adapt.
2108 (_Hashtable::_M_insert(_Arg&&, const _NodeGen&, true_type, size_t)):
2109 Add __n_elt parameter, defaulted to 1.
2110 (_Hashtable::_M_insert_unique_node): Likewise. Use it to call rehash
2111 policy _M_need_rehash.
2112 (_Hashtable::_M_merge_unique): Pass target number of elements to add to
2113 produce only 1 rehash if necessary.
2114 * testsuite/23_containers/unordered_map/insert/83709.cc: New.
2115 * testsuite/23_containers/unordered_set/insert/83709.cc: New.
2116
ed99ae13
JO
21172018-01-09 Juraj Oršulić <juraj.orsulic@fer.hr>
2118 Jonathan Wakely <jwakely@redhat.com>
d2dfcf82
JO
2119
2120 PR libstdc++/59253 (partial)
2121 * python/libstdcxx/v6/printers.py (SmartPtrIterator): Common iterator
2122 type for pointer stored by shared_ptr, weak_ptr and unique_ptr.
2123 (SharedPointerPrinter, UniquePointerPrinter): Treat stored values as
2124 children.
2125 * testsuite/libstdc++-prettyprinters/cxx11.cc: Update expected output
2126 of unique_ptr printer.
2127 * testsuite/libstdc++-prettyprinters/shared_ptr.cc: Update expected
2128 output of shared_ptr printer.
2129
388058dd
JW
21302018-01-05 Jonathan Wakely <jwakely@redhat.com>
2131
4ca07db0
JW
2132 PR libstdc++/83626
2133 * src/filesystem/ops.cc (remove(const path&, error_code&)): Remove
2134 unnecessary symlink_status call.
2135 (remove_all(const path&, error_code&)): Use filesystem::remove.
2136 * src/filesystem/std-ops.cc: Likewise.
2137
2526c53a
JW
2138 PR libstdc++/83279
2139 * src/filesystem/std-ops.cc (do_copy_file): Use non-null offset with
2140 sendfile.
2141
388058dd
JW
2142 PR libstdc++/83626
2143 * src/filesystem/ops.cc (remove(const path&, error_code&)): Do not
2144 report an error for ENOENT.
2145 (remove_all(const path&)): Fix type of result variable.
2146 (remove_all(const path&, error_code&)): Use non-throwing increment
2147 for directory iterator. Call POSIX remove directly to avoid redundant
2148 calls to symlink_status. Do not report errors for ENOENT.
2149 * src/filesystem/std-ops.cc: Likewise.
2150 * testsuite/27_io/filesystem/operations/remove_all.cc: Test throwing
2151 overload.
2152 * testsuite/experimental/filesystem/operations/remove_all.cc:
2153 Likewise.
2154
32489ab5
JW
21552018-01-04 Jonathan Wakely <jwakely@redhat.com>
2156
994844d3
JW
2157 PR libstdc++/83626
2158 * src/filesystem/ops.cc (remove(const path&, error_code&))): Remove
2159 redundant call to ec.clear().
2160 (remove_all(const path&, error_code&))): Do not return an error for
2161 non-existent paths.
2162 * src/filesystem/std-ops.cc: Likewise.
2163 * testsuite/27_io/filesystem/operations/remove.cc: New test.
2164 * testsuite/27_io/filesystem/operations/remove_all.cc: Fix expected
2165 results for non-existent paths.
2166 * testsuite/experimental/filesystem/operations/remove.cc: New test.
2167 * testsuite/experimental/filesystem/operations/remove_all.cc: Fix
2168 expected results for non-existent paths.
2169
f7373fce
JW
2170 * include/bits/fs_ops.h (exists(const path&, error_code&))): Only
2171 check status_known once.
2172 * include/experimental/bits/fs_ops.h: Likewise.
2173
32489ab5
JW
2174 PR libstdc++/83607
2175 * include/std/functional (__is_byte_like): New trait.
2176 (__is_std_equal_to): Remove.
2177 (__boyer_moore_base_t): Use __is_byte_like instead of
2178 __is_std_equal_to.
2179 * include/experimental/functional (__is_std_equal_to): Remove.
2180 (__boyer_moore_base_t): Use __is_byte_like instead of
2181 __is_std_equal_to.
2182 * testsuite/20_util/function_objects/83607.cc: New test.
2183
8bdbeed1
VV
21842018-01-03 Ville Voutilainen <ville.voutilainen@gmail.com>
2185
2186 Protect optional's deduction guide with the feature macro
2187 * include/std/optional: Use the feature macro.
2188
85ec4feb 21892018-01-03 Jakub Jelinek <jakub@redhat.com>
5624e564
JJ
2190
2191 Update copyright years.
b4df5e92 2192\f
85ec4feb 2193Copyright (C) 2018 Free Software Foundation, Inc.
b4df5e92
JW
2194
2195Copying and distribution of this file, with or without modification,
2196are permitted in any medium without royalty provided the copyright
2197notice and this notice are preserved.