1 2018-06-16 Jonathan Wakely <jwakely@redhat.com>
3 LWG 3076 basic_string CTAD ambiguity
4 * doc/xml/manual/intro.xml: Document LWG 3076 change.
5 * include/bits/basic_string.h
6 [__cpp_deduction_guides && !_GLIBCXX_DEFINING_STRING_INSTANTIATIONS]
7 (basic_string(const _CharT*, const _Alloc&)): Turn into a function
8 template constrained by _RequireAllocator.
9 (basic_string(size_type, _CharT, const _Alloc&)): Likewise.
10 * src/c++11/string-inst.cc (_GLIBCXX_DEFINING_STRING_INSTANTIATIONS):
12 * testsuite/21_strings/basic_string/cons/char/deduction.cc: Test
14 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
17 2018-06-15 Jonathan Wakely <jwakely@redhat.com>
20 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
21 (basic_string::data()): Unshare string.
22 * testsuite/21_strings/basic_string/operations/data/char/86169.cc:
25 * include/std/string_view (basic_string_view(const CharT*)): Remove
26 check for null pointer and add nonnull attribute.
27 (compare(const CharT*), compare(size_type, size_type, const CharT*))
28 (find(const CharT*, size_type), rfind(const CharT*, size_type))
29 (find_first_of(const CharT*, size_type))
30 (find_last_of(const CharT*, size_type))
31 (find_first_not_of(const CharT*, size_type))
32 (find_last_not_of(const CharT*, size_type)): Add nonnull attribute.
33 * testsuite/21_strings/basic_string_view/cons/char/nonnull.cc: New.
34 * testsuite/21_strings/basic_string_view/operations/compare/char/
36 * testsuite/21_strings/basic_string_view/operations/find/char/
38 * testsuite/21_strings/basic_string_view/operations/rfind/char/
42 * include/bits/random.h (random_device(const string&)): Remove
45 * include/bits/char_traits.h (__cpp_lib_constexpr_char_traits): Only
46 define for C++17 and above.
48 LWG 2993 reference_wrapper<T> conversion from T&&
49 * doc/xml/manual/intro.xml: Document LWG 2993 change.
50 * include/bits/refwrap.h (reference_wrapper(_Tp&)): Remove.
51 (reference_wrapper(_Tp&&)): Remove.
52 (reference_wrapper<_Up>(_Up&&)): Define new constructor as constrained
54 (reference_wrapper): Add deduction guide.
55 * testsuite/20_util/reference_wrapper/deduction.cc: New.
56 * testsuite/20_util/reference_wrapper/lwg2993.cc: New.
58 LWG 3039 Unnecessary decay in thread and packaged_task
59 * include/std/future (__constrain_pkgdtask): Replace with ...
60 (packaged_task::__not_same): New alias template, using
61 __remove_cvref_t instead of decay.
62 * include/std/thread (thread::__not_same): Add comment.
64 2018-06-14 Jonathan Wakely <jwakely@redhat.com>
66 LWG 3075 basic_string needs deduction guides from basic_string_view
67 * testsuite/21_strings/basic_string/cons/char/deduction.cc: Test
68 deduction from string views.
69 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
72 LWG 3074 make scalar types non-deduced in valarray non-member functions
73 * include/bits/valarray_after.h (_DEFINE_EXPR_BINARY_FUNCTION): Change
74 scalar parameters to be a non-deduced context.
75 * include/std/valarray (_DEFINE_BINARY_OPERATOR): Likewise. Adjust
77 * testsuite/26_numerics/valarray/operators.cc: Test scalar operands.
78 * testsuite/26_numerics/valarray/transcend.cc: New.
80 * include/std/tuple (__cpp_lib_tuple_element_t, tuple_element_t):
81 Move back to <utility>.
82 * include/std/utility (__cpp_lib_tuple_element_t. tuple_element_t):
85 P0935R0 Eradicating unnecessarily explicit default constructors
86 * include/backward/strstream (strstreambuf): Add non-explicit default
88 * include/bits/locale_conv.h (wbuffer_convert, wstring_convert):
90 * include/bits/regex.h (match_results): Likewise.
91 * testsuite/22_locale/conversions/buffer/1.cc: Test for non-explicit
93 * testsuite/22_locale/conversions/string/1.cc: Likewise.
94 * testsuite/28_regex/match_results/ctors/char/default.cc: Likewise.
95 * testsuite/28_regex/match_results/ctors/wchar_t/default.cc: Likewise.
97 * include/std/tuple (__cpp_lib_tuple_element_t): Move feature test
98 macro from <utility> and change type to long.
99 * include/std/utility (__cpp_lib_tuple_element_t): Remove.
100 * testsuite/20_util/tuple/tuple_element_t.cc: Check for feature test
103 P0935R0 Eradicating unnecessarily explicit default constructors
104 * include/bits/random.h (uniform_real_distribution::param_type)
105 (normal_distribution::param_type, lognormal_distribution::param_type)
106 (gamma_distribution::param_type, chi_squared_distribution::param_type)
107 (cauchy_distribution::param_type, fisher_f_distribution::param_type)
108 (student_t_distribution::param_type)
109 (bernoulli_distribution::param_type)
110 (binomial_distribution::param_type)
111 (geometric_distribution::param_type)
112 (negative_binomial_distribution::param_type)
113 (poisson_distribution::param_type)
114 (exponential_distribution::param_type)
115 (weibull_distribution::param_type)
116 (extreme_value_distribution::param_type): Add non-explicit default
117 constructors. Remove default argument for first parameter of explicit
119 * include/bits/uniform_int_dist.h
120 (uniform_int_distribution::param_type): Likewise.
122 (beta_distribution::param_type, rice_distribution::param_type)
123 (nakagami_distribution::param_type, pareto_distribution::param_type)
124 (k_distribution::param_type, arcsine_distribution::param_type)
125 (hoyt_distribution::param_type, triangular_distribution::param_type)
126 (von_mises_distribution::param_type)
127 (hypergeometric_distribution::param_type)
128 (logistic_distribution::param_type)
129 (uniform_inside_sphere_distribution::param_type): Likewise.
130 (uniform_on_sphere_distribution::param_type): Make default constructor
132 * testsuite/26_numerics/random/bernoulli_distribution/cons/default.cc:
133 Test param_type for non-explicit default constructor.
134 * testsuite/26_numerics/random/binomial_distribution/cons/default.cc:
136 * testsuite/26_numerics/random/cauchy_distribution/cons/default.cc:
138 * testsuite/26_numerics/random/chi_squared_distribution/cons/default.cc:
140 * testsuite/26_numerics/random/discrete_distribution/cons/default.cc:
142 * testsuite/26_numerics/random/exponential_distribution/cons/default.cc:
144 * testsuite/26_numerics/random/extreme_value_distribution/cons/default.cc:
146 * testsuite/26_numerics/random/fisher_f_distribution/cons/default.cc:
148 * testsuite/26_numerics/random/gamma_distribution/cons/default.cc:
150 * testsuite/26_numerics/random/geometric_distribution/cons/default.cc:
152 * testsuite/26_numerics/random/lognormal_distribution/cons/default.cc:
154 * testsuite/26_numerics/random/negative_binomial_distribution/cons/default.cc:
156 * testsuite/26_numerics/random/normal_distribution/cons/default.cc:
158 * testsuite/26_numerics/random/piecewise_constant_distribution/cons/default.cc:
160 * testsuite/26_numerics/random/piecewise_linear_distribution/cons/default.cc:
162 * testsuite/26_numerics/random/poisson_distribution/cons/default.cc:
164 * testsuite/26_numerics/random/student_t_distribution/cons/default.cc:
166 * testsuite/26_numerics/random/uniform_int_distribution/cons/default.cc:
168 * testsuite/26_numerics/random/uniform_real_distribution/cons/default.cc:
170 * testsuite/26_numerics/random/weibull_distribution/cons/default.cc:
172 * testsuite/ext/random/arcsine_distribution/cons/default.cc: Likewise.
173 * testsuite/ext/random/beta_distribution/cons/default.cc: Likewise.
174 * testsuite/ext/random/hoyt_distribution/cons/default.cc: Likewise.
175 * testsuite/ext/random/hypergeometric_distribution/cons/default.cc:
177 * testsuite/ext/random/k_distribution/cons/default.cc: Likewise.
178 * testsuite/ext/random/logistic_distribution/cons/default.cc: Likewise.
179 * testsuite/ext/random/nakagami_distribution/cons/default.cc: Likewise.
180 * testsuite/ext/random/normal_mv_distribution/cons/default.cc:
182 * testsuite/ext/random/pareto_distribution/cons/default.cc: Likewise.
183 * testsuite/ext/random/rice_distribution/cons/default.cc: Likewise.
184 * testsuite/ext/random/triangular_distribution/cons/default.cc:
186 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/default.cc:
188 * testsuite/ext/random/uniform_on_sphere_distribution/cons/default.cc:
190 * testsuite/ext/random/von_mises_distribution/cons/default.cc:
193 2018-06-14 Daniel Trebbien <dtrebbien@gmail.com>
194 Jonathan Wakely <jwakely@redhat.com>
197 * include/bits/vector.tcc (vector::_M_default_append(size_type)):
198 Default-construct new elements before moving existing ones.
199 * testsuite/23_containers/vector/capacity/resize/strong_guarantee.cc:
202 2018-06-13 Jonathan Wakely <jwakely@redhat.com>
205 * include/bits/forward_list.h (_Fwd_list_base::_Tp_alloc_type): Remove
207 (_Fwd_list_base::_M_create_node, _Fwd_list_base::_M_erase_after):
208 Use node allocator to create and destroy elements.
209 (forward_list::_Tp_alloc_type): Remove unused typedef.
210 (forward_list::_Alloc_traits): Use allocator_traits instead of
211 __gnu_cxx::__alloc_traits.
213 2018-06-13 François Dumont <fdumont@gcc.gnu.org>
215 * include/debug/helper_functions.h
216 (__gnu_debug::_Safe_iterator<>): Add declaration.
217 (__can_advance(_Ite, _Size)): New.
218 (__can_advance(const _Safe_iterator<>&, _Size)): Overload declaration.
219 * include/debug/functions.h
220 (__gnu_debug::_Safe_iterator<>): Remove declaration.
221 * include/debug/stl_iterator.h
222 (__can_advance(const _Safe_iterator<>&)): New definition.
223 * include/debug/stl_iterator.h
224 (__can_advance(const std::reverse_iterator<>&, _Size)): New.
225 (__can_advance(const std::move_iterator<>&, _Size)): New.
226 * include/debug/macros.h (__glibcxx_check_can_increment): New.
227 * include/debug/debug.h (__glibcxx_requires_can_increment): New.
228 * include/bits/stl_algobase.h (fill_n): Use latter.
229 * testsuite/25_algorithms/fill_n/2.cc: New.
230 * testsuite/25_algorithms/fill_n/debug/1_neg.cc: New.
231 * testsuite/25_algorithms/fill_n/debug/2_neg.cc: New.
232 * testsuite/25_algorithms/fill_n/debug/3_neg.cc: New.
233 * testsuite/25_algorithms/fill_n/debug/4_neg.cc: New.
235 * include/debug/debug.h (__glibcxx_requires_can_increment_range): New.
236 (__glibcxx_requires_can_decrement_range): New.
238 2018-06-12 François Dumont <fdumont@gcc.gnu.org>
240 * include/debug/macros.h (__glibcxx_check_can_increment_range): New.
241 (__glibcxx_check_can_decrement_range): New.
242 * include/bits/stl_algobase.h (std::copy(_II, _II, _OI)): Use
243 __glibcxx_requires_can_increment_range.
244 (std::move(_II, _II, _OI)): Likewise.
245 (std::copy_backward(_BI, _BI, _BI2)): Use
246 __glibcxx_requires_can_decrement_range.
247 (std::move_backward(_BI, _BI, _BI2)): Likewise.
248 * testsuite/25_algorithms/copy_backward/debug/1_neg.cc: New.
249 * testsuite/25_algorithms/copy_backward/debug/2_neg.cc: New.
250 * testsuite/25_algorithms/copy_backward/debug/3_neg.cc: New.
251 * testsuite/25_algorithms/equal/debug/1_neg.cc: New.
252 * testsuite/25_algorithms/equal/debug/2_neg.cc: New.
253 * testsuite/25_algorithms/equal/debug/3_neg.cc: New.
255 2018-06-12 Jonathan Wakely <jwakely@redhat.com>
257 P0935R0 Eradicating unnecessarily explicit default constructors
258 * include/bits/random.h (linear_congruential_engine)
259 (mersenne_twister_engine, subtract_with_carry_engine, random_device)
260 (uniform_real_distribution, normal_distribution)
261 (lognormal_distribution, gamma_distribution, chi_squared_distribution)
262 (cauchy_distribution, fisher_f_distribution, student_t_distribution)
263 (bernoulli_distribution, binomial_distribution,geometric_distribution)
264 (negative_binomial_distribution, exponential_distribution)
265 (weibull_distribution, extreme_value_distribution): Add non-explicit
266 default constructors. Remove default argument for first parameter of
267 explicit constructors.
268 (piecewise_constant_distribution, piecewise_linear_distribution):
269 Make default constructor non-explicit.
270 * include/bits/uniform_int_dist.h (uniform_int_distribution): Add
271 non-explicit default constructors. Remove default argument for first
272 parameter of explicit constructor.
274 (simd_fast_mersenne_twister_engine, beta_distribution)
275 (rice_distribution, nakagami_distribution, pareto_distribution)
276 (k_distribution, arcsine_distribution, hoyt_distribution)
277 (triangular_distribution, von_mises_distribution)
278 (hypergeometric_distribution, logistic_distribution)
279 (uniform_inside_sphere_distribution): Likewise.
280 (uniform_on_sphere_distribution): Make default constructor
282 * testsuite/26_numerics/random/bernoulli_distribution/cons/default.cc:
283 Test for non-explicit default constructor. Fix references to standard.
284 * testsuite/26_numerics/random/binomial_distribution/cons/default.cc:
286 * testsuite/26_numerics/random/cauchy_distribution/cons/default.cc:
288 * testsuite/26_numerics/random/chi_squared_distribution/cons/default.cc:
290 * testsuite/26_numerics/random/discrete_distribution/cons/default.cc:
292 * testsuite/26_numerics/random/exponential_distribution/cons/default.cc:
294 * testsuite/26_numerics/random/extreme_value_distribution/cons/default.cc:
296 * testsuite/26_numerics/random/fisher_f_distribution/cons/default.cc:
298 * testsuite/26_numerics/random/gamma_distribution/cons/default.cc:
300 * testsuite/26_numerics/random/geometric_distribution/cons/default.cc:
302 * testsuite/26_numerics/random/lognormal_distribution/cons/default.cc:
304 * testsuite/26_numerics/random/negative_binomial_distribution/cons/default.cc:
306 * testsuite/26_numerics/random/normal_distribution/cons/default.cc:
308 * testsuite/26_numerics/random/piecewise_constant_distribution/cons/default.cc:
310 * testsuite/26_numerics/random/piecewise_linear_distribution/cons/default.cc:
312 * testsuite/26_numerics/random/poisson_distribution/cons/default.cc:
314 * testsuite/26_numerics/random/student_t_distribution/cons/default.cc:
316 * testsuite/26_numerics/random/uniform_int_distribution/cons/default.cc:
318 * testsuite/26_numerics/random/uniform_real_distribution/cons/default.cc:
320 * testsuite/26_numerics/random/weibull_distribution/cons/default.cc:
322 * testsuite/ext/random/arcsine_distribution/cons/default.cc: Likewise.
323 * testsuite/ext/random/beta_distribution/cons/default.cc: Likewise.
324 * testsuite/ext/random/hoyt_distribution/cons/default.cc: Likewise.
325 * testsuite/ext/random/hypergeometric_distribution/cons/default.cc:
327 * testsuite/ext/random/k_distribution/cons/default.cc: Likewise.
328 * testsuite/ext/random/logistic_distribution/cons/default.cc: Likewise.
329 * testsuite/ext/random/nakagami_distribution/cons/default.cc: Likewise.
330 * testsuite/ext/random/normal_mv_distribution/cons/default.cc:
332 * testsuite/ext/random/pareto_distribution/cons/default.cc: Likewise.
333 * testsuite/ext/random/rice_distribution/cons/default.cc: Likewise.
334 * testsuite/ext/random/triangular_distribution/cons/default.cc:
336 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/default.cc:
338 * testsuite/ext/random/uniform_on_sphere_distribution/cons/default.cc:
340 * testsuite/ext/random/von_mises_distribution/cons/default.cc:
342 * testsuite/util/testsuite_common_types.h
343 (implicitly_default_constructible): New helper.
345 2018-06-08 Jonathan Wakely <jwakely@redhat.com>
347 * include/bits/ios_base.h (ios::Init::Init(const Init&))
348 (ios::Init::operator=): Define as defaulted.
349 * include/bits/stl_bvector.h (_Bit_reference(const _Bit_reference&)):
351 * include/bits/stream_iterator.h (istream_iterator::operator=)
352 (ostream_iterator::operator=): Likewise.
353 * include/bits/streambuf_iterator.h (istreambuf_iterator::operator=)
355 * include/std/bitset (bitset::reference::reference(const reference&)):
357 * include/std/complex (complex<float>::complex(const complex&))
358 (complex<double>::complex(const complex&))
359 (complex<long double>::complex(const complex&)): Likewise.
361 2018-06-07 Jonathan Wakely <jwakely@redhat.com>
363 * include/bits/regex.h (sub_match): Add noexcept to default
364 constructor and length observer.
365 (match_results): Add noexcept to default constructor and observers
366 with no preconditions. Define destructor as defaulted.
367 (operator==, operator!=, swap): Add noexcept.
368 (regex_iterator): Add default member initializers and define default
369 constructor and destructor as defaulted. Add noexcept to equality
370 and dereference operators.
372 2018-06-07 François Dumont <fdumont@gcc.gnu.org>
375 (_Safe_iterator_base::_M_detach()): Reset state only if needed.
376 (_Safe_iterator_base::_M_detach_single()): Likewise.
377 (_Safe_local_iterator_base::_M_detach()): Reset state only if needed.
378 (_Safe_local_iterator_base::_M_detach_single()): Likewise.
380 2018-06-06 Jonathan Wakely <jwakely@redhat.com>
382 * include/bits/shared_ptr_base.h (__shared_count): Remove redundant
385 2018-06-06 Jakub Jelinek <jakub@redhat.com>
388 * include/bits/c++config: Check __cpp_transactional_memory >= 201500L
389 rather than __cpp_transactional_memory >= 201505L.
391 2018-06-06 Jonathan Wakely <jwakely@redhat.com>
394 * include/bits/quoted_string.h (_Quoted_string<basic_string_view, C>):
395 Define new partial specialization.
396 * include/std/iomanip (quoted(basic_string_view<C,T>, C, C)): Define
398 (operator<<(basic_ostream<C,T>&, const _Quoted_string<S,C>&)): Use
399 value not reference for iteration.
400 * testsuite/27_io/manipulators/standard/char/quoted.cc: Adjust
402 * testsuite/27_io/manipulators/standard/char/quoted_sv.cc: New test.
403 * testsuite/27_io/manipulators/standard/wchar_t/quoted.cc: Adjust
406 2018-06-05 Jonathan Wakely <jwakely@redhat.com>
408 * include/std/type_traits: Fix comment typos.
410 * testsuite/27_io/filesystem/operations/read_symlink.cc: XFAIL for
412 * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
413 * testsuite/experimental/filesystem/operations/read_symlink.cc:
416 2018-06-05 François Dumont <fdumont@gcc.gnu.org>
418 * include/bits/stl_tempbuf.h
419 (_Temporary_buffer(_FwdIte, _FwdIte)): Delete, replaced by...
420 (_Temporary_buffer(_FwdIte, size_type)): ...this, new.
421 * include/ext/memory (temporary_buffer<>(_FwdIte, _FwdIte)): Adapt.
422 * include/bits/stl_algo.h (__stable_partition): Adapt.
423 (__inplace_merge): Adapt.
424 (__stable_sort): Adapt.
426 2018-06-04 Jonathan Wakely <jwakely@redhat.com>
429 * include/bits/shared_ptr_base.h [!__cpp_rtti]: Include <typeinfo>
430 unconditionally. Remove redundant declaration.
431 [!__cpp_rtti] (_Sp_make_shared_tag::_S_ti): Fix location of
434 * include/bits/postypes.h (fpos): Define special members as defaulted.
437 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Align
438 the static variable correctly.
440 2018-05-24 Jonathan Wakely <jwakely@redhat.com>
442 PR libstdc++/78870 support std::filesystem on Windows
443 * config.h.in: Regenerate.
444 * configure: Regenerate.
445 * configure.ac: Check for link, readlink and symlink.
446 * include/bits/fs_path.h (path::operator/=(const path&)): Move
447 definition out of class body.
448 (path::is_absolute(), path::_M_append(path)): Likewise.
449 (operator<<(basic_ostream, const path&)): Use std::quoted directly.
450 (operator>>(basic_istream, path&)): Likewise.
451 (u8path): Reorder definitions and fix Windows implementation.
452 (path::is_absolute()): Define inline and fix for Windows.
453 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::operator/=(const path&)):
454 Define POSIX version inline.
455 (path::_M_append(path)): Define inline.
456 * include/experimental/bits/fs_path.h (path::is_absolute()): Move
457 definition out of class body.
458 (operator<<(basic_ostream, const path&)): Fix type of delimiter and
460 (operator>>(basic_istream, path&)): Likewise.
461 (path::is_absolute()): Define inline and fix for Windows.
462 * src/filesystem/dir-common.h (__gnu_posix): New namespace.
463 (__gnu_posix::char_type, __gnu_posix::DIR, __gnu_posix::dirent)
464 (__gnu_posix::opendir, __gnu_posix::readdir, __gnu_posix::closedir):
465 Define as adaptors for Windows functions/types or as
466 using-declarations for POSIX functions/types.
467 (_Dir_base, get_file_type): Qualify names to use declarations from
468 __gnu_posix namespace.
469 (_Dir_base::is_dor_or_dotdot): New helper functions.
470 * src/filesystem/dir.cc (_Dir, recursive_directory_iterator): Qualify
471 names to use declarations from __gnu_posix namespace.
472 * src/filesystem/ops-common.h (__gnu_posix): New nested namespace.
473 (__gnu_posix::open, __gnu_posix::close, __gnu_posix::stat_type)
474 (__gnu_posix::stat, __gnu_posix::lstat, __gnu_posix::mode_t)
475 (__gnu_posix::chmod, __gnu_posix::mkdir, __gnu_posix::getcwd)
476 (__gnu_posix::chdir, __gnu_posix::utimbuf, __gnu_posix::utime)
477 (__gnu_posix::rename, __gnu_posix::truncate, __gnu_posix::char_type):
478 Define as adaptors for Windows functions/types or as
479 using-declarations for POSIX functions/types.
480 (stat_type, do_copy_file): Qualify names to use declarations from
481 __gnu_posix namespace.
482 (do_space): Declare new function.
483 (make_file_type): Only use S_ISLNK if defined.
484 * src/filesystem/ops.cc (char_ptr, filesystem::canonical): Use
485 path::value_type not char.
486 (filesystem::copy, create_dir, filesystem::create_directory): Qualify
487 names to use declarations from __gnu_posix namespace.
488 (filesystem::create_hard_link): Check HAVE_LINK autoconf macro and
489 add implementation for Windows.
490 (filesystem::create_symlink): Check HAVE_SYMLINK autoconf macro.
491 (filesystem::current_path(error_code&)): Use __gnu_posix::getcwd.
492 [!_PC_PATH_MAX]: Don't use pathconf.
493 [PATH_MAX]: Use if defined.
494 (filesystem::current_path(const path&, error_code&))
495 (filesystem::equivalent, do_stat, filesystem::hard_link_count)
496 (filesystem::last_write_time, filesystem::permissions): Use names
498 (filesystem::read_symlink): Check HAVE_READLINK autoconf macro.
499 (filesystem::remove) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Add
500 implementation for Windows.
501 (filesystem::rename, filesystem::resize_file): Use names from
503 (filesystem::space): Use do_space.
504 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Get absolute path to directory.
505 (filesystem::status, filesystem::symlink_status): Use names from
507 (filesystem::temp_directory_path): Add implementation for Windows.
508 * src/filesystem/path.cc (dot): Define constant.
509 (path::replace_extension): Use dot.
510 (path::_M_find_extension): Likewise. Use path::string_type not
512 (path::_M_split_cmpts): Use dot.
513 (filesystem_error::_M_get_what): Use u8string() not native().
514 * src/filesystem/std-dir.cc (_Dir, recursive_directory_iterator):
515 Qualify names to use declarations from __gnu_posix namespace.
516 * src/filesystem/std-ops.cc (filesystem::absolute(const path&)): Use
518 (filesystem::absolute(const path&, error_code&)): Add implementation
520 (char_ptr, filesystem::canonical): Use path::value_type not char.
521 (do_copy_file): Use names from __gnu_posix.
522 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Do not use fchmod, fchmodat or
524 (filesystem::copy, create_dir, filesystem::create_directory): Qualify
525 names to use declarations from __gnu_posix namespace.
526 (filesystem::create_hard_link): Check HAVE_LINK autoconf macro and
527 add implementation for Windows.
528 (filesystem::create_symlink): Check HAVE_SYMLINK autoconf macro.
529 (filesystem::current_path(error_code&)): Use __gnu_posix::getcwd.
530 [!_PC_PATH_MAX]: Don't use pathconf.
531 [PATH_MAX]: Use if defined.
532 (filesystem::current_path(const path&, error_code&))
533 (filesystem::equivalent, do_stat, filesystem::hard_link_count)
534 (filesystem::last_write_time, filesystem::permissions): Use names
536 (filesystem::read_symlink): Check HAVE_READLINK autoconf macro.
537 (filesystem::remove) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Add
538 implementation for Windows.
539 (filesystem::rename, filesystem::resize_file): Use names from
542 (filesystem::space): Use do_space.
543 (filesystem::status, filesystem::symlink_status): Use names from
545 (filesystem::temp_directory_path): Add implementation for Windows.
546 * src/filesystem/std-path.cc
547 [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::operator/=(const path&)):
549 (dot): Define constant.
550 (path::replace_extension, is_dot): Use dot.
551 (path::lexically_normal): Check _M_type instead of calling
552 non-existent function.
553 (path::_M_find_extension): Use dot. Use path::string_type not
555 (path::_M_split_cmpts): Use dot.
556 (filesystem_error::_M_get_what): Use u8string() not native().
557 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Do not
559 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
561 * testsuite/27_io/filesystem/operations/absolute.cc: Use
562 __gnu_test::root_path() instead of "/" and add Windows-specific tests.
563 * testsuite/27_io/filesystem/operations/canonical.cc: Use
564 path::string() to get narrow string, not path::native().
565 * testsuite/27_io/filesystem/operations/copy.cc: Construct fstreams
566 with std::filesystem::path not std::basic_string.
567 * testsuite/27_io/filesystem/operations/copy_file.cc: Likewise.
568 * testsuite/27_io/filesystem/operations/exists.cc: Use
569 __gnu_test::root_path() instead of "/".
570 * testsuite/27_io/filesystem/operations/is_empty.cc: Construct
571 fstreams with std::filesystem::path not std::basic_string.
572 * testsuite/27_io/filesystem/operations/last_write_time.cc: Use
573 path::string() to get narrow string.
574 * testsuite/27_io/filesystem/operations/space.cc: Check results for
575 errors, expect sensible values otherwise.
576 * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Add
577 helpers for adjusting the environment on Windows.
578 * testsuite/27_io/filesystem/path/append/path.cc: Test
579 Windows-specific behaviour.
580 * testsuite/27_io/filesystem/path/construct/format.cc: Fix creation
581 of path::string_type objects.
582 * testsuite/27_io/filesystem/path/construct/locale.cc: Compare native
583 string to wide string on Windows.
584 * testsuite/27_io/filesystem/path/decompose/root_directory.cc: Allow
585 for backslash as root-directory.
586 * testsuite/27_io/filesystem/path/decompose/stem.cc: Use
587 path::string() to get narrow string.
588 * testsuite/27_io/filesystem/path/itr/traversal.cc: Test Windows-style
590 * testsuite/27_io/filesystem/path/native/string.cc: Use string_type
592 * testsuite/27_io/filesystem/path/query/is_absolute.cc: Adjust for
593 different definintion of absolute paths on Windows.
594 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
596 * testsuite/experimental/filesystem/operations/absolute.cc: Test
598 * testsuite/experimental/filesystem/operations/copy.cc: Construct
599 fstreams with NTCTS not std::basic_string.
600 * testsuite/experimental/filesystem/operations/copy_file.cc: Likewise.
601 * testsuite/experimental/filesystem/operations/exists.cc: Use
602 __gnu_test::root_path() instead of "/".
603 * testsuite/experimental/filesystem/operations/is_empty.cc: Construct
604 fstreams with NTCTS not std::basic_string.
605 * testsuite/experimental/filesystem/operations/last_write_time.cc:
606 Use path::string() to get narrow string.
607 * testsuite/experimental/filesystem/operations/space.cc: Use
608 __gnu_test::root_path() instead of "/".
609 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
610 Add helpers for adjusting the environment on Windows.
611 * testsuite/experimental/filesystem/path/append/path.cc: Use
612 path::string() to get narrow strings for comparisons.
613 * testsuite/experimental/filesystem/path/concat/path.cc: Likewise.
614 * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
616 * testsuite/experimental/filesystem/path/decompose/stem.cc: Likewise.
617 * testsuite/experimental/filesystem/path/native/string.cc: Use
618 string_type not std::string.
619 * testsuite/experimental/filesystem/path/query/is_absolute.cc:
620 Adjust for different definintion of absolute paths on Windows.
621 * testsuite/util/testsuite_fs.h (__gnu_test::root_path()): New
623 (__gnu_test::scoped_file): Construct fstreams with NTCTS not
626 2018-05-31 Jonathan Wakely <jwakely@redhat.com>
629 * include/std/type_traits [_GLIBCXX_USE_C99_STDINT_TR1]: Do not define
630 uint_least16_t and uint_least32_t.
631 (__make_unsigned<wchar_t>): Define unconditionally.
632 (__make_unsigned_selector<_Tp, true, false>): Remove intermediate
634 (__make_unsigned_selector_base): New type to provide helper templates.
635 (__make_unsigned_selector<_Tp, false, true>): Reimplement using
636 __make_unsigned_selector_base helpers.
637 (__make_unsigned<char16_t>, __make_unsigned<char32_t>): Define.
638 (__make_signed_selector<_Tp, true, false>): Remove intermediate
640 (__make_signed<wchar_t>, __make_signed<char16_t>)
641 (__make_signed<char32_t>)): Define unconditionally.
642 * testsuite/20_util/make_signed/requirements/typedefs-3.cc: Check
643 wchar_t, char16_t and char32_t are transformed correctly.
644 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust
646 * testsuite/20_util/make_unsigned/requirements/typedefs-3.cc: Check
647 wchar_t, char16_t and char32_t are transformed correctly.
648 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Adjust
651 2018-05-29 Jonathan Wakely <jwakely@redhat.com>
653 * include/std/variant (__erased_dtor): Qualify call to __get.
655 2018-05-27 François Dumont <fdumont@gcc.gnu.org>
657 * include/bits/stl_tree.h (_Rb_tree_impl(_Node_allocator&&)): New.
658 (_Rb_tree(const allocator_type&)): Use latter.
659 * include/bits/stl_map.h (map(const allocator_type&)): Likewise.
660 (map(initializer_list<value_type>, const allocator_type&)): Likewise.
661 (map(_InputIterator, _InputIterator, const allocator_type&)): Likewise.
662 * include/bits/stl_multimap.h
663 (multimap(const allocator_type&)): Likewise.
664 (multimap(initializer_list<value_type>, const allocator_type&)):
666 (multimap(_InputIterator, _InputIterator, const allocator_type&)):
668 * include/bits/stl_set.h (set(const allocator_type&)): Likewise.
669 (set(initializer_list<value_type>, const allocator_type&)): Likewise.
670 (set(_InputIterator, _InputIterator, const allocator_type&)): Likewise.
671 * include/bits/stl_multiset.h
672 (multiset(const allocator_type&)): Likewise.
673 (multiset(initializer_list<value_type>, const allocator_type&)):
675 (multiset(_InputIterator, _InputIterator, const allocator_type&)):
678 2018-05-25 François Dumont <fdumont@gcc.gnu.org>
681 * src/c++11/debug.cc: Remove backtrace usage.
683 2018-05-24 Maya Rashish <coypu@sdf.org>
686 * crossconfig.m4: Test for aligned_alloc on netbsd.
687 * configure: Regenerate.
689 2018-05-24 Jonathan Wakely <jwakely@redhat.com>
693 * include/bits/atomic_base.h (__atomic_base::value_type)
694 (__atomic_base::difference_type): Add new typedefs.
695 * include/std/atomic (atomic<bool>::value_type, atomic<T>::value_type)
696 (atomic<T*>::value_type, atomic<T*>::difference_type): Likewise.
697 (atomic<T*>::operator++, atomic<T*>::operator--)
698 (atomic<T*>::operator+=, atomic<T*>::operator-=)
699 (atomic<T*>::fetch_add, atomic<T*>::fetch_sub): Add static assertion
700 to enforce C++17 requirement on pointer arithmetic.
701 (__atomic_val_t, __atomic_diff_t): New alias templates.
702 (atomic_init, atomic_store_explicit, atomic_exchange_explicit)
703 (atomic_compare_exchange_weak_explicit)
704 (atomic_compare_exchange_strong_explicit, atomic_store)
705 (atomic_exchange, atomic_compare_exchange_weak)
706 (atomic_compare_exchange_strong): Use __atomic_val_t to make
707 scalar parameters be non-deduced contexts.
708 (atomic_fetch_add_explicit, atomic_fetch_sub_explicit)
709 (atomic_fetch_add, atomic_fetch_sub): Change first parameter to be
710 atomic instead of __atomic_base, and use __atomic_diff_t for scalar
712 (atomic_fetch_and_explicit, atomic_fetch_or_explicit)
713 (atomic_fetch_xor_explicit, atomic_fetch_and, atomic_fetch_or)
714 (atomic_fetch_xor): Use __atomic_val_t for scalar parameters.
715 (atomic_fetch_add_explicit, atomic_fetch_sub_explicit)
716 (atomic_fetch_add, atomic_fetch_sub): Remove overloads for atomic
718 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error lineno.
719 * testsuite/29_atomics/atomic/69769.cc: New test.
720 * testsuite/29_atomics/atomic/nonmembers.cc: New test.
721 * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc:
722 Disable test for C++17 and later.
723 * testsuite/29_atomics/atomic/requirements/typedefs.cc: New test.
724 * testsuite/29_atomics/atomic_integral/nonmembers.cc: New test.
725 * testsuite/29_atomics/atomic_integral/requirements/typedefs.cc: New
728 2018-05-23 Jonathan Wakely <jwakely@redhat.com>
730 * include/bits/fs_path.h (path::__is_encoded_char): Change from class
731 template to alias template.
732 (path::__value_type_is_char): Use remove_const_t.
733 (path:_S_string_from_iter): New helper function.
734 (path::_S_convert(InputIter, __null_terminated))
735 (path::_S_convert_loc(InputIter, __null_terminated, const locale&)):
736 Use _S_string_from_iter.
737 (path::string<_CharT, _Allocator>(const _Allocator&)): Allow sharing
739 * include/experimental/bits/fs_path.h (path::__is_encoded_char):
740 Change from class template to alias template.
741 (path::__value_type_is_char): Use remove_const.
742 (path:_S_string_from_iter): New helper function.
743 (path::_S_convert(InputIter, __null_terminated))
744 (path::_S_convert_loc(InputIter, __null_terminated, const locale&)):
745 Use _S_string_from_iter.
746 * testsuite/27_io/filesystem/path/append/source.cc: Test appending
748 * testsuite/27_io/filesystem/path/concat/strings.cc: Check for exact
749 string equality, not path equivalence.
750 * testsuite/27_io/filesystem/path/construct/format.cc: Check
751 construction from std::string and std::wstring and input iterators.
752 * testsuite/27_io/filesystem/path/construct/locale.cc: Check
753 construction from iterators.
754 * testsuite/experimental/filesystem/path/concat/strings.cc: Check for
755 exact string equality, not path equivalence.
756 * testsuite/experimental/filesystem/path/construct/locale.cc: Check
757 construction from iterators.
759 * include/bits/fs_path.h (path::_M_type): Change default member
760 initializer to _Filename.
761 (path::begin): Create past-the-end iterator for empty path.
762 * src/filesystem/std-path.cc (path::remove_filename()): Remove
764 (path::has_relative_path()): Return false for empty filenames.
765 (path::_M_split_cmpts): Set _M_type to _Filename for empty paths.
766 Fix offset of empty final component.
767 * testsuite/27_io/filesystem/path/itr/components.cc: New.
768 * testsuite/27_io/filesystem/path/itr/traversal.cc: Add new inputs.
770 2018-05-21 Jonathan Wakely <jwakely@redhat.com>
772 Add support for opening file streams from wide character strings.
773 * config/io/basic_file_stdio.cc [_GLIBCXX_HAVE__WFOPEN]
774 (__basic_file<char>::open(const wchar_t*, ios_base::openmode)):
776 * config/io/basic_file_stdio.h [_GLIBCXX_HAVE__WFOPEN]
777 (__basic_file<char>::open(const wchar_t*, ios_base::openmode)):
778 Declare new overload.
779 * configure.ac: Check for _wfopen.
780 * crossconfig.m4: Likewise.
781 * configure: Regenerate.
782 * config.h.in: Regenerate.
783 * include/bits/fstream.tcc [_GLIBCXX_HAVE__WFOPEN]
784 (basic_filebuf<C,T>::open(const wchar_t*, ios_base::openmode)):
786 * include/std/fstream [_GLIBCXX_HAVE__WFOPEN]
787 (basic_filebuf<C,T>::open(const wchar_t*, ios_base::openmode)):
788 Declare new overload.
789 [_GLIBCXX_HAVE__WFOPEN]
790 (basic_ifstream<C,T>::basic_ifstream(const wchar_t*, openmode))
791 (basic_ifstream<C,T>::basic_open(const wchar_t*, openmode))
792 (basic_ofstream<C,T>::basic_ifstream(const wchar_t*, openmode))
793 (basic_ofstream<C,T>::basic_open(const wchar_t*, openmode))
794 (basic_fstream<C,T>::basic_ifstream(const wchar_t*, openmode))
795 (basic_fstream<C,T>::basic_open(const wchar_t*, openmode)): Define
797 * testsuite/27_io/basic_filebuf/open/wchar_t/1.cc: New.
798 * testsuite/27_io/basic_ifstream/cons/wchar_t/1.cc: New.
799 * testsuite/27_io/basic_ifstream/open/wchar_t/1.cc: New.
800 * testsuite/27_io/basic_ofstream/cons/wchar_t/1.cc: New.
801 * testsuite/27_io/basic_ofstream/open/wchar_t/1.cc: New.
802 * testsuite/27_io/basic_fstream/cons/wchar_t/1.cc: New.
803 * testsuite/27_io/basic_fstream/open/wchar_t/1.cc: New.
805 2018-05-21 François Dumont <fdumont@gcc.gnu.org>
808 * include/bits/stl_tree.h
809 (_Rb_tree_impl(_Rb_tree_impl&&, _Node_allocator&&)): Fix noexcept
812 2018-05-21 Jonathan Wakely <jwakely@redhat.com>
814 * src/filesystem/std-ops.cc (absolute): Report an error for empty
816 (weakly_canonical(const path&)): Do not call canonical on empty path.
817 (weakly_canonical(const path&, error_code&)): Likewise.
818 * testsuite/27_io/filesystem/operations/absolute.cc: Check for errors.
821 * testsuite/experimental/filesystem/path/preferred_separator.cc: Add
822 dg-require-filesystem-ts.
825 * src/c++11/cow-stdexcept.cc (logic_error, runtime_error): Explicitly
826 initialize base class to avoid warnings.
828 2018-05-19 Jonathan Wakely <jwakely@redhat.com>
830 * src/c++11/codecvt.cc (__codecvt_utf8_base<wchar_t>::do_in)
831 [__SIZEOF_WCHAR_T__==2 && __BYTE_ORDER__!=__ORDER_BIG_ENDIAN__]: Set
832 little_endian element in bitmask.
833 * testsuite/22_locale/codecvt/codecvt_utf8/69703.cc: Run all tests.
834 * testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc: New.
836 2018-05-18 François Dumont <fdumont@gcc.gnu.org>
838 * include/bits/stl_tree.h
839 (_Rb_tree_impl(_Rb_tree_impl&&, _Node_allocator&&)): New.
840 (_Rb_tree(_Rb_tree&&, _Node_allocator&&, true_type)): New, use latter.
841 (_Rb_tree(_Rb_tree&&, _Node_allocator&&, false_type)): New.
842 (_Rb_tree(_Rb_tree&&, _Node_allocator&&)): Adapt, use latters.
843 * include/debug/map.h
844 (map(map&&, const_allocator_type&)): Add noexcept qualitication.
845 * include/debug/multimap.h
846 (multimap(multimap&&, const_allocator_type&)): Likewise.
847 * include/debug/set.h
848 (set(set&&, const_allocator_type&)): Likewise.
849 * include/debug/multiset.h
850 (multiset(multiset&&, const_allocator_type&)): Likewise.
851 * testsuite/23_containers/map/cons/noexcept_default_construct.cc:
853 * testsuite/23_containers/map/cons/noexcept_move_construct.cc:
855 * testsuite/23_containers/multimap/cons/noexcept_default_construct.cc:
857 * testsuite/23_containers/multimap/cons/noexcept_move_construct.cc:
859 * testsuite/23_containers/multiset/cons/noexcept_default_construct.cc:
861 * testsuite/23_containers/multiset/cons/noexcept_move_construct.cc:
863 * testsuite/23_containers/set/cons/noexcept_default_construct.cc:
865 * testsuite/23_containers/set/cons/noexcept_move_construct.cc:
868 2018-05-18 Jason Merrill <jason@redhat.com>
870 * include/bits/stl_deque.h (_Deque_iterator): Constrain constructor
871 for conversion to const_iterator. Add defaulted copy ops.
872 * libsupc++/new (bad_alloc): Add defaulted copy ops.
873 * libsupc++/exception.h (exception): Add defaulted copy ops.
874 * include/std/system_error (system_error): Add defaulted copy ops.
875 * include/std/stdexcept (domain_error, invalid_argument)
876 (length_error, out_of_range, range_error, overflow_error)
877 (underflow_error): Add defaulted copy ops.
878 * include/bits/stl_iterator.h (reverse_iterator): Add defaulted
880 * include/bits/allocator.h (allocator): Add defaulted copy assignment.
881 * include/ext/throw_allocator.h (condition_base): Add defaulted
882 default and copy ctor and copy assignment.
884 2018-05-18 Jonathan Wakely <jwakely@redhat.com>
887 * include/bits/regex.h [__cplusplus < 201703L] (basic_regex::icase)
888 (basic_regex::nosubs, basic_regex::optimize, basic_regex::collate)
889 (basic_regex::ECMAScript, basic_regex::basic, basic_regex::extended)
890 (basic_regex::awk, basic_regex::grep, basic_regex::egrep): Add
892 * include/bits/regex_automaton.h (_NFA::_M_insert_state): Adjust
894 * include/bits/regex_compiler.tcc (__INSERT_REGEX_MATCHER): Add
895 braces around body of do-while.
896 * testsuite/28_regex/basic_regex/85098.cc: New
898 2018-05-17 Jonathan Wakely <jwakely@redhat.com>
901 * src/filesystem/path.cc (path::preferred_separator): Add used
903 * testsuite/experimental/filesystem/path/preferred_separator.cc: New.
906 * libsupc++/cxxabi_init_exception.h (__cxa_free_exception): Declare.
907 * libsupc++/exception_ptr.h (make_exception_ptr) [__cpp_exceptions]:
908 Refactor to separate non-throwing and throwing implementations.
909 [__cpp_rtti && !_GLIBCXX_HAVE_CDTOR_CALLABI]: Deallocate the memory
910 if constructing the object throws.
912 2018-05-15 Jonathan Wakely <jwakely@redhat.com>
915 * include/bits/random.h (__detail::__is_seed_seq): New SFINAE helper.
916 (linear_congruential_engine, mersenne_twister_engine)
917 (subtract_with_carry_engine, discard_block_engine)
918 (independent_bits_engine, shuffle_order_engine): Use __is_seed_seq to
919 constrain function templates taking seed sequences.
920 * include/bits/random.tcc (linear_congruential_engine::seed(_Sseq&))
921 (mersenne_twister_engine::seed(_Sseq&))
922 (subtract_with_carry_engine::seed(_Sseq&)): Change return types to
924 * include/ext/random (simd_fast_mersenne_twister_engine): Use
925 __is_seed_seq to constrain function templates taking seed sequences.
926 * include/ext/random.tcc (simd_fast_mersenne_twister_engine::seed):
927 Change return type to match declaration.
928 * testsuite/26_numerics/random/discard_block_engine/cons/seed_seq2.cc:
930 * testsuite/26_numerics/random/independent_bits_engine/cons/
932 * testsuite/26_numerics/random/linear_congruential_engine/cons/
934 * testsuite/26_numerics/random/mersenne_twister_engine/cons/
936 * testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error lineno.
937 * testsuite/26_numerics/random/shuffle_order_engine/cons/seed_seq2.cc:
939 * testsuite/26_numerics/random/subtract_with_carry_engine/cons/
941 * testsuite/ext/random/simd_fast_mersenne_twister_engine/cons/
945 * include/bits/fs_path.h (path::is_absolute()): Use same definition
946 for all operating systems.
947 * include/experimental/bits/fs_path.h (path::is_absolute()): Likewise.
948 * testsuite/27_io/filesystem/path/query/is_absolute.cc: New.
949 * testsuite/27_io/filesystem/path/query/is_relative.cc: Fix comment.
950 * testsuite/experimental/filesystem/path/query/is_absolute.cc: New.
952 * testsuite/27_io/filesystem/path/decompose/extension.cc: Remove
953 unused <vector> header.
954 * testsuite/27_io/filesystem/path/query/empty.cc: Likewise.
955 * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise.
956 * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise.
957 * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise.
958 * testsuite/27_io/filesystem/path/query/has_relative_path.cc:
960 * testsuite/27_io/filesystem/path/query/has_root_directory.cc:
962 * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise.
963 * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise.
964 * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise.
965 * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise.
966 * testsuite/experimental/filesystem/path/decompose/extension.cc:
968 * testsuite/experimental/filesystem/path/query/empty.cc: Likewise.
969 * testsuite/experimental/filesystem/path/query/has_extension.cc:
971 * testsuite/experimental/filesystem/path/query/has_filename.cc:
973 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
975 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
977 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
979 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
981 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
983 * testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise.
984 * testsuite/experimental/filesystem/path/query/is_relative.cc:
988 * include/bits/fs_path.h (path::operator/=, path::append): Construct
989 temporary path before calling _M_append.
990 (path::_M_append): Change parameter to path and implement C++17
992 * testsuite/27_io/filesystem/path/append/path.cc: Add helper function
993 and more examples from the standard.
994 * testsuite/27_io/filesystem/path/append/source.cc: New.
995 * testsuite/27_io/filesystem/path/decompose/filename.cc: Add comment.
996 * testsuite/27_io/filesystem/path/nonmember/append.cc: New.
998 * include/std/variant (__gen_vtable_impl::__visit_invoke): Qualify
999 __invoke to prevent ADL.
1001 2018-05-14 Jonathan Wakely <jwakely@redhat.com>
1004 * include/bits/fstream.tcc (basic_filebuf::close): Do not swallow
1005 exceptions from _M_terminate_output().
1006 * include/std/fstream (basic_filebuf::~basic_filebuf): Swallow any
1007 exceptions from close().
1008 * testsuite/27_io/basic_filebuf/close/81256.cc: New.
1010 * include/bits/valarray_array.h (__valarray_get_memory): Remove.
1011 (__valarray_get_storage): Call operator new directly. Remove ignored
1012 top-level restrict qualifier and add malloc attribute instead.
1013 (_Array<_Tp>::_Array(size_t)): Remove unused constructor.
1016 * include/bits/valarray_array.h (_Array_copy_ctor<_Tp, true>)
1017 (_Array_copier<_Tp, true>): Do not pass null pointers to memcpy.
1020 * include/bits/node_handle.h (_Node_handle_common::_M_swap): Use value
1022 * testsuite/23_containers/set/modifiers/node_swap.cc: New.
1024 2018-05-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1027 * testsuite/20_util/variant/80165.cc: New.
1029 2018-05-10 Jonathan Wakely <jwakely@redhat.com>
1031 * doc/xml/faq.xml: Link to C++17 status. Add note to outdated answer.
1032 * doc/xml/manual/debug_mode.xml: Add array and forward_list to list
1033 of C++11 containers with Debug Mode support.
1034 * doc/xml/manual/using.xml: Document Dual ABI for ios_base::failure.
1035 * doc/html/*: Regenerate.
1037 2018-05-10 Jason Merrill <jason@redhat.com>
1039 * include/bits/regex_compiler.h (_S_cache_size): Change from
1040 function to variable.
1042 2018-05-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1044 PR libstdc++/83140 - assoc_legendre returns negated value when m is odd
1045 * include/tr1/legendre_function.tcc (__assoc_legendre_p): Add __phase
1046 argument defaulted to +1. Doxy comments on same.
1047 * testsuite/special_functions/02_assoc_legendre/
1048 check_value.cc: Regen.
1049 * testsuite/tr1/5_numerical_facilities/special_functions/
1050 02_assoc_legendre/check_value.cc: Regen.
1052 2018-05-10 Jonathan Wakely <jwakely@redhat.com>
1055 * include/bits/c++config.h (__replacement_assert): Add linkage
1057 * include/bits/std_abs.h: Add comment to closing brace of block.
1058 * include/c_global/cstddef: Add linkage specification.
1059 * include/c_global/cstring: Likewise.
1060 * include/c_global/cwchar: Likewise.
1062 2018-05-09 François Dumont <fdumont@gcc.gnu.org>
1064 * include/debug/safe_iterator.h (_Safe_iterator<>::_M_constant()):
1066 (_Safe_iterator<>::_S_constant()): ...that.
1067 * include/debug/safe_local_iterator.h
1068 (_Safe_local_iterator<>::_M_constant()): Rename in...
1069 (_Safe_local_iterator<>::_S_constant()): ...that.
1070 * include/debug/formatter.h: Remove bits/cpp_type_traits.h include.
1071 (_Iterator_state::__rbegin): New.
1072 (_Iterator_state::__rmiddle): New.
1073 (_Iterator_state::__rend): New.
1074 (_Parameter::_Parameter(const _Safe_iterator<>&, const char*,
1075 _Is_iterator)): Use _Safe_iterator<>::_S_constant. Grab normal underlying
1077 (_Parameter::_Parameter(const _Safe_local_iterator<>&, const char*,
1078 _Is_iterator)): Likewise.
1079 (_Parameter::_S_reverse_state(_Iterator_state)): New.
1080 (_Parameter(__gnu_cxx::__normal_iterator<> const&, const char*,
1081 _Is_iterator)): New.
1082 (_Parameter(std::reverse_iterator<> const&, const char*,
1083 _Is_iterator)): New.
1084 (_Parameter(std::reverse_iterator<_Safe_iterator<>> const&,
1085 const char*, _Is_iterator)): New.
1086 (_Parameter(std::move_iterator<> const&, const char*, _Is_iterator):
1088 (_Parameter(std::move_iterator<_Safe_iterator<>> const&, const char*,
1089 _Is_iterator)): New.
1090 * testsuite/24_iterators/move_iterator/debug_neg.cc: New.
1091 * testsuite/24_iterators/normal_iterator/debug_neg.cc: New.
1092 * testsuite/24_iterators/reverse_iterator/debug_neg.cc: New.
1094 2018-05-09 Jonathan Wakely <jwakely@redhat.com>
1096 * include/bits/std_function.h (_Base_manager::_M_get_pointer):
1097 Use constexpr if in C++17 mode.
1098 (_Base_manager::_M_clone(_Any_data&, const _Any_data&, true_type)):
1099 Copy from const object.
1100 * testsuite/20_util/function/cons/non_copyconstructible.cc: New.
1102 2018-05-08 François Dumont <fdumont@gcc.gnu.org>
1104 * src/c++11/debug.cc [_GLIBCXX_HAVE_EXECINFO_H]: Include execinfo.h.
1105 [_GLIBCXX_HAVE_EXECINFO_H](_Error_formatter::_M_error): Render
1108 * include/debug/macros.h (__glibcxx_check_valid_range_at): New.
1109 * include/debug/functions.h (__check_valid_range): Use latter.
1110 * include/debug/macros.h (__glibcxx_check_valid_constructor_range): New,
1112 * include/debug/deque
1113 (deque::deque<_Iter>(_Iter, _Iter, const _Alloc&)): Use latter.
1114 * include/debug/forward_list
1115 (forward_list::forward_list<_Iter>(_Iter, _Iter, const _Alloc&)):
1117 * include/debug/list
1118 (list::list<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
1119 * include/debug/list
1120 (list::list<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
1121 * include/debug/map.h
1122 (map::map<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
1123 (map::map<_Iter>(_Iter, _Iter, const _Compare&, const _Alloc&)):
1125 * include/debug/multimap.h
1126 (multimap::multimap<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
1127 (multimap::multimap<_Iter>(_Iter, _Iter, const _Compare&,
1128 const _Alloc&)): Likewise.
1129 * include/debug/set.h
1130 (set::set<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
1131 (set::set<_Iter>(_Iter, _Iter, const _Compare&, const _Alloc&)):
1133 * include/debug/multiset.h
1134 (multiset::multiset<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
1135 (multiset::multiset<_Iter>(_Iter, _Iter, const _Compare&,
1136 const _Alloc&)): Likewise.
1137 * include/debug/string
1138 (basic_string::basic_string<_Iter>(_Iter, _Iter, const _Alloc&)):
1140 * include/debug/unordered_map
1141 (unordered_map::unordered_map<_Iter>(_Iter, _Iter, const _Alloc&)):
1143 (unordered_multimap::unordered_multimap<_Iter>(_Iter, _Iter,
1144 const _Alloc&)): Likewise.
1145 * include/debug/unordered_set
1146 (unordered_set::unordered_set<_Iter>(_Iter, _Iter, const _Alloc&)):
1148 (unordered_multiset::unordered_multiset<_Iter>(_Iter, _Iter,
1149 const _Alloc&)): Likewise.
1150 * include/debug/vector
1151 (vector::vector<_Iter>(_Iter, _Iter, const _Alloc&)): Use latter.
1153 * include/debug/formatter.h (_Error_formatter::_M_function): New.
1154 (_Error_formatter(const char*, unsigned int)): Adapt.
1155 (_Error_formatter::_M_at): Rename in...
1156 (_Error_formatter::_S_at): ...that and adapt.
1157 * include/debug/macros.h (_GLIBCXX_DEBUG_VERIFY_AT_F): New.
1158 (_GLIBCXX_DEBUG_VERIFY_AT, _GLIBCXX_DEBUG_VERIFY): Adapt.
1159 * src/c++11/debug.cc (_Error_formatter::_M_error): Render _M_function
1162 2018-05-08 Jonathan Wakely <jwakely@redhat.com>
1164 * include/bits/regex_automaton.h (_NFA_base::_M_paren_stack, _NFA):
1165 Use normal std::vector even in Debug Mode.
1168 * include/Makefile.am [!ENABLE_FLOAT128]: Change c++config.h entry
1169 to #undef _GLIBCXX_USE_FLOAT128 instead of defining it to zero.
1170 * include/Makefile.in: Regenerate.
1171 * include/bits/c++config (_GLIBCXX_USE_FLOAT128): Move definition
1172 within conditional block.
1174 2018-05-07 Jonathan Wakely <jwakely@redhat.com>
1176 * doc/xml/manual/using.xml (table.cmd_options): Document that the
1177 C++17 Filesystem implementation also needs -lstdc++fs.
1180 * include/bits/fs_path.h (operator/): Permit copy elision.
1181 * include/experimental/bits/fs_path.h (operator/): Likewise.
1183 2018-05-07 Edward Smith-Rowland <3dw4rd@verizon.net>
1185 Moar PR libstdc++/80506
1186 * include/bits/random.tcc (gamma_distribution::__generate_impl()):
1187 Fix magic number used in loop condition.
1189 2018-05-04 Jonathan Wakely <jwakely@redhat.com>
1191 PR libstdc++/85642 fix is_nothrow_default_constructible<optional<T>>
1192 * include/std/optional (_Optional_payload): Add noexcept to default
1193 constructor. Re-indent.
1194 (_Optional_payload<_Tp, true, true, true>): Likewise. Add noexcept to
1195 constructor for copying disengaged payloads.
1196 (_Optional_payload<_Tp, true, false, true>): Likewise.
1197 (_Optional_payload<_Tp, true, true, false>): Likewise.
1198 (_Optional_payload<_Tp, true, false, false>): Likewise.
1199 * testsuite/20_util/optional/cons/85642.cc: New.
1200 * testsuite/20_util/optional/cons/value_neg.cc: Adjust dg-error lines.
1202 2018-05-03 Jonathan Wakely <jwakely@redhat.com>
1205 * include/tr1/cmath [__STRICT_ANSI__] (hypergf, hypergl, hyperg): Use
1206 inline definitions instead of using-declarations.
1207 [__STRICT_ANSI__] (conf_hypergf, conf_hypergl, conf_hyperg): Likewise.
1208 * testsuite/tr1/5_numerical_facilities/special_functions/
1209 07_conf_hyperg/compile_cxx17.cc: New.
1210 * testsuite/tr1/5_numerical_facilities/special_functions/
1211 17_hyperg/compile_cxx17.cc: New.
1214 * include/std/variant (visit): Qualify std::get call.
1216 PR libstdc++/85632 use uintmax_t for arithmetic
1217 * src/filesystem/ops.cc (experimental::filesystem::space): Perform
1218 arithmetic in result type.
1219 * src/filesystem/std-ops.cc (filesystem::space): Likewise.
1220 * testsuite/27_io/filesystem/operations/space.cc: Check total capacity
1221 is greater than free space.
1222 * testsuite/experimental/filesystem/operations/space.cc: New.
1224 * testsuite/20_util/remove_cvref/requirements/alias_decl.cc: New.
1225 * testsuite/20_util/remove_cvref/requirements/explicit_instantiation.cc:
1227 * testsuite/20_util/remove_cvref/value.cc: New.
1228 * testsuite/20_util/remove_cvref/value_ext.cc: New.
1230 PR libstdc++/84087 LWG DR 2268 basic_string default arguments
1231 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI=1]
1232 (append(const basic_string&, size_type, size_type)
1233 (assign(const basic_string&, size_type, size_type)
1234 (insert(size_type, const basic_string&, size_type, size_type)
1235 (replace(size_type,size_type,const basic_string&,size_type,size_type)
1236 (compare(size_type,size_type,constbasic_string&,size_type,size_type)):
1237 Add default arguments (LWG 2268).
1238 [_GLIBCXX_USE_CXX11_ABI=0]
1239 (append(const basic_string&, size_type, size_type)
1240 (assign(const basic_string&, size_type, size_type)
1241 (insert(size_type, const basic_string&, size_type, size_type)
1242 (replace(size_type,size_type,const basic_string&,size_type,size_type)
1243 (compare(size_type,size_type,constbasic_string&,size_type,size_type)):
1245 * testsuite/21_strings/basic_string/dr2268.cc: New test.
1248 * include/std/thread (thread::__not_same): New SFINAE helper.
1249 (thread::thread(_Callable&&, _Args&&...)): Add SFINAE constraint that
1250 first argument is not a std::thread. Add static assertion to check
1251 INVOKE expression is valid.
1252 (thread::thread(thread&), thread::thread(const thread&&)): Remove.
1253 (thread::_Invoke::_M_invoke, thread::_Invoke::operator()): Use
1254 __invoke_result for return types and remove exception specifications.
1255 * testsuite/30_threads/thread/cons/84535.cc: New.
1257 * include/std/future (__async_result_of): Use __invoke_result instead
1260 * include/std/any (any_cast): Use __remove_cvref_t.
1261 * include/std/tuple (__make_tuple): Likewise.
1262 * include/std/type_traits (__remove_cvref_t): Define.
1263 (__result_of_memobj, __result_of_memfun): Use __remove_cvref_t.
1264 [__cplusplus > 201703L] (remove_cvref, remove_cvref_t): Define.
1265 * include/std/variant (__erased_hash): Use __remove_cvref_t.
1267 2018-05-02 François Dumont <fdumont@gcc.gnu.org>
1269 * include/bits/deque.tcc (deque<>::_M_assign_aux): Cast to void to
1270 ensure overloaded comma not used.
1271 * include/bits/list.tcc (list<>::_M_assign_dispatch): Likewise.
1272 * include/bits/vector.tcc (vector<>::_M_assign_aux): Likewise.
1273 * include/bits/stl_bvector.h (vector<bool>::_M_assign_aux): Likewise.
1274 * testsuite/23_containers/deque/modifiers/assign/1.cc: New.
1275 * testsuite/23_containers/list/modifiers/assign/1.cc: New.
1276 * testsuite/23_containers/vector/bool/modifiers/assign/1.cc: New.
1277 * testsuite/23_containers/vector/modifiers/assign/1.cc: New.
1279 2018-05-02 Jonathan Wakely <jwakely@redhat.com>
1282 * include/bits/ios_base.h (ios_base::iword, ios_base::pword): Cast
1283 indices to unsigned.
1284 * src/c++11/ios.cc (ios_base::_M_grow_words): Treat negative indices
1285 as failure. Refactor error handling.
1286 * testsuite/27_io/ios_base/storage/68197.cc: New.
1290 * include/bits/gslice_array.h (gslice_array): Define default
1291 constructor as deleted, as per C++11 standard.
1292 * include/bits/mask_array.h (mask_array): Likewise.
1293 * include/bits/slice_array.h (slice_array): Likewise.
1294 * include/bits/valarray_after.h (_GBase, _GClos, _IBase, _IClos): Move
1295 to namespace __detail.
1296 (_GBase::_M_expr, _IBase::_M_expr): Use _ValArrayRef for type of data
1298 * include/bits/valarray_before.h (_ValArrayRef): New helper for type
1299 of data members in closure objects.
1300 (_FunBase, _ValFunClos, _RefFunClos, _UnBase, _UnClos, _BinBase)
1301 (_BinBase2, _BinBase1, _BinClos, _SBase, _SClos): Move to namespace
1303 (_FunBase::_M_expr, _UnBase::_M_expr, _BinBase::_M_expr1)
1304 (_BinBase::_M_expr2, _BinBase2::_M_expr1, _BinBase1::_M_expr2)
1305 (_SBase::_M_expr): Use _ValArrayRef for type of data members.
1306 * include/std/valarray (_UnClos, _BinClos, _SClos, _GClos, _IClos)
1307 (_ValFunClos, _RefFunClos): Move to namespace __detail and add
1308 using-declarations to namespace std.
1309 * testsuite/26_numerics/valarray/83860.cc: New.
1311 * testsuite/backward/strstream_move.cc: Remove duplicate function
1315 * include/backward/strstream (strstreambuf): Define move constructor
1316 and move assignment operator.
1317 (istrstream, ostrstream, strstream): Likewise.
1318 * testsuite/backward/strstream_move.cc: New.
1320 2018-05-01 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
1323 * acinclude.m4: Set ENABLE_FLOAT128 instead of _GLIBCXX_USE_FLOAT128.
1324 * config.h.in: Remove references to _GLIBCXX_USE_FLOAT128.
1325 * configure: Regenerate.
1326 * include/Makefile.am: Replace the value of _GLIBCXX_USE_FLOAT128
1327 based on ENABLE_FLOAT128.
1328 * include/Makefile.in: Regenerate.
1329 * include/bits/c++config: Define _GLIBCXX_USE_FLOAT128.
1330 [!defined(__FLOAT128__) && !defined(__SIZEOF_FLOAT128__)]: Undefine
1331 _GLIBCXX_USE_FLOAT128.
1333 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
1335 * configure: Regenerated.
1337 2018-04-19 Jakub Jelinek <jakub@redhat.com>
1339 * configure: Regenerated.
1341 2018-04-18 Jonathan Wakely <jwakely@redhat.com>
1342 Jakub Jelinek <jakub@redhat.com>
1345 * src/c++11/Makefile.am: Don't generate debuginfo again for
1346 cxx11-ios_failure-lt.s and cxx11-ios_failure.s files.
1347 * src/c++11/Makefile.in: Regenerate.
1349 2018-04-18 Jonathan Wakely <jwakely@redhat.com>
1352 * testsuite/30_threads/thread/cons/terminate.cc
1353 [!_GLIBCXX_USE_C99_STDLIB] : Use _exit or std::exit instead of _Exit.
1355 2018-04-18 David Malcolm <dmalcolm@redhat.com>
1358 * configure: Regenerate.
1360 2018-04-16 Jonathan Wakely <jwakely@redhat.com>
1362 * testsuite/experimental/filesystem/file_status/1.cc: Add
1363 -DUSE_FILESYSTEM_TS to dg-options.
1364 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
1366 * testsuite/experimental/filesystem/iterators/pop.cc: Likewise.
1367 * testsuite/experimental/filesystem/iterators/
1368 recursive_directory_iterator.cc: Likewise.
1369 * testsuite/experimental/filesystem/operations/absolute.cc: Likewise.
1370 * testsuite/experimental/filesystem/operations/canonical.cc: Likewise.
1371 * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
1372 * testsuite/experimental/filesystem/operations/copy_file.cc: Likewise.
1373 * testsuite/experimental/filesystem/operations/create_directories.cc:
1375 * testsuite/experimental/filesystem/operations/create_directory.cc:
1377 * testsuite/experimental/filesystem/operations/create_symlink.cc:
1379 * testsuite/experimental/filesystem/operations/current_path.cc:
1381 * testsuite/experimental/filesystem/operations/equivalent.cc: Likewise.
1382 * testsuite/experimental/filesystem/operations/exists.cc: Likewise.
1383 * testsuite/experimental/filesystem/operations/file_size.cc: Likewise.
1384 * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise.
1385 * testsuite/experimental/filesystem/operations/last_write_time.cc:
1387 * testsuite/experimental/filesystem/operations/permissions.cc:
1389 * testsuite/experimental/filesystem/operations/read_symlink.cc:
1391 * testsuite/experimental/filesystem/operations/remove.cc: Likewise.
1392 * testsuite/experimental/filesystem/operations/remove_all.cc: Likewise.
1393 * testsuite/experimental/filesystem/operations/status.cc: Likewise.
1394 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
1396 * testsuite/experimental/filesystem/path/append/path.cc: Likewise.
1397 * testsuite/experimental/filesystem/path/assign/assign.cc: Likewise.
1398 * testsuite/experimental/filesystem/path/assign/copy.cc: Likewise.
1399 * testsuite/experimental/filesystem/path/compare/compare.cc: Likewise.
1400 * testsuite/experimental/filesystem/path/compare/path.cc: Likewise.
1401 * testsuite/experimental/filesystem/path/compare/strings.cc: Likewise.
1402 * testsuite/experimental/filesystem/path/concat/path.cc: Likewise.
1403 * testsuite/experimental/filesystem/path/concat/strings.cc: Likewise.
1404 * testsuite/experimental/filesystem/path/construct/copy.cc: Likewise.
1405 * testsuite/experimental/filesystem/path/construct/default.cc:
1407 * testsuite/experimental/filesystem/path/construct/locale.cc: Likewise.
1408 * testsuite/experimental/filesystem/path/construct/range.cc: Likewise.
1409 * testsuite/experimental/filesystem/path/construct/string_view.cc:
1411 * testsuite/experimental/filesystem/path/decompose/extension.cc:
1413 * testsuite/experimental/filesystem/path/decompose/filename.cc:
1415 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
1417 * testsuite/experimental/filesystem/path/decompose/relative_path.cc:
1419 * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
1421 * testsuite/experimental/filesystem/path/decompose/root_name.cc:
1423 * testsuite/experimental/filesystem/path/decompose/root_path.cc:
1425 * testsuite/experimental/filesystem/path/decompose/stem.cc: Likewise.
1426 * testsuite/experimental/filesystem/path/generic/generic_string.cc:
1428 * testsuite/experimental/filesystem/path/itr/traversal.cc: Likewise.
1429 * testsuite/experimental/filesystem/path/modifiers/clear.cc: Likewise.
1430 * testsuite/experimental/filesystem/path/modifiers/make_preferred.cc:
1432 * testsuite/experimental/filesystem/path/modifiers/remove_filename.cc:
1434 * testsuite/experimental/filesystem/path/modifiers/replace_extension.cc:
1436 * testsuite/experimental/filesystem/path/modifiers/replace_filename.cc:
1438 * testsuite/experimental/filesystem/path/modifiers/swap.cc: Likewise.
1439 * testsuite/experimental/filesystem/path/native/string.cc: Likewise.
1440 * testsuite/experimental/filesystem/path/nonmember/hash_value.cc:
1442 * testsuite/experimental/filesystem/path/query/empty.cc: Likewise.
1443 * testsuite/experimental/filesystem/path/query/has_extension.cc:
1445 * testsuite/experimental/filesystem/path/query/has_filename.cc:
1447 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
1449 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
1451 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
1453 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
1455 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
1457 * testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise.
1458 * testsuite/experimental/filesystem/path/query/is_relative.cc:
1461 2018-04-13 Jonathan Wakely <jwakely@redhat.com>
1463 * src/c++11/Makefile.am: Fix sed command.
1464 * src/c++11/Makefile.in: Regenerate.
1466 * src/c++11/Makefile.am: Rewrite sed rule to be less fragile and to
1467 handle mangled names starting with double underscores on darwin.
1468 * src/c++11/Makefile.in: Regenerate.
1470 2018-04-12 Jonathan Wakely <jwakely@redhat.com>
1472 * src/c++11/Makefile.am: Fix comment.
1473 * src/c++11/Makefile.in: Regenerate.
1474 * src/c++11/cxx11-ios_failure.cc: Fix comment.
1475 * src/c++98/ios_failure.cc: Likewise.
1477 * src/c++11/ios.cc: Remove redundant macro definition.
1479 2018-04-11 Jonathan Wakely <jwakely@redhat.com>
1481 * doc/xml/manual/abi.xml: Document header locations in recent
1483 * doc/xml/manual/evolution.xml: Add API changes since GCC 5.
1484 * doc/xml/manual/spine.xml: Update copyright years.
1485 * doc/xml/manual/strings.xml: Adjust tolower example to avoid
1486 undefined behaviour.
1487 * doc/xml/manual/test.xml: Update outdated notes on VERIFY in tests.
1488 * doc/html/*: Regenerate.
1490 2018-04-10 Jonathan Wakely <jwakely@redhat.com>
1492 * doc/xml/faq.xml: Update links to archived copy of SGI STL docs.
1493 * doc/xml/manual/backwards_compatibility.xml: Likewise.
1494 * doc/xml/manual/containers.xml: Likewise.
1495 * doc/xml/manual/debug_mode.xml: Likewise.
1496 * doc/xml/manual/extensions.xml: Likewise.
1497 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise.
1498 * doc/xml/manual/using.xml: Likewise.
1499 * doc/xml/manual/utilities.xml: Likewise.
1502 * src/c++11/Makefile.am [ENABLE_DUAL_ABI]: Add special rules for
1503 cxx11-ios_failure.cc to rewrite type info for __ios_failure.
1504 * src/c++11/Makefile.in: Regenerate.
1505 * src/c++11/cxx11-ios_failure.cc (__ios_failure, __iosfail_type_info):
1507 [_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here.
1508 * src/c++11/ios.cc (__throw_ios_failure): Remove definition.
1509 * src/c++98/ios_failure.cc (__construct_ios_failure)
1510 (__destroy_ios_failure, is_ios_failure_handler): New functions.
1511 [!_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here.
1512 * testsuite/27_io/ios_base/failure/dual_abi.cc: New.
1513 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Revert changes to
1514 handler types, to always catch std::ios_base::failure.
1515 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1516 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1517 exceptions_failbit.cc: Likewise.
1518 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1519 exceptions_failbit.cc: Likewise.
1520 * testsuite/27_io/basic_istream/extractors_other/char/
1521 exceptions_null.cc: Likewise.
1522 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1523 exceptions_null.cc: Likewise.
1524 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1525 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1526 * testsuite/27_io/basic_ostream/inserters_other/char/
1527 exceptions_null.cc: Likewise.
1528 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1529 exceptions_null.cc: Likewise.
1530 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1532 2018-04-05 Jonathan Wakely <jwakely@redhat.com>
1534 * include/std/variant (_VARIANT_RELATION_FUNCTION_TEMPLATE): Qualify
1535 __get calls to avoid ADL and avoid ambiguity due to Clang bug.
1537 2018-04-03 Jonathan Wakely <jwakely@redhat.com>
1540 * include/std/variant (_Move_assign_base::operator=): Fix incorrect
1542 * testsuite/20_util/variant/85183.cc: New.
1544 2018-03-26 Jonathan Wakely <jwakely@redhat.com>
1546 * include/std/variant (__get): Qualify calls to avoid ADL.
1547 (__select_index): Adjust whitespace.
1548 (variant): Add using-declaration to workaround Clang bug.
1550 2018-03-22 Jonathan Wakely <jwakely@redhat.com>
1553 * include/bits/stl_function.h (greater::__not_overloaded)
1554 (less::__not_overloaded, greater_equal::__not_overloaded)
1555 (less_equal::__not_overloaded): Fix ambiguous specializations.
1556 * testsuite/20_util/function_objects/comparisons_pointer.cc: Add
1557 tests for type with overloaded operators.
1559 2018-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1562 * testsuite/experimental/memory_resource/resource_adaptor.cc:
1563 xfail execution on 32-bit Solaris/x86.
1565 2018-03-21 Jonathan Wakely <jwakely@redhat.com>
1567 * testsuite/20_util/function_objects/comparisons_pointer.cc: Use
1568 VERIFY instead of assert.
1569 * testsuite/20_util/hash/84998.cc: New test.
1570 * testsuite/23_containers/vector/cons/destructible_debug_neg.cc: New
1571 copy of test adjusted for Debug Mode.
1572 * testsuite/23_containers/vector/cons/destructible_neg.cc: Do not run
1575 2018-03-20 François Dumont <fdumont@gcc.gnu.org>
1578 * include/bits/stl_bvector.h: Fix std::hash friend declaration.
1579 * include/std/bitset: Likewise.
1580 * include/bits/stl_map.h (std::map<>): Fix _Rb_tree_merge_helper friend
1582 * include/bits/stl_multimap.h (std::multimap<>): Likewise.
1583 * include/bits/stl_multiset.h (std::multiset<>): Likewise.
1584 * include/bits/stl_set.h (std::set<>): Likewise.
1585 * include/bits/unordered_map.h (std::unordered_map<>): Fix
1586 _Hash_merge_helper friend declaration.
1587 (std::unordered_multimap<>): Likewise.
1588 * include/bits/unordered_set.h (std::unordered_set<>): Likewise.
1589 (std::unordered_multiset<>): Likewise.
1591 2018-03-19 Gerald Pfeifer <gerald@pfeifer.com>
1593 * doc/xml/api.xml: www.fsf.org has moved to https. Also omit
1594 trailing slash for domain level link.
1595 * doc/xml/faq.xml: Ditto.
1596 * doc/xml/manual/appendix_free.xml (software): Ditto.
1597 * doc/xml/manual/intro.xml: Ditto.
1598 * doc/xml/manual/spine.xml: Ditto.
1599 * doc/xml/spine.xml: Ditto.
1601 2018-03-19 Gerald Pfeifer <gerald@pfeifer.com>
1603 * doc/xml/manual/documentation_hacking.xml: Adjust link to
1606 2018-03-17 Jonathan Wakely <jwakely@redhat.com>
1608 * testsuite/20_util/function_objects/comparisons_pointer.cc: Adjust
1609 to compile as C++98.
1611 2018-03-14 Jonathan Wakely <jwakely@redhat.com>
1614 * include/bits/stl_function.h (greater<_Tp*>, less<_Tp*>)
1615 (greater_equal<_Tp*>, less_equal<_Tp>*): Add partial specializations
1616 to ensure total order for pointers.
1617 (greater<void>, less<void>, greater_equal<void>, less_equal<void>):
1618 Add operator() overloads for pointer arguments and make generic
1619 overloads dispatch to new _S_cmp functions when comparisons would
1620 use built-in operators for pointers.
1621 * testsuite/20_util/function_objects/comparisons_pointer.cc: New.
1623 2018-03-12 Jonathan Wakely <jwakely@redhat.com>
1627 * crossconfig.m4: Check for aligned_alloc etc. on freebsd and mingw32.
1628 * configure: Regenerate.
1629 * include/c_global/cstdlib [_GLIBCXX_HAVE_ALIGNED_ALLOC]
1630 (aligned_alloc): Add using-declaration.
1631 * testsuite/18_support/aligned_alloc/aligned_alloc.cc: New test.
1633 2018-03-09 François Dumont <fdumont@gcc.gnu.org>
1635 * python/libstdcxx/v6/printers.py (build_libstdcxx_dictionary):
1636 Fix std::_Fwd_list_iterator and std::_Fwd_list_const_iterator printers
1639 2018-03-09 Jonathan Wakely <jwakely@redhat.com>
1642 * include/std/variant (get<_Tp, _Types...>, get_if<_Tp, _Types...>):
1643 Qualify calls to get<_Np, Types...> and get_if<_Np, _Types...>.
1645 src/filesystem/ops.cc (create_dir): Pass error_code to is_directory.
1646 src/filesystem/std-ops.cc (create_dir): Likewise.
1648 2018-03-08 François Dumont <fdumont@gcc.gnu.org>
1650 * python/libstdcxx/v6/printers.py (NodeIteratorPrinter): New.
1651 (StdListIteratorPrinter): Inherit from latter.
1652 (StdFwdListIteratorPrinter): New, inherit from latter.
1653 (StdDebugIteratorPrinter.to_string): Use non-debug iterator printer
1654 when iterator has no associated container.
1655 (build_libstdcxx_dictionary): Add __gnu_cxx::_Fwd_list_iterator and
1656 __gnu_cxx::_Fwd_list_const_iterator printers. Remove __norm namespace
1658 * testsuite/libstdc++-prettyprinters/debug.cc: Adapt.
1659 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Adapt.
1661 2018-03-06 Ville Voutilainen <ville.voutilainen@gmail.com>
1664 * include/std/optional (_Optional_payload): Split into multiple
1665 specializations that can handle different cases of trivial or
1666 non-trivial assignment operators.
1667 * testsuite/20_util/optional/84601.cc: New.
1668 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
1670 2018-03-02 Jonathan Wakely <jwakely@redhat.com>
1673 * include/bits/parse_numbers.h (_Number_help): Add partial
1674 specialization to handle digit separators. Adjust partial
1675 specialization for recursion temrination to require _Pow == 1ULL.
1676 * testsuite/20_util/duration/literals/84671.cc: New
1678 2018-02-27 Ville Voutilainen <ville.voutilainen@gmail.com>
1680 Implement the missing bits of LWG 2769
1681 * include/std/any (any_cast(const any&)): Add static_assert.
1682 (any_cast(any&)): Likewise.
1683 (any_cast(any&&)): Likewise, and remove the handling
1684 for copyable-but-not-movable type.
1685 * testsuite/20_util/any/misc/any_cast.cc: Adjust.
1686 * testsuite/20_util/any/misc/any_cast_neg.cc: Likewise, and
1689 2018-02-23 Jonathan Wakely <jwakely@redhat.com>
1692 * include/std/thread (thread::__make_invoker): Construct tuple
1693 directly instead of using make_tuple.
1694 * testsuite/30_threads/async/84532.cc: New.
1695 * testsuite/30_threads/thread/84532.cc: New.
1697 2018-02-20 François Dumont <fdumont@gcc.gnu.org>
1699 * include/ext/aligned_buffer.h [_GLIBCXX_INLINE_VERSION]
1700 (template<> __aligned_buffer): Define as __aligned_membuf alias.
1702 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
1705 * configure: Regenerate.
1707 2018-02-15 Jonathan Wakely <jwakely@redhat.com>
1710 * configure.ac (INCLUDE_DIR_NOTPARALLEL): Define.
1711 * configure: Regenerate.
1712 * include/Makefile.am (INCLUDE_DIR_NOTPARALLEL): Add .NOTPARALLEL when
1714 * include/Makefile.in: Regenerate.
1716 2018-01-29 Jonathan Wakely <jwakely@redhat.com>
1719 * testsuite/26_numerics/random/chi_squared_distribution/83833.cc:
1720 Add -ffloat-store to options for m68k and ia32.
1722 * doc/xml/faq.xml: Update copyright years.
1723 * doc/html/*: Regenerate.
1726 * include/std/any (any::__do_emplace): Only set _M_manager after
1727 constructing the contained object.
1728 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust dg-error line.
1729 * testsuite/20_util/any/modifiers/83658.cc: New test.
1731 2018-01-25 Jonathan Wakely <jwakely@redhat.com>
1734 * include/c_global/cstddef (__byte_operand): Define primary template.
1735 * testsuite/18_support/byte/81076.cc: New test.
1737 2018-01-19 Christophe Lyon <christophe.lyon@linaro.org>
1739 * testsuite/ext/special_functions/airy_ai/check_nan.cc: Fix
1740 dg-options and dg-add-options order.
1741 * testsuite/ext/special_functions/airy_bi/check_nan.cc: Likewise.
1742 * testsuite/ext/special_functions/conf_hyperg/check_nan.cc:
1744 * testsuite/ext/special_functions/hyperg/check_nan.cc: Likewise.
1745 * testsuite/special_functions/01_assoc_laguerre/check_nan.cc:
1747 * testsuite/special_functions/02_assoc_legendre/check_nan.cc:
1749 * testsuite/special_functions/03_beta/check_nan.cc: Likewise.
1750 * testsuite/special_functions/04_comp_ellint_1/check_nan.cc:
1752 * testsuite/special_functions/05_comp_ellint_2/check_nan.cc:
1754 * testsuite/special_functions/06_comp_ellint_3/check_nan.cc:
1756 * testsuite/special_functions/06_comp_ellint_3/pr66689.cc:
1758 * testsuite/special_functions/07_cyl_bessel_i/check_nan.cc:
1760 * testsuite/special_functions/08_cyl_bessel_j/check_nan.cc:
1762 * testsuite/special_functions/09_cyl_bessel_k/check_nan.cc:
1764 * testsuite/special_functions/10_cyl_neumann/check_nan.cc:
1766 * testsuite/special_functions/11_ellint_1/check_nan.cc: Likewise.
1767 * testsuite/special_functions/12_ellint_2/check_nan.cc: Likewise.
1768 * testsuite/special_functions/13_ellint_3/check_nan.cc: Likewise.
1769 * testsuite/special_functions/13_ellint_3/pr66689.cc: Likewise.
1770 * testsuite/special_functions/14_expint/check_nan.cc: Likewise.
1771 * testsuite/special_functions/15_hermite/check_nan.cc: Likewise.
1772 * testsuite/special_functions/16_laguerre/check_nan.cc: Likewise.
1773 * testsuite/special_functions/17_legendre/check_nan.cc: Likewise.
1774 * testsuite/special_functions/18_riemann_zeta/check_nan.cc:
1776 * testsuite/special_functions/19_sph_bessel/check_nan.cc:
1778 * testsuite/special_functions/20_sph_legendre/check_nan.cc:
1780 * testsuite/special_functions/21_sph_neumann/check_nan.cc:
1783 2018-01-18 Uros Bizjak <ubizjak@gmail.com>
1785 * configure.ac (AC_CHECK_HEADERS): Add linux/types.h. Conditionally
1786 include linux/types.h when checking linux/random.h header.
1787 * config.h.in: Regenerate.
1789 * src/c++11/random.cc: Conditionally include linux/types.h.
1791 2018-01-16 Eric Botcazou <ebotcazou@adacore.com>
1793 * testsuite/17_intro/names.cc: Undefine 'y' on SPARC/Linux.
1795 2018-01-16 Jonathan Wakely <jwakely@redhat.com>
1798 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Replace std::c[a-g]* wildcard
1799 pattern with exact match for std::cerr.
1801 2018-01-15 Jonathan Wakely <jwakely@redhat.com>
1804 * include/bits/random.h (chi_squared_distribution::param): Update
1805 gamma distribution parameter.
1806 * testsuite/26_numerics/random/chi_squared_distribution/83833.cc: New
1810 * include/std/type_traits (has_unique_object_representations_v): Add
1812 * testsuite/20_util/has_unique_object_representations/value.cc: Check
1815 2018-01-15 Ville Voutilainen <ville.voutilainen@gmail.com>
1817 Make optional conditionally
1818 trivially_{copy,move}_{constructible,assignable}
1819 * include/std/optional (_Optional_payload): Fix the comment in
1820 the class head and turn into a primary and one specialization.
1821 (_Optional_payload::_M_engaged): Strike the NSDMI.
1822 (_Optional_payload<_Tp, false>::operator=(const _Optional_payload&)):
1824 (_Optional_payload<_Tp, false>::operator=(_Optional_payload&&)):
1826 (_Optional_payload<_Tp, false>::_M_get): Likewise.
1827 (_Optional_payload<_Tp, false>::_M_reset): Likewise.
1828 (_Optional_base_impl): Likewise.
1829 (_Optional_base): Turn into a primary and three specializations.
1830 (optional(nullopt)): Change the base init.
1831 * testsuite/20_util/optional/assignment/8.cc: New.
1832 * testsuite/20_util/optional/cons/trivial.cc: Likewise.
1833 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
1835 2018-01-15 Jonathan Wakely <jwakely@redhat.com>
1838 * python/libstdcxx/v6/printers.py (strip_inline_namespaces): New.
1839 (get_template_arg_list): New.
1840 (StdVariantPrinter._template_args): Remove, use get_template_arg_list
1842 (TemplateTypePrinter): Rewrite to work with gdb.Type objects instead
1843 of strings and regular expressions.
1844 (add_one_template_type_printer): Adapt to new TemplateTypePrinter.
1845 (FilteringTypePrinter): Add docstring. Match using startswith. Use
1846 strip_inline_namespaces instead of strip_versioned_namespace.
1847 (add_one_type_printer): Prepend namespace to match argument.
1848 (register_type_printers): Add type printers for char16_t and char32_t
1849 string types and for types using cxx11 ABI. Update calls to
1850 add_one_template_type_printer to provide default argument dicts.
1851 * testsuite/libstdc++-prettyprinters/80276.cc: New test.
1852 * testsuite/libstdc++-prettyprinters/whatis.cc: Remove tests for
1853 basic_string<unsigned char> and basic_string<signed char>.
1854 * testsuite/libstdc++-prettyprinters/whatis2.cc: Duplicate whatis.cc
1855 to test local variables, without overriding _GLIBCXX_USE_CXX11_ABI.
1857 2018-01-14 Andreas Schwab <schwab@linux-m68k.org>
1860 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
1862 2018-01-13 Tim Shen <timshen@google.com>
1865 * include/bits/regex.tcc (regex_replace): Fix escaping in sed.
1866 * testsuite/28_regex/algorithms/regex_replace/char/pr83601.cc: Tests.
1867 * testsuite/28_regex/algorithms/regex_replace/wchar_t/pr83601.cc: Tests.
1869 2018-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1872 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc:
1873 Remove dg-xfail-run-if.
1875 2018-01-10 François Dumont <fdumont@gcc.gnu.org>
1877 * include/bits/forward_list.h
1878 (_Fwd_list_node_base(_Fwd_list_node_base&&)): New.
1879 (_Fwd_list_node_base& operator=(_Fwd_list_node_base&&)): New.
1880 (_Fwd_list_node_base(const _Fwd_list_node_base&)): Explicit delete.
1881 (_Fwd_list_node_base& operator=(const _Fwd_list_node_base&)): Likewise.
1882 (_Fwd_list_impl()): Add noexcept qualification.
1883 (_Fwd_list_impl(const _Node_alloc_type&)): Delete.
1884 (_Fwd_list_impl(_Fwd_list_impl&&)): New, default.
1885 (_Fwd_list_impl(_Fwd_list_impl&&, _Node_alloc_type&&)): New.
1886 (_Fwd_list_base()): Default.
1887 (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&, true_type)): New.
1888 (_Fwd_list_base(_Fwd_list_base&&)): Default.
1889 (forward_list<>()): Default.
1890 (forward_list<>(forward_list&&)): Default.
1891 (forward_list(forward_list&&, _Node_alloc_type&&, false_type)): New.
1892 (forward_list(forward_list&&, _Node_alloc_type&&, true_type)): New.
1893 (forward_list(forward_list&&, const _Alloc&)): Adapt to use latters.
1894 * include/bits/forward_list.tcc
1895 (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&)): Adapt to use
1896 _M_impl._M_head move assignment.
1897 (forward_list<>::merge(forward_list<>&&, _Comp)): Likewise.
1898 * testsuite/23_containers/forward_list/allocator/default_init.cc: New.
1900 2018-01-09 Jonathan Wakely <jwakely@redhat.com>
1903 * python/libstdcxx/v6/printers.py (SharedPointerPrinter)
1904 (UniquePointerPrinter): Print correct template argument, not type of
1906 (TemplateTypePrinter._recognizer.recognize): Handle failure to lookup
1908 * testsuite/libstdc++-prettyprinters/cxx11.cc: Test unique_ptr of
1910 * testsuite/libstdc++-prettyprinters/cxx17.cc: Test shared_ptr and
1911 weak_ptr of array types.
1913 2018-01-09 François Dumont <fdumont@gcc.gnu.org>
1916 * include/bits/hashtable_policy.h
1917 (__distance_fwd(_Iterator, _Iterator, input_iterator_tag)): Return 1 if
1919 (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, true_type)): New.
1920 (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, false_type)):
1921 Add false_type parameter.
1922 (_Insert_base::insert): Adapt.
1923 * include/bits/hashtable.h (_Hashtable::operator=(initializzr_list<>)):
1925 (_Hashtable::_M_insert(_Arg&&, const _NodeGen&, true_type, size_t)):
1926 Add __n_elt parameter, defaulted to 1.
1927 (_Hashtable::_M_insert_unique_node): Likewise. Use it to call rehash
1928 policy _M_need_rehash.
1929 (_Hashtable::_M_merge_unique): Pass target number of elements to add to
1930 produce only 1 rehash if necessary.
1931 * testsuite/23_containers/unordered_map/insert/83709.cc: New.
1932 * testsuite/23_containers/unordered_set/insert/83709.cc: New.
1934 2018-01-09 Juraj Oršulić <juraj.orsulic@fer.hr>
1935 Jonathan Wakely <jwakely@redhat.com>
1937 PR libstdc++/59253 (partial)
1938 * python/libstdcxx/v6/printers.py (SmartPtrIterator): Common iterator
1939 type for pointer stored by shared_ptr, weak_ptr and unique_ptr.
1940 (SharedPointerPrinter, UniquePointerPrinter): Treat stored values as
1942 * testsuite/libstdc++-prettyprinters/cxx11.cc: Update expected output
1943 of unique_ptr printer.
1944 * testsuite/libstdc++-prettyprinters/shared_ptr.cc: Update expected
1945 output of shared_ptr printer.
1947 2018-01-05 Jonathan Wakely <jwakely@redhat.com>
1950 * src/filesystem/ops.cc (remove(const path&, error_code&)): Remove
1951 unnecessary symlink_status call.
1952 (remove_all(const path&, error_code&)): Use filesystem::remove.
1953 * src/filesystem/std-ops.cc: Likewise.
1956 * src/filesystem/std-ops.cc (do_copy_file): Use non-null offset with
1960 * src/filesystem/ops.cc (remove(const path&, error_code&)): Do not
1961 report an error for ENOENT.
1962 (remove_all(const path&)): Fix type of result variable.
1963 (remove_all(const path&, error_code&)): Use non-throwing increment
1964 for directory iterator. Call POSIX remove directly to avoid redundant
1965 calls to symlink_status. Do not report errors for ENOENT.
1966 * src/filesystem/std-ops.cc: Likewise.
1967 * testsuite/27_io/filesystem/operations/remove_all.cc: Test throwing
1969 * testsuite/experimental/filesystem/operations/remove_all.cc:
1972 2018-01-04 Jonathan Wakely <jwakely@redhat.com>
1975 * src/filesystem/ops.cc (remove(const path&, error_code&))): Remove
1976 redundant call to ec.clear().
1977 (remove_all(const path&, error_code&))): Do not return an error for
1979 * src/filesystem/std-ops.cc: Likewise.
1980 * testsuite/27_io/filesystem/operations/remove.cc: New test.
1981 * testsuite/27_io/filesystem/operations/remove_all.cc: Fix expected
1982 results for non-existent paths.
1983 * testsuite/experimental/filesystem/operations/remove.cc: New test.
1984 * testsuite/experimental/filesystem/operations/remove_all.cc: Fix
1985 expected results for non-existent paths.
1987 * include/bits/fs_ops.h (exists(const path&, error_code&))): Only
1988 check status_known once.
1989 * include/experimental/bits/fs_ops.h: Likewise.
1992 * include/std/functional (__is_byte_like): New trait.
1993 (__is_std_equal_to): Remove.
1994 (__boyer_moore_base_t): Use __is_byte_like instead of
1996 * include/experimental/functional (__is_std_equal_to): Remove.
1997 (__boyer_moore_base_t): Use __is_byte_like instead of
1999 * testsuite/20_util/function_objects/83607.cc: New test.
2001 2018-01-03 Ville Voutilainen <ville.voutilainen@gmail.com>
2003 Protect optional's deduction guide with the feature macro
2004 * include/std/optional: Use the feature macro.
2006 2018-01-03 Jakub Jelinek <jakub@redhat.com>
2008 Update copyright years.
2010 Copyright (C) 2018 Free Software Foundation, Inc.
2012 Copying and distribution of this file, with or without modification,
2013 are permitted in any medium without royalty provided the copyright
2014 notice and this notice are preserved.