* include/std/type_traits: Fix comment typos.
[gcc.git] / libstdc++-v3 / ChangeLog
1 2018-06-05 Jonathan Wakely <jwakely@redhat.com>
2
3 * include/std/type_traits: Fix comment typos.
4
5 * testsuite/27_io/filesystem/operations/read_symlink.cc: XFAIL for
6 mingw* targets.
7 * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
8 * testsuite/experimental/filesystem/operations/read_symlink.cc:
9 Likewise.
10
11 2018-06-05 François Dumont <fdumont@gcc.gnu.org>
12
13 * include/bits/stl_tempbuf.h
14 (_Temporary_buffer(_FwdIte, _FwdIte)): Delete, replaced by...
15 (_Temporary_buffer(_FwdIte, size_type)): ...this, new.
16 * include/ext/memory (temporary_buffer<>(_FwdIte, _FwdIte)): Adapt.
17 * include/bits/stl_algo.h (__stable_partition): Adapt.
18 (__inplace_merge): Adapt.
19 (__stable_sort): Adapt.
20
21 2018-06-04 Jonathan Wakely <jwakely@redhat.com>
22
23 PR libstdc++/85930
24 * include/bits/shared_ptr_base.h [!__cpp_rtti]: Include <typeinfo>
25 unconditionally. Remove redundant declaration.
26 [!__cpp_rtti] (_Sp_make_shared_tag::_S_ti): Fix location of
27 alignment-specifier.
28
29 * include/bits/postypes.h (fpos): Define special members as defaulted.
30
31 PR libstdc++/85930
32 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Align
33 the static variable correctly.
34
35 2018-05-24 Jonathan Wakely <jwakely@redhat.com>
36
37 PR libstdc++/78870 support std::filesystem on Windows
38 * config.h.in: Regenerate.
39 * configure: Regenerate.
40 * configure.ac: Check for link, readlink and symlink.
41 * include/bits/fs_path.h (path::operator/=(const path&)): Move
42 definition out of class body.
43 (path::is_absolute(), path::_M_append(path)): Likewise.
44 (operator<<(basic_ostream, const path&)): Use std::quoted directly.
45 (operator>>(basic_istream, path&)): Likewise.
46 (u8path): Reorder definitions and fix Windows implementation.
47 (path::is_absolute()): Define inline and fix for Windows.
48 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::operator/=(const path&)):
49 Define POSIX version inline.
50 (path::_M_append(path)): Define inline.
51 * include/experimental/bits/fs_path.h (path::is_absolute()): Move
52 definition out of class body.
53 (operator<<(basic_ostream, const path&)): Fix type of delimiter and
54 escape characters.
55 (operator>>(basic_istream, path&)): Likewise.
56 (path::is_absolute()): Define inline and fix for Windows.
57 * src/filesystem/dir-common.h (__gnu_posix): New namespace.
58 (__gnu_posix::char_type, __gnu_posix::DIR, __gnu_posix::dirent)
59 (__gnu_posix::opendir, __gnu_posix::readdir, __gnu_posix::closedir):
60 Define as adaptors for Windows functions/types or as
61 using-declarations for POSIX functions/types.
62 (_Dir_base, get_file_type): Qualify names to use declarations from
63 __gnu_posix namespace.
64 (_Dir_base::is_dor_or_dotdot): New helper functions.
65 * src/filesystem/dir.cc (_Dir, recursive_directory_iterator): Qualify
66 names to use declarations from __gnu_posix namespace.
67 * src/filesystem/ops-common.h (__gnu_posix): New nested namespace.
68 (__gnu_posix::open, __gnu_posix::close, __gnu_posix::stat_type)
69 (__gnu_posix::stat, __gnu_posix::lstat, __gnu_posix::mode_t)
70 (__gnu_posix::chmod, __gnu_posix::mkdir, __gnu_posix::getcwd)
71 (__gnu_posix::chdir, __gnu_posix::utimbuf, __gnu_posix::utime)
72 (__gnu_posix::rename, __gnu_posix::truncate, __gnu_posix::char_type):
73 Define as adaptors for Windows functions/types or as
74 using-declarations for POSIX functions/types.
75 (stat_type, do_copy_file): Qualify names to use declarations from
76 __gnu_posix namespace.
77 (do_space): Declare new function.
78 (make_file_type): Only use S_ISLNK if defined.
79 * src/filesystem/ops.cc (char_ptr, filesystem::canonical): Use
80 path::value_type not char.
81 (filesystem::copy, create_dir, filesystem::create_directory): Qualify
82 names to use declarations from __gnu_posix namespace.
83 (filesystem::create_hard_link): Check HAVE_LINK autoconf macro and
84 add implementation for Windows.
85 (filesystem::create_symlink): Check HAVE_SYMLINK autoconf macro.
86 (filesystem::current_path(error_code&)): Use __gnu_posix::getcwd.
87 [!_PC_PATH_MAX]: Don't use pathconf.
88 [PATH_MAX]: Use if defined.
89 (filesystem::current_path(const path&, error_code&))
90 (filesystem::equivalent, do_stat, filesystem::hard_link_count)
91 (filesystem::last_write_time, filesystem::permissions): Use names
92 from __gnu_posix.
93 (filesystem::read_symlink): Check HAVE_READLINK autoconf macro.
94 (filesystem::remove) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Add
95 implementation for Windows.
96 (filesystem::rename, filesystem::resize_file): Use names from
97 __gnu_posix.
98 (filesystem::space): Use do_space.
99 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Get absolute path to directory.
100 (filesystem::status, filesystem::symlink_status): Use names from
101 __gnu_posix.
102 (filesystem::temp_directory_path): Add implementation for Windows.
103 * src/filesystem/path.cc (dot): Define constant.
104 (path::replace_extension): Use dot.
105 (path::_M_find_extension): Likewise. Use path::string_type not
106 std::string.
107 (path::_M_split_cmpts): Use dot.
108 (filesystem_error::_M_get_what): Use u8string() not native().
109 * src/filesystem/std-dir.cc (_Dir, recursive_directory_iterator):
110 Qualify names to use declarations from __gnu_posix namespace.
111 * src/filesystem/std-ops.cc (filesystem::absolute(const path&)): Use
112 correct error_code.
113 (filesystem::absolute(const path&, error_code&)): Add implementation
114 for Windows.
115 (char_ptr, filesystem::canonical): Use path::value_type not char.
116 (do_copy_file): Use names from __gnu_posix.
117 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Do not use fchmod, fchmodat or
118 sendfile.
119 (filesystem::copy, create_dir, filesystem::create_directory): Qualify
120 names to use declarations from __gnu_posix namespace.
121 (filesystem::create_hard_link): Check HAVE_LINK autoconf macro and
122 add implementation for Windows.
123 (filesystem::create_symlink): Check HAVE_SYMLINK autoconf macro.
124 (filesystem::current_path(error_code&)): Use __gnu_posix::getcwd.
125 [!_PC_PATH_MAX]: Don't use pathconf.
126 [PATH_MAX]: Use if defined.
127 (filesystem::current_path(const path&, error_code&))
128 (filesystem::equivalent, do_stat, filesystem::hard_link_count)
129 (filesystem::last_write_time, filesystem::permissions): Use names
130 from __gnu_posix.
131 (filesystem::read_symlink): Check HAVE_READLINK autoconf macro.
132 (filesystem::remove) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Add
133 implementation for Windows.
134 (filesystem::rename, filesystem::resize_file): Use names from
135 __gnu_posix.
136 (do_space): Define.
137 (filesystem::space): Use do_space.
138 (filesystem::status, filesystem::symlink_status): Use names from
139 __gnu_posix.
140 (filesystem::temp_directory_path): Add implementation for Windows.
141 * src/filesystem/std-path.cc
142 [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::operator/=(const path&)):
143 Define for Windows.
144 (dot): Define constant.
145 (path::replace_extension, is_dot): Use dot.
146 (path::lexically_normal): Check _M_type instead of calling
147 non-existent function.
148 (path::_M_find_extension): Use dot. Use path::string_type not
149 std::string.
150 (path::_M_split_cmpts): Use dot.
151 (filesystem_error::_M_get_what): Use u8string() not native().
152 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Do not
153 use symlinks.
154 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
155 Likewise.
156 * testsuite/27_io/filesystem/operations/absolute.cc: Use
157 __gnu_test::root_path() instead of "/" and add Windows-specific tests.
158 * testsuite/27_io/filesystem/operations/canonical.cc: Use
159 path::string() to get narrow string, not path::native().
160 * testsuite/27_io/filesystem/operations/copy.cc: Construct fstreams
161 with std::filesystem::path not std::basic_string.
162 * testsuite/27_io/filesystem/operations/copy_file.cc: Likewise.
163 * testsuite/27_io/filesystem/operations/exists.cc: Use
164 __gnu_test::root_path() instead of "/".
165 * testsuite/27_io/filesystem/operations/is_empty.cc: Construct
166 fstreams with std::filesystem::path not std::basic_string.
167 * testsuite/27_io/filesystem/operations/last_write_time.cc: Use
168 path::string() to get narrow string.
169 * testsuite/27_io/filesystem/operations/space.cc: Check results for
170 errors, expect sensible values otherwise.
171 * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Add
172 helpers for adjusting the environment on Windows.
173 * testsuite/27_io/filesystem/path/append/path.cc: Test
174 Windows-specific behaviour.
175 * testsuite/27_io/filesystem/path/construct/format.cc: Fix creation
176 of path::string_type objects.
177 * testsuite/27_io/filesystem/path/construct/locale.cc: Compare native
178 string to wide string on Windows.
179 * testsuite/27_io/filesystem/path/decompose/root_directory.cc: Allow
180 for backslash as root-directory.
181 * testsuite/27_io/filesystem/path/decompose/stem.cc: Use
182 path::string() to get narrow string.
183 * testsuite/27_io/filesystem/path/itr/traversal.cc: Test Windows-style
184 paths.
185 * testsuite/27_io/filesystem/path/native/string.cc: Use string_type
186 not std::string.
187 * testsuite/27_io/filesystem/path/query/is_absolute.cc: Adjust for
188 different definintion of absolute paths on Windows.
189 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
190 Do not use symlinks.
191 * testsuite/experimental/filesystem/operations/absolute.cc: Test
192 Windows behaviour.
193 * testsuite/experimental/filesystem/operations/copy.cc: Construct
194 fstreams with NTCTS not std::basic_string.
195 * testsuite/experimental/filesystem/operations/copy_file.cc: Likewise.
196 * testsuite/experimental/filesystem/operations/exists.cc: Use
197 __gnu_test::root_path() instead of "/".
198 * testsuite/experimental/filesystem/operations/is_empty.cc: Construct
199 fstreams with NTCTS not std::basic_string.
200 * testsuite/experimental/filesystem/operations/last_write_time.cc:
201 Use path::string() to get narrow string.
202 * testsuite/experimental/filesystem/operations/space.cc: Use
203 __gnu_test::root_path() instead of "/".
204 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
205 Add helpers for adjusting the environment on Windows.
206 * testsuite/experimental/filesystem/path/append/path.cc: Use
207 path::string() to get narrow strings for comparisons.
208 * testsuite/experimental/filesystem/path/concat/path.cc: Likewise.
209 * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
210 Likewise.
211 * testsuite/experimental/filesystem/path/decompose/stem.cc: Likewise.
212 * testsuite/experimental/filesystem/path/native/string.cc: Use
213 string_type not std::string.
214 * testsuite/experimental/filesystem/path/query/is_absolute.cc:
215 Adjust for different definintion of absolute paths on Windows.
216 * testsuite/util/testsuite_fs.h (__gnu_test::root_path()): New
217 function.
218 (__gnu_test::scoped_file): Construct fstreams with NTCTS not
219 std::basic_string.
220
221 2018-05-31 Jonathan Wakely <jwakely@redhat.com>
222
223 PR libstdc++/85951
224 * include/std/type_traits [_GLIBCXX_USE_C99_STDINT_TR1]: Do not define
225 uint_least16_t and uint_least32_t.
226 (__make_unsigned<wchar_t>): Define unconditionally.
227 (__make_unsigned_selector<_Tp, true, false>): Remove intermediate
228 typedefs.
229 (__make_unsigned_selector_base): New type to provide helper templates.
230 (__make_unsigned_selector<_Tp, false, true>): Reimplement using
231 __make_unsigned_selector_base helpers.
232 (__make_unsigned<char16_t>, __make_unsigned<char32_t>): Define.
233 (__make_signed_selector<_Tp, true, false>): Remove intermediate
234 typedefs.
235 (__make_signed<wchar_t>, __make_signed<char16_t>)
236 (__make_signed<char32_t>)): Define unconditionally.
237 * testsuite/20_util/make_signed/requirements/typedefs-3.cc: Check
238 wchar_t, char16_t and char32_t are transformed correctly.
239 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust
240 dg-error lineno.
241 * testsuite/20_util/make_unsigned/requirements/typedefs-3.cc: Check
242 wchar_t, char16_t and char32_t are transformed correctly.
243 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Adjust
244 dg-error lineno.
245
246 2018-05-29 Jonathan Wakely <jwakely@redhat.com>
247
248 * include/std/variant (__erased_dtor): Qualify call to __get.
249
250 2018-05-27 François Dumont <fdumont@gcc.gnu.org>
251
252 * include/bits/stl_tree.h (_Rb_tree_impl(_Node_allocator&&)): New.
253 (_Rb_tree(const allocator_type&)): Use latter.
254 * include/bits/stl_map.h (map(const allocator_type&)): Likewise.
255 (map(initializer_list<value_type>, const allocator_type&)): Likewise.
256 (map(_InputIterator, _InputIterator, const allocator_type&)): Likewise.
257 * include/bits/stl_multimap.h
258 (multimap(const allocator_type&)): Likewise.
259 (multimap(initializer_list<value_type>, const allocator_type&)):
260 Likewise.
261 (multimap(_InputIterator, _InputIterator, const allocator_type&)):
262 Likewise.
263 * include/bits/stl_set.h (set(const allocator_type&)): Likewise.
264 (set(initializer_list<value_type>, const allocator_type&)): Likewise.
265 (set(_InputIterator, _InputIterator, const allocator_type&)): Likewise.
266 * include/bits/stl_multiset.h
267 (multiset(const allocator_type&)): Likewise.
268 (multiset(initializer_list<value_type>, const allocator_type&)):
269 Likewise.
270 (multiset(_InputIterator, _InputIterator, const allocator_type&)):
271 Likewise.
272
273 2018-05-25 François Dumont <fdumont@gcc.gnu.org>
274
275 PR libstdc++/85768
276 * src/c++11/debug.cc: Remove backtrace usage.
277
278 2018-05-24 Maya Rashish <coypu@sdf.org>
279
280 PR target/85904
281 * crossconfig.m4: Test for aligned_alloc on netbsd.
282 * configure: Regenerate.
283
284 2018-05-24 Jonathan Wakely <jwakely@redhat.com>
285
286 PR libstdc++/69769
287 PR libstdc++/85886
288 * include/bits/atomic_base.h (__atomic_base::value_type)
289 (__atomic_base::difference_type): Add new typedefs.
290 * include/std/atomic (atomic<bool>::value_type, atomic<T>::value_type)
291 (atomic<T*>::value_type, atomic<T*>::difference_type): Likewise.
292 (atomic<T*>::operator++, atomic<T*>::operator--)
293 (atomic<T*>::operator+=, atomic<T*>::operator-=)
294 (atomic<T*>::fetch_add, atomic<T*>::fetch_sub): Add static assertion
295 to enforce C++17 requirement on pointer arithmetic.
296 (__atomic_val_t, __atomic_diff_t): New alias templates.
297 (atomic_init, atomic_store_explicit, atomic_exchange_explicit)
298 (atomic_compare_exchange_weak_explicit)
299 (atomic_compare_exchange_strong_explicit, atomic_store)
300 (atomic_exchange, atomic_compare_exchange_weak)
301 (atomic_compare_exchange_strong): Use __atomic_val_t to make
302 scalar parameters be non-deduced contexts.
303 (atomic_fetch_add_explicit, atomic_fetch_sub_explicit)
304 (atomic_fetch_add, atomic_fetch_sub): Change first parameter to be
305 atomic instead of __atomic_base, and use __atomic_diff_t for scalar
306 parameters.
307 (atomic_fetch_and_explicit, atomic_fetch_or_explicit)
308 (atomic_fetch_xor_explicit, atomic_fetch_and, atomic_fetch_or)
309 (atomic_fetch_xor): Use __atomic_val_t for scalar parameters.
310 (atomic_fetch_add_explicit, atomic_fetch_sub_explicit)
311 (atomic_fetch_add, atomic_fetch_sub): Remove overloads for atomic
312 address types.
313 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error lineno.
314 * testsuite/29_atomics/atomic/69769.cc: New test.
315 * testsuite/29_atomics/atomic/nonmembers.cc: New test.
316 * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc:
317 Disable test for C++17 and later.
318 * testsuite/29_atomics/atomic/requirements/typedefs.cc: New test.
319 * testsuite/29_atomics/atomic_integral/nonmembers.cc: New test.
320 * testsuite/29_atomics/atomic_integral/requirements/typedefs.cc: New
321 test.
322
323 2018-05-23 Jonathan Wakely <jwakely@redhat.com>
324
325 * include/bits/fs_path.h (path::__is_encoded_char): Change from class
326 template to alias template.
327 (path::__value_type_is_char): Use remove_const_t.
328 (path:_S_string_from_iter): New helper function.
329 (path::_S_convert(InputIter, __null_terminated))
330 (path::_S_convert_loc(InputIter, __null_terminated, const locale&)):
331 Use _S_string_from_iter.
332 (path::string<_CharT, _Allocator>(const _Allocator&)): Allow sharing
333 rep for COW strings.
334 * include/experimental/bits/fs_path.h (path::__is_encoded_char):
335 Change from class template to alias template.
336 (path::__value_type_is_char): Use remove_const.
337 (path:_S_string_from_iter): New helper function.
338 (path::_S_convert(InputIter, __null_terminated))
339 (path::_S_convert_loc(InputIter, __null_terminated, const locale&)):
340 Use _S_string_from_iter.
341 * testsuite/27_io/filesystem/path/append/source.cc: Test appending
342 wide strings.
343 * testsuite/27_io/filesystem/path/concat/strings.cc: Check for exact
344 string equality, not path equivalence.
345 * testsuite/27_io/filesystem/path/construct/format.cc: Check
346 construction from std::string and std::wstring and input iterators.
347 * testsuite/27_io/filesystem/path/construct/locale.cc: Check
348 construction from iterators.
349 * testsuite/experimental/filesystem/path/concat/strings.cc: Check for
350 exact string equality, not path equivalence.
351 * testsuite/experimental/filesystem/path/construct/locale.cc: Check
352 construction from iterators.
353
354 * include/bits/fs_path.h (path::_M_type): Change default member
355 initializer to _Filename.
356 (path::begin): Create past-the-end iterator for empty path.
357 * src/filesystem/std-path.cc (path::remove_filename()): Remove
358 debugging check.
359 (path::has_relative_path()): Return false for empty filenames.
360 (path::_M_split_cmpts): Set _M_type to _Filename for empty paths.
361 Fix offset of empty final component.
362 * testsuite/27_io/filesystem/path/itr/components.cc: New.
363 * testsuite/27_io/filesystem/path/itr/traversal.cc: Add new inputs.
364
365 2018-05-21 Jonathan Wakely <jwakely@redhat.com>
366
367 Add support for opening file streams from wide character strings.
368 * config/io/basic_file_stdio.cc [_GLIBCXX_HAVE__WFOPEN]
369 (__basic_file<char>::open(const wchar_t*, ios_base::openmode)):
370 Define new overload.
371 * config/io/basic_file_stdio.h [_GLIBCXX_HAVE__WFOPEN]
372 (__basic_file<char>::open(const wchar_t*, ios_base::openmode)):
373 Declare new overload.
374 * configure.ac: Check for _wfopen.
375 * crossconfig.m4: Likewise.
376 * configure: Regenerate.
377 * config.h.in: Regenerate.
378 * include/bits/fstream.tcc [_GLIBCXX_HAVE__WFOPEN]
379 (basic_filebuf<C,T>::open(const wchar_t*, ios_base::openmode)):
380 Define new overload.
381 * include/std/fstream [_GLIBCXX_HAVE__WFOPEN]
382 (basic_filebuf<C,T>::open(const wchar_t*, ios_base::openmode)):
383 Declare new overload.
384 [_GLIBCXX_HAVE__WFOPEN]
385 (basic_ifstream<C,T>::basic_ifstream(const wchar_t*, openmode))
386 (basic_ifstream<C,T>::basic_open(const wchar_t*, openmode))
387 (basic_ofstream<C,T>::basic_ifstream(const wchar_t*, openmode))
388 (basic_ofstream<C,T>::basic_open(const wchar_t*, openmode))
389 (basic_fstream<C,T>::basic_ifstream(const wchar_t*, openmode))
390 (basic_fstream<C,T>::basic_open(const wchar_t*, openmode)): Define
391 new overloads.
392 * testsuite/27_io/basic_filebuf/open/wchar_t/1.cc: New.
393 * testsuite/27_io/basic_ifstream/cons/wchar_t/1.cc: New.
394 * testsuite/27_io/basic_ifstream/open/wchar_t/1.cc: New.
395 * testsuite/27_io/basic_ofstream/cons/wchar_t/1.cc: New.
396 * testsuite/27_io/basic_ofstream/open/wchar_t/1.cc: New.
397 * testsuite/27_io/basic_fstream/cons/wchar_t/1.cc: New.
398 * testsuite/27_io/basic_fstream/open/wchar_t/1.cc: New.
399
400 2018-05-21 François Dumont <fdumont@gcc.gnu.org>
401
402 PR libstdc++/85845
403 * include/bits/stl_tree.h
404 (_Rb_tree_impl(_Rb_tree_impl&&, _Node_allocator&&)): Fix noexcept
405 qualification.
406
407 2018-05-21 Jonathan Wakely <jwakely@redhat.com>
408
409 * src/filesystem/std-ops.cc (absolute): Report an error for empty
410 paths.
411 (weakly_canonical(const path&)): Do not call canonical on empty path.
412 (weakly_canonical(const path&, error_code&)): Likewise.
413 * testsuite/27_io/filesystem/operations/absolute.cc: Check for errors.
414
415 PR libstdc++/85818
416 * testsuite/experimental/filesystem/path/preferred_separator.cc: Add
417 dg-require-filesystem-ts.
418
419 PR libstdc++/85843
420 * src/c++11/cow-stdexcept.cc (logic_error, runtime_error): Explicitly
421 initialize base class to avoid warnings.
422
423 2018-05-19 Jonathan Wakely <jwakely@redhat.com>
424
425 * src/c++11/codecvt.cc (__codecvt_utf8_base<wchar_t>::do_in)
426 [__SIZEOF_WCHAR_T__==2 && __BYTE_ORDER__!=__ORDER_BIG_ENDIAN__]: Set
427 little_endian element in bitmask.
428 * testsuite/22_locale/codecvt/codecvt_utf8/69703.cc: Run all tests.
429 * testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc: New.
430
431 2018-05-18 François Dumont <fdumont@gcc.gnu.org>
432
433 * include/bits/stl_tree.h
434 (_Rb_tree_impl(_Rb_tree_impl&&, _Node_allocator&&)): New.
435 (_Rb_tree(_Rb_tree&&, _Node_allocator&&, true_type)): New, use latter.
436 (_Rb_tree(_Rb_tree&&, _Node_allocator&&, false_type)): New.
437 (_Rb_tree(_Rb_tree&&, _Node_allocator&&)): Adapt, use latters.
438 * include/debug/map.h
439 (map(map&&, const_allocator_type&)): Add noexcept qualitication.
440 * include/debug/multimap.h
441 (multimap(multimap&&, const_allocator_type&)): Likewise.
442 * include/debug/set.h
443 (set(set&&, const_allocator_type&)): Likewise.
444 * include/debug/multiset.h
445 (multiset(multiset&&, const_allocator_type&)): Likewise.
446 * testsuite/23_containers/map/cons/noexcept_default_construct.cc:
447 Add checks.
448 * testsuite/23_containers/map/cons/noexcept_move_construct.cc:
449 Add checks.
450 * testsuite/23_containers/multimap/cons/noexcept_default_construct.cc:
451 Add checks.
452 * testsuite/23_containers/multimap/cons/noexcept_move_construct.cc:
453 Add checks.
454 * testsuite/23_containers/multiset/cons/noexcept_default_construct.cc:
455 Add checks.
456 * testsuite/23_containers/multiset/cons/noexcept_move_construct.cc:
457 Add checks.
458 * testsuite/23_containers/set/cons/noexcept_default_construct.cc:
459 Add checks.
460 * testsuite/23_containers/set/cons/noexcept_move_construct.cc:
461 Add checks.
462
463 2018-05-18 Jason Merrill <jason@redhat.com>
464
465 * include/bits/stl_deque.h (_Deque_iterator): Constrain constructor
466 for conversion to const_iterator. Add defaulted copy ops.
467 * libsupc++/new (bad_alloc): Add defaulted copy ops.
468 * libsupc++/exception.h (exception): Add defaulted copy ops.
469 * include/std/system_error (system_error): Add defaulted copy ops.
470 * include/std/stdexcept (domain_error, invalid_argument)
471 (length_error, out_of_range, range_error, overflow_error)
472 (underflow_error): Add defaulted copy ops.
473 * include/bits/stl_iterator.h (reverse_iterator): Add defaulted
474 copy assignment.
475 * include/bits/allocator.h (allocator): Add defaulted copy assignment.
476 * include/ext/throw_allocator.h (condition_base): Add defaulted
477 default and copy ctor and copy assignment.
478
479 2018-05-18 Jonathan Wakely <jwakely@redhat.com>
480
481 PR libstdc++/85098
482 * include/bits/regex.h [__cplusplus < 201703L] (basic_regex::icase)
483 (basic_regex::nosubs, basic_regex::optimize, basic_regex::collate)
484 (basic_regex::ECMAScript, basic_regex::basic, basic_regex::extended)
485 (basic_regex::awk, basic_regex::grep, basic_regex::egrep): Add
486 definitions.
487 * include/bits/regex_automaton.h (_NFA::_M_insert_state): Adjust
488 whitespace.
489 * include/bits/regex_compiler.tcc (__INSERT_REGEX_MATCHER): Add
490 braces around body of do-while.
491 * testsuite/28_regex/basic_regex/85098.cc: New
492
493 2018-05-17 Jonathan Wakely <jwakely@redhat.com>
494
495 PR libstdc++/85818
496 * src/filesystem/path.cc (path::preferred_separator): Add used
497 attribute.
498 * testsuite/experimental/filesystem/path/preferred_separator.cc: New.
499
500 PR libstdc++/85812
501 * libsupc++/cxxabi_init_exception.h (__cxa_free_exception): Declare.
502 * libsupc++/exception_ptr.h (make_exception_ptr) [__cpp_exceptions]:
503 Refactor to separate non-throwing and throwing implementations.
504 [__cpp_rtti && !_GLIBCXX_HAVE_CDTOR_CALLABI]: Deallocate the memory
505 if constructing the object throws.
506
507 2018-05-15 Jonathan Wakely <jwakely@redhat.com>
508
509 PR libstdc++/85749
510 * include/bits/random.h (__detail::__is_seed_seq): New SFINAE helper.
511 (linear_congruential_engine, mersenne_twister_engine)
512 (subtract_with_carry_engine, discard_block_engine)
513 (independent_bits_engine, shuffle_order_engine): Use __is_seed_seq to
514 constrain function templates taking seed sequences.
515 * include/bits/random.tcc (linear_congruential_engine::seed(_Sseq&))
516 (mersenne_twister_engine::seed(_Sseq&))
517 (subtract_with_carry_engine::seed(_Sseq&)): Change return types to
518 match declarations.
519 * include/ext/random (simd_fast_mersenne_twister_engine): Use
520 __is_seed_seq to constrain function templates taking seed sequences.
521 * include/ext/random.tcc (simd_fast_mersenne_twister_engine::seed):
522 Change return type to match declaration.
523 * testsuite/26_numerics/random/discard_block_engine/cons/seed_seq2.cc:
524 New.
525 * testsuite/26_numerics/random/independent_bits_engine/cons/
526 seed_seq2.cc: New.
527 * testsuite/26_numerics/random/linear_congruential_engine/cons/
528 seed_seq2.cc: New.
529 * testsuite/26_numerics/random/mersenne_twister_engine/cons/
530 seed_seq2.cc: New.
531 * testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error lineno.
532 * testsuite/26_numerics/random/shuffle_order_engine/cons/seed_seq2.cc:
533 New.
534 * testsuite/26_numerics/random/subtract_with_carry_engine/cons/
535 seed_seq2.cc: New.
536 * testsuite/ext/random/simd_fast_mersenne_twister_engine/cons/
537 seed_seq2.cc: New.
538
539 PR libstdc++/83891
540 * include/bits/fs_path.h (path::is_absolute()): Use same definition
541 for all operating systems.
542 * include/experimental/bits/fs_path.h (path::is_absolute()): Likewise.
543 * testsuite/27_io/filesystem/path/query/is_absolute.cc: New.
544 * testsuite/27_io/filesystem/path/query/is_relative.cc: Fix comment.
545 * testsuite/experimental/filesystem/path/query/is_absolute.cc: New.
546
547 * testsuite/27_io/filesystem/path/decompose/extension.cc: Remove
548 unused <vector> header.
549 * testsuite/27_io/filesystem/path/query/empty.cc: Likewise.
550 * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise.
551 * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise.
552 * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise.
553 * testsuite/27_io/filesystem/path/query/has_relative_path.cc:
554 Likewise.
555 * testsuite/27_io/filesystem/path/query/has_root_directory.cc:
556 Likewise.
557 * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise.
558 * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise.
559 * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise.
560 * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise.
561 * testsuite/experimental/filesystem/path/decompose/extension.cc:
562 Likewise.
563 * testsuite/experimental/filesystem/path/query/empty.cc: Likewise.
564 * testsuite/experimental/filesystem/path/query/has_extension.cc:
565 Likewise.
566 * testsuite/experimental/filesystem/path/query/has_filename.cc:
567 Likewise.
568 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
569 Likewise.
570 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
571 Likewise.
572 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
573 Likewise.
574 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
575 Likewise.
576 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
577 Likewise.
578 * testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise.
579 * testsuite/experimental/filesystem/path/query/is_relative.cc:
580 Likewise.
581
582 PR libstdc++/84159
583 * include/bits/fs_path.h (path::operator/=, path::append): Construct
584 temporary path before calling _M_append.
585 (path::_M_append): Change parameter to path and implement C++17
586 semantics.
587 * testsuite/27_io/filesystem/path/append/path.cc: Add helper function
588 and more examples from the standard.
589 * testsuite/27_io/filesystem/path/append/source.cc: New.
590 * testsuite/27_io/filesystem/path/decompose/filename.cc: Add comment.
591 * testsuite/27_io/filesystem/path/nonmember/append.cc: New.
592
593 * include/std/variant (__gen_vtable_impl::__visit_invoke): Qualify
594 __invoke to prevent ADL.
595
596 2018-05-14 Jonathan Wakely <jwakely@redhat.com>
597
598 PR libstdc++/81256
599 * include/bits/fstream.tcc (basic_filebuf::close): Do not swallow
600 exceptions from _M_terminate_output().
601 * include/std/fstream (basic_filebuf::~basic_filebuf): Swallow any
602 exceptions from close().
603 * testsuite/27_io/basic_filebuf/close/81256.cc: New.
604
605 * include/bits/valarray_array.h (__valarray_get_memory): Remove.
606 (__valarray_get_storage): Call operator new directly. Remove ignored
607 top-level restrict qualifier and add malloc attribute instead.
608 (_Array<_Tp>::_Array(size_t)): Remove unused constructor.
609
610 PR libstdc++/67554
611 * include/bits/valarray_array.h (_Array_copy_ctor<_Tp, true>)
612 (_Array_copier<_Tp, true>): Do not pass null pointers to memcpy.
613
614 PR libstdc++/82966
615 * include/bits/node_handle.h (_Node_handle_common::_M_swap): Use value
616 instead of type.
617 * testsuite/23_containers/set/modifiers/node_swap.cc: New.
618
619 2018-05-13 Ville Voutilainen <ville.voutilainen@gmail.com>
620
621 PR libstdc++/80165
622 * testsuite/20_util/variant/80165.cc: New.
623
624 2018-05-10 Jonathan Wakely <jwakely@redhat.com>
625
626 * doc/xml/faq.xml: Link to C++17 status. Add note to outdated answer.
627 * doc/xml/manual/debug_mode.xml: Add array and forward_list to list
628 of C++11 containers with Debug Mode support.
629 * doc/xml/manual/using.xml: Document Dual ABI for ios_base::failure.
630 * doc/html/*: Regenerate.
631
632 2018-05-10 Jason Merrill <jason@redhat.com>
633
634 * include/bits/regex_compiler.h (_S_cache_size): Change from
635 function to variable.
636
637 2018-05-10 Edward Smith-Rowland <3dw4rd@verizon.net>
638
639 PR libstdc++/83140 - assoc_legendre returns negated value when m is odd
640 * include/tr1/legendre_function.tcc (__assoc_legendre_p): Add __phase
641 argument defaulted to +1. Doxy comments on same.
642 * testsuite/special_functions/02_assoc_legendre/
643 check_value.cc: Regen.
644 * testsuite/tr1/5_numerical_facilities/special_functions/
645 02_assoc_legendre/check_value.cc: Regen.
646
647 2018-05-10 Jonathan Wakely <jwakely@redhat.com>
648
649 PR libstdc++/85729
650 * include/bits/c++config.h (__replacement_assert): Add linkage
651 specification.
652 * include/bits/std_abs.h: Add comment to closing brace of block.
653 * include/c_global/cstddef: Add linkage specification.
654 * include/c_global/cstring: Likewise.
655 * include/c_global/cwchar: Likewise.
656
657 2018-05-09 François Dumont <fdumont@gcc.gnu.org>
658
659 * include/debug/safe_iterator.h (_Safe_iterator<>::_M_constant()):
660 Rename in...
661 (_Safe_iterator<>::_S_constant()): ...that.
662 * include/debug/safe_local_iterator.h
663 (_Safe_local_iterator<>::_M_constant()): Rename in...
664 (_Safe_local_iterator<>::_S_constant()): ...that.
665 * include/debug/formatter.h: Remove bits/cpp_type_traits.h include.
666 (_Iterator_state::__rbegin): New.
667 (_Iterator_state::__rmiddle): New.
668 (_Iterator_state::__rend): New.
669 (_Parameter::_Parameter(const _Safe_iterator<>&, const char*,
670 _Is_iterator)): Use _Safe_iterator<>::_S_constant. Grab normal underlying
671 iterator type.
672 (_Parameter::_Parameter(const _Safe_local_iterator<>&, const char*,
673 _Is_iterator)): Likewise.
674 (_Parameter::_S_reverse_state(_Iterator_state)): New.
675 (_Parameter(__gnu_cxx::__normal_iterator<> const&, const char*,
676 _Is_iterator)): New.
677 (_Parameter(std::reverse_iterator<> const&, const char*,
678 _Is_iterator)): New.
679 (_Parameter(std::reverse_iterator<_Safe_iterator<>> const&,
680 const char*, _Is_iterator)): New.
681 (_Parameter(std::move_iterator<> const&, const char*, _Is_iterator):
682 New.
683 (_Parameter(std::move_iterator<_Safe_iterator<>> const&, const char*,
684 _Is_iterator)): New.
685 * testsuite/24_iterators/move_iterator/debug_neg.cc: New.
686 * testsuite/24_iterators/normal_iterator/debug_neg.cc: New.
687 * testsuite/24_iterators/reverse_iterator/debug_neg.cc: New.
688
689 2018-05-09 Jonathan Wakely <jwakely@redhat.com>
690
691 * include/bits/std_function.h (_Base_manager::_M_get_pointer):
692 Use constexpr if in C++17 mode.
693 (_Base_manager::_M_clone(_Any_data&, const _Any_data&, true_type)):
694 Copy from const object.
695 * testsuite/20_util/function/cons/non_copyconstructible.cc: New.
696
697 2018-05-08 François Dumont <fdumont@gcc.gnu.org>
698
699 * src/c++11/debug.cc [_GLIBCXX_HAVE_EXECINFO_H]: Include execinfo.h.
700 [_GLIBCXX_HAVE_EXECINFO_H](_Error_formatter::_M_error): Render
701 backtrace.
702
703 * include/debug/macros.h (__glibcxx_check_valid_range_at): New.
704 * include/debug/functions.h (__check_valid_range): Use latter.
705 * include/debug/macros.h (__glibcxx_check_valid_constructor_range): New,
706 use latter.
707 * include/debug/deque
708 (deque::deque<_Iter>(_Iter, _Iter, const _Alloc&)): Use latter.
709 * include/debug/forward_list
710 (forward_list::forward_list<_Iter>(_Iter, _Iter, const _Alloc&)):
711 Likewise.
712 * include/debug/list
713 (list::list<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
714 * include/debug/list
715 (list::list<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
716 * include/debug/map.h
717 (map::map<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
718 (map::map<_Iter>(_Iter, _Iter, const _Compare&, const _Alloc&)):
719 Likewise.
720 * include/debug/multimap.h
721 (multimap::multimap<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
722 (multimap::multimap<_Iter>(_Iter, _Iter, const _Compare&,
723 const _Alloc&)): Likewise.
724 * include/debug/set.h
725 (set::set<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
726 (set::set<_Iter>(_Iter, _Iter, const _Compare&, const _Alloc&)):
727 Likewise.
728 * include/debug/multiset.h
729 (multiset::multiset<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
730 (multiset::multiset<_Iter>(_Iter, _Iter, const _Compare&,
731 const _Alloc&)): Likewise.
732 * include/debug/string
733 (basic_string::basic_string<_Iter>(_Iter, _Iter, const _Alloc&)):
734 Likewise.
735 * include/debug/unordered_map
736 (unordered_map::unordered_map<_Iter>(_Iter, _Iter, const _Alloc&)):
737 Likewise.
738 (unordered_multimap::unordered_multimap<_Iter>(_Iter, _Iter,
739 const _Alloc&)): Likewise.
740 * include/debug/unordered_set
741 (unordered_set::unordered_set<_Iter>(_Iter, _Iter, const _Alloc&)):
742 Likewise.
743 (unordered_multiset::unordered_multiset<_Iter>(_Iter, _Iter,
744 const _Alloc&)): Likewise.
745 * include/debug/vector
746 (vector::vector<_Iter>(_Iter, _Iter, const _Alloc&)): Use latter.
747
748 * include/debug/formatter.h (_Error_formatter::_M_function): New.
749 (_Error_formatter(const char*, unsigned int)): Adapt.
750 (_Error_formatter::_M_at): Rename in...
751 (_Error_formatter::_S_at): ...that and adapt.
752 * include/debug/macros.h (_GLIBCXX_DEBUG_VERIFY_AT_F): New.
753 (_GLIBCXX_DEBUG_VERIFY_AT, _GLIBCXX_DEBUG_VERIFY): Adapt.
754 * src/c++11/debug.cc (_Error_formatter::_M_error): Render _M_function
755 when available.
756
757 2018-05-08 Jonathan Wakely <jwakely@redhat.com>
758
759 * include/bits/regex_automaton.h (_NFA_base::_M_paren_stack, _NFA):
760 Use normal std::vector even in Debug Mode.
761
762 PR libstdc++/85672
763 * include/Makefile.am [!ENABLE_FLOAT128]: Change c++config.h entry
764 to #undef _GLIBCXX_USE_FLOAT128 instead of defining it to zero.
765 * include/Makefile.in: Regenerate.
766 * include/bits/c++config (_GLIBCXX_USE_FLOAT128): Move definition
767 within conditional block.
768
769 2018-05-07 Jonathan Wakely <jwakely@redhat.com>
770
771 * doc/xml/manual/using.xml (table.cmd_options): Document that the
772 C++17 Filesystem implementation also needs -lstdc++fs.
773
774 PR libstdc++/85671
775 * include/bits/fs_path.h (operator/): Permit copy elision.
776 * include/experimental/bits/fs_path.h (operator/): Likewise.
777
778 2018-05-07 Edward Smith-Rowland <3dw4rd@verizon.net>
779
780 Moar PR libstdc++/80506
781 * include/bits/random.tcc (gamma_distribution::__generate_impl()):
782 Fix magic number used in loop condition.
783
784 2018-05-04 Jonathan Wakely <jwakely@redhat.com>
785
786 PR libstdc++/85642 fix is_nothrow_default_constructible<optional<T>>
787 * include/std/optional (_Optional_payload): Add noexcept to default
788 constructor. Re-indent.
789 (_Optional_payload<_Tp, true, true, true>): Likewise. Add noexcept to
790 constructor for copying disengaged payloads.
791 (_Optional_payload<_Tp, true, false, true>): Likewise.
792 (_Optional_payload<_Tp, true, true, false>): Likewise.
793 (_Optional_payload<_Tp, true, false, false>): Likewise.
794 * testsuite/20_util/optional/cons/85642.cc: New.
795 * testsuite/20_util/optional/cons/value_neg.cc: Adjust dg-error lines.
796
797 2018-05-03 Jonathan Wakely <jwakely@redhat.com>
798
799 PR libstdc++/82644
800 * include/tr1/cmath [__STRICT_ANSI__] (hypergf, hypergl, hyperg): Use
801 inline definitions instead of using-declarations.
802 [__STRICT_ANSI__] (conf_hypergf, conf_hypergl, conf_hyperg): Likewise.
803 * testsuite/tr1/5_numerical_facilities/special_functions/
804 07_conf_hyperg/compile_cxx17.cc: New.
805 * testsuite/tr1/5_numerical_facilities/special_functions/
806 17_hyperg/compile_cxx17.cc: New.
807
808 PR libstdc++/84769
809 * include/std/variant (visit): Qualify std::get call.
810
811 PR libstdc++/85632 use uintmax_t for arithmetic
812 * src/filesystem/ops.cc (experimental::filesystem::space): Perform
813 arithmetic in result type.
814 * src/filesystem/std-ops.cc (filesystem::space): Likewise.
815 * testsuite/27_io/filesystem/operations/space.cc: Check total capacity
816 is greater than free space.
817 * testsuite/experimental/filesystem/operations/space.cc: New.
818
819 * testsuite/20_util/remove_cvref/requirements/alias_decl.cc: New.
820 * testsuite/20_util/remove_cvref/requirements/explicit_instantiation.cc:
821 New.
822 * testsuite/20_util/remove_cvref/value.cc: New.
823 * testsuite/20_util/remove_cvref/value_ext.cc: New.
824
825 PR libstdc++/84087 LWG DR 2268 basic_string default arguments
826 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI=1]
827 (append(const basic_string&, size_type, size_type)
828 (assign(const basic_string&, size_type, size_type)
829 (insert(size_type, const basic_string&, size_type, size_type)
830 (replace(size_type,size_type,const basic_string&,size_type,size_type)
831 (compare(size_type,size_type,constbasic_string&,size_type,size_type)):
832 Add default arguments (LWG 2268).
833 [_GLIBCXX_USE_CXX11_ABI=0]
834 (append(const basic_string&, size_type, size_type)
835 (assign(const basic_string&, size_type, size_type)
836 (insert(size_type, const basic_string&, size_type, size_type)
837 (replace(size_type,size_type,const basic_string&,size_type,size_type)
838 (compare(size_type,size_type,constbasic_string&,size_type,size_type)):
839 Likewise.
840 * testsuite/21_strings/basic_string/dr2268.cc: New test.
841
842 PR libstdc++/84535
843 * include/std/thread (thread::__not_same): New SFINAE helper.
844 (thread::thread(_Callable&&, _Args&&...)): Add SFINAE constraint that
845 first argument is not a std::thread. Add static assertion to check
846 INVOKE expression is valid.
847 (thread::thread(thread&), thread::thread(const thread&&)): Remove.
848 (thread::_Invoke::_M_invoke, thread::_Invoke::operator()): Use
849 __invoke_result for return types and remove exception specifications.
850 * testsuite/30_threads/thread/cons/84535.cc: New.
851
852 * include/std/future (__async_result_of): Use __invoke_result instead
853 of result_of.
854
855 * include/std/any (any_cast): Use __remove_cvref_t.
856 * include/std/tuple (__make_tuple): Likewise.
857 * include/std/type_traits (__remove_cvref_t): Define.
858 (__result_of_memobj, __result_of_memfun): Use __remove_cvref_t.
859 [__cplusplus > 201703L] (remove_cvref, remove_cvref_t): Define.
860 * include/std/variant (__erased_hash): Use __remove_cvref_t.
861
862 2018-05-02 François Dumont <fdumont@gcc.gnu.org>
863
864 * include/bits/deque.tcc (deque<>::_M_assign_aux): Cast to void to
865 ensure overloaded comma not used.
866 * include/bits/list.tcc (list<>::_M_assign_dispatch): Likewise.
867 * include/bits/vector.tcc (vector<>::_M_assign_aux): Likewise.
868 * include/bits/stl_bvector.h (vector<bool>::_M_assign_aux): Likewise.
869 * testsuite/23_containers/deque/modifiers/assign/1.cc: New.
870 * testsuite/23_containers/list/modifiers/assign/1.cc: New.
871 * testsuite/23_containers/vector/bool/modifiers/assign/1.cc: New.
872 * testsuite/23_containers/vector/modifiers/assign/1.cc: New.
873
874 2018-05-02 Jonathan Wakely <jwakely@redhat.com>
875
876 PR libstdc++/68197
877 * include/bits/ios_base.h (ios_base::iword, ios_base::pword): Cast
878 indices to unsigned.
879 * src/c++11/ios.cc (ios_base::_M_grow_words): Treat negative indices
880 as failure. Refactor error handling.
881 * testsuite/27_io/ios_base/storage/68197.cc: New.
882
883 PR libstdc++/57997
884 PR libstdc++/83860
885 * include/bits/gslice_array.h (gslice_array): Define default
886 constructor as deleted, as per C++11 standard.
887 * include/bits/mask_array.h (mask_array): Likewise.
888 * include/bits/slice_array.h (slice_array): Likewise.
889 * include/bits/valarray_after.h (_GBase, _GClos, _IBase, _IClos): Move
890 to namespace __detail.
891 (_GBase::_M_expr, _IBase::_M_expr): Use _ValArrayRef for type of data
892 members.
893 * include/bits/valarray_before.h (_ValArrayRef): New helper for type
894 of data members in closure objects.
895 (_FunBase, _ValFunClos, _RefFunClos, _UnBase, _UnClos, _BinBase)
896 (_BinBase2, _BinBase1, _BinClos, _SBase, _SClos): Move to namespace
897 __detail.
898 (_FunBase::_M_expr, _UnBase::_M_expr, _BinBase::_M_expr1)
899 (_BinBase::_M_expr2, _BinBase2::_M_expr1, _BinBase1::_M_expr2)
900 (_SBase::_M_expr): Use _ValArrayRef for type of data members.
901 * include/std/valarray (_UnClos, _BinClos, _SClos, _GClos, _IClos)
902 (_ValFunClos, _RefFunClos): Move to namespace __detail and add
903 using-declarations to namespace std.
904 * testsuite/26_numerics/valarray/83860.cc: New.
905
906 * testsuite/backward/strstream_move.cc: Remove duplicate function
907 call.
908
909 PR libstdc++/69608
910 * include/backward/strstream (strstreambuf): Define move constructor
911 and move assignment operator.
912 (istrstream, ostrstream, strstream): Likewise.
913 * testsuite/backward/strstream_move.cc: New.
914
915 2018-05-01 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
916
917 PR libstdc++/84654
918 * acinclude.m4: Set ENABLE_FLOAT128 instead of _GLIBCXX_USE_FLOAT128.
919 * config.h.in: Remove references to _GLIBCXX_USE_FLOAT128.
920 * configure: Regenerate.
921 * include/Makefile.am: Replace the value of _GLIBCXX_USE_FLOAT128
922 based on ENABLE_FLOAT128.
923 * include/Makefile.in: Regenerate.
924 * include/bits/c++config: Define _GLIBCXX_USE_FLOAT128.
925 [!defined(__FLOAT128__) && !defined(__SIZEOF_FLOAT128__)]: Undefine
926 _GLIBCXX_USE_FLOAT128.
927
928 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
929
930 * configure: Regenerated.
931
932 2018-04-19 Jakub Jelinek <jakub@redhat.com>
933
934 * configure: Regenerated.
935
936 2018-04-18 Jonathan Wakely <jwakely@redhat.com>
937 Jakub Jelinek <jakub@redhat.com>
938
939 PR libstdc++/85442
940 * src/c++11/Makefile.am: Don't generate debuginfo again for
941 cxx11-ios_failure-lt.s and cxx11-ios_failure.s files.
942 * src/c++11/Makefile.in: Regenerate.
943
944 2018-04-18 Jonathan Wakely <jwakely@redhat.com>
945
946 PR libstdc++/84442
947 * testsuite/30_threads/thread/cons/terminate.cc
948 [!_GLIBCXX_USE_C99_STDLIB] : Use _exit or std::exit instead of _Exit.
949
950 2018-04-18 David Malcolm <dmalcolm@redhat.com>
951
952 PR jit/85384
953 * configure: Regenerate.
954
955 2018-04-16 Jonathan Wakely <jwakely@redhat.com>
956
957 * testsuite/experimental/filesystem/file_status/1.cc: Add
958 -DUSE_FILESYSTEM_TS to dg-options.
959 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
960 Likewise.
961 * testsuite/experimental/filesystem/iterators/pop.cc: Likewise.
962 * testsuite/experimental/filesystem/iterators/
963 recursive_directory_iterator.cc: Likewise.
964 * testsuite/experimental/filesystem/operations/absolute.cc: Likewise.
965 * testsuite/experimental/filesystem/operations/canonical.cc: Likewise.
966 * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
967 * testsuite/experimental/filesystem/operations/copy_file.cc: Likewise.
968 * testsuite/experimental/filesystem/operations/create_directories.cc:
969 Likewise.
970 * testsuite/experimental/filesystem/operations/create_directory.cc:
971 Likewise.
972 * testsuite/experimental/filesystem/operations/create_symlink.cc:
973 Likewise.
974 * testsuite/experimental/filesystem/operations/current_path.cc:
975 Likewise.
976 * testsuite/experimental/filesystem/operations/equivalent.cc: Likewise.
977 * testsuite/experimental/filesystem/operations/exists.cc: Likewise.
978 * testsuite/experimental/filesystem/operations/file_size.cc: Likewise.
979 * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise.
980 * testsuite/experimental/filesystem/operations/last_write_time.cc:
981 Likewise.
982 * testsuite/experimental/filesystem/operations/permissions.cc:
983 Likewise.
984 * testsuite/experimental/filesystem/operations/read_symlink.cc:
985 Likewise.
986 * testsuite/experimental/filesystem/operations/remove.cc: Likewise.
987 * testsuite/experimental/filesystem/operations/remove_all.cc: Likewise.
988 * testsuite/experimental/filesystem/operations/status.cc: Likewise.
989 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
990 Likewise.
991 * testsuite/experimental/filesystem/path/append/path.cc: Likewise.
992 * testsuite/experimental/filesystem/path/assign/assign.cc: Likewise.
993 * testsuite/experimental/filesystem/path/assign/copy.cc: Likewise.
994 * testsuite/experimental/filesystem/path/compare/compare.cc: Likewise.
995 * testsuite/experimental/filesystem/path/compare/path.cc: Likewise.
996 * testsuite/experimental/filesystem/path/compare/strings.cc: Likewise.
997 * testsuite/experimental/filesystem/path/concat/path.cc: Likewise.
998 * testsuite/experimental/filesystem/path/concat/strings.cc: Likewise.
999 * testsuite/experimental/filesystem/path/construct/copy.cc: Likewise.
1000 * testsuite/experimental/filesystem/path/construct/default.cc:
1001 Likewise.
1002 * testsuite/experimental/filesystem/path/construct/locale.cc: Likewise.
1003 * testsuite/experimental/filesystem/path/construct/range.cc: Likewise.
1004 * testsuite/experimental/filesystem/path/construct/string_view.cc:
1005 Likewise.
1006 * testsuite/experimental/filesystem/path/decompose/extension.cc:
1007 Likewise.
1008 * testsuite/experimental/filesystem/path/decompose/filename.cc:
1009 Likewise.
1010 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
1011 Likewise.
1012 * testsuite/experimental/filesystem/path/decompose/relative_path.cc:
1013 Likewise.
1014 * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
1015 Likewise.
1016 * testsuite/experimental/filesystem/path/decompose/root_name.cc:
1017 Likewise.
1018 * testsuite/experimental/filesystem/path/decompose/root_path.cc:
1019 Likewise.
1020 * testsuite/experimental/filesystem/path/decompose/stem.cc: Likewise.
1021 * testsuite/experimental/filesystem/path/generic/generic_string.cc:
1022 Likewise.
1023 * testsuite/experimental/filesystem/path/itr/traversal.cc: Likewise.
1024 * testsuite/experimental/filesystem/path/modifiers/clear.cc: Likewise.
1025 * testsuite/experimental/filesystem/path/modifiers/make_preferred.cc:
1026 Likewise.
1027 * testsuite/experimental/filesystem/path/modifiers/remove_filename.cc:
1028 Likewise.
1029 * testsuite/experimental/filesystem/path/modifiers/replace_extension.cc:
1030 Likewise.
1031 * testsuite/experimental/filesystem/path/modifiers/replace_filename.cc:
1032 Likewise.
1033 * testsuite/experimental/filesystem/path/modifiers/swap.cc: Likewise.
1034 * testsuite/experimental/filesystem/path/native/string.cc: Likewise.
1035 * testsuite/experimental/filesystem/path/nonmember/hash_value.cc:
1036 Likewise.
1037 * testsuite/experimental/filesystem/path/query/empty.cc: Likewise.
1038 * testsuite/experimental/filesystem/path/query/has_extension.cc:
1039 Likewise.
1040 * testsuite/experimental/filesystem/path/query/has_filename.cc:
1041 Likewise.
1042 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
1043 Likewise.
1044 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
1045 Likewise.
1046 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
1047 Likewise.
1048 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
1049 Likewise.
1050 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
1051 Likewise.
1052 * testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise.
1053 * testsuite/experimental/filesystem/path/query/is_relative.cc:
1054 Likewise.
1055
1056 2018-04-13 Jonathan Wakely <jwakely@redhat.com>
1057
1058 * src/c++11/Makefile.am: Fix sed command.
1059 * src/c++11/Makefile.in: Regenerate.
1060
1061 * src/c++11/Makefile.am: Rewrite sed rule to be less fragile and to
1062 handle mangled names starting with double underscores on darwin.
1063 * src/c++11/Makefile.in: Regenerate.
1064
1065 2018-04-12 Jonathan Wakely <jwakely@redhat.com>
1066
1067 * src/c++11/Makefile.am: Fix comment.
1068 * src/c++11/Makefile.in: Regenerate.
1069 * src/c++11/cxx11-ios_failure.cc: Fix comment.
1070 * src/c++98/ios_failure.cc: Likewise.
1071
1072 * src/c++11/ios.cc: Remove redundant macro definition.
1073
1074 2018-04-11 Jonathan Wakely <jwakely@redhat.com>
1075
1076 * doc/xml/manual/abi.xml: Document header locations in recent
1077 releases.
1078 * doc/xml/manual/evolution.xml: Add API changes since GCC 5.
1079 * doc/xml/manual/spine.xml: Update copyright years.
1080 * doc/xml/manual/strings.xml: Adjust tolower example to avoid
1081 undefined behaviour.
1082 * doc/xml/manual/test.xml: Update outdated notes on VERIFY in tests.
1083 * doc/html/*: Regenerate.
1084
1085 2018-04-10 Jonathan Wakely <jwakely@redhat.com>
1086
1087 * doc/xml/faq.xml: Update links to archived copy of SGI STL docs.
1088 * doc/xml/manual/backwards_compatibility.xml: Likewise.
1089 * doc/xml/manual/containers.xml: Likewise.
1090 * doc/xml/manual/debug_mode.xml: Likewise.
1091 * doc/xml/manual/extensions.xml: Likewise.
1092 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise.
1093 * doc/xml/manual/using.xml: Likewise.
1094 * doc/xml/manual/utilities.xml: Likewise.
1095
1096 PR libstdc++/85222
1097 * src/c++11/Makefile.am [ENABLE_DUAL_ABI]: Add special rules for
1098 cxx11-ios_failure.cc to rewrite type info for __ios_failure.
1099 * src/c++11/Makefile.in: Regenerate.
1100 * src/c++11/cxx11-ios_failure.cc (__ios_failure, __iosfail_type_info):
1101 New types.
1102 [_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here.
1103 * src/c++11/ios.cc (__throw_ios_failure): Remove definition.
1104 * src/c++98/ios_failure.cc (__construct_ios_failure)
1105 (__destroy_ios_failure, is_ios_failure_handler): New functions.
1106 [!_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here.
1107 * testsuite/27_io/ios_base/failure/dual_abi.cc: New.
1108 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Revert changes to
1109 handler types, to always catch std::ios_base::failure.
1110 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1111 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1112 exceptions_failbit.cc: Likewise.
1113 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1114 exceptions_failbit.cc: Likewise.
1115 * testsuite/27_io/basic_istream/extractors_other/char/
1116 exceptions_null.cc: Likewise.
1117 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1118 exceptions_null.cc: Likewise.
1119 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1120 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1121 * testsuite/27_io/basic_ostream/inserters_other/char/
1122 exceptions_null.cc: Likewise.
1123 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1124 exceptions_null.cc: Likewise.
1125 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1126
1127 2018-04-05 Jonathan Wakely <jwakely@redhat.com>
1128
1129 * include/std/variant (_VARIANT_RELATION_FUNCTION_TEMPLATE): Qualify
1130 __get calls to avoid ADL and avoid ambiguity due to Clang bug.
1131
1132 2018-04-03 Jonathan Wakely <jwakely@redhat.com>
1133
1134 PR libstdc++/85183
1135 * include/std/variant (_Move_assign_base::operator=): Fix incorrect
1136 value categories.
1137 * testsuite/20_util/variant/85183.cc: New.
1138
1139 2018-03-26 Jonathan Wakely <jwakely@redhat.com>
1140
1141 * include/std/variant (__get): Qualify calls to avoid ADL.
1142 (__select_index): Adjust whitespace.
1143 (variant): Add using-declaration to workaround Clang bug.
1144
1145 2018-03-22 Jonathan Wakely <jwakely@redhat.com>
1146
1147 PR libstdc++/85040
1148 * include/bits/stl_function.h (greater::__not_overloaded)
1149 (less::__not_overloaded, greater_equal::__not_overloaded)
1150 (less_equal::__not_overloaded): Fix ambiguous specializations.
1151 * testsuite/20_util/function_objects/comparisons_pointer.cc: Add
1152 tests for type with overloaded operators.
1153
1154 2018-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1155
1156 PR libstdc++/77691
1157 * testsuite/experimental/memory_resource/resource_adaptor.cc:
1158 xfail execution on 32-bit Solaris/x86.
1159
1160 2018-03-21 Jonathan Wakely <jwakely@redhat.com>
1161
1162 * testsuite/20_util/function_objects/comparisons_pointer.cc: Use
1163 VERIFY instead of assert.
1164 * testsuite/20_util/hash/84998.cc: New test.
1165 * testsuite/23_containers/vector/cons/destructible_debug_neg.cc: New
1166 copy of test adjusted for Debug Mode.
1167 * testsuite/23_containers/vector/cons/destructible_neg.cc: Do not run
1168 test in Debug Mode.
1169
1170 2018-03-20 François Dumont <fdumont@gcc.gnu.org>
1171
1172 PR libstdc++/84998
1173 * include/bits/stl_bvector.h: Fix std::hash friend declaration.
1174 * include/std/bitset: Likewise.
1175 * include/bits/stl_map.h (std::map<>): Fix _Rb_tree_merge_helper friend
1176 declaration.
1177 * include/bits/stl_multimap.h (std::multimap<>): Likewise.
1178 * include/bits/stl_multiset.h (std::multiset<>): Likewise.
1179 * include/bits/stl_set.h (std::set<>): Likewise.
1180 * include/bits/unordered_map.h (std::unordered_map<>): Fix
1181 _Hash_merge_helper friend declaration.
1182 (std::unordered_multimap<>): Likewise.
1183 * include/bits/unordered_set.h (std::unordered_set<>): Likewise.
1184 (std::unordered_multiset<>): Likewise.
1185
1186 2018-03-19 Gerald Pfeifer <gerald@pfeifer.com>
1187
1188 * doc/xml/api.xml: www.fsf.org has moved to https. Also omit
1189 trailing slash for domain level link.
1190 * doc/xml/faq.xml: Ditto.
1191 * doc/xml/manual/appendix_free.xml (software): Ditto.
1192 * doc/xml/manual/intro.xml: Ditto.
1193 * doc/xml/manual/spine.xml: Ditto.
1194 * doc/xml/spine.xml: Ditto.
1195
1196 2018-03-19 Gerald Pfeifer <gerald@pfeifer.com>
1197
1198 * doc/xml/manual/documentation_hacking.xml: Adjust link to
1199 docbook.org.
1200
1201 2018-03-17 Jonathan Wakely <jwakely@redhat.com>
1202
1203 * testsuite/20_util/function_objects/comparisons_pointer.cc: Adjust
1204 to compile as C++98.
1205
1206 2018-03-14 Jonathan Wakely <jwakely@redhat.com>
1207
1208 PR libstdc++/78420
1209 * include/bits/stl_function.h (greater<_Tp*>, less<_Tp*>)
1210 (greater_equal<_Tp*>, less_equal<_Tp>*): Add partial specializations
1211 to ensure total order for pointers.
1212 (greater<void>, less<void>, greater_equal<void>, less_equal<void>):
1213 Add operator() overloads for pointer arguments and make generic
1214 overloads dispatch to new _S_cmp functions when comparisons would
1215 use built-in operators for pointers.
1216 * testsuite/20_util/function_objects/comparisons_pointer.cc: New.
1217
1218 2018-03-12 Jonathan Wakely <jwakely@redhat.com>
1219
1220 PR libstdc++/84773
1221 PR libstdc++/83662
1222 * crossconfig.m4: Check for aligned_alloc etc. on freebsd and mingw32.
1223 * configure: Regenerate.
1224 * include/c_global/cstdlib [_GLIBCXX_HAVE_ALIGNED_ALLOC]
1225 (aligned_alloc): Add using-declaration.
1226 * testsuite/18_support/aligned_alloc/aligned_alloc.cc: New test.
1227
1228 2018-03-09 François Dumont <fdumont@gcc.gnu.org>
1229
1230 * python/libstdcxx/v6/printers.py (build_libstdcxx_dictionary):
1231 Fix std::_Fwd_list_iterator and std::_Fwd_list_const_iterator printers
1232 registration.
1233
1234 2018-03-09 Jonathan Wakely <jwakely@redhat.com>
1235
1236 PR libstdc++/84769
1237 * include/std/variant (get<_Tp, _Types...>, get_if<_Tp, _Types...>):
1238 Qualify calls to get<_Np, Types...> and get_if<_Np, _Types...>.
1239
1240 src/filesystem/ops.cc (create_dir): Pass error_code to is_directory.
1241 src/filesystem/std-ops.cc (create_dir): Likewise.
1242
1243 2018-03-08 François Dumont <fdumont@gcc.gnu.org>
1244
1245 * python/libstdcxx/v6/printers.py (NodeIteratorPrinter): New.
1246 (StdListIteratorPrinter): Inherit from latter.
1247 (StdFwdListIteratorPrinter): New, inherit from latter.
1248 (StdDebugIteratorPrinter.to_string): Use non-debug iterator printer
1249 when iterator has no associated container.
1250 (build_libstdcxx_dictionary): Add __gnu_cxx::_Fwd_list_iterator and
1251 __gnu_cxx::_Fwd_list_const_iterator printers. Remove __norm namespace
1252 registrations.
1253 * testsuite/libstdc++-prettyprinters/debug.cc: Adapt.
1254 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Adapt.
1255
1256 2018-03-06 Ville Voutilainen <ville.voutilainen@gmail.com>
1257
1258 PR libstdc++/84601
1259 * include/std/optional (_Optional_payload): Split into multiple
1260 specializations that can handle different cases of trivial or
1261 non-trivial assignment operators.
1262 * testsuite/20_util/optional/84601.cc: New.
1263 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
1264
1265 2018-03-02 Jonathan Wakely <jwakely@redhat.com>
1266
1267 PR libstdc++/84671
1268 * include/bits/parse_numbers.h (_Number_help): Add partial
1269 specialization to handle digit separators. Adjust partial
1270 specialization for recursion temrination to require _Pow == 1ULL.
1271 * testsuite/20_util/duration/literals/84671.cc: New
1272
1273 2018-02-27 Ville Voutilainen <ville.voutilainen@gmail.com>
1274
1275 Implement the missing bits of LWG 2769
1276 * include/std/any (any_cast(const any&)): Add static_assert.
1277 (any_cast(any&)): Likewise.
1278 (any_cast(any&&)): Likewise, and remove the handling
1279 for copyable-but-not-movable type.
1280 * testsuite/20_util/any/misc/any_cast.cc: Adjust.
1281 * testsuite/20_util/any/misc/any_cast_neg.cc: Likewise, and
1282 add new tests.
1283
1284 2018-02-23 Jonathan Wakely <jwakely@redhat.com>
1285
1286 PR libstdc++/84532
1287 * include/std/thread (thread::__make_invoker): Construct tuple
1288 directly instead of using make_tuple.
1289 * testsuite/30_threads/async/84532.cc: New.
1290 * testsuite/30_threads/thread/84532.cc: New.
1291
1292 2018-02-20 François Dumont <fdumont@gcc.gnu.org>
1293
1294 * include/ext/aligned_buffer.h [_GLIBCXX_INLINE_VERSION]
1295 (template<> __aligned_buffer): Define as __aligned_membuf alias.
1296
1297 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
1298
1299 PR target/84148
1300 * configure: Regenerate.
1301
1302 2018-02-15 Jonathan Wakely <jwakely@redhat.com>
1303
1304 PR libstdc++/81797
1305 * configure.ac (INCLUDE_DIR_NOTPARALLEL): Define.
1306 * configure: Regenerate.
1307 * include/Makefile.am (INCLUDE_DIR_NOTPARALLEL): Add .NOTPARALLEL when
1308 defined.
1309 * include/Makefile.in: Regenerate.
1310
1311 2018-01-29 Jonathan Wakely <jwakely@redhat.com>
1312
1313 PR libstdc++/83833
1314 * testsuite/26_numerics/random/chi_squared_distribution/83833.cc:
1315 Add -ffloat-store to options for m68k and ia32.
1316
1317 * doc/xml/faq.xml: Update copyright years.
1318 * doc/html/*: Regenerate.
1319
1320 PR libstdc++/83658
1321 * include/std/any (any::__do_emplace): Only set _M_manager after
1322 constructing the contained object.
1323 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust dg-error line.
1324 * testsuite/20_util/any/modifiers/83658.cc: New test.
1325
1326 2018-01-25 Jonathan Wakely <jwakely@redhat.com>
1327
1328 PR libstdc++/81076
1329 * include/c_global/cstddef (__byte_operand): Define primary template.
1330 * testsuite/18_support/byte/81076.cc: New test.
1331
1332 2018-01-19 Christophe Lyon <christophe.lyon@linaro.org>
1333
1334 * testsuite/ext/special_functions/airy_ai/check_nan.cc: Fix
1335 dg-options and dg-add-options order.
1336 * testsuite/ext/special_functions/airy_bi/check_nan.cc: Likewise.
1337 * testsuite/ext/special_functions/conf_hyperg/check_nan.cc:
1338 Likewise.
1339 * testsuite/ext/special_functions/hyperg/check_nan.cc: Likewise.
1340 * testsuite/special_functions/01_assoc_laguerre/check_nan.cc:
1341 Likewise.
1342 * testsuite/special_functions/02_assoc_legendre/check_nan.cc:
1343 Likewise.
1344 * testsuite/special_functions/03_beta/check_nan.cc: Likewise.
1345 * testsuite/special_functions/04_comp_ellint_1/check_nan.cc:
1346 Likewise.
1347 * testsuite/special_functions/05_comp_ellint_2/check_nan.cc:
1348 Likewise.
1349 * testsuite/special_functions/06_comp_ellint_3/check_nan.cc:
1350 Likewise.
1351 * testsuite/special_functions/06_comp_ellint_3/pr66689.cc:
1352 Likewise.
1353 * testsuite/special_functions/07_cyl_bessel_i/check_nan.cc:
1354 Likewise.
1355 * testsuite/special_functions/08_cyl_bessel_j/check_nan.cc:
1356 Likewise.
1357 * testsuite/special_functions/09_cyl_bessel_k/check_nan.cc:
1358 Likewise.
1359 * testsuite/special_functions/10_cyl_neumann/check_nan.cc:
1360 Likewise.
1361 * testsuite/special_functions/11_ellint_1/check_nan.cc: Likewise.
1362 * testsuite/special_functions/12_ellint_2/check_nan.cc: Likewise.
1363 * testsuite/special_functions/13_ellint_3/check_nan.cc: Likewise.
1364 * testsuite/special_functions/13_ellint_3/pr66689.cc: Likewise.
1365 * testsuite/special_functions/14_expint/check_nan.cc: Likewise.
1366 * testsuite/special_functions/15_hermite/check_nan.cc: Likewise.
1367 * testsuite/special_functions/16_laguerre/check_nan.cc: Likewise.
1368 * testsuite/special_functions/17_legendre/check_nan.cc: Likewise.
1369 * testsuite/special_functions/18_riemann_zeta/check_nan.cc:
1370 Likewise.
1371 * testsuite/special_functions/19_sph_bessel/check_nan.cc:
1372 Likewise.
1373 * testsuite/special_functions/20_sph_legendre/check_nan.cc:
1374 Likewise.
1375 * testsuite/special_functions/21_sph_neumann/check_nan.cc:
1376 Likewise.
1377
1378 2018-01-18 Uros Bizjak <ubizjak@gmail.com>
1379
1380 * configure.ac (AC_CHECK_HEADERS): Add linux/types.h. Conditionally
1381 include linux/types.h when checking linux/random.h header.
1382 * config.h.in: Regenerate.
1383 * configure: Ditto.
1384 * src/c++11/random.cc: Conditionally include linux/types.h.
1385
1386 2018-01-16 Eric Botcazou <ebotcazou@adacore.com>
1387
1388 * testsuite/17_intro/names.cc: Undefine 'y' on SPARC/Linux.
1389
1390 2018-01-16 Jonathan Wakely <jwakely@redhat.com>
1391
1392 PR libstdc++/83834
1393 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Replace std::c[a-g]* wildcard
1394 pattern with exact match for std::cerr.
1395
1396 2018-01-15 Jonathan Wakely <jwakely@redhat.com>
1397
1398 PR libstdc++/83833
1399 * include/bits/random.h (chi_squared_distribution::param): Update
1400 gamma distribution parameter.
1401 * testsuite/26_numerics/random/chi_squared_distribution/83833.cc: New
1402 test.
1403
1404 PR libstdc++/83830
1405 * include/std/type_traits (has_unique_object_representations_v): Add
1406 variable template.
1407 * testsuite/20_util/has_unique_object_representations/value.cc: Check
1408 variable template.
1409
1410 2018-01-15 Ville Voutilainen <ville.voutilainen@gmail.com>
1411
1412 Make optional conditionally
1413 trivially_{copy,move}_{constructible,assignable}
1414 * include/std/optional (_Optional_payload): Fix the comment in
1415 the class head and turn into a primary and one specialization.
1416 (_Optional_payload::_M_engaged): Strike the NSDMI.
1417 (_Optional_payload<_Tp, false>::operator=(const _Optional_payload&)):
1418 New.
1419 (_Optional_payload<_Tp, false>::operator=(_Optional_payload&&)):
1420 Likewise.
1421 (_Optional_payload<_Tp, false>::_M_get): Likewise.
1422 (_Optional_payload<_Tp, false>::_M_reset): Likewise.
1423 (_Optional_base_impl): Likewise.
1424 (_Optional_base): Turn into a primary and three specializations.
1425 (optional(nullopt)): Change the base init.
1426 * testsuite/20_util/optional/assignment/8.cc: New.
1427 * testsuite/20_util/optional/cons/trivial.cc: Likewise.
1428 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
1429
1430 2018-01-15 Jonathan Wakely <jwakely@redhat.com>
1431
1432 PR libstdc++/80276
1433 * python/libstdcxx/v6/printers.py (strip_inline_namespaces): New.
1434 (get_template_arg_list): New.
1435 (StdVariantPrinter._template_args): Remove, use get_template_arg_list
1436 instead.
1437 (TemplateTypePrinter): Rewrite to work with gdb.Type objects instead
1438 of strings and regular expressions.
1439 (add_one_template_type_printer): Adapt to new TemplateTypePrinter.
1440 (FilteringTypePrinter): Add docstring. Match using startswith. Use
1441 strip_inline_namespaces instead of strip_versioned_namespace.
1442 (add_one_type_printer): Prepend namespace to match argument.
1443 (register_type_printers): Add type printers for char16_t and char32_t
1444 string types and for types using cxx11 ABI. Update calls to
1445 add_one_template_type_printer to provide default argument dicts.
1446 * testsuite/libstdc++-prettyprinters/80276.cc: New test.
1447 * testsuite/libstdc++-prettyprinters/whatis.cc: Remove tests for
1448 basic_string<unsigned char> and basic_string<signed char>.
1449 * testsuite/libstdc++-prettyprinters/whatis2.cc: Duplicate whatis.cc
1450 to test local variables, without overriding _GLIBCXX_USE_CXX11_ABI.
1451
1452 2018-01-14 Andreas Schwab <schwab@linux-m68k.org>
1453
1454 PR libstdc++/81092
1455 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
1456
1457 2018-01-13 Tim Shen <timshen@google.com>
1458
1459 PR libstdc++/83601
1460 * include/bits/regex.tcc (regex_replace): Fix escaping in sed.
1461 * testsuite/28_regex/algorithms/regex_replace/char/pr83601.cc: Tests.
1462 * testsuite/28_regex/algorithms/regex_replace/wchar_t/pr83601.cc: Tests.
1463
1464 2018-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1465
1466 PR libstdc++/64054
1467 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc:
1468 Remove dg-xfail-run-if.
1469
1470 2018-01-10 François Dumont <fdumont@gcc.gnu.org>
1471
1472 * include/bits/forward_list.h
1473 (_Fwd_list_node_base(_Fwd_list_node_base&&)): New.
1474 (_Fwd_list_node_base& operator=(_Fwd_list_node_base&&)): New.
1475 (_Fwd_list_node_base(const _Fwd_list_node_base&)): Explicit delete.
1476 (_Fwd_list_node_base& operator=(const _Fwd_list_node_base&)): Likewise.
1477 (_Fwd_list_impl()): Add noexcept qualification.
1478 (_Fwd_list_impl(const _Node_alloc_type&)): Delete.
1479 (_Fwd_list_impl(_Fwd_list_impl&&)): New, default.
1480 (_Fwd_list_impl(_Fwd_list_impl&&, _Node_alloc_type&&)): New.
1481 (_Fwd_list_base()): Default.
1482 (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&, true_type)): New.
1483 (_Fwd_list_base(_Fwd_list_base&&)): Default.
1484 (forward_list<>()): Default.
1485 (forward_list<>(forward_list&&)): Default.
1486 (forward_list(forward_list&&, _Node_alloc_type&&, false_type)): New.
1487 (forward_list(forward_list&&, _Node_alloc_type&&, true_type)): New.
1488 (forward_list(forward_list&&, const _Alloc&)): Adapt to use latters.
1489 * include/bits/forward_list.tcc
1490 (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&)): Adapt to use
1491 _M_impl._M_head move assignment.
1492 (forward_list<>::merge(forward_list<>&&, _Comp)): Likewise.
1493 * testsuite/23_containers/forward_list/allocator/default_init.cc: New.
1494
1495 2018-01-09 Jonathan Wakely <jwakely@redhat.com>
1496
1497 PR libstdc++/80276
1498 * python/libstdcxx/v6/printers.py (SharedPointerPrinter)
1499 (UniquePointerPrinter): Print correct template argument, not type of
1500 the pointer.
1501 (TemplateTypePrinter._recognizer.recognize): Handle failure to lookup
1502 a type.
1503 * testsuite/libstdc++-prettyprinters/cxx11.cc: Test unique_ptr of
1504 array type.
1505 * testsuite/libstdc++-prettyprinters/cxx17.cc: Test shared_ptr and
1506 weak_ptr of array types.
1507
1508 2018-01-09 François Dumont <fdumont@gcc.gnu.org>
1509
1510 PR libstdc++/83709
1511 * include/bits/hashtable_policy.h
1512 (__distance_fwd(_Iterator, _Iterator, input_iterator_tag)): Return 1 if
1513 __first != __last.
1514 (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, true_type)): New.
1515 (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, false_type)):
1516 Add false_type parameter.
1517 (_Insert_base::insert): Adapt.
1518 * include/bits/hashtable.h (_Hashtable::operator=(initializzr_list<>)):
1519 Adapt.
1520 (_Hashtable::_M_insert(_Arg&&, const _NodeGen&, true_type, size_t)):
1521 Add __n_elt parameter, defaulted to 1.
1522 (_Hashtable::_M_insert_unique_node): Likewise. Use it to call rehash
1523 policy _M_need_rehash.
1524 (_Hashtable::_M_merge_unique): Pass target number of elements to add to
1525 produce only 1 rehash if necessary.
1526 * testsuite/23_containers/unordered_map/insert/83709.cc: New.
1527 * testsuite/23_containers/unordered_set/insert/83709.cc: New.
1528
1529 2018-01-09 Juraj Oršulić <juraj.orsulic@fer.hr>
1530 Jonathan Wakely <jwakely@redhat.com>
1531
1532 PR libstdc++/59253 (partial)
1533 * python/libstdcxx/v6/printers.py (SmartPtrIterator): Common iterator
1534 type for pointer stored by shared_ptr, weak_ptr and unique_ptr.
1535 (SharedPointerPrinter, UniquePointerPrinter): Treat stored values as
1536 children.
1537 * testsuite/libstdc++-prettyprinters/cxx11.cc: Update expected output
1538 of unique_ptr printer.
1539 * testsuite/libstdc++-prettyprinters/shared_ptr.cc: Update expected
1540 output of shared_ptr printer.
1541
1542 2018-01-05 Jonathan Wakely <jwakely@redhat.com>
1543
1544 PR libstdc++/83626
1545 * src/filesystem/ops.cc (remove(const path&, error_code&)): Remove
1546 unnecessary symlink_status call.
1547 (remove_all(const path&, error_code&)): Use filesystem::remove.
1548 * src/filesystem/std-ops.cc: Likewise.
1549
1550 PR libstdc++/83279
1551 * src/filesystem/std-ops.cc (do_copy_file): Use non-null offset with
1552 sendfile.
1553
1554 PR libstdc++/83626
1555 * src/filesystem/ops.cc (remove(const path&, error_code&)): Do not
1556 report an error for ENOENT.
1557 (remove_all(const path&)): Fix type of result variable.
1558 (remove_all(const path&, error_code&)): Use non-throwing increment
1559 for directory iterator. Call POSIX remove directly to avoid redundant
1560 calls to symlink_status. Do not report errors for ENOENT.
1561 * src/filesystem/std-ops.cc: Likewise.
1562 * testsuite/27_io/filesystem/operations/remove_all.cc: Test throwing
1563 overload.
1564 * testsuite/experimental/filesystem/operations/remove_all.cc:
1565 Likewise.
1566
1567 2018-01-04 Jonathan Wakely <jwakely@redhat.com>
1568
1569 PR libstdc++/83626
1570 * src/filesystem/ops.cc (remove(const path&, error_code&))): Remove
1571 redundant call to ec.clear().
1572 (remove_all(const path&, error_code&))): Do not return an error for
1573 non-existent paths.
1574 * src/filesystem/std-ops.cc: Likewise.
1575 * testsuite/27_io/filesystem/operations/remove.cc: New test.
1576 * testsuite/27_io/filesystem/operations/remove_all.cc: Fix expected
1577 results for non-existent paths.
1578 * testsuite/experimental/filesystem/operations/remove.cc: New test.
1579 * testsuite/experimental/filesystem/operations/remove_all.cc: Fix
1580 expected results for non-existent paths.
1581
1582 * include/bits/fs_ops.h (exists(const path&, error_code&))): Only
1583 check status_known once.
1584 * include/experimental/bits/fs_ops.h: Likewise.
1585
1586 PR libstdc++/83607
1587 * include/std/functional (__is_byte_like): New trait.
1588 (__is_std_equal_to): Remove.
1589 (__boyer_moore_base_t): Use __is_byte_like instead of
1590 __is_std_equal_to.
1591 * include/experimental/functional (__is_std_equal_to): Remove.
1592 (__boyer_moore_base_t): Use __is_byte_like instead of
1593 __is_std_equal_to.
1594 * testsuite/20_util/function_objects/83607.cc: New test.
1595
1596 2018-01-03 Ville Voutilainen <ville.voutilainen@gmail.com>
1597
1598 Protect optional's deduction guide with the feature macro
1599 * include/std/optional: Use the feature macro.
1600
1601 2018-01-03 Jakub Jelinek <jakub@redhat.com>
1602
1603 Update copyright years.
1604 \f
1605 Copyright (C) 2018 Free Software Foundation, Inc.
1606
1607 Copying and distribution of this file, with or without modification,
1608 are permitted in any medium without royalty provided the copyright
1609 notice and this notice are preserved.