PR libstdc++/85749 constrain seed sequences for random number engines
[official-gcc.git] / libstdc++-v3 / ChangeLog
blob8359f4f5335ffa868e45b1f7b5cb22b322e77090
1 2018-05-15  Jonathan Wakely  <jwakely@redhat.com>
3         PR libstdc++/85749
4         * include/bits/random.h (__detail::__is_seed_seq): New SFINAE helper.
5         (linear_congruential_engine, mersenne_twister_engine)
6         (subtract_with_carry_engine, discard_block_engine)
7         (independent_bits_engine, shuffle_order_engine): Use __is_seed_seq to
8         constrain function templates taking seed sequences.
9         * include/bits/random.tcc (linear_congruential_engine::seed(_Sseq&))
10         (mersenne_twister_engine::seed(_Sseq&))
11         (subtract_with_carry_engine::seed(_Sseq&)): Change return types to
12         match declarations.
13         * include/ext/random (simd_fast_mersenne_twister_engine): Use
14         __is_seed_seq to constrain function templates taking seed sequences.
15         * include/ext/random.tcc (simd_fast_mersenne_twister_engine::seed):
16         Change return type to match declaration.
17         * testsuite/26_numerics/random/discard_block_engine/cons/seed_seq2.cc:
18         New.
19         * testsuite/26_numerics/random/independent_bits_engine/cons/
20         seed_seq2.cc: New.
21         * testsuite/26_numerics/random/linear_congruential_engine/cons/
22         seed_seq2.cc: New.
23         * testsuite/26_numerics/random/mersenne_twister_engine/cons/
24         seed_seq2.cc: New.
25         * testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error lineno.
26         * testsuite/26_numerics/random/shuffle_order_engine/cons/seed_seq2.cc:
27         New.
28         * testsuite/26_numerics/random/subtract_with_carry_engine/cons/
29         seed_seq2.cc: New.
30         * testsuite/ext/random/simd_fast_mersenne_twister_engine/cons/
31         seed_seq2.cc: New.
33         PR libstdc++/83891
34         * include/bits/fs_path.h (path::is_absolute()): Use same definition
35         for all operating systems.
36         * include/experimental/bits/fs_path.h (path::is_absolute()): Likewise.
37         * testsuite/27_io/filesystem/path/query/is_absolute.cc: New.
38         * testsuite/27_io/filesystem/path/query/is_relative.cc: Fix comment.
39         * testsuite/experimental/filesystem/path/query/is_absolute.cc: New.
41         * testsuite/27_io/filesystem/path/decompose/extension.cc: Remove
42         unused <vector> header.
43         * testsuite/27_io/filesystem/path/query/empty.cc: Likewise.
44         * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise.
45         * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise.
46         * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise.
47         * testsuite/27_io/filesystem/path/query/has_relative_path.cc:
48         Likewise.
49         * testsuite/27_io/filesystem/path/query/has_root_directory.cc:
50         Likewise.
51         * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise.
52         * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise.
53         * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise.
54         * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise.
55         * testsuite/experimental/filesystem/path/decompose/extension.cc:
56         Likewise.
57         * testsuite/experimental/filesystem/path/query/empty.cc: Likewise.
58         * testsuite/experimental/filesystem/path/query/has_extension.cc:
59         Likewise.
60         * testsuite/experimental/filesystem/path/query/has_filename.cc:
61         Likewise.
62         * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
63         Likewise.
64         * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
65         Likewise.
66         * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
67         Likewise.
68         * testsuite/experimental/filesystem/path/query/has_root_name.cc:
69         Likewise.
70         * testsuite/experimental/filesystem/path/query/has_root_path.cc:
71         Likewise.
72         * testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise.
73         * testsuite/experimental/filesystem/path/query/is_relative.cc:
74         Likewise.
76         PR libstdc++/84159
77         * include/bits/fs_path.h (path::operator/=, path::append): Construct
78         temporary path before calling _M_append.
79         (path::_M_append): Change parameter to path and implement C++17
80         semantics.
81         * testsuite/27_io/filesystem/path/append/path.cc: Add helper function
82         and more examples from the standard.
83         * testsuite/27_io/filesystem/path/append/source.cc: New.
84         * testsuite/27_io/filesystem/path/decompose/filename.cc: Add comment.
85         * testsuite/27_io/filesystem/path/nonmember/append.cc: New.
87         * include/std/variant (__gen_vtable_impl::__visit_invoke): Qualify
88         __invoke to prevent ADL.
90 2018-05-14  Jonathan Wakely  <jwakely@redhat.com>
92         PR libstdc++/81256
93         * include/bits/fstream.tcc (basic_filebuf::close): Do not swallow
94         exceptions from _M_terminate_output().
95         * include/std/fstream (basic_filebuf::~basic_filebuf): Swallow any
96         exceptions from close().
97         * testsuite/27_io/basic_filebuf/close/81256.cc: New.
99         * include/bits/valarray_array.h (__valarray_get_memory): Remove.
100         (__valarray_get_storage): Call operator new directly. Remove ignored
101         top-level restrict qualifier and add malloc attribute instead.
102         (_Array<_Tp>::_Array(size_t)): Remove unused constructor.
104         PR libstdc++/67554
105         * include/bits/valarray_array.h (_Array_copy_ctor<_Tp, true>)
106         (_Array_copier<_Tp, true>): Do not pass null pointers to memcpy.
108         PR libstdc++/82966
109         * include/bits/node_handle.h (_Node_handle_common::_M_swap): Use value
110         instead of type.
111         * testsuite/23_containers/set/modifiers/node_swap.cc: New.
113 2018-05-13  Ville Voutilainen  <ville.voutilainen@gmail.com>
115         PR libstdc++/80165
116         * testsuite/20_util/variant/80165.cc: New.
118 2018-05-10  Jonathan Wakely  <jwakely@redhat.com>
120         * doc/xml/faq.xml: Link to C++17 status. Add note to outdated answer.
121         * doc/xml/manual/debug_mode.xml: Add array and forward_list to list
122         of C++11 containers with Debug Mode support.
123         * doc/xml/manual/using.xml: Document Dual ABI for ios_base::failure.
124         * doc/html/*: Regenerate.
126 2018-05-10  Jason Merrill  <jason@redhat.com>
128         * include/bits/regex_compiler.h (_S_cache_size): Change from
129         function to variable.
131 2018-05-10  Edward Smith-Rowland  <3dw4rd@verizon.net>
133         PR libstdc++/83140 - assoc_legendre returns negated value when m is odd
134         * include/tr1/legendre_function.tcc (__assoc_legendre_p): Add __phase
135         argument defaulted to +1.  Doxy comments on same.
136         * testsuite/special_functions/02_assoc_legendre/
137         check_value.cc: Regen.
138         * testsuite/tr1/5_numerical_facilities/special_functions/
139         02_assoc_legendre/check_value.cc: Regen.
141 2018-05-10  Jonathan Wakely  <jwakely@redhat.com>
143         PR libstdc++/85729
144         * include/bits/c++config.h (__replacement_assert): Add linkage
145         specification.
146         * include/bits/std_abs.h: Add comment to closing brace of block.
147         * include/c_global/cstddef: Add linkage specification.
148         * include/c_global/cstring: Likewise.
149         * include/c_global/cwchar: Likewise.
151 2018-05-09  François Dumont  <fdumont@gcc.gnu.org>
153         * include/debug/safe_iterator.h (_Safe_iterator<>::_M_constant()):
154         Rename in...
155         (_Safe_iterator<>::_S_constant()): ...that.
156         * include/debug/safe_local_iterator.h
157         (_Safe_local_iterator<>::_M_constant()): Rename in...
158         (_Safe_local_iterator<>::_S_constant()): ...that.
159         * include/debug/formatter.h: Remove bits/cpp_type_traits.h include.
160         (_Iterator_state::__rbegin): New.
161         (_Iterator_state::__rmiddle): New.
162         (_Iterator_state::__rend): New.
163         (_Parameter::_Parameter(const _Safe_iterator<>&, const char*,
164         _Is_iterator)): Use _Safe_iterator<>::_S_constant. Grab normal underlying
165         iterator type.
166         (_Parameter::_Parameter(const _Safe_local_iterator<>&, const char*,
167         _Is_iterator)): Likewise.
168         (_Parameter::_S_reverse_state(_Iterator_state)): New.
169         (_Parameter(__gnu_cxx::__normal_iterator<> const&, const char*,
170         _Is_iterator)): New.
171         (_Parameter(std::reverse_iterator<> const&, const char*,
172         _Is_iterator)): New.
173         (_Parameter(std::reverse_iterator<_Safe_iterator<>> const&,
174         const char*, _Is_iterator)): New.
175         (_Parameter(std::move_iterator<> const&, const char*, _Is_iterator):
176         New.
177         (_Parameter(std::move_iterator<_Safe_iterator<>> const&, const char*,
178         _Is_iterator)): New.
179         * testsuite/24_iterators/move_iterator/debug_neg.cc: New.
180         * testsuite/24_iterators/normal_iterator/debug_neg.cc: New.
181         * testsuite/24_iterators/reverse_iterator/debug_neg.cc: New.
183 2018-05-09  Jonathan Wakely  <jwakely@redhat.com>
185         * include/bits/std_function.h (_Base_manager::_M_get_pointer):
186         Use constexpr if in C++17 mode.
187         (_Base_manager::_M_clone(_Any_data&, const _Any_data&, true_type)):
188         Copy from const object.
189         * testsuite/20_util/function/cons/non_copyconstructible.cc: New.
191 2018-05-08  François Dumont  <fdumont@gcc.gnu.org>
193         * src/c++11/debug.cc [_GLIBCXX_HAVE_EXECINFO_H]: Include execinfo.h.
194         [_GLIBCXX_HAVE_EXECINFO_H](_Error_formatter::_M_error): Render
195         backtrace.
197         * include/debug/macros.h (__glibcxx_check_valid_range_at): New.
198         * include/debug/functions.h (__check_valid_range): Use latter.
199         * include/debug/macros.h (__glibcxx_check_valid_constructor_range): New,
200         use latter.
201         * include/debug/deque
202         (deque::deque<_Iter>(_Iter, _Iter, const _Alloc&)): Use latter.
203         * include/debug/forward_list
204         (forward_list::forward_list<_Iter>(_Iter, _Iter, const _Alloc&)):
205         Likewise.
206         * include/debug/list
207         (list::list<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
208         * include/debug/list
209         (list::list<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
210         * include/debug/map.h
211         (map::map<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
212         (map::map<_Iter>(_Iter, _Iter, const _Compare&, const _Alloc&)):
213         Likewise.
214         * include/debug/multimap.h
215         (multimap::multimap<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
216         (multimap::multimap<_Iter>(_Iter, _Iter, const _Compare&,
217         const _Alloc&)): Likewise.
218         * include/debug/set.h
219         (set::set<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
220         (set::set<_Iter>(_Iter, _Iter, const _Compare&, const _Alloc&)):
221         Likewise.
222         * include/debug/multiset.h
223         (multiset::multiset<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
224         (multiset::multiset<_Iter>(_Iter, _Iter, const _Compare&,
225         const _Alloc&)): Likewise.
226         * include/debug/string
227         (basic_string::basic_string<_Iter>(_Iter, _Iter, const _Alloc&)):
228         Likewise.
229         * include/debug/unordered_map
230         (unordered_map::unordered_map<_Iter>(_Iter, _Iter, const _Alloc&)):
231         Likewise.
232         (unordered_multimap::unordered_multimap<_Iter>(_Iter, _Iter,
233         const _Alloc&)): Likewise.
234         * include/debug/unordered_set
235         (unordered_set::unordered_set<_Iter>(_Iter, _Iter, const _Alloc&)):
236         Likewise.
237         (unordered_multiset::unordered_multiset<_Iter>(_Iter, _Iter,
238         const _Alloc&)): Likewise.
239         * include/debug/vector
240         (vector::vector<_Iter>(_Iter, _Iter, const _Alloc&)): Use latter.
242         * include/debug/formatter.h (_Error_formatter::_M_function): New.
243         (_Error_formatter(const char*, unsigned int)): Adapt.
244         (_Error_formatter::_M_at): Rename in...
245         (_Error_formatter::_S_at): ...that and adapt.
246         * include/debug/macros.h (_GLIBCXX_DEBUG_VERIFY_AT_F): New.
247         (_GLIBCXX_DEBUG_VERIFY_AT, _GLIBCXX_DEBUG_VERIFY): Adapt.
248         * src/c++11/debug.cc (_Error_formatter::_M_error): Render _M_function
249         when available.
251 2018-05-08  Jonathan Wakely  <jwakely@redhat.com>
253         * include/bits/regex_automaton.h (_NFA_base::_M_paren_stack, _NFA):
254         Use normal std::vector even in Debug Mode.
256         PR libstdc++/85672
257         * include/Makefile.am [!ENABLE_FLOAT128]: Change c++config.h entry
258         to #undef _GLIBCXX_USE_FLOAT128 instead of defining it to zero.
259         * include/Makefile.in: Regenerate.
260         * include/bits/c++config (_GLIBCXX_USE_FLOAT128): Move definition
261         within conditional block.
263 2018-05-07  Jonathan Wakely  <jwakely@redhat.com>
265         * doc/xml/manual/using.xml (table.cmd_options): Document that the
266         C++17 Filesystem implementation also needs -lstdc++fs.
268         PR libstdc++/85671
269         * include/bits/fs_path.h (operator/): Permit copy elision.
270         * include/experimental/bits/fs_path.h (operator/): Likewise.
272 2018-05-07  Edward Smith-Rowland  <3dw4rd@verizon.net>
274         Moar PR libstdc++/80506
275         * include/bits/random.tcc (gamma_distribution::__generate_impl()):
276         Fix magic number used in loop condition.
278 2018-05-04  Jonathan Wakely  <jwakely@redhat.com>
280         PR libstdc++/85642 fix is_nothrow_default_constructible<optional<T>>
281         * include/std/optional (_Optional_payload): Add noexcept to default
282         constructor. Re-indent.
283         (_Optional_payload<_Tp, true, true, true>): Likewise. Add noexcept to
284         constructor for copying disengaged payloads.
285         (_Optional_payload<_Tp, true, false, true>): Likewise.
286         (_Optional_payload<_Tp, true, true, false>): Likewise.
287         (_Optional_payload<_Tp, true, false, false>): Likewise.
288         * testsuite/20_util/optional/cons/85642.cc: New.
289         * testsuite/20_util/optional/cons/value_neg.cc: Adjust dg-error lines.
291 2018-05-03  Jonathan Wakely  <jwakely@redhat.com>
293         PR libstdc++/82644
294         * include/tr1/cmath [__STRICT_ANSI__] (hypergf, hypergl, hyperg): Use
295         inline definitions instead of using-declarations.
296         [__STRICT_ANSI__] (conf_hypergf, conf_hypergl, conf_hyperg): Likewise.
297         * testsuite/tr1/5_numerical_facilities/special_functions/
298         07_conf_hyperg/compile_cxx17.cc: New.
299         * testsuite/tr1/5_numerical_facilities/special_functions/
300         17_hyperg/compile_cxx17.cc: New.
302         PR libstdc++/84769
303         * include/std/variant (visit): Qualify std::get call.
305         PR libstdc++/85632 use uintmax_t for arithmetic
306         * src/filesystem/ops.cc (experimental::filesystem::space): Perform
307         arithmetic in result type.
308         * src/filesystem/std-ops.cc (filesystem::space): Likewise.
309         * testsuite/27_io/filesystem/operations/space.cc: Check total capacity
310         is greater than free space.
311         * testsuite/experimental/filesystem/operations/space.cc: New.
313         * testsuite/20_util/remove_cvref/requirements/alias_decl.cc: New.
314         * testsuite/20_util/remove_cvref/requirements/explicit_instantiation.cc:
315         New.
316         * testsuite/20_util/remove_cvref/value.cc: New.
317         * testsuite/20_util/remove_cvref/value_ext.cc: New.
319         PR libstdc++/84087 LWG DR 2268 basic_string default arguments
320         * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI=1]
321         (append(const basic_string&, size_type, size_type)
322         (assign(const basic_string&, size_type, size_type)
323         (insert(size_type, const basic_string&, size_type, size_type)
324         (replace(size_type,size_type,const basic_string&,size_type,size_type)
325         (compare(size_type,size_type,constbasic_string&,size_type,size_type)):
326         Add default arguments (LWG 2268).
327         [_GLIBCXX_USE_CXX11_ABI=0]
328         (append(const basic_string&, size_type, size_type)
329         (assign(const basic_string&, size_type, size_type)
330         (insert(size_type, const basic_string&, size_type, size_type)
331         (replace(size_type,size_type,const basic_string&,size_type,size_type)
332         (compare(size_type,size_type,constbasic_string&,size_type,size_type)):
333         Likewise.
334         * testsuite/21_strings/basic_string/dr2268.cc: New test.
336         PR libstdc++/84535
337         * include/std/thread (thread::__not_same): New SFINAE helper.
338         (thread::thread(_Callable&&, _Args&&...)): Add SFINAE constraint that
339         first argument is not a std::thread. Add static assertion to check
340         INVOKE expression is valid.
341         (thread::thread(thread&), thread::thread(const thread&&)): Remove.
342         (thread::_Invoke::_M_invoke, thread::_Invoke::operator()): Use
343         __invoke_result for return types and remove exception specifications.
344         * testsuite/30_threads/thread/cons/84535.cc: New.
346         * include/std/future (__async_result_of): Use __invoke_result instead
347         of result_of.
349         * include/std/any (any_cast): Use __remove_cvref_t.
350         * include/std/tuple (__make_tuple): Likewise.
351         * include/std/type_traits (__remove_cvref_t): Define.
352         (__result_of_memobj, __result_of_memfun): Use __remove_cvref_t.
353         [__cplusplus > 201703L] (remove_cvref, remove_cvref_t): Define.
354         * include/std/variant (__erased_hash): Use __remove_cvref_t.
356 2018-05-02  François Dumont  <fdumont@gcc.gnu.org>
358         * include/bits/deque.tcc (deque<>::_M_assign_aux): Cast to void to
359         ensure overloaded comma not used.
360         * include/bits/list.tcc (list<>::_M_assign_dispatch): Likewise.
361         * include/bits/vector.tcc (vector<>::_M_assign_aux): Likewise.
362         * include/bits/stl_bvector.h (vector<bool>::_M_assign_aux): Likewise.
363         * testsuite/23_containers/deque/modifiers/assign/1.cc: New.
364         * testsuite/23_containers/list/modifiers/assign/1.cc: New.
365         * testsuite/23_containers/vector/bool/modifiers/assign/1.cc: New.
366         * testsuite/23_containers/vector/modifiers/assign/1.cc: New.
368 2018-05-02  Jonathan Wakely  <jwakely@redhat.com>
370         PR libstdc++/68197
371         * include/bits/ios_base.h (ios_base::iword, ios_base::pword): Cast
372         indices to unsigned.
373         * src/c++11/ios.cc (ios_base::_M_grow_words): Treat negative indices
374         as failure. Refactor error handling.
375         * testsuite/27_io/ios_base/storage/68197.cc: New.
377         PR libstdc++/57997
378         PR libstdc++/83860
379         * include/bits/gslice_array.h (gslice_array): Define default
380         constructor as deleted, as per C++11 standard.
381         * include/bits/mask_array.h (mask_array): Likewise.
382         * include/bits/slice_array.h (slice_array): Likewise.
383         * include/bits/valarray_after.h (_GBase, _GClos, _IBase, _IClos): Move
384         to namespace __detail.
385         (_GBase::_M_expr, _IBase::_M_expr): Use _ValArrayRef for type of data
386         members.
387         * include/bits/valarray_before.h (_ValArrayRef): New helper for type
388         of data members in closure objects.
389         (_FunBase, _ValFunClos, _RefFunClos, _UnBase, _UnClos, _BinBase)
390         (_BinBase2, _BinBase1, _BinClos, _SBase, _SClos): Move to namespace
391         __detail.
392         (_FunBase::_M_expr, _UnBase::_M_expr, _BinBase::_M_expr1)
393         (_BinBase::_M_expr2, _BinBase2::_M_expr1, _BinBase1::_M_expr2)
394         (_SBase::_M_expr): Use _ValArrayRef for type of data members.
395         * include/std/valarray (_UnClos, _BinClos, _SClos, _GClos, _IClos)
396         (_ValFunClos, _RefFunClos): Move to namespace __detail and add
397         using-declarations to namespace std.
398         * testsuite/26_numerics/valarray/83860.cc: New.
400         * testsuite/backward/strstream_move.cc: Remove duplicate function
401         call.
403         PR libstdc++/69608
404         * include/backward/strstream (strstreambuf): Define move constructor
405         and move assignment operator.
406         (istrstream, ostrstream, strstream): Likewise.
407         * testsuite/backward/strstream_move.cc: New.
409 2018-05-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
411         PR libstdc++/84654
412         * acinclude.m4: Set ENABLE_FLOAT128 instead of _GLIBCXX_USE_FLOAT128.
413         * config.h.in: Remove references to _GLIBCXX_USE_FLOAT128.
414         * configure: Regenerate.
415         * include/Makefile.am: Replace the value of _GLIBCXX_USE_FLOAT128
416         based on ENABLE_FLOAT128.
417         * include/Makefile.in: Regenerate.
418         * include/bits/c++config: Define _GLIBCXX_USE_FLOAT128.
419         [!defined(__FLOAT128__) && !defined(__SIZEOF_FLOAT128__)]: Undefine
420         _GLIBCXX_USE_FLOAT128.
422 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
424         * configure: Regenerated.
426 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
428         * configure: Regenerated.
430 2018-04-18  Jonathan Wakely  <jwakely@redhat.com>
431             Jakub Jelinek  <jakub@redhat.com>
433         PR libstdc++/85442
434         * src/c++11/Makefile.am: Don't generate debuginfo again for
435         cxx11-ios_failure-lt.s and cxx11-ios_failure.s files.
436         * src/c++11/Makefile.in: Regenerate.
438 2018-04-18  Jonathan Wakely  <jwakely@redhat.com>
440         PR libstdc++/84442
441         * testsuite/30_threads/thread/cons/terminate.cc
442         [!_GLIBCXX_USE_C99_STDLIB] : Use _exit or std::exit instead of _Exit.
444 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
446         PR jit/85384
447         * configure: Regenerate.
449 2018-04-16  Jonathan Wakely  <jwakely@redhat.com>
451         * testsuite/experimental/filesystem/file_status/1.cc: Add
452         -DUSE_FILESYSTEM_TS to dg-options.
453         * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
454         Likewise.
455         * testsuite/experimental/filesystem/iterators/pop.cc: Likewise.
456         * testsuite/experimental/filesystem/iterators/
457         recursive_directory_iterator.cc: Likewise.
458         * testsuite/experimental/filesystem/operations/absolute.cc: Likewise.
459         * testsuite/experimental/filesystem/operations/canonical.cc: Likewise.
460         * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
461         * testsuite/experimental/filesystem/operations/copy_file.cc: Likewise.
462         * testsuite/experimental/filesystem/operations/create_directories.cc:
463         Likewise.
464         * testsuite/experimental/filesystem/operations/create_directory.cc:
465         Likewise.
466         * testsuite/experimental/filesystem/operations/create_symlink.cc:
467         Likewise.
468         * testsuite/experimental/filesystem/operations/current_path.cc:
469         Likewise.
470         * testsuite/experimental/filesystem/operations/equivalent.cc: Likewise.
471         * testsuite/experimental/filesystem/operations/exists.cc: Likewise.
472         * testsuite/experimental/filesystem/operations/file_size.cc: Likewise.
473         * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise.
474         * testsuite/experimental/filesystem/operations/last_write_time.cc:
475         Likewise.
476         * testsuite/experimental/filesystem/operations/permissions.cc:
477         Likewise.
478         * testsuite/experimental/filesystem/operations/read_symlink.cc:
479         Likewise.
480         * testsuite/experimental/filesystem/operations/remove.cc: Likewise.
481         * testsuite/experimental/filesystem/operations/remove_all.cc: Likewise.
482         * testsuite/experimental/filesystem/operations/status.cc: Likewise.
483         * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
484         Likewise.
485         * testsuite/experimental/filesystem/path/append/path.cc: Likewise.
486         * testsuite/experimental/filesystem/path/assign/assign.cc: Likewise.
487         * testsuite/experimental/filesystem/path/assign/copy.cc: Likewise.
488         * testsuite/experimental/filesystem/path/compare/compare.cc: Likewise.
489         * testsuite/experimental/filesystem/path/compare/path.cc: Likewise.
490         * testsuite/experimental/filesystem/path/compare/strings.cc: Likewise.
491         * testsuite/experimental/filesystem/path/concat/path.cc: Likewise.
492         * testsuite/experimental/filesystem/path/concat/strings.cc: Likewise.
493         * testsuite/experimental/filesystem/path/construct/copy.cc: Likewise.
494         * testsuite/experimental/filesystem/path/construct/default.cc:
495         Likewise.
496         * testsuite/experimental/filesystem/path/construct/locale.cc: Likewise.
497         * testsuite/experimental/filesystem/path/construct/range.cc: Likewise.
498         * testsuite/experimental/filesystem/path/construct/string_view.cc:
499         Likewise.
500         * testsuite/experimental/filesystem/path/decompose/extension.cc:
501         Likewise.
502         * testsuite/experimental/filesystem/path/decompose/filename.cc:
503         Likewise.
504         * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
505         Likewise.
506         * testsuite/experimental/filesystem/path/decompose/relative_path.cc:
507         Likewise.
508         * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
509         Likewise.
510         * testsuite/experimental/filesystem/path/decompose/root_name.cc:
511         Likewise.
512         * testsuite/experimental/filesystem/path/decompose/root_path.cc:
513         Likewise.
514         * testsuite/experimental/filesystem/path/decompose/stem.cc: Likewise.
515         * testsuite/experimental/filesystem/path/generic/generic_string.cc:
516         Likewise.
517         * testsuite/experimental/filesystem/path/itr/traversal.cc: Likewise.
518         * testsuite/experimental/filesystem/path/modifiers/clear.cc: Likewise.
519         * testsuite/experimental/filesystem/path/modifiers/make_preferred.cc:
520         Likewise.
521         * testsuite/experimental/filesystem/path/modifiers/remove_filename.cc:
522         Likewise.
523         * testsuite/experimental/filesystem/path/modifiers/replace_extension.cc:
524         Likewise.
525         * testsuite/experimental/filesystem/path/modifiers/replace_filename.cc:
526         Likewise.
527         * testsuite/experimental/filesystem/path/modifiers/swap.cc: Likewise.
528         * testsuite/experimental/filesystem/path/native/string.cc: Likewise.
529         * testsuite/experimental/filesystem/path/nonmember/hash_value.cc:
530         Likewise.
531         * testsuite/experimental/filesystem/path/query/empty.cc: Likewise.
532         * testsuite/experimental/filesystem/path/query/has_extension.cc:
533         Likewise.
534         * testsuite/experimental/filesystem/path/query/has_filename.cc:
535         Likewise.
536         * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
537         Likewise.
538         * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
539         Likewise.
540         * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
541         Likewise.
542         * testsuite/experimental/filesystem/path/query/has_root_name.cc:
543         Likewise.
544         * testsuite/experimental/filesystem/path/query/has_root_path.cc:
545         Likewise.
546         * testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise.
547         * testsuite/experimental/filesystem/path/query/is_relative.cc:
548         Likewise.
550 2018-04-13  Jonathan Wakely  <jwakely@redhat.com>
552         * src/c++11/Makefile.am: Fix sed command.
553         * src/c++11/Makefile.in: Regenerate.
555         * src/c++11/Makefile.am: Rewrite sed rule to be less fragile and to
556         handle mangled names starting with double underscores on darwin.
557         * src/c++11/Makefile.in: Regenerate.
559 2018-04-12  Jonathan Wakely  <jwakely@redhat.com>
561         * src/c++11/Makefile.am: Fix comment.
562         * src/c++11/Makefile.in: Regenerate.
563         * src/c++11/cxx11-ios_failure.cc: Fix comment.
564         * src/c++98/ios_failure.cc: Likewise.
566         * src/c++11/ios.cc: Remove redundant macro definition.
568 2018-04-11  Jonathan Wakely  <jwakely@redhat.com>
570         * doc/xml/manual/abi.xml: Document header locations in recent
571         releases.
572         * doc/xml/manual/evolution.xml: Add API changes since GCC 5.
573         * doc/xml/manual/spine.xml: Update copyright years.
574         * doc/xml/manual/strings.xml: Adjust tolower example to avoid
575         undefined behaviour.
576         * doc/xml/manual/test.xml: Update outdated notes on VERIFY in tests.
577         * doc/html/*: Regenerate.
579 2018-04-10  Jonathan Wakely  <jwakely@redhat.com>
581         * doc/xml/faq.xml: Update links to archived copy of SGI STL docs.
582         * doc/xml/manual/backwards_compatibility.xml: Likewise.
583         * doc/xml/manual/containers.xml: Likewise.
584         * doc/xml/manual/debug_mode.xml: Likewise.
585         * doc/xml/manual/extensions.xml: Likewise.
586         * doc/xml/manual/policy_data_structures_biblio.xml: Likewise.
587         * doc/xml/manual/using.xml: Likewise.
588         * doc/xml/manual/utilities.xml: Likewise.
590         PR libstdc++/85222
591         * src/c++11/Makefile.am [ENABLE_DUAL_ABI]: Add special rules for
592         cxx11-ios_failure.cc to rewrite type info for __ios_failure.
593         * src/c++11/Makefile.in: Regenerate.
594         * src/c++11/cxx11-ios_failure.cc (__ios_failure, __iosfail_type_info):
595         New types.
596         [_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here.
597         * src/c++11/ios.cc (__throw_ios_failure): Remove definition.
598         * src/c++98/ios_failure.cc (__construct_ios_failure)
599         (__destroy_ios_failure, is_ios_failure_handler): New functions.
600         [!_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here.
601         * testsuite/27_io/ios_base/failure/dual_abi.cc: New.
602         * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Revert changes to
603         handler types, to always catch std::ios_base::failure.
604         * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
605         * testsuite/27_io/basic_istream/extractors_arithmetic/char/
606         exceptions_failbit.cc: Likewise.
607         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
608         exceptions_failbit.cc: Likewise.
609         * testsuite/27_io/basic_istream/extractors_other/char/
610         exceptions_null.cc: Likewise.
611         * testsuite/27_io/basic_istream/extractors_other/wchar_t/
612         exceptions_null.cc: Likewise.
613         * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
614         * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
615         * testsuite/27_io/basic_ostream/inserters_other/char/
616         exceptions_null.cc: Likewise.
617         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
618         exceptions_null.cc: Likewise.
619         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
621 2018-04-05  Jonathan Wakely  <jwakely@redhat.com>
623         * include/std/variant (_VARIANT_RELATION_FUNCTION_TEMPLATE): Qualify
624         __get calls to avoid ADL and avoid ambiguity due to Clang bug.
626 2018-04-03  Jonathan Wakely  <jwakely@redhat.com>
628         PR libstdc++/85183
629         * include/std/variant (_Move_assign_base::operator=): Fix incorrect
630         value categories.
631         * testsuite/20_util/variant/85183.cc: New.
633 2018-03-26  Jonathan Wakely  <jwakely@redhat.com>
635         * include/std/variant (__get): Qualify calls to avoid ADL.
636         (__select_index): Adjust whitespace.
637         (variant): Add using-declaration to workaround Clang bug.
639 2018-03-22  Jonathan Wakely  <jwakely@redhat.com>
641         PR libstdc++/85040
642         * include/bits/stl_function.h (greater::__not_overloaded)
643         (less::__not_overloaded, greater_equal::__not_overloaded)
644         (less_equal::__not_overloaded): Fix ambiguous specializations.
645         * testsuite/20_util/function_objects/comparisons_pointer.cc: Add
646         tests for type with overloaded operators.
648 2018-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
650         PR libstdc++/77691
651         * testsuite/experimental/memory_resource/resource_adaptor.cc:
652         xfail execution on 32-bit Solaris/x86.
654 2018-03-21  Jonathan Wakely  <jwakely@redhat.com>
656         * testsuite/20_util/function_objects/comparisons_pointer.cc: Use
657         VERIFY instead of assert.
658         * testsuite/20_util/hash/84998.cc: New test.
659         * testsuite/23_containers/vector/cons/destructible_debug_neg.cc: New
660         copy of test adjusted for Debug Mode.
661         * testsuite/23_containers/vector/cons/destructible_neg.cc: Do not run
662         test in Debug Mode.
664 2018-03-20  François Dumont  <fdumont@gcc.gnu.org>
666         PR libstdc++/84998
667         * include/bits/stl_bvector.h: Fix std::hash friend declaration.
668         * include/std/bitset: Likewise.
669         * include/bits/stl_map.h (std::map<>): Fix _Rb_tree_merge_helper friend
670         declaration.
671         * include/bits/stl_multimap.h (std::multimap<>): Likewise.
672         * include/bits/stl_multiset.h (std::multiset<>): Likewise.
673         * include/bits/stl_set.h (std::set<>): Likewise.
674         * include/bits/unordered_map.h (std::unordered_map<>): Fix
675         _Hash_merge_helper friend declaration.
676         (std::unordered_multimap<>): Likewise.
677         * include/bits/unordered_set.h (std::unordered_set<>): Likewise.
678         (std::unordered_multiset<>): Likewise.
680 2018-03-19  Gerald Pfeifer  <gerald@pfeifer.com>
682         * doc/xml/api.xml: www.fsf.org has moved to https. Also omit
683         trailing slash for domain level link.
684         * doc/xml/faq.xml: Ditto.
685         * doc/xml/manual/appendix_free.xml (software): Ditto.
686         * doc/xml/manual/intro.xml: Ditto.
687         * doc/xml/manual/spine.xml: Ditto.
688         * doc/xml/spine.xml: Ditto.
690 2018-03-19  Gerald Pfeifer  <gerald@pfeifer.com>
692         * doc/xml/manual/documentation_hacking.xml: Adjust link to
693         docbook.org.
695 2018-03-17  Jonathan Wakely  <jwakely@redhat.com>
697         * testsuite/20_util/function_objects/comparisons_pointer.cc: Adjust
698         to compile as C++98.
700 2018-03-14  Jonathan Wakely  <jwakely@redhat.com>
702         PR libstdc++/78420
703         * include/bits/stl_function.h (greater<_Tp*>, less<_Tp*>)
704         (greater_equal<_Tp*>, less_equal<_Tp>*): Add partial specializations
705         to ensure total order for pointers.
706         (greater<void>, less<void>, greater_equal<void>, less_equal<void>):
707         Add operator() overloads for pointer arguments and make generic
708         overloads dispatch to new _S_cmp functions when comparisons would
709         use built-in operators for pointers.
710         * testsuite/20_util/function_objects/comparisons_pointer.cc: New.
712 2018-03-12  Jonathan Wakely  <jwakely@redhat.com>
714         PR libstdc++/84773
715         PR libstdc++/83662
716         * crossconfig.m4: Check for aligned_alloc etc. on freebsd and mingw32.
717         * configure: Regenerate.
718         * include/c_global/cstdlib [_GLIBCXX_HAVE_ALIGNED_ALLOC]
719         (aligned_alloc): Add using-declaration.
720         * testsuite/18_support/aligned_alloc/aligned_alloc.cc: New test.
722 2018-03-09  François Dumont  <fdumont@gcc.gnu.org>
724         * python/libstdcxx/v6/printers.py (build_libstdcxx_dictionary):
725         Fix std::_Fwd_list_iterator and std::_Fwd_list_const_iterator printers
726         registration.
728 2018-03-09  Jonathan Wakely  <jwakely@redhat.com>
730         PR libstdc++/84769
731         * include/std/variant (get<_Tp, _Types...>, get_if<_Tp, _Types...>):
732         Qualify calls to get<_Np, Types...> and get_if<_Np, _Types...>.
734         src/filesystem/ops.cc (create_dir): Pass error_code to is_directory.
735         src/filesystem/std-ops.cc (create_dir): Likewise.
737 2018-03-08  François Dumont  <fdumont@gcc.gnu.org>
739         * python/libstdcxx/v6/printers.py (NodeIteratorPrinter): New.
740         (StdListIteratorPrinter): Inherit from latter.
741         (StdFwdListIteratorPrinter): New, inherit from latter.
742         (StdDebugIteratorPrinter.to_string): Use non-debug iterator printer
743         when iterator has no associated container.
744         (build_libstdcxx_dictionary): Add __gnu_cxx::_Fwd_list_iterator and
745         __gnu_cxx::_Fwd_list_const_iterator printers. Remove __norm namespace
746         registrations.
747         * testsuite/libstdc++-prettyprinters/debug.cc: Adapt.
748         * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Adapt.
750 2018-03-06  Ville Voutilainen  <ville.voutilainen@gmail.com>
752         PR libstdc++/84601
753         * include/std/optional (_Optional_payload): Split into multiple
754         specializations that can handle different cases of trivial or
755         non-trivial assignment operators.
756         * testsuite/20_util/optional/84601.cc: New.
757         * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
759 2018-03-02  Jonathan Wakely  <jwakely@redhat.com>
761         PR libstdc++/84671
762         * include/bits/parse_numbers.h (_Number_help): Add partial
763         specialization to handle digit separators. Adjust partial
764         specialization for recursion temrination to require _Pow == 1ULL.
765         * testsuite/20_util/duration/literals/84671.cc: New
767 2018-02-27  Ville Voutilainen  <ville.voutilainen@gmail.com>
769         Implement the missing bits of LWG 2769
770         * include/std/any (any_cast(const any&)): Add static_assert.
771         (any_cast(any&)): Likewise.
772         (any_cast(any&&)): Likewise, and remove the handling
773         for copyable-but-not-movable type.
774         * testsuite/20_util/any/misc/any_cast.cc: Adjust.
775         * testsuite/20_util/any/misc/any_cast_neg.cc: Likewise, and
776         add new tests.
778 2018-02-23  Jonathan Wakely  <jwakely@redhat.com>
780         PR libstdc++/84532
781         * include/std/thread (thread::__make_invoker): Construct tuple
782         directly instead of using make_tuple.
783         * testsuite/30_threads/async/84532.cc: New.
784         * testsuite/30_threads/thread/84532.cc: New.
786 2018-02-20  François Dumont  <fdumont@gcc.gnu.org>
788         * include/ext/aligned_buffer.h [_GLIBCXX_INLINE_VERSION]
789         (template<> __aligned_buffer): Define as __aligned_membuf alias.
791 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
793         PR target/84148
794         * configure: Regenerate.
796 2018-02-15  Jonathan Wakely  <jwakely@redhat.com>
798         PR libstdc++/81797
799         * configure.ac (INCLUDE_DIR_NOTPARALLEL): Define.
800         * configure: Regenerate.
801         * include/Makefile.am (INCLUDE_DIR_NOTPARALLEL): Add .NOTPARALLEL when
802         defined.
803         * include/Makefile.in: Regenerate.
805 2018-01-29  Jonathan Wakely  <jwakely@redhat.com>
807         PR libstdc++/83833
808         * testsuite/26_numerics/random/chi_squared_distribution/83833.cc:
809         Add -ffloat-store to options for m68k and ia32.
811         * doc/xml/faq.xml: Update copyright years.
812         * doc/html/*: Regenerate.
814         PR libstdc++/83658
815         * include/std/any (any::__do_emplace): Only set _M_manager after
816         constructing the contained object.
817         * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust dg-error line.
818         * testsuite/20_util/any/modifiers/83658.cc: New test.
820 2018-01-25  Jonathan Wakely  <jwakely@redhat.com>
822         PR libstdc++/81076
823         * include/c_global/cstddef (__byte_operand): Define primary template.
824         * testsuite/18_support/byte/81076.cc: New test.
826 2018-01-19  Christophe Lyon  <christophe.lyon@linaro.org>
828         * testsuite/ext/special_functions/airy_ai/check_nan.cc: Fix
829         dg-options and dg-add-options order.
830         * testsuite/ext/special_functions/airy_bi/check_nan.cc: Likewise.
831         * testsuite/ext/special_functions/conf_hyperg/check_nan.cc:
832         Likewise.
833         * testsuite/ext/special_functions/hyperg/check_nan.cc: Likewise.
834         * testsuite/special_functions/01_assoc_laguerre/check_nan.cc:
835         Likewise.
836         * testsuite/special_functions/02_assoc_legendre/check_nan.cc:
837         Likewise.
838         * testsuite/special_functions/03_beta/check_nan.cc: Likewise.
839         * testsuite/special_functions/04_comp_ellint_1/check_nan.cc:
840         Likewise.
841         * testsuite/special_functions/05_comp_ellint_2/check_nan.cc:
842         Likewise.
843         * testsuite/special_functions/06_comp_ellint_3/check_nan.cc:
844         Likewise.
845         * testsuite/special_functions/06_comp_ellint_3/pr66689.cc:
846         Likewise.
847         * testsuite/special_functions/07_cyl_bessel_i/check_nan.cc:
848         Likewise.
849         * testsuite/special_functions/08_cyl_bessel_j/check_nan.cc:
850         Likewise.
851         * testsuite/special_functions/09_cyl_bessel_k/check_nan.cc:
852         Likewise.
853         * testsuite/special_functions/10_cyl_neumann/check_nan.cc:
854         Likewise.
855         * testsuite/special_functions/11_ellint_1/check_nan.cc: Likewise.
856         * testsuite/special_functions/12_ellint_2/check_nan.cc: Likewise.
857         * testsuite/special_functions/13_ellint_3/check_nan.cc: Likewise.
858         * testsuite/special_functions/13_ellint_3/pr66689.cc: Likewise.
859         * testsuite/special_functions/14_expint/check_nan.cc: Likewise.
860         * testsuite/special_functions/15_hermite/check_nan.cc: Likewise.
861         * testsuite/special_functions/16_laguerre/check_nan.cc: Likewise.
862         * testsuite/special_functions/17_legendre/check_nan.cc: Likewise.
863         * testsuite/special_functions/18_riemann_zeta/check_nan.cc:
864         Likewise.
865         * testsuite/special_functions/19_sph_bessel/check_nan.cc:
866         Likewise.
867         * testsuite/special_functions/20_sph_legendre/check_nan.cc:
868         Likewise.
869         * testsuite/special_functions/21_sph_neumann/check_nan.cc:
870         Likewise.
872 2018-01-18  Uros Bizjak  <ubizjak@gmail.com>
874         * configure.ac (AC_CHECK_HEADERS): Add linux/types.h.  Conditionally
875         include linux/types.h when checking linux/random.h header.
876         * config.h.in: Regenerate.
877         * configure: Ditto.
878         * src/c++11/random.cc: Conditionally include linux/types.h.
880 2018-01-16  Eric Botcazou  <ebotcazou@adacore.com>
882         * testsuite/17_intro/names.cc: Undefine 'y' on SPARC/Linux.
884 2018-01-16  Jonathan Wakely  <jwakely@redhat.com>
886         PR libstdc++/83834
887         * config/abi/pre/gnu.ver (GLIBCXX_3.4): Replace std::c[a-g]* wildcard
888         pattern with exact match for std::cerr.
890 2018-01-15  Jonathan Wakely  <jwakely@redhat.com>
892         PR libstdc++/83833
893         * include/bits/random.h (chi_squared_distribution::param): Update
894         gamma distribution parameter.
895         * testsuite/26_numerics/random/chi_squared_distribution/83833.cc: New
896         test.
898         PR libstdc++/83830
899         * include/std/type_traits (has_unique_object_representations_v): Add
900         variable template.
901         * testsuite/20_util/has_unique_object_representations/value.cc: Check
902         variable template.
904 2018-01-15  Ville Voutilainen  <ville.voutilainen@gmail.com>
906         Make optional conditionally
907         trivially_{copy,move}_{constructible,assignable}
908         * include/std/optional (_Optional_payload): Fix the comment in
909         the class head and turn into a primary and one specialization.
910         (_Optional_payload::_M_engaged): Strike the NSDMI.
911         (_Optional_payload<_Tp, false>::operator=(const _Optional_payload&)):
912         New.
913         (_Optional_payload<_Tp, false>::operator=(_Optional_payload&&)):
914         Likewise.
915         (_Optional_payload<_Tp, false>::_M_get): Likewise.
916         (_Optional_payload<_Tp, false>::_M_reset): Likewise.
917         (_Optional_base_impl): Likewise.
918         (_Optional_base): Turn into a primary and three specializations.
919         (optional(nullopt)): Change the base init.
920         * testsuite/20_util/optional/assignment/8.cc: New.
921         * testsuite/20_util/optional/cons/trivial.cc: Likewise.
922         * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
924 2018-01-15  Jonathan Wakely  <jwakely@redhat.com>
926         PR libstdc++/80276
927         * python/libstdcxx/v6/printers.py (strip_inline_namespaces): New.
928         (get_template_arg_list): New.
929         (StdVariantPrinter._template_args): Remove, use get_template_arg_list
930         instead.
931         (TemplateTypePrinter): Rewrite to work with gdb.Type objects instead
932         of strings and regular expressions.
933         (add_one_template_type_printer): Adapt to new TemplateTypePrinter.
934         (FilteringTypePrinter): Add docstring. Match using startswith. Use
935         strip_inline_namespaces instead of strip_versioned_namespace.
936         (add_one_type_printer): Prepend namespace to match argument.
937         (register_type_printers): Add type printers for char16_t and char32_t
938         string types and for types using cxx11 ABI. Update calls to
939         add_one_template_type_printer to provide default argument dicts.
940         * testsuite/libstdc++-prettyprinters/80276.cc: New test.
941         * testsuite/libstdc++-prettyprinters/whatis.cc: Remove tests for
942         basic_string<unsigned char> and basic_string<signed char>.
943         * testsuite/libstdc++-prettyprinters/whatis2.cc: Duplicate whatis.cc
944         to test local variables, without overriding _GLIBCXX_USE_CXX11_ABI.
946 2018-01-14  Andreas Schwab  <schwab@linux-m68k.org>
948         PR libstdc++/81092
949         * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
951 2018-01-13  Tim Shen  <timshen@google.com>
953         PR libstdc++/83601
954         * include/bits/regex.tcc (regex_replace): Fix escaping in sed.
955         * testsuite/28_regex/algorithms/regex_replace/char/pr83601.cc: Tests.
956         * testsuite/28_regex/algorithms/regex_replace/wchar_t/pr83601.cc: Tests.
958 2018-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
960         PR libstdc++/64054
961         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc:
962         Remove dg-xfail-run-if.
964 2018-01-10  François Dumont  <fdumont@gcc.gnu.org>
966         * include/bits/forward_list.h
967         (_Fwd_list_node_base(_Fwd_list_node_base&&)): New.
968         (_Fwd_list_node_base& operator=(_Fwd_list_node_base&&)): New.
969         (_Fwd_list_node_base(const _Fwd_list_node_base&)): Explicit delete.
970         (_Fwd_list_node_base& operator=(const _Fwd_list_node_base&)): Likewise.
971         (_Fwd_list_impl()): Add noexcept qualification.
972         (_Fwd_list_impl(const _Node_alloc_type&)): Delete.
973         (_Fwd_list_impl(_Fwd_list_impl&&)): New, default.
974         (_Fwd_list_impl(_Fwd_list_impl&&, _Node_alloc_type&&)): New.
975         (_Fwd_list_base()): Default.
976         (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&, true_type)): New.
977         (_Fwd_list_base(_Fwd_list_base&&)): Default.
978         (forward_list<>()): Default.
979         (forward_list<>(forward_list&&)): Default.
980         (forward_list(forward_list&&, _Node_alloc_type&&, false_type)): New.
981         (forward_list(forward_list&&, _Node_alloc_type&&, true_type)): New.
982         (forward_list(forward_list&&, const _Alloc&)): Adapt to use latters.
983         * include/bits/forward_list.tcc
984         (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&)): Adapt to use
985         _M_impl._M_head move assignment.
986         (forward_list<>::merge(forward_list<>&&, _Comp)): Likewise.
987         * testsuite/23_containers/forward_list/allocator/default_init.cc: New.
989 2018-01-09  Jonathan Wakely  <jwakely@redhat.com>
991         PR libstdc++/80276
992         * python/libstdcxx/v6/printers.py (SharedPointerPrinter)
993         (UniquePointerPrinter): Print correct template argument, not type of
994         the pointer.
995         (TemplateTypePrinter._recognizer.recognize): Handle failure to lookup
996         a type.
997         * testsuite/libstdc++-prettyprinters/cxx11.cc: Test unique_ptr of
998         array type.
999         * testsuite/libstdc++-prettyprinters/cxx17.cc: Test shared_ptr and
1000         weak_ptr of array types.
1002 2018-01-09  François Dumont  <fdumont@gcc.gnu.org>
1004         PR libstdc++/83709
1005         * include/bits/hashtable_policy.h
1006         (__distance_fwd(_Iterator, _Iterator, input_iterator_tag)): Return 1 if
1007         __first != __last.
1008         (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, true_type)): New.
1009         (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, false_type)):
1010         Add false_type parameter.
1011         (_Insert_base::insert): Adapt.
1012         * include/bits/hashtable.h (_Hashtable::operator=(initializzr_list<>)):
1013         Adapt.
1014         (_Hashtable::_M_insert(_Arg&&, const _NodeGen&, true_type, size_t)):
1015          Add __n_elt parameter, defaulted to 1.
1016         (_Hashtable::_M_insert_unique_node): Likewise. Use it to call rehash
1017         policy _M_need_rehash.
1018         (_Hashtable::_M_merge_unique): Pass target number of elements to add to
1019         produce only 1 rehash if necessary.
1020         * testsuite/23_containers/unordered_map/insert/83709.cc: New.
1021         * testsuite/23_containers/unordered_set/insert/83709.cc: New.
1023 2018-01-09  Juraj Oršulić  <juraj.orsulic@fer.hr>
1024             Jonathan Wakely  <jwakely@redhat.com>
1026         PR libstdc++/59253 (partial)
1027         * python/libstdcxx/v6/printers.py (SmartPtrIterator): Common iterator
1028         type for pointer stored by shared_ptr, weak_ptr and unique_ptr.
1029         (SharedPointerPrinter, UniquePointerPrinter): Treat stored values as
1030         children.
1031         * testsuite/libstdc++-prettyprinters/cxx11.cc: Update expected output
1032         of unique_ptr printer.
1033         * testsuite/libstdc++-prettyprinters/shared_ptr.cc: Update expected
1034         output of shared_ptr printer.
1036 2018-01-05  Jonathan Wakely  <jwakely@redhat.com>
1038         PR libstdc++/83626
1039         * src/filesystem/ops.cc (remove(const path&, error_code&)): Remove
1040         unnecessary symlink_status call.
1041         (remove_all(const path&, error_code&)): Use filesystem::remove.
1042         * src/filesystem/std-ops.cc: Likewise.
1044         PR libstdc++/83279
1045         * src/filesystem/std-ops.cc  (do_copy_file): Use non-null offset with
1046         sendfile.
1048         PR libstdc++/83626
1049         * src/filesystem/ops.cc (remove(const path&, error_code&)): Do not
1050         report an error for ENOENT.
1051         (remove_all(const path&)): Fix type of result variable.
1052         (remove_all(const path&, error_code&)): Use non-throwing increment
1053         for directory iterator. Call POSIX remove directly to avoid redundant
1054         calls to symlink_status. Do not report errors for ENOENT.
1055         * src/filesystem/std-ops.cc: Likewise.
1056         * testsuite/27_io/filesystem/operations/remove_all.cc: Test throwing
1057         overload.
1058         * testsuite/experimental/filesystem/operations/remove_all.cc:
1059         Likewise.
1061 2018-01-04  Jonathan Wakely  <jwakely@redhat.com>
1063         PR libstdc++/83626
1064         * src/filesystem/ops.cc (remove(const path&, error_code&))): Remove
1065         redundant call to ec.clear().
1066         (remove_all(const path&, error_code&))): Do not return an error for
1067         non-existent paths.
1068         * src/filesystem/std-ops.cc: Likewise.
1069         * testsuite/27_io/filesystem/operations/remove.cc: New test.
1070         * testsuite/27_io/filesystem/operations/remove_all.cc: Fix expected
1071         results for non-existent paths.
1072         * testsuite/experimental/filesystem/operations/remove.cc: New test.
1073         * testsuite/experimental/filesystem/operations/remove_all.cc: Fix
1074         expected results for non-existent paths.
1076         * include/bits/fs_ops.h (exists(const path&, error_code&))): Only
1077         check status_known once.
1078         * include/experimental/bits/fs_ops.h: Likewise.
1080         PR libstdc++/83607
1081         * include/std/functional (__is_byte_like): New trait.
1082         (__is_std_equal_to): Remove.
1083         (__boyer_moore_base_t): Use __is_byte_like instead of
1084         __is_std_equal_to.
1085         * include/experimental/functional (__is_std_equal_to): Remove.
1086         (__boyer_moore_base_t): Use __is_byte_like instead of
1087         __is_std_equal_to.
1088         * testsuite/20_util/function_objects/83607.cc: New test.
1090 2018-01-03  Ville Voutilainen  <ville.voutilainen@gmail.com>
1092         Protect optional's deduction guide with the feature macro
1093         * include/std/optional: Use the feature macro.
1095 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
1097         Update copyright years.
1099 Copyright (C) 2018 Free Software Foundation, Inc.
1101 Copying and distribution of this file, with or without modification,
1102 are permitted in any medium without royalty provided the copyright
1103 notice and this notice are preserved.