1 2018-05-23 Jonathan Wakely <jwakely@redhat.com>
3 * include/bits/fs_path.h (path::_M_type): Change default member
4 initializer to _Filename.
5 (path::begin): Create past-the-end iterator for empty path.
6 * src/filesystem/std-path.cc (path::remove_filename()): Remove
8 (path::has_relative_path()): Return false for empty filenames.
9 (path::_M_split_cmpts): Set _M_type to _Filename for empty paths.
10 Fix offset of empty final component.
11 * testsuite/27_io/filesystem/path/itr/components.cc: New.
12 * testsuite/27_io/filesystem/path/itr/traversal.cc: Add new inputs.
14 2018-05-21 Jonathan Wakely <jwakely@redhat.com>
16 Add support for opening file streams from wide character strings.
17 * config/io/basic_file_stdio.cc [_GLIBCXX_HAVE__WFOPEN]
18 (__basic_file<char>::open(const wchar_t*, ios_base::openmode)):
20 * config/io/basic_file_stdio.h [_GLIBCXX_HAVE__WFOPEN]
21 (__basic_file<char>::open(const wchar_t*, ios_base::openmode)):
23 * configure.ac: Check for _wfopen.
24 * crossconfig.m4: Likewise.
25 * configure: Regenerate.
26 * config.h.in: Regenerate.
27 * include/bits/fstream.tcc [_GLIBCXX_HAVE__WFOPEN]
28 (basic_filebuf<C,T>::open(const wchar_t*, ios_base::openmode)):
30 * include/std/fstream [_GLIBCXX_HAVE__WFOPEN]
31 (basic_filebuf<C,T>::open(const wchar_t*, ios_base::openmode)):
33 [_GLIBCXX_HAVE__WFOPEN]
34 (basic_ifstream<C,T>::basic_ifstream(const wchar_t*, openmode))
35 (basic_ifstream<C,T>::basic_open(const wchar_t*, openmode))
36 (basic_ofstream<C,T>::basic_ifstream(const wchar_t*, openmode))
37 (basic_ofstream<C,T>::basic_open(const wchar_t*, openmode))
38 (basic_fstream<C,T>::basic_ifstream(const wchar_t*, openmode))
39 (basic_fstream<C,T>::basic_open(const wchar_t*, openmode)): Define
41 * testsuite/27_io/basic_filebuf/open/wchar_t/1.cc: New.
42 * testsuite/27_io/basic_ifstream/cons/wchar_t/1.cc: New.
43 * testsuite/27_io/basic_ifstream/open/wchar_t/1.cc: New.
44 * testsuite/27_io/basic_ofstream/cons/wchar_t/1.cc: New.
45 * testsuite/27_io/basic_ofstream/open/wchar_t/1.cc: New.
46 * testsuite/27_io/basic_fstream/cons/wchar_t/1.cc: New.
47 * testsuite/27_io/basic_fstream/open/wchar_t/1.cc: New.
49 2018-05-21 François Dumont <fdumont@gcc.gnu.org>
52 * include/bits/stl_tree.h
53 (_Rb_tree_impl(_Rb_tree_impl&&, _Node_allocator&&)): Fix noexcept
56 2018-05-21 Jonathan Wakely <jwakely@redhat.com>
58 * src/filesystem/std-ops.cc (absolute): Report an error for empty
60 (weakly_canonical(const path&)): Do not call canonical on empty path.
61 (weakly_canonical(const path&, error_code&)): Likewise.
62 * testsuite/27_io/filesystem/operations/absolute.cc: Check for errors.
65 * testsuite/experimental/filesystem/path/preferred_separator.cc: Add
66 dg-require-filesystem-ts.
69 * src/c++11/cow-stdexcept.cc (logic_error, runtime_error): Explicitly
70 initialize base class to avoid warnings.
72 2018-05-19 Jonathan Wakely <jwakely@redhat.com>
74 * src/c++11/codecvt.cc (__codecvt_utf8_base<wchar_t>::do_in)
75 [__SIZEOF_WCHAR_T__==2 && __BYTE_ORDER__!=__ORDER_BIG_ENDIAN__]: Set
76 little_endian element in bitmask.
77 * testsuite/22_locale/codecvt/codecvt_utf8/69703.cc: Run all tests.
78 * testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc: New.
80 2018-05-18 François Dumont <fdumont@gcc.gnu.org>
82 * include/bits/stl_tree.h
83 (_Rb_tree_impl(_Rb_tree_impl&&, _Node_allocator&&)): New.
84 (_Rb_tree(_Rb_tree&&, _Node_allocator&&, true_type)): New, use latter.
85 (_Rb_tree(_Rb_tree&&, _Node_allocator&&, false_type)): New.
86 (_Rb_tree(_Rb_tree&&, _Node_allocator&&)): Adapt, use latters.
88 (map(map&&, const_allocator_type&)): Add noexcept qualitication.
89 * include/debug/multimap.h
90 (multimap(multimap&&, const_allocator_type&)): Likewise.
92 (set(set&&, const_allocator_type&)): Likewise.
93 * include/debug/multiset.h
94 (multiset(multiset&&, const_allocator_type&)): Likewise.
95 * testsuite/23_containers/map/cons/noexcept_default_construct.cc:
97 * testsuite/23_containers/map/cons/noexcept_move_construct.cc:
99 * testsuite/23_containers/multimap/cons/noexcept_default_construct.cc:
101 * testsuite/23_containers/multimap/cons/noexcept_move_construct.cc:
103 * testsuite/23_containers/multiset/cons/noexcept_default_construct.cc:
105 * testsuite/23_containers/multiset/cons/noexcept_move_construct.cc:
107 * testsuite/23_containers/set/cons/noexcept_default_construct.cc:
109 * testsuite/23_containers/set/cons/noexcept_move_construct.cc:
112 2018-05-18 Jason Merrill <jason@redhat.com>
114 * include/bits/stl_deque.h (_Deque_iterator): Constrain constructor
115 for conversion to const_iterator. Add defaulted copy ops.
116 * libsupc++/new (bad_alloc): Add defaulted copy ops.
117 * libsupc++/exception.h (exception): Add defaulted copy ops.
118 * include/std/system_error (system_error): Add defaulted copy ops.
119 * include/std/stdexcept (domain_error, invalid_argument)
120 (length_error, out_of_range, range_error, overflow_error)
121 (underflow_error): Add defaulted copy ops.
122 * include/bits/stl_iterator.h (reverse_iterator): Add defaulted
124 * include/bits/allocator.h (allocator): Add defaulted copy assignment.
125 * include/ext/throw_allocator.h (condition_base): Add defaulted
126 default and copy ctor and copy assignment.
128 2018-05-18 Jonathan Wakely <jwakely@redhat.com>
131 * include/bits/regex.h [__cplusplus < 201703L] (basic_regex::icase)
132 (basic_regex::nosubs, basic_regex::optimize, basic_regex::collate)
133 (basic_regex::ECMAScript, basic_regex::basic, basic_regex::extended)
134 (basic_regex::awk, basic_regex::grep, basic_regex::egrep): Add
136 * include/bits/regex_automaton.h (_NFA::_M_insert_state): Adjust
138 * include/bits/regex_compiler.tcc (__INSERT_REGEX_MATCHER): Add
139 braces around body of do-while.
140 * testsuite/28_regex/basic_regex/85098.cc: New
142 2018-05-17 Jonathan Wakely <jwakely@redhat.com>
145 * src/filesystem/path.cc (path::preferred_separator): Add used
147 * testsuite/experimental/filesystem/path/preferred_separator.cc: New.
150 * libsupc++/cxxabi_init_exception.h (__cxa_free_exception): Declare.
151 * libsupc++/exception_ptr.h (make_exception_ptr) [__cpp_exceptions]:
152 Refactor to separate non-throwing and throwing implementations.
153 [__cpp_rtti && !_GLIBCXX_HAVE_CDTOR_CALLABI]: Deallocate the memory
154 if constructing the object throws.
156 2018-05-15 Jonathan Wakely <jwakely@redhat.com>
159 * include/bits/random.h (__detail::__is_seed_seq): New SFINAE helper.
160 (linear_congruential_engine, mersenne_twister_engine)
161 (subtract_with_carry_engine, discard_block_engine)
162 (independent_bits_engine, shuffle_order_engine): Use __is_seed_seq to
163 constrain function templates taking seed sequences.
164 * include/bits/random.tcc (linear_congruential_engine::seed(_Sseq&))
165 (mersenne_twister_engine::seed(_Sseq&))
166 (subtract_with_carry_engine::seed(_Sseq&)): Change return types to
168 * include/ext/random (simd_fast_mersenne_twister_engine): Use
169 __is_seed_seq to constrain function templates taking seed sequences.
170 * include/ext/random.tcc (simd_fast_mersenne_twister_engine::seed):
171 Change return type to match declaration.
172 * testsuite/26_numerics/random/discard_block_engine/cons/seed_seq2.cc:
174 * testsuite/26_numerics/random/independent_bits_engine/cons/
176 * testsuite/26_numerics/random/linear_congruential_engine/cons/
178 * testsuite/26_numerics/random/mersenne_twister_engine/cons/
180 * testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error lineno.
181 * testsuite/26_numerics/random/shuffle_order_engine/cons/seed_seq2.cc:
183 * testsuite/26_numerics/random/subtract_with_carry_engine/cons/
185 * testsuite/ext/random/simd_fast_mersenne_twister_engine/cons/
189 * include/bits/fs_path.h (path::is_absolute()): Use same definition
190 for all operating systems.
191 * include/experimental/bits/fs_path.h (path::is_absolute()): Likewise.
192 * testsuite/27_io/filesystem/path/query/is_absolute.cc: New.
193 * testsuite/27_io/filesystem/path/query/is_relative.cc: Fix comment.
194 * testsuite/experimental/filesystem/path/query/is_absolute.cc: New.
196 * testsuite/27_io/filesystem/path/decompose/extension.cc: Remove
197 unused <vector> header.
198 * testsuite/27_io/filesystem/path/query/empty.cc: Likewise.
199 * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise.
200 * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise.
201 * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise.
202 * testsuite/27_io/filesystem/path/query/has_relative_path.cc:
204 * testsuite/27_io/filesystem/path/query/has_root_directory.cc:
206 * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise.
207 * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise.
208 * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise.
209 * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise.
210 * testsuite/experimental/filesystem/path/decompose/extension.cc:
212 * testsuite/experimental/filesystem/path/query/empty.cc: Likewise.
213 * testsuite/experimental/filesystem/path/query/has_extension.cc:
215 * testsuite/experimental/filesystem/path/query/has_filename.cc:
217 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
219 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
221 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
223 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
225 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
227 * testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise.
228 * testsuite/experimental/filesystem/path/query/is_relative.cc:
232 * include/bits/fs_path.h (path::operator/=, path::append): Construct
233 temporary path before calling _M_append.
234 (path::_M_append): Change parameter to path and implement C++17
236 * testsuite/27_io/filesystem/path/append/path.cc: Add helper function
237 and more examples from the standard.
238 * testsuite/27_io/filesystem/path/append/source.cc: New.
239 * testsuite/27_io/filesystem/path/decompose/filename.cc: Add comment.
240 * testsuite/27_io/filesystem/path/nonmember/append.cc: New.
242 * include/std/variant (__gen_vtable_impl::__visit_invoke): Qualify
243 __invoke to prevent ADL.
245 2018-05-14 Jonathan Wakely <jwakely@redhat.com>
248 * include/bits/fstream.tcc (basic_filebuf::close): Do not swallow
249 exceptions from _M_terminate_output().
250 * include/std/fstream (basic_filebuf::~basic_filebuf): Swallow any
251 exceptions from close().
252 * testsuite/27_io/basic_filebuf/close/81256.cc: New.
254 * include/bits/valarray_array.h (__valarray_get_memory): Remove.
255 (__valarray_get_storage): Call operator new directly. Remove ignored
256 top-level restrict qualifier and add malloc attribute instead.
257 (_Array<_Tp>::_Array(size_t)): Remove unused constructor.
260 * include/bits/valarray_array.h (_Array_copy_ctor<_Tp, true>)
261 (_Array_copier<_Tp, true>): Do not pass null pointers to memcpy.
264 * include/bits/node_handle.h (_Node_handle_common::_M_swap): Use value
266 * testsuite/23_containers/set/modifiers/node_swap.cc: New.
268 2018-05-13 Ville Voutilainen <ville.voutilainen@gmail.com>
271 * testsuite/20_util/variant/80165.cc: New.
273 2018-05-10 Jonathan Wakely <jwakely@redhat.com>
275 * doc/xml/faq.xml: Link to C++17 status. Add note to outdated answer.
276 * doc/xml/manual/debug_mode.xml: Add array and forward_list to list
277 of C++11 containers with Debug Mode support.
278 * doc/xml/manual/using.xml: Document Dual ABI for ios_base::failure.
279 * doc/html/*: Regenerate.
281 2018-05-10 Jason Merrill <jason@redhat.com>
283 * include/bits/regex_compiler.h (_S_cache_size): Change from
284 function to variable.
286 2018-05-10 Edward Smith-Rowland <3dw4rd@verizon.net>
288 PR libstdc++/83140 - assoc_legendre returns negated value when m is odd
289 * include/tr1/legendre_function.tcc (__assoc_legendre_p): Add __phase
290 argument defaulted to +1. Doxy comments on same.
291 * testsuite/special_functions/02_assoc_legendre/
292 check_value.cc: Regen.
293 * testsuite/tr1/5_numerical_facilities/special_functions/
294 02_assoc_legendre/check_value.cc: Regen.
296 2018-05-10 Jonathan Wakely <jwakely@redhat.com>
299 * include/bits/c++config.h (__replacement_assert): Add linkage
301 * include/bits/std_abs.h: Add comment to closing brace of block.
302 * include/c_global/cstddef: Add linkage specification.
303 * include/c_global/cstring: Likewise.
304 * include/c_global/cwchar: Likewise.
306 2018-05-09 François Dumont <fdumont@gcc.gnu.org>
308 * include/debug/safe_iterator.h (_Safe_iterator<>::_M_constant()):
310 (_Safe_iterator<>::_S_constant()): ...that.
311 * include/debug/safe_local_iterator.h
312 (_Safe_local_iterator<>::_M_constant()): Rename in...
313 (_Safe_local_iterator<>::_S_constant()): ...that.
314 * include/debug/formatter.h: Remove bits/cpp_type_traits.h include.
315 (_Iterator_state::__rbegin): New.
316 (_Iterator_state::__rmiddle): New.
317 (_Iterator_state::__rend): New.
318 (_Parameter::_Parameter(const _Safe_iterator<>&, const char*,
319 _Is_iterator)): Use _Safe_iterator<>::_S_constant. Grab normal underlying
321 (_Parameter::_Parameter(const _Safe_local_iterator<>&, const char*,
322 _Is_iterator)): Likewise.
323 (_Parameter::_S_reverse_state(_Iterator_state)): New.
324 (_Parameter(__gnu_cxx::__normal_iterator<> const&, const char*,
326 (_Parameter(std::reverse_iterator<> const&, const char*,
328 (_Parameter(std::reverse_iterator<_Safe_iterator<>> const&,
329 const char*, _Is_iterator)): New.
330 (_Parameter(std::move_iterator<> const&, const char*, _Is_iterator):
332 (_Parameter(std::move_iterator<_Safe_iterator<>> const&, const char*,
334 * testsuite/24_iterators/move_iterator/debug_neg.cc: New.
335 * testsuite/24_iterators/normal_iterator/debug_neg.cc: New.
336 * testsuite/24_iterators/reverse_iterator/debug_neg.cc: New.
338 2018-05-09 Jonathan Wakely <jwakely@redhat.com>
340 * include/bits/std_function.h (_Base_manager::_M_get_pointer):
341 Use constexpr if in C++17 mode.
342 (_Base_manager::_M_clone(_Any_data&, const _Any_data&, true_type)):
343 Copy from const object.
344 * testsuite/20_util/function/cons/non_copyconstructible.cc: New.
346 2018-05-08 François Dumont <fdumont@gcc.gnu.org>
348 * src/c++11/debug.cc [_GLIBCXX_HAVE_EXECINFO_H]: Include execinfo.h.
349 [_GLIBCXX_HAVE_EXECINFO_H](_Error_formatter::_M_error): Render
352 * include/debug/macros.h (__glibcxx_check_valid_range_at): New.
353 * include/debug/functions.h (__check_valid_range): Use latter.
354 * include/debug/macros.h (__glibcxx_check_valid_constructor_range): New,
356 * include/debug/deque
357 (deque::deque<_Iter>(_Iter, _Iter, const _Alloc&)): Use latter.
358 * include/debug/forward_list
359 (forward_list::forward_list<_Iter>(_Iter, _Iter, const _Alloc&)):
362 (list::list<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
364 (list::list<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
365 * include/debug/map.h
366 (map::map<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
367 (map::map<_Iter>(_Iter, _Iter, const _Compare&, const _Alloc&)):
369 * include/debug/multimap.h
370 (multimap::multimap<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
371 (multimap::multimap<_Iter>(_Iter, _Iter, const _Compare&,
372 const _Alloc&)): Likewise.
373 * include/debug/set.h
374 (set::set<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
375 (set::set<_Iter>(_Iter, _Iter, const _Compare&, const _Alloc&)):
377 * include/debug/multiset.h
378 (multiset::multiset<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
379 (multiset::multiset<_Iter>(_Iter, _Iter, const _Compare&,
380 const _Alloc&)): Likewise.
381 * include/debug/string
382 (basic_string::basic_string<_Iter>(_Iter, _Iter, const _Alloc&)):
384 * include/debug/unordered_map
385 (unordered_map::unordered_map<_Iter>(_Iter, _Iter, const _Alloc&)):
387 (unordered_multimap::unordered_multimap<_Iter>(_Iter, _Iter,
388 const _Alloc&)): Likewise.
389 * include/debug/unordered_set
390 (unordered_set::unordered_set<_Iter>(_Iter, _Iter, const _Alloc&)):
392 (unordered_multiset::unordered_multiset<_Iter>(_Iter, _Iter,
393 const _Alloc&)): Likewise.
394 * include/debug/vector
395 (vector::vector<_Iter>(_Iter, _Iter, const _Alloc&)): Use latter.
397 * include/debug/formatter.h (_Error_formatter::_M_function): New.
398 (_Error_formatter(const char*, unsigned int)): Adapt.
399 (_Error_formatter::_M_at): Rename in...
400 (_Error_formatter::_S_at): ...that and adapt.
401 * include/debug/macros.h (_GLIBCXX_DEBUG_VERIFY_AT_F): New.
402 (_GLIBCXX_DEBUG_VERIFY_AT, _GLIBCXX_DEBUG_VERIFY): Adapt.
403 * src/c++11/debug.cc (_Error_formatter::_M_error): Render _M_function
406 2018-05-08 Jonathan Wakely <jwakely@redhat.com>
408 * include/bits/regex_automaton.h (_NFA_base::_M_paren_stack, _NFA):
409 Use normal std::vector even in Debug Mode.
412 * include/Makefile.am [!ENABLE_FLOAT128]: Change c++config.h entry
413 to #undef _GLIBCXX_USE_FLOAT128 instead of defining it to zero.
414 * include/Makefile.in: Regenerate.
415 * include/bits/c++config (_GLIBCXX_USE_FLOAT128): Move definition
416 within conditional block.
418 2018-05-07 Jonathan Wakely <jwakely@redhat.com>
420 * doc/xml/manual/using.xml (table.cmd_options): Document that the
421 C++17 Filesystem implementation also needs -lstdc++fs.
424 * include/bits/fs_path.h (operator/): Permit copy elision.
425 * include/experimental/bits/fs_path.h (operator/): Likewise.
427 2018-05-07 Edward Smith-Rowland <3dw4rd@verizon.net>
429 Moar PR libstdc++/80506
430 * include/bits/random.tcc (gamma_distribution::__generate_impl()):
431 Fix magic number used in loop condition.
433 2018-05-04 Jonathan Wakely <jwakely@redhat.com>
435 PR libstdc++/85642 fix is_nothrow_default_constructible<optional<T>>
436 * include/std/optional (_Optional_payload): Add noexcept to default
437 constructor. Re-indent.
438 (_Optional_payload<_Tp, true, true, true>): Likewise. Add noexcept to
439 constructor for copying disengaged payloads.
440 (_Optional_payload<_Tp, true, false, true>): Likewise.
441 (_Optional_payload<_Tp, true, true, false>): Likewise.
442 (_Optional_payload<_Tp, true, false, false>): Likewise.
443 * testsuite/20_util/optional/cons/85642.cc: New.
444 * testsuite/20_util/optional/cons/value_neg.cc: Adjust dg-error lines.
446 2018-05-03 Jonathan Wakely <jwakely@redhat.com>
449 * include/tr1/cmath [__STRICT_ANSI__] (hypergf, hypergl, hyperg): Use
450 inline definitions instead of using-declarations.
451 [__STRICT_ANSI__] (conf_hypergf, conf_hypergl, conf_hyperg): Likewise.
452 * testsuite/tr1/5_numerical_facilities/special_functions/
453 07_conf_hyperg/compile_cxx17.cc: New.
454 * testsuite/tr1/5_numerical_facilities/special_functions/
455 17_hyperg/compile_cxx17.cc: New.
458 * include/std/variant (visit): Qualify std::get call.
460 PR libstdc++/85632 use uintmax_t for arithmetic
461 * src/filesystem/ops.cc (experimental::filesystem::space): Perform
462 arithmetic in result type.
463 * src/filesystem/std-ops.cc (filesystem::space): Likewise.
464 * testsuite/27_io/filesystem/operations/space.cc: Check total capacity
465 is greater than free space.
466 * testsuite/experimental/filesystem/operations/space.cc: New.
468 * testsuite/20_util/remove_cvref/requirements/alias_decl.cc: New.
469 * testsuite/20_util/remove_cvref/requirements/explicit_instantiation.cc:
471 * testsuite/20_util/remove_cvref/value.cc: New.
472 * testsuite/20_util/remove_cvref/value_ext.cc: New.
474 PR libstdc++/84087 LWG DR 2268 basic_string default arguments
475 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI=1]
476 (append(const basic_string&, size_type, size_type)
477 (assign(const basic_string&, size_type, size_type)
478 (insert(size_type, const basic_string&, size_type, size_type)
479 (replace(size_type,size_type,const basic_string&,size_type,size_type)
480 (compare(size_type,size_type,constbasic_string&,size_type,size_type)):
481 Add default arguments (LWG 2268).
482 [_GLIBCXX_USE_CXX11_ABI=0]
483 (append(const basic_string&, size_type, size_type)
484 (assign(const basic_string&, size_type, size_type)
485 (insert(size_type, const basic_string&, size_type, size_type)
486 (replace(size_type,size_type,const basic_string&,size_type,size_type)
487 (compare(size_type,size_type,constbasic_string&,size_type,size_type)):
489 * testsuite/21_strings/basic_string/dr2268.cc: New test.
492 * include/std/thread (thread::__not_same): New SFINAE helper.
493 (thread::thread(_Callable&&, _Args&&...)): Add SFINAE constraint that
494 first argument is not a std::thread. Add static assertion to check
495 INVOKE expression is valid.
496 (thread::thread(thread&), thread::thread(const thread&&)): Remove.
497 (thread::_Invoke::_M_invoke, thread::_Invoke::operator()): Use
498 __invoke_result for return types and remove exception specifications.
499 * testsuite/30_threads/thread/cons/84535.cc: New.
501 * include/std/future (__async_result_of): Use __invoke_result instead
504 * include/std/any (any_cast): Use __remove_cvref_t.
505 * include/std/tuple (__make_tuple): Likewise.
506 * include/std/type_traits (__remove_cvref_t): Define.
507 (__result_of_memobj, __result_of_memfun): Use __remove_cvref_t.
508 [__cplusplus > 201703L] (remove_cvref, remove_cvref_t): Define.
509 * include/std/variant (__erased_hash): Use __remove_cvref_t.
511 2018-05-02 François Dumont <fdumont@gcc.gnu.org>
513 * include/bits/deque.tcc (deque<>::_M_assign_aux): Cast to void to
514 ensure overloaded comma not used.
515 * include/bits/list.tcc (list<>::_M_assign_dispatch): Likewise.
516 * include/bits/vector.tcc (vector<>::_M_assign_aux): Likewise.
517 * include/bits/stl_bvector.h (vector<bool>::_M_assign_aux): Likewise.
518 * testsuite/23_containers/deque/modifiers/assign/1.cc: New.
519 * testsuite/23_containers/list/modifiers/assign/1.cc: New.
520 * testsuite/23_containers/vector/bool/modifiers/assign/1.cc: New.
521 * testsuite/23_containers/vector/modifiers/assign/1.cc: New.
523 2018-05-02 Jonathan Wakely <jwakely@redhat.com>
526 * include/bits/ios_base.h (ios_base::iword, ios_base::pword): Cast
528 * src/c++11/ios.cc (ios_base::_M_grow_words): Treat negative indices
529 as failure. Refactor error handling.
530 * testsuite/27_io/ios_base/storage/68197.cc: New.
534 * include/bits/gslice_array.h (gslice_array): Define default
535 constructor as deleted, as per C++11 standard.
536 * include/bits/mask_array.h (mask_array): Likewise.
537 * include/bits/slice_array.h (slice_array): Likewise.
538 * include/bits/valarray_after.h (_GBase, _GClos, _IBase, _IClos): Move
539 to namespace __detail.
540 (_GBase::_M_expr, _IBase::_M_expr): Use _ValArrayRef for type of data
542 * include/bits/valarray_before.h (_ValArrayRef): New helper for type
543 of data members in closure objects.
544 (_FunBase, _ValFunClos, _RefFunClos, _UnBase, _UnClos, _BinBase)
545 (_BinBase2, _BinBase1, _BinClos, _SBase, _SClos): Move to namespace
547 (_FunBase::_M_expr, _UnBase::_M_expr, _BinBase::_M_expr1)
548 (_BinBase::_M_expr2, _BinBase2::_M_expr1, _BinBase1::_M_expr2)
549 (_SBase::_M_expr): Use _ValArrayRef for type of data members.
550 * include/std/valarray (_UnClos, _BinClos, _SClos, _GClos, _IClos)
551 (_ValFunClos, _RefFunClos): Move to namespace __detail and add
552 using-declarations to namespace std.
553 * testsuite/26_numerics/valarray/83860.cc: New.
555 * testsuite/backward/strstream_move.cc: Remove duplicate function
559 * include/backward/strstream (strstreambuf): Define move constructor
560 and move assignment operator.
561 (istrstream, ostrstream, strstream): Likewise.
562 * testsuite/backward/strstream_move.cc: New.
564 2018-05-01 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
567 * acinclude.m4: Set ENABLE_FLOAT128 instead of _GLIBCXX_USE_FLOAT128.
568 * config.h.in: Remove references to _GLIBCXX_USE_FLOAT128.
569 * configure: Regenerate.
570 * include/Makefile.am: Replace the value of _GLIBCXX_USE_FLOAT128
571 based on ENABLE_FLOAT128.
572 * include/Makefile.in: Regenerate.
573 * include/bits/c++config: Define _GLIBCXX_USE_FLOAT128.
574 [!defined(__FLOAT128__) && !defined(__SIZEOF_FLOAT128__)]: Undefine
575 _GLIBCXX_USE_FLOAT128.
577 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
579 * configure: Regenerated.
581 2018-04-19 Jakub Jelinek <jakub@redhat.com>
583 * configure: Regenerated.
585 2018-04-18 Jonathan Wakely <jwakely@redhat.com>
586 Jakub Jelinek <jakub@redhat.com>
589 * src/c++11/Makefile.am: Don't generate debuginfo again for
590 cxx11-ios_failure-lt.s and cxx11-ios_failure.s files.
591 * src/c++11/Makefile.in: Regenerate.
593 2018-04-18 Jonathan Wakely <jwakely@redhat.com>
596 * testsuite/30_threads/thread/cons/terminate.cc
597 [!_GLIBCXX_USE_C99_STDLIB] : Use _exit or std::exit instead of _Exit.
599 2018-04-18 David Malcolm <dmalcolm@redhat.com>
602 * configure: Regenerate.
604 2018-04-16 Jonathan Wakely <jwakely@redhat.com>
606 * testsuite/experimental/filesystem/file_status/1.cc: Add
607 -DUSE_FILESYSTEM_TS to dg-options.
608 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
610 * testsuite/experimental/filesystem/iterators/pop.cc: Likewise.
611 * testsuite/experimental/filesystem/iterators/
612 recursive_directory_iterator.cc: Likewise.
613 * testsuite/experimental/filesystem/operations/absolute.cc: Likewise.
614 * testsuite/experimental/filesystem/operations/canonical.cc: Likewise.
615 * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
616 * testsuite/experimental/filesystem/operations/copy_file.cc: Likewise.
617 * testsuite/experimental/filesystem/operations/create_directories.cc:
619 * testsuite/experimental/filesystem/operations/create_directory.cc:
621 * testsuite/experimental/filesystem/operations/create_symlink.cc:
623 * testsuite/experimental/filesystem/operations/current_path.cc:
625 * testsuite/experimental/filesystem/operations/equivalent.cc: Likewise.
626 * testsuite/experimental/filesystem/operations/exists.cc: Likewise.
627 * testsuite/experimental/filesystem/operations/file_size.cc: Likewise.
628 * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise.
629 * testsuite/experimental/filesystem/operations/last_write_time.cc:
631 * testsuite/experimental/filesystem/operations/permissions.cc:
633 * testsuite/experimental/filesystem/operations/read_symlink.cc:
635 * testsuite/experimental/filesystem/operations/remove.cc: Likewise.
636 * testsuite/experimental/filesystem/operations/remove_all.cc: Likewise.
637 * testsuite/experimental/filesystem/operations/status.cc: Likewise.
638 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
640 * testsuite/experimental/filesystem/path/append/path.cc: Likewise.
641 * testsuite/experimental/filesystem/path/assign/assign.cc: Likewise.
642 * testsuite/experimental/filesystem/path/assign/copy.cc: Likewise.
643 * testsuite/experimental/filesystem/path/compare/compare.cc: Likewise.
644 * testsuite/experimental/filesystem/path/compare/path.cc: Likewise.
645 * testsuite/experimental/filesystem/path/compare/strings.cc: Likewise.
646 * testsuite/experimental/filesystem/path/concat/path.cc: Likewise.
647 * testsuite/experimental/filesystem/path/concat/strings.cc: Likewise.
648 * testsuite/experimental/filesystem/path/construct/copy.cc: Likewise.
649 * testsuite/experimental/filesystem/path/construct/default.cc:
651 * testsuite/experimental/filesystem/path/construct/locale.cc: Likewise.
652 * testsuite/experimental/filesystem/path/construct/range.cc: Likewise.
653 * testsuite/experimental/filesystem/path/construct/string_view.cc:
655 * testsuite/experimental/filesystem/path/decompose/extension.cc:
657 * testsuite/experimental/filesystem/path/decompose/filename.cc:
659 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
661 * testsuite/experimental/filesystem/path/decompose/relative_path.cc:
663 * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
665 * testsuite/experimental/filesystem/path/decompose/root_name.cc:
667 * testsuite/experimental/filesystem/path/decompose/root_path.cc:
669 * testsuite/experimental/filesystem/path/decompose/stem.cc: Likewise.
670 * testsuite/experimental/filesystem/path/generic/generic_string.cc:
672 * testsuite/experimental/filesystem/path/itr/traversal.cc: Likewise.
673 * testsuite/experimental/filesystem/path/modifiers/clear.cc: Likewise.
674 * testsuite/experimental/filesystem/path/modifiers/make_preferred.cc:
676 * testsuite/experimental/filesystem/path/modifiers/remove_filename.cc:
678 * testsuite/experimental/filesystem/path/modifiers/replace_extension.cc:
680 * testsuite/experimental/filesystem/path/modifiers/replace_filename.cc:
682 * testsuite/experimental/filesystem/path/modifiers/swap.cc: Likewise.
683 * testsuite/experimental/filesystem/path/native/string.cc: Likewise.
684 * testsuite/experimental/filesystem/path/nonmember/hash_value.cc:
686 * testsuite/experimental/filesystem/path/query/empty.cc: Likewise.
687 * testsuite/experimental/filesystem/path/query/has_extension.cc:
689 * testsuite/experimental/filesystem/path/query/has_filename.cc:
691 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
693 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
695 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
697 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
699 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
701 * testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise.
702 * testsuite/experimental/filesystem/path/query/is_relative.cc:
705 2018-04-13 Jonathan Wakely <jwakely@redhat.com>
707 * src/c++11/Makefile.am: Fix sed command.
708 * src/c++11/Makefile.in: Regenerate.
710 * src/c++11/Makefile.am: Rewrite sed rule to be less fragile and to
711 handle mangled names starting with double underscores on darwin.
712 * src/c++11/Makefile.in: Regenerate.
714 2018-04-12 Jonathan Wakely <jwakely@redhat.com>
716 * src/c++11/Makefile.am: Fix comment.
717 * src/c++11/Makefile.in: Regenerate.
718 * src/c++11/cxx11-ios_failure.cc: Fix comment.
719 * src/c++98/ios_failure.cc: Likewise.
721 * src/c++11/ios.cc: Remove redundant macro definition.
723 2018-04-11 Jonathan Wakely <jwakely@redhat.com>
725 * doc/xml/manual/abi.xml: Document header locations in recent
727 * doc/xml/manual/evolution.xml: Add API changes since GCC 5.
728 * doc/xml/manual/spine.xml: Update copyright years.
729 * doc/xml/manual/strings.xml: Adjust tolower example to avoid
731 * doc/xml/manual/test.xml: Update outdated notes on VERIFY in tests.
732 * doc/html/*: Regenerate.
734 2018-04-10 Jonathan Wakely <jwakely@redhat.com>
736 * doc/xml/faq.xml: Update links to archived copy of SGI STL docs.
737 * doc/xml/manual/backwards_compatibility.xml: Likewise.
738 * doc/xml/manual/containers.xml: Likewise.
739 * doc/xml/manual/debug_mode.xml: Likewise.
740 * doc/xml/manual/extensions.xml: Likewise.
741 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise.
742 * doc/xml/manual/using.xml: Likewise.
743 * doc/xml/manual/utilities.xml: Likewise.
746 * src/c++11/Makefile.am [ENABLE_DUAL_ABI]: Add special rules for
747 cxx11-ios_failure.cc to rewrite type info for __ios_failure.
748 * src/c++11/Makefile.in: Regenerate.
749 * src/c++11/cxx11-ios_failure.cc (__ios_failure, __iosfail_type_info):
751 [_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here.
752 * src/c++11/ios.cc (__throw_ios_failure): Remove definition.
753 * src/c++98/ios_failure.cc (__construct_ios_failure)
754 (__destroy_ios_failure, is_ios_failure_handler): New functions.
755 [!_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here.
756 * testsuite/27_io/ios_base/failure/dual_abi.cc: New.
757 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Revert changes to
758 handler types, to always catch std::ios_base::failure.
759 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
760 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
761 exceptions_failbit.cc: Likewise.
762 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
763 exceptions_failbit.cc: Likewise.
764 * testsuite/27_io/basic_istream/extractors_other/char/
765 exceptions_null.cc: Likewise.
766 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
767 exceptions_null.cc: Likewise.
768 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
769 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
770 * testsuite/27_io/basic_ostream/inserters_other/char/
771 exceptions_null.cc: Likewise.
772 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
773 exceptions_null.cc: Likewise.
774 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
776 2018-04-05 Jonathan Wakely <jwakely@redhat.com>
778 * include/std/variant (_VARIANT_RELATION_FUNCTION_TEMPLATE): Qualify
779 __get calls to avoid ADL and avoid ambiguity due to Clang bug.
781 2018-04-03 Jonathan Wakely <jwakely@redhat.com>
784 * include/std/variant (_Move_assign_base::operator=): Fix incorrect
786 * testsuite/20_util/variant/85183.cc: New.
788 2018-03-26 Jonathan Wakely <jwakely@redhat.com>
790 * include/std/variant (__get): Qualify calls to avoid ADL.
791 (__select_index): Adjust whitespace.
792 (variant): Add using-declaration to workaround Clang bug.
794 2018-03-22 Jonathan Wakely <jwakely@redhat.com>
797 * include/bits/stl_function.h (greater::__not_overloaded)
798 (less::__not_overloaded, greater_equal::__not_overloaded)
799 (less_equal::__not_overloaded): Fix ambiguous specializations.
800 * testsuite/20_util/function_objects/comparisons_pointer.cc: Add
801 tests for type with overloaded operators.
803 2018-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
806 * testsuite/experimental/memory_resource/resource_adaptor.cc:
807 xfail execution on 32-bit Solaris/x86.
809 2018-03-21 Jonathan Wakely <jwakely@redhat.com>
811 * testsuite/20_util/function_objects/comparisons_pointer.cc: Use
812 VERIFY instead of assert.
813 * testsuite/20_util/hash/84998.cc: New test.
814 * testsuite/23_containers/vector/cons/destructible_debug_neg.cc: New
815 copy of test adjusted for Debug Mode.
816 * testsuite/23_containers/vector/cons/destructible_neg.cc: Do not run
819 2018-03-20 François Dumont <fdumont@gcc.gnu.org>
822 * include/bits/stl_bvector.h: Fix std::hash friend declaration.
823 * include/std/bitset: Likewise.
824 * include/bits/stl_map.h (std::map<>): Fix _Rb_tree_merge_helper friend
826 * include/bits/stl_multimap.h (std::multimap<>): Likewise.
827 * include/bits/stl_multiset.h (std::multiset<>): Likewise.
828 * include/bits/stl_set.h (std::set<>): Likewise.
829 * include/bits/unordered_map.h (std::unordered_map<>): Fix
830 _Hash_merge_helper friend declaration.
831 (std::unordered_multimap<>): Likewise.
832 * include/bits/unordered_set.h (std::unordered_set<>): Likewise.
833 (std::unordered_multiset<>): Likewise.
835 2018-03-19 Gerald Pfeifer <gerald@pfeifer.com>
837 * doc/xml/api.xml: www.fsf.org has moved to https. Also omit
838 trailing slash for domain level link.
839 * doc/xml/faq.xml: Ditto.
840 * doc/xml/manual/appendix_free.xml (software): Ditto.
841 * doc/xml/manual/intro.xml: Ditto.
842 * doc/xml/manual/spine.xml: Ditto.
843 * doc/xml/spine.xml: Ditto.
845 2018-03-19 Gerald Pfeifer <gerald@pfeifer.com>
847 * doc/xml/manual/documentation_hacking.xml: Adjust link to
850 2018-03-17 Jonathan Wakely <jwakely@redhat.com>
852 * testsuite/20_util/function_objects/comparisons_pointer.cc: Adjust
855 2018-03-14 Jonathan Wakely <jwakely@redhat.com>
858 * include/bits/stl_function.h (greater<_Tp*>, less<_Tp*>)
859 (greater_equal<_Tp*>, less_equal<_Tp>*): Add partial specializations
860 to ensure total order for pointers.
861 (greater<void>, less<void>, greater_equal<void>, less_equal<void>):
862 Add operator() overloads for pointer arguments and make generic
863 overloads dispatch to new _S_cmp functions when comparisons would
864 use built-in operators for pointers.
865 * testsuite/20_util/function_objects/comparisons_pointer.cc: New.
867 2018-03-12 Jonathan Wakely <jwakely@redhat.com>
871 * crossconfig.m4: Check for aligned_alloc etc. on freebsd and mingw32.
872 * configure: Regenerate.
873 * include/c_global/cstdlib [_GLIBCXX_HAVE_ALIGNED_ALLOC]
874 (aligned_alloc): Add using-declaration.
875 * testsuite/18_support/aligned_alloc/aligned_alloc.cc: New test.
877 2018-03-09 François Dumont <fdumont@gcc.gnu.org>
879 * python/libstdcxx/v6/printers.py (build_libstdcxx_dictionary):
880 Fix std::_Fwd_list_iterator and std::_Fwd_list_const_iterator printers
883 2018-03-09 Jonathan Wakely <jwakely@redhat.com>
886 * include/std/variant (get<_Tp, _Types...>, get_if<_Tp, _Types...>):
887 Qualify calls to get<_Np, Types...> and get_if<_Np, _Types...>.
889 src/filesystem/ops.cc (create_dir): Pass error_code to is_directory.
890 src/filesystem/std-ops.cc (create_dir): Likewise.
892 2018-03-08 François Dumont <fdumont@gcc.gnu.org>
894 * python/libstdcxx/v6/printers.py (NodeIteratorPrinter): New.
895 (StdListIteratorPrinter): Inherit from latter.
896 (StdFwdListIteratorPrinter): New, inherit from latter.
897 (StdDebugIteratorPrinter.to_string): Use non-debug iterator printer
898 when iterator has no associated container.
899 (build_libstdcxx_dictionary): Add __gnu_cxx::_Fwd_list_iterator and
900 __gnu_cxx::_Fwd_list_const_iterator printers. Remove __norm namespace
902 * testsuite/libstdc++-prettyprinters/debug.cc: Adapt.
903 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Adapt.
905 2018-03-06 Ville Voutilainen <ville.voutilainen@gmail.com>
908 * include/std/optional (_Optional_payload): Split into multiple
909 specializations that can handle different cases of trivial or
910 non-trivial assignment operators.
911 * testsuite/20_util/optional/84601.cc: New.
912 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
914 2018-03-02 Jonathan Wakely <jwakely@redhat.com>
917 * include/bits/parse_numbers.h (_Number_help): Add partial
918 specialization to handle digit separators. Adjust partial
919 specialization for recursion temrination to require _Pow == 1ULL.
920 * testsuite/20_util/duration/literals/84671.cc: New
922 2018-02-27 Ville Voutilainen <ville.voutilainen@gmail.com>
924 Implement the missing bits of LWG 2769
925 * include/std/any (any_cast(const any&)): Add static_assert.
926 (any_cast(any&)): Likewise.
927 (any_cast(any&&)): Likewise, and remove the handling
928 for copyable-but-not-movable type.
929 * testsuite/20_util/any/misc/any_cast.cc: Adjust.
930 * testsuite/20_util/any/misc/any_cast_neg.cc: Likewise, and
933 2018-02-23 Jonathan Wakely <jwakely@redhat.com>
936 * include/std/thread (thread::__make_invoker): Construct tuple
937 directly instead of using make_tuple.
938 * testsuite/30_threads/async/84532.cc: New.
939 * testsuite/30_threads/thread/84532.cc: New.
941 2018-02-20 François Dumont <fdumont@gcc.gnu.org>
943 * include/ext/aligned_buffer.h [_GLIBCXX_INLINE_VERSION]
944 (template<> __aligned_buffer): Define as __aligned_membuf alias.
946 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
949 * configure: Regenerate.
951 2018-02-15 Jonathan Wakely <jwakely@redhat.com>
954 * configure.ac (INCLUDE_DIR_NOTPARALLEL): Define.
955 * configure: Regenerate.
956 * include/Makefile.am (INCLUDE_DIR_NOTPARALLEL): Add .NOTPARALLEL when
958 * include/Makefile.in: Regenerate.
960 2018-01-29 Jonathan Wakely <jwakely@redhat.com>
963 * testsuite/26_numerics/random/chi_squared_distribution/83833.cc:
964 Add -ffloat-store to options for m68k and ia32.
966 * doc/xml/faq.xml: Update copyright years.
967 * doc/html/*: Regenerate.
970 * include/std/any (any::__do_emplace): Only set _M_manager after
971 constructing the contained object.
972 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust dg-error line.
973 * testsuite/20_util/any/modifiers/83658.cc: New test.
975 2018-01-25 Jonathan Wakely <jwakely@redhat.com>
978 * include/c_global/cstddef (__byte_operand): Define primary template.
979 * testsuite/18_support/byte/81076.cc: New test.
981 2018-01-19 Christophe Lyon <christophe.lyon@linaro.org>
983 * testsuite/ext/special_functions/airy_ai/check_nan.cc: Fix
984 dg-options and dg-add-options order.
985 * testsuite/ext/special_functions/airy_bi/check_nan.cc: Likewise.
986 * testsuite/ext/special_functions/conf_hyperg/check_nan.cc:
988 * testsuite/ext/special_functions/hyperg/check_nan.cc: Likewise.
989 * testsuite/special_functions/01_assoc_laguerre/check_nan.cc:
991 * testsuite/special_functions/02_assoc_legendre/check_nan.cc:
993 * testsuite/special_functions/03_beta/check_nan.cc: Likewise.
994 * testsuite/special_functions/04_comp_ellint_1/check_nan.cc:
996 * testsuite/special_functions/05_comp_ellint_2/check_nan.cc:
998 * testsuite/special_functions/06_comp_ellint_3/check_nan.cc:
1000 * testsuite/special_functions/06_comp_ellint_3/pr66689.cc:
1002 * testsuite/special_functions/07_cyl_bessel_i/check_nan.cc:
1004 * testsuite/special_functions/08_cyl_bessel_j/check_nan.cc:
1006 * testsuite/special_functions/09_cyl_bessel_k/check_nan.cc:
1008 * testsuite/special_functions/10_cyl_neumann/check_nan.cc:
1010 * testsuite/special_functions/11_ellint_1/check_nan.cc: Likewise.
1011 * testsuite/special_functions/12_ellint_2/check_nan.cc: Likewise.
1012 * testsuite/special_functions/13_ellint_3/check_nan.cc: Likewise.
1013 * testsuite/special_functions/13_ellint_3/pr66689.cc: Likewise.
1014 * testsuite/special_functions/14_expint/check_nan.cc: Likewise.
1015 * testsuite/special_functions/15_hermite/check_nan.cc: Likewise.
1016 * testsuite/special_functions/16_laguerre/check_nan.cc: Likewise.
1017 * testsuite/special_functions/17_legendre/check_nan.cc: Likewise.
1018 * testsuite/special_functions/18_riemann_zeta/check_nan.cc:
1020 * testsuite/special_functions/19_sph_bessel/check_nan.cc:
1022 * testsuite/special_functions/20_sph_legendre/check_nan.cc:
1024 * testsuite/special_functions/21_sph_neumann/check_nan.cc:
1027 2018-01-18 Uros Bizjak <ubizjak@gmail.com>
1029 * configure.ac (AC_CHECK_HEADERS): Add linux/types.h. Conditionally
1030 include linux/types.h when checking linux/random.h header.
1031 * config.h.in: Regenerate.
1033 * src/c++11/random.cc: Conditionally include linux/types.h.
1035 2018-01-16 Eric Botcazou <ebotcazou@adacore.com>
1037 * testsuite/17_intro/names.cc: Undefine 'y' on SPARC/Linux.
1039 2018-01-16 Jonathan Wakely <jwakely@redhat.com>
1042 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Replace std::c[a-g]* wildcard
1043 pattern with exact match for std::cerr.
1045 2018-01-15 Jonathan Wakely <jwakely@redhat.com>
1048 * include/bits/random.h (chi_squared_distribution::param): Update
1049 gamma distribution parameter.
1050 * testsuite/26_numerics/random/chi_squared_distribution/83833.cc: New
1054 * include/std/type_traits (has_unique_object_representations_v): Add
1056 * testsuite/20_util/has_unique_object_representations/value.cc: Check
1059 2018-01-15 Ville Voutilainen <ville.voutilainen@gmail.com>
1061 Make optional conditionally
1062 trivially_{copy,move}_{constructible,assignable}
1063 * include/std/optional (_Optional_payload): Fix the comment in
1064 the class head and turn into a primary and one specialization.
1065 (_Optional_payload::_M_engaged): Strike the NSDMI.
1066 (_Optional_payload<_Tp, false>::operator=(const _Optional_payload&)):
1068 (_Optional_payload<_Tp, false>::operator=(_Optional_payload&&)):
1070 (_Optional_payload<_Tp, false>::_M_get): Likewise.
1071 (_Optional_payload<_Tp, false>::_M_reset): Likewise.
1072 (_Optional_base_impl): Likewise.
1073 (_Optional_base): Turn into a primary and three specializations.
1074 (optional(nullopt)): Change the base init.
1075 * testsuite/20_util/optional/assignment/8.cc: New.
1076 * testsuite/20_util/optional/cons/trivial.cc: Likewise.
1077 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
1079 2018-01-15 Jonathan Wakely <jwakely@redhat.com>
1082 * python/libstdcxx/v6/printers.py (strip_inline_namespaces): New.
1083 (get_template_arg_list): New.
1084 (StdVariantPrinter._template_args): Remove, use get_template_arg_list
1086 (TemplateTypePrinter): Rewrite to work with gdb.Type objects instead
1087 of strings and regular expressions.
1088 (add_one_template_type_printer): Adapt to new TemplateTypePrinter.
1089 (FilteringTypePrinter): Add docstring. Match using startswith. Use
1090 strip_inline_namespaces instead of strip_versioned_namespace.
1091 (add_one_type_printer): Prepend namespace to match argument.
1092 (register_type_printers): Add type printers for char16_t and char32_t
1093 string types and for types using cxx11 ABI. Update calls to
1094 add_one_template_type_printer to provide default argument dicts.
1095 * testsuite/libstdc++-prettyprinters/80276.cc: New test.
1096 * testsuite/libstdc++-prettyprinters/whatis.cc: Remove tests for
1097 basic_string<unsigned char> and basic_string<signed char>.
1098 * testsuite/libstdc++-prettyprinters/whatis2.cc: Duplicate whatis.cc
1099 to test local variables, without overriding _GLIBCXX_USE_CXX11_ABI.
1101 2018-01-14 Andreas Schwab <schwab@linux-m68k.org>
1104 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
1106 2018-01-13 Tim Shen <timshen@google.com>
1109 * include/bits/regex.tcc (regex_replace): Fix escaping in sed.
1110 * testsuite/28_regex/algorithms/regex_replace/char/pr83601.cc: Tests.
1111 * testsuite/28_regex/algorithms/regex_replace/wchar_t/pr83601.cc: Tests.
1113 2018-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1116 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc:
1117 Remove dg-xfail-run-if.
1119 2018-01-10 François Dumont <fdumont@gcc.gnu.org>
1121 * include/bits/forward_list.h
1122 (_Fwd_list_node_base(_Fwd_list_node_base&&)): New.
1123 (_Fwd_list_node_base& operator=(_Fwd_list_node_base&&)): New.
1124 (_Fwd_list_node_base(const _Fwd_list_node_base&)): Explicit delete.
1125 (_Fwd_list_node_base& operator=(const _Fwd_list_node_base&)): Likewise.
1126 (_Fwd_list_impl()): Add noexcept qualification.
1127 (_Fwd_list_impl(const _Node_alloc_type&)): Delete.
1128 (_Fwd_list_impl(_Fwd_list_impl&&)): New, default.
1129 (_Fwd_list_impl(_Fwd_list_impl&&, _Node_alloc_type&&)): New.
1130 (_Fwd_list_base()): Default.
1131 (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&, true_type)): New.
1132 (_Fwd_list_base(_Fwd_list_base&&)): Default.
1133 (forward_list<>()): Default.
1134 (forward_list<>(forward_list&&)): Default.
1135 (forward_list(forward_list&&, _Node_alloc_type&&, false_type)): New.
1136 (forward_list(forward_list&&, _Node_alloc_type&&, true_type)): New.
1137 (forward_list(forward_list&&, const _Alloc&)): Adapt to use latters.
1138 * include/bits/forward_list.tcc
1139 (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&)): Adapt to use
1140 _M_impl._M_head move assignment.
1141 (forward_list<>::merge(forward_list<>&&, _Comp)): Likewise.
1142 * testsuite/23_containers/forward_list/allocator/default_init.cc: New.
1144 2018-01-09 Jonathan Wakely <jwakely@redhat.com>
1147 * python/libstdcxx/v6/printers.py (SharedPointerPrinter)
1148 (UniquePointerPrinter): Print correct template argument, not type of
1150 (TemplateTypePrinter._recognizer.recognize): Handle failure to lookup
1152 * testsuite/libstdc++-prettyprinters/cxx11.cc: Test unique_ptr of
1154 * testsuite/libstdc++-prettyprinters/cxx17.cc: Test shared_ptr and
1155 weak_ptr of array types.
1157 2018-01-09 François Dumont <fdumont@gcc.gnu.org>
1160 * include/bits/hashtable_policy.h
1161 (__distance_fwd(_Iterator, _Iterator, input_iterator_tag)): Return 1 if
1163 (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, true_type)): New.
1164 (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, false_type)):
1165 Add false_type parameter.
1166 (_Insert_base::insert): Adapt.
1167 * include/bits/hashtable.h (_Hashtable::operator=(initializzr_list<>)):
1169 (_Hashtable::_M_insert(_Arg&&, const _NodeGen&, true_type, size_t)):
1170 Add __n_elt parameter, defaulted to 1.
1171 (_Hashtable::_M_insert_unique_node): Likewise. Use it to call rehash
1172 policy _M_need_rehash.
1173 (_Hashtable::_M_merge_unique): Pass target number of elements to add to
1174 produce only 1 rehash if necessary.
1175 * testsuite/23_containers/unordered_map/insert/83709.cc: New.
1176 * testsuite/23_containers/unordered_set/insert/83709.cc: New.
1178 2018-01-09 Juraj Oršulić <juraj.orsulic@fer.hr>
1179 Jonathan Wakely <jwakely@redhat.com>
1181 PR libstdc++/59253 (partial)
1182 * python/libstdcxx/v6/printers.py (SmartPtrIterator): Common iterator
1183 type for pointer stored by shared_ptr, weak_ptr and unique_ptr.
1184 (SharedPointerPrinter, UniquePointerPrinter): Treat stored values as
1186 * testsuite/libstdc++-prettyprinters/cxx11.cc: Update expected output
1187 of unique_ptr printer.
1188 * testsuite/libstdc++-prettyprinters/shared_ptr.cc: Update expected
1189 output of shared_ptr printer.
1191 2018-01-05 Jonathan Wakely <jwakely@redhat.com>
1194 * src/filesystem/ops.cc (remove(const path&, error_code&)): Remove
1195 unnecessary symlink_status call.
1196 (remove_all(const path&, error_code&)): Use filesystem::remove.
1197 * src/filesystem/std-ops.cc: Likewise.
1200 * src/filesystem/std-ops.cc (do_copy_file): Use non-null offset with
1204 * src/filesystem/ops.cc (remove(const path&, error_code&)): Do not
1205 report an error for ENOENT.
1206 (remove_all(const path&)): Fix type of result variable.
1207 (remove_all(const path&, error_code&)): Use non-throwing increment
1208 for directory iterator. Call POSIX remove directly to avoid redundant
1209 calls to symlink_status. Do not report errors for ENOENT.
1210 * src/filesystem/std-ops.cc: Likewise.
1211 * testsuite/27_io/filesystem/operations/remove_all.cc: Test throwing
1213 * testsuite/experimental/filesystem/operations/remove_all.cc:
1216 2018-01-04 Jonathan Wakely <jwakely@redhat.com>
1219 * src/filesystem/ops.cc (remove(const path&, error_code&))): Remove
1220 redundant call to ec.clear().
1221 (remove_all(const path&, error_code&))): Do not return an error for
1223 * src/filesystem/std-ops.cc: Likewise.
1224 * testsuite/27_io/filesystem/operations/remove.cc: New test.
1225 * testsuite/27_io/filesystem/operations/remove_all.cc: Fix expected
1226 results for non-existent paths.
1227 * testsuite/experimental/filesystem/operations/remove.cc: New test.
1228 * testsuite/experimental/filesystem/operations/remove_all.cc: Fix
1229 expected results for non-existent paths.
1231 * include/bits/fs_ops.h (exists(const path&, error_code&))): Only
1232 check status_known once.
1233 * include/experimental/bits/fs_ops.h: Likewise.
1236 * include/std/functional (__is_byte_like): New trait.
1237 (__is_std_equal_to): Remove.
1238 (__boyer_moore_base_t): Use __is_byte_like instead of
1240 * include/experimental/functional (__is_std_equal_to): Remove.
1241 (__boyer_moore_base_t): Use __is_byte_like instead of
1243 * testsuite/20_util/function_objects/83607.cc: New test.
1245 2018-01-03 Ville Voutilainen <ville.voutilainen@gmail.com>
1247 Protect optional's deduction guide with the feature macro
1248 * include/std/optional: Use the feature macro.
1250 2018-01-03 Jakub Jelinek <jakub@redhat.com>
1252 Update copyright years.
1254 Copyright (C) 2018 Free Software Foundation, Inc.
1256 Copying and distribution of this file, with or without modification,
1257 are permitted in any medium without royalty provided the copyright
1258 notice and this notice are preserved.