Allow Markdown formatting in Doxygen comments
[gcc.git] / libstdc++-v3 / ChangeLog
1 2019-05-02 Jonathan Wakely <jwakely@redhat.com>
2
3 * doc/doxygen/user.cfg.in: Set MARKDOWN_SUPPORT=YES.
4
5 * include/bits/unique_lock.h: Fix/improve doxygen markup.
6 * include/std/mutex: Likewise.
7 * include/std/shared_mutex: Likewise.
8
9 * include/bits/fs_dir.h: Fix/improve doxygen markup.
10 * include/bits/fs_fwd.h: Likewise.
11 * include/bits/fs_ops.h: Likewise.
12 * include/bits/fs_path.h: Likewise.
13 * include/std/filesystem: Likewise.
14
15 * include/experimental/bits/net.h: Fix/improve doxygen markup.
16 * include/experimental/buffer: Likewise.
17 * include/experimental/executor: Likewise.
18 * include/experimental/internet: Likewise.
19 * include/experimental/io_context: Likewise.
20 * include/experimental/net: Likewise.
21 * include/experimental/netfwd: Likewise.
22 * include/experimental/socket: Likewise.
23 * include/experimental/timer: Likewise.
24
25 * doc/doxygen/doxygroups.cc: Move description of experimental group
26 here.
27 * include/experimental/algorithm: Add to libfund-ts doc group.
28 * include/experimental/any: Likewise. Do not document implementation
29 details.
30 * include/experimental/array: Add to libfund-ts doc group.
31 * include/experimental/bits/lfts_config.h: Define libfund-ts doc group
32 for Library Fundamentals.
33 * include/experimental/chrono: Add to libfund-ts doc group.
34 * include/experimental/deque: Likewise.
35 * include/experimental/forward_list: Likewise.
36 * include/experimental/functional: Likewise.
37 * include/experimental/iterator: Likewise.
38 * include/experimental/list: Likewise.
39 * include/experimental/map: Likewise.
40 * include/experimental/memory: Likewise.
41 * include/experimental/memory_resource: Likewise. Improve docs.
42 details.
43 * include/experimental/numeric: Add to libfund-ts doc group.
44 * include/experimental/optional: Likewise.
45 * include/experimental/propagate_const: Likewise.
46 * include/experimental/random: Likewise.
47 * include/experimental/ratio: Likewise.
48 * include/experimental/regex: Likewise.
49 * include/experimental/set: Likewise.
50 * include/experimental/source_location: Likewise.
51 * include/experimental/string: Likewise.
52 * include/experimental/string_view: Likewise.
53 * include/experimental/system_error: Likewise.
54 * include/experimental/tuple: Likewise.
55 * include/experimental/type_traits: Likewise.
56 * include/experimental/unordered_map: Likewise.
57 * include/experimental/unordered_set: Likewise.
58 * include/experimental/utility: Likewise.
59 * include/experimental/vector: Likewise.
60 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
61 * testsuite/experimental/array/neg.cc: Adjust dg-error.
62 * testsuite/experimental/propagate_const/assignment/move_neg.cc:
63 Likewise.
64 * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
65 * testsuite/experimental/propagate_const/requirements2.cc: Likewise.
66 * testsuite/experimental/propagate_const/requirements3.cc: Likewise.
67 * testsuite/experimental/propagate_const/requirements4.cc: Likewise.
68 * testsuite/experimental/propagate_const/requirements5.cc: Likewise.
69
70 * include/experimental/bits/fs_dir.h: Fix Doxygen markup.
71 * include/experimental/bits/fs_fwd.h: Improve docs.
72 * include/experimental/bits/fs_ops.h: fix Doxygen markup.
73 * include/experimental/bits/fs_path.h: Likewise.
74 (path, filesystem_error, u8path): Improve docs.
75 * include/experimental/filesystem: Link to docs for TS.
76
77 * config/allocator/new_allocator_base.h (__allocator_base): Add
78 workaround for Doxygen bug #6945.
79 * include/std/memory: Improve docs. Define group for pointer safety.
80 * include/std/scoped_allocator: Improve docs. Use "undocumented"
81 conditional to suppress documentation for implementation details.
82
83 * include/bits/specfun.h: Improve docs.
84 * include/tr1/cmath: Likewise. Fix nesting of preprocessor conditions
85 and namespaces.
86
87 * doc/doxygen/doxygroups.cc (std::tr2, std::__gnu_cxx): Improve docs.
88 (std::experimental): Add docs.
89 * doc/doxygen/user.cfg.in (PREDEFINED): Expand macros for __cxx11
90 namespace to nothing when generating docs.
91 * include/bits/regex_constants.h (std::regex_constants): Improve docs.
92 * include/std/chrono (std::chrono): Likewise.
93 * include/std/functional (std::placeholders): Likewise.
94 * include/std/thread (std::this_thread): Likewise.
95
96 * include/parallel/settings.h: Fix Doxygen markup.
97
98 * include/ext/pb_ds/detail/bin_search_tree_/*_imps.hpp: Do not define
99 anything unless PB_DS_CLASS_C_DEC is defined.
100 * include/ext/pb_ds/detail/binary_heap_/*_imps.hpp: Likewise.
101 * include/ext/pb_ds/detail/binomial_heap_/*_imps.hpp: Likewise.
102 * include/ext/pb_ds/detail/binomial_heap_base_/*_imps.hpp: Likewise.
103 * include/ext/pb_ds/detail/cc_hash_table_map_/*_imps.hpp: Likewise.
104 * include/ext/pb_ds/detail/gp_hash_table_map_/*_imps.hpp: Likewise.
105 * include/ext/pb_ds/detail/hash_fn/*_imp.hpp: Likewise.
106 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/*_imps.hpp:
107 Likewise.
108 * include/ext/pb_ds/detail/list_update_map_/*_imps.hpp: Likewise.
109 * include/ext/pb_ds/detail/ov_tree_map_/*_imps.hpp: Likewise.
110 * include/ext/pb_ds/detail/pairing_heap_/*_imps.hpp: Likewise.
111 * include/ext/pb_ds/detail/pat_trie_/*_imps.hpp: Likewise.
112 * include/ext/pb_ds/detail/rb_tree_map_/*_imps.hpp: Likewise.
113 * include/ext/pb_ds/detail/rc_binomial_heap_/*_imps.hpp: Likewise.
114 * include/ext/pb_ds/detail/resize_policy*_imp.hpp: Likewise.
115 * include/ext/pb_ds/detail/splay_tree_/*_imps.hpp: Likewise.
116 * include/ext/pb_ds/detail/thin_heap_/*_imps.hpp: Likewise.
117 * include/ext/pb_ds/detail/trie_policy*_imp.hpp: Likewise.
118 * include/ext/pb_ds/detail/unordered_iterator/const_iterator.hpp:
119 Likewise.
120 * include/ext/pb_ds/detail/unordered_iterator/iterator.hpp: Likewise.
121 * include/ext/pb_ds/detail/unordered_iterator/point_const_iterator.hpp:
122 Likewise.
123 * include/ext/pb_ds/detail/unordered_iterator/point_iterator.hpp:
124 Likewise.
125
126 * doc/doxygen/user.cfg.in: Regenerate with Doxygen 1.8.14 and set
127 GROUP_NESTED_COMPOUNDS=YES and SORT_BY_SCOPE_NAME=NO. Add various
128 _GLIBCXX_xxx macros and __attribute__(X) to PREDEFINED macros that
129 Doxygen expands.
130
131 2019-05-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
132
133 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: Regenerate.
134 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: Likewise.
135 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: Likewise.
136 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: Likewise.
137 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: Likewise.
138 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
139 Likewise.
140 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: Likewise.
141 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
142 Likewise.
143
144 2019-05-01 Jonathan Wakely <jwakely@redhat.com>
145
146 PR libstdc++/61761
147 * include/std/complex (__complex_proj): Return parameter unchanged.
148 [_GLIBCXX_USE_C99_COMPLEX] (__complex_proj): Change overloads for
149 floating-point types to take std::complex arguments.
150 [_GLIBCXX_USE_C99_MATH_TR1] (__complex_proj): Add overloads for
151 floating-point types.
152 * testsuite/26_numerics/complex/proj.cc: New test.
153
154 2019-04-30 Jakub Jelinek <jakub@redhat.com>
155
156 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Change _Lock_policyE2 exports
157 to _Lock_policyE[012].
158 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
159
160 2019-04-30 Jonathan Wakely <jwakely@redhat.com>
161
162 * testsuite/27_io/filesystem/path/decompose/root_path.cc: Remove
163 macros accidentally left in.
164 * testsuite/27_io/filesystem/path/native/string-char8_t.cc: Remove
165 unnecessary -lstdc++fs option. Fix test for mingw.
166 * testsuite/experimental/filesystem/path/native/string-char8_t.cc:
167 Fix test for mingw.
168
169 2019-04-30 Jakub Jelinek <jakub@redhat.com>
170
171 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
172
173 2019-04-29 Jonathan Wakely <jwakely@redhat.com>
174
175 * include/bits/stl_algo.h (generate_n): Adjust doxygen comment.
176
177 * include/bits/move.h (swap(T&, T&), swap(T (&)[N], T (&)[N])): Use
178 _GLIBCXX_NOEXCEPT_IF to simplify declarations.
179
180 PR libstdc++/71312
181 * src/c++11/shared_ptr.cc (get_mutex): Align pool mutexes to 64 bytes.
182
183 * include/bits/stl_bvector.h (vector<bool>::empty()): Add nodiscard
184 attribute.
185
186 * include/bits/stl_iterator_base_types.h (_Iter_base): Remove unused
187 class template and partial specialization.
188
189 PR libstdc++/87982
190 * include/bits/stl_algo.h (generate_n): Convert _Size parameter to
191 an integral type.
192 * include/bits/stl_algobase.h (__size_to_integer): New overloaded
193 functions to convert a value to an integral type.
194 (__fill_n_a, __fill_n_a): Assert that __n is already an integral type.
195 (fill_n): Convert _Size parameter to an integral type.
196 * testsuite/25_algorithms/fill_n/87982.cc: New test.
197 * testsuite/25_algorithms/fill_n/87982_neg.cc: New test.
198 * testsuite/25_algorithms/fill_n/dr426.cc: New test.
199 * testsuite/25_algorithms/generate_n/87982.cc: New test.
200 * testsuite/25_algorithms/generate_n/87982_neg.cc: New test.
201 * testsuite/25_algorithms/generate_n/dr426.cc: New test.
202
203 2019-04-28 Nina Dinka Ranns <dinka.ranns@gmail.com>
204
205 Adding noexcept-specification on tuple constructors (LWG 2899)
206 * libstdc++-v3/include/std/tuple:
207 (tuple()): Add noexcept-specification.
208 (tuple(const _Elements&...)): Likewise
209 (tuple(_UElements&&...)): Likewise
210 (tuple(const tuple<_UElements...>&)): Likewise
211 (tuple(tuple<_UElements...>&&)): Likewise
212 (tuple(const _T1&, const _T2&)): Likewise
213 (tuple(_U1&&, _U2&&)): Likewise
214 (tuple(const tuple<_U1, _U2>&): Likewise
215 (tuple(tuple<_U1, _U2>&&): Likewise
216 (tuple(const pair<_U1, _U2>&): Likewise
217 (tuple(pair<_U1, _U2>&&): Likewise
218 * libstdc++-v3/testsuite/20_util/tuple/cons/noexcept_specs.cc: New
219
220 2019-04-27 Marc Glisse <marc.glisse@inria.fr>
221
222 PR libstdc++/87106
223 * include/bits/stl_uninitialized.h (__relocate_object_a): Mark the
224 arguments with __restrict.
225
226 2019-04-26 H.J. Lu <hongjiu.lu@intel.com>
227
228 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
229
230 2019-04-26 Jonathan Wakely <jwakely@redhat.com>
231
232 * include/experimental/bits/fs_path.h
233 (path::_S_convert_loc<_InputIterator>): Create const std::string to
234 avoid redundant call to _S_convert_loc with non-const pointers.
235
236 * testsuite/20_util/variant/run.cc: Use a new Hashable type to test
237 hashing, because pmr::string depends on _GLIBCXX_USE_CXX11_ABI==1.
238 * testsuite/21_strings/basic_string/hash/hash.cc
239 [!_GLIBCXX_USE_CXX11_ABI]: Don't test pmr strings.
240 * testsuite/21_strings/basic_string/hash/hash_char8_t.cc
241 [!_GLIBCXX_USE_CXX11_ABI]: Likewise.
242
243 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Replace wildcard that matches
244 wstring::_M_replace_dispatch with more specific patterns.
245 * include/bits/fs_path.h (path::_S_convert_loc<_InputIterator>):
246 Create const std::string to avoid redundant call to _S_convert_loc
247 with non-const pointers.
248 * include/bits/locale_conv.h (__do_str_codecvt): Use if-constexpr to
249 avoid unnecessary basic_string::assign instantiations.
250
251 * include/std/memory (__uses_alloc_args): Add string-literal to
252 static_assert, to match the one in __uses_alloc.
253 [__cpp_concepts] (_Std_pair): Use C++2a syntax for concept.
254 * testsuite/20_util/polymorphic_allocator/construct_c++2a.cc: Check
255 for recursive uses-allocator construction of nested pairs.
256 * testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc:: Add
257 comment.
258
259 2019-04-26 Jakub Jelinek <jakub@redhat.com>
260
261 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Update.
262 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
263 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
264 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
265
266 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
267 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
268 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
269 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
270 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
271 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
272 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
273
274 2019-04-25 Jonathan Wakely <jwakely@redhat.com>
275
276 PR libstdc++/90239
277 * doc/xml/manual/status_cxx2020.xml: Amend P0591R4 status.
278 * include/std/scoped_allocator [__cplusplus > 201703L]
279 (scoped_allocator_adaptor::construct): Define in terms of
280 uses_allocator_construction_args, as per P0591R4.
281 * testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc: New test.
282 * testsuite/util/testsuite_allocator.h: Remove name of unused
283 parameter.
284
285 2019-04-24 Jonathan Wakely <jwakely@redhat.com>
286
287 * doc/xml/manual/status_cxx2017.xml: Document P0024R2 status.
288 * doc/html/*: Regenerate.
289
290 * include/bits/fs_path.h (operator<, operator<=, operator>)
291 (operator>=, operator==, operator!=): Make hidden friends, as per
292 LWG 3065.
293 * testsuite/27_io/filesystem/path/native/string-char8_t.cc: Fix
294 string type in test.
295 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
296
297 * include/std/any (any::any(ValueType&&)): Use __and_v.
298 * include/std/numeric (midpoint(T, T, T), midpoint(T*, T*, T*)):
299 Likewise.
300
301 * include/std/tuple (apply): Use remove_reference_t instead of decay_t
302 as per P0777R1.
303 * include/std/type_traits (__result_of_memfun): Use remove_reference
304 instead of __remove_cvref_t and remove redundant is_same check.
305 (__inv_unwrap): Use __remove_cvref_t instead of decay_t.
306
307 * include/experimental/string_view (basic_string_view::pointer)
308 (basic_string_view::reference): Fix to refer to non-const value_type.
309 * include/bits/basic_string.h (basic_string): Use __sv_check and
310 __sv_limit instead of basic_string_view::_M_check and
311 basic_string_view::_M_limit.
312 * include/std/string_view (__sv_check, __sv_limit): New
313 helper functions to replace basic_string_view::_M_check and
314 basic_string_view::_M_limit.
315 (basic_string_view): Add static assertions to enforce ill-formed
316 requirement for traits_type::char_type from P1148R0, and to enforce
317 required properties of char-like types.
318 (basic_string_view::pointer, basic_string_view::reference): Fix to
319 refer to non-const value_type.
320 (basic_string_view::operator[], basic_string_view::at)
321 (basic_string_view::front, basic_string_view::back)
322 (basic_string_view::data): Use const_reference and const_pointer
323 typedefs for return types.
324 (basic_string_view::_M_check, basic_string_view::_M_limit): Remove.
325 (hash<wstring_view>): Fix argument_type typedef.
326 * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
327 char/1.cc: Fix expected return type of basic_string_view::data().
328 * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
329 wchar_t/1.cc: Likewise.
330 * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
331 char/1.cc: Likewise.
332 * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
333 wchar_t/1.cc: Likewise.
334 * testsuite/21_strings/basic_string_view/requirements/traits_neg.cc:
335 New test.
336 * testsuite/21_strings/basic_string_view/requirements/typedefs.cc:
337 Check reference and pointer typedefs.
338 * testsuite/experimental/string_view/requirements/typedefs.cc:
339 Likewise.
340 * testsuite/experimental/string_view/modifiers/remove_prefix/char/1.cc:
341 Fix expected return type of basic_string_view::data().
342 * testsuite/experimental/string_view/modifiers/remove_prefix/wchar_t/
343 1.cc: Likewise.
344 * testsuite/experimental/string_view/modifiers/remove_suffix/char/1.cc:
345 Likewise.
346 * testsuite/experimental/string_view/modifiers/remove_suffix/wchar_t/
347 1.cc: Likewise.
348
349 PR libstdc++/90220
350 * include/std/any (__any_caster): Use remove_cv_t instead of decay_t.
351 Avoid a runtime check for types that can never be stored in std::any.
352 * testsuite/20_util/any/misc/any_cast.cc: Test std::any_cast with
353 array types.
354
355 PR libstdc++/90220 (partial)
356 * include/std/any (any_cast<T>(any*), any_cast<T>(const any*)): Do
357 not attempt ill-formed static_cast to pointers to non-object types.
358 * testsuite/20_util/any/misc/any_cast.cc: Test std::any_cast with
359 function types.
360
361 * testsuite/20_util/variant/run.cc: Catch exception by reference to
362 prevent -Wcatch-value warning.
363
364 * include/std/variant (__variant_construct): Use template parameter
365 type instead of equivalent decltype-specifier.
366 (_Move_ctor_base<false, Types...>::_Move_ctor_base(_Move_ctor_base&&)):
367 Replace forward with move.
368 (_Move_ctor_base<false, Types...>::_M_destructive_move)
369 (_Move_ctor_base<false, Types...>::_M_destructive_copy)
370 (_Move_ctor_base<true, Types...>::_M_destructive_move)
371 (_Move_ctor_base<true, Types...>::_M_destructive_copy): Only set the
372 index after construction succeeds.
373 (_Copy_assign_base<false, Types...>::operator=): Remove redundant
374 if-constexpr checks that are always true. Use __remove_cvref_t instead
375 of remove_reference so that is_nothrow_move_constructible check
376 doesn't use a const rvalue parameter. In the potentially-throwing case
377 construct a temporary and move assign it, as per LWG 2904.
378 (_Move_assign_base<false, Types...>::operator=): Remove redundant
379 if-constexpr checks that are always true. Use emplace as per LWG 2904.
380 (variant::operator=(T&&)): Only use emplace conditionally, otherwise
381 construct a temporary and move assign from it, as per LWG 2904.
382 * testsuite/20_util/variant/exception_safety.cc: Check that
383 assignment operators have strong exception safety guarantee.
384
385 2019-04-23 Thomas Rodgers <trodgers@redhat.com>
386
387 Document PSTL linker flags
388
389 * doc/xml/manual/using.xml: Add PSTL linker flags to table 3.1.
390
391 2019-04-23 Jonathan Wakely <jwakely@redhat.com>
392
393 * include/std/variant (__detail::__variant::_Traits): Make
394 _S_trivial_copy_assign depend on _S_trivial_copy_ctor and make
395 _S_trivial_move_assign depend on _S_trivial_move_ctor, as per
396 P0602R4.
397 (__detail::__variant::_Copy_assign_alias): Only depend on
398 _S_trivial_copy_assign, which subsumes _S_trivial_copy_ctor now.
399 * testsuite/20_util/variant/compile.cc: Correct checks for trivial
400 move assignment operators.
401
402 PR libstdc++/90165
403 * include/std/variant (variant::__not_self): New helper for the
404 is_same_v<remove_cvref_t<T>, variant>==false constraints.
405 (variant::__to_type_impl): Remove.
406 (variant::__to_type): Add default argument to check pack size, instead
407 of using __to_type_impl.
408 (variant::__accepted_type): Add default argument using __not_self.
409 (variant::__is_in_place_tag, variant::__not_in_place_tag): New helpers
410 for variant(T&&) constructor constraint.
411 (variant::variant(T&&)): Use __not_in_place_tag in constraints.
412 Extract __accepted_type into a named template parameter for reuse in
413 other constraints and in the exception specification.
414 (variant::variant(in_place_type_t<T>, Args&&...))
415 (variant::variant(in_place_type_t<T>, initializer_list<U>, Args&&...))
416 (variant::variant(in_place_index_t<T>, Args&&...))
417 (variant::variant(in_place_index_t<T>, initializer_list<U>, Args&&...))
418 (variant::operator=T&&)): Remove redundant && from trait arguments.
419 * testsuite/20_util/variant/compile.cc: Check variant(T&&) constructor
420 isn't used for in_place_type or in_place_index arguments.
421
422 * include/std/type_traits (unwrap_reference_t): Define for C++2a.
423 (unwrap_ref_decay): Remove inheritance from unwrap_reference.
424 * testsuite/20_util/unwrap_reference/1.cc: Adjust test to use alias.
425
426 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
427 Bernd Edlinger <bernd.edlinger@hotmail.de>
428 Jakub Jelinek <jakub@redhat.com>
429
430 PR target/89093
431 * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Add
432 general-regs-only target attribute for ARM.
433
434 2019-04-23 Jonathan Wakely <jwakely@redhat.com>
435
436 PR libstdc++/87431
437 * include/bits/basic_string.h (_Never_valueless_alt): Make partial
438 specialization also depend on is_nothrow_move_constructible.
439 * include/std/variant (__detail::__variant::__never_valueless()):
440 Only true if the variant would have a move assignment operator.
441 (__detail::__variant::_Variant_storage<false, T...>::_M_valid()):
442 Check __never_valueless<T...>().
443 (variant::emplace): Only perform non-throwing move assignments
444 for never-valueless alternatives if the variant has a move assignment
445 operator.
446 * testsuite/20_util/variant/compile.cc: Check that never-valueless
447 types can be emplaced into non-assignable variants.
448 * testsuite/20_util/variant/run.cc: Check that never-valueless types
449 don't get copied when emplaced into non-assignable variants.
450
451 * include/std/variant (__detail::__variant::__ref_cast): Remove
452 unused function.
453 (__detail::__variant::_Uninitialized::_M_get)
454 (__detail::__variant::__get)
455 (__gen_vtable_impl::__element_by_index_or_cookie): Add noexcept.
456
457 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
458
459 * testsuite/17_intro/headers/c++1998/charset.cc: Skip for Darwin8
460 to Darwin10.
461 * testsuite/17_intro/headers/c++2011/charset.cc: Likewise.
462 * testsuite/17_intro/headers/c++2014/charset.cc: Likewise.
463 * testsuite/17_intro/headers/c++2017/charset.cc: Likewise.
464 * testsuite/17_intro/headers/c++2020/charset.cc: Likewise.
465
466 2019-04-20 Thomas Rodgers <trodgers@redhat.com>
467
468 Delegate PSTL configuration to pstl/pstl_config.h
469
470 * include/bits/c++config: Remove explicit PSTL configuration
471 macros and use definitions from <pstl/pstl_config.h>.
472
473 2019-04-20 Thomas Rodgers <trodgers@redhat.com>
474
475 Cleanup algorithm implementations
476 * include/pstl/glue_algorithm_impl.h (stable_sort): Forward
477 execution policy.
478 (mismatch): Forward execution policy.
479 (equal): Qualify call to std::equal().
480 (partial_sort): Forward execution policy.
481 (inplace_merge): Forward execution policy.
482
483 2019-04-19 Thomas Rodgers <trodgers@redhat.com>
484
485 Improve implementation of parallel equal()
486 * include/pstl/algorithm_impl.h
487 (__internal::__brick_equal): use "4 iterator" version of
488 std::equal().
489 (__internal::__brick_equal): use simd for random access
490 iterators on unsequenced execution policies.
491 (__internal::__pattern_equal): add "4 iterator" version
492 (__internal::__pattern_equal): dispatch to simd __brick_equal
493 for vector-only execution policies.
494 (__internal::__pattern_equal): dispatch to __parallel_or for
495 parallel execution policies.
496 * include/pstl/glue_algorithm_impl.h
497 (std::equal): dispatch to "4 iterator" version of
498 __internal::__pattern_equal().
499
500 2019-04-17 Jonathan Wakely <jwakely@redhat.com>
501
502 PR libstdc++/90105
503 * include/bits/forward_list.h (operator==): Do not use operator!= to
504 compare elements.
505 (forward_list<T, A>::sort(Comp)): When elements are equal take the one
506 earlier in the list, so that sort is stable.
507 * testsuite/23_containers/forward_list/operations/90105.cc: New test.
508 * testsuite/23_containers/forward_list/comparable.cc: Test with
509 types that meet the minimum EqualityComparable and LessThanComparable
510 requirements. Remove irrelevant comment.
511
512 * include/std/variant (__detail::__variant::_Traits::_S_copy_assign):
513 Do not depend on whether all alternative types are move constructible.
514 (__detail::__variant::_Copy_assign_base::operator=): Remove cv-quals
515 from the operand when deciding whether to perform the assignment.
516 * testsuite/20_util/variant/compile.cc (DeletedMoves): Define type
517 with deleted move constructor and deleted move assignment operator.
518 (default_ctor, copy_ctor, move_ctor, copy_assign, move_assign): Check
519 behaviour of variants with DeletedMoves as an alternative.
520 * testsuite/20_util/variant/run.cc (DeletedMoves): Define same type.
521 (move_ctor, move_assign): Check that moving a variant with a
522 DeletedMoves alternative falls back to copying instead of moving.
523
524 * testsuite/20_util/variant/compile.cc: Remove empty string literals
525 from static_assert declarations.
526
527 * testsuite/20_util/variant/compile.cc (MoveCtorOnly): Fix type to
528 actually match its name.
529 (MoveCtorAndSwapOnly): Define new type that adds swap to MoveCtorOnly.
530 (test_swap()): Fix result for MoveCtorOnly and check
531 MoveCtorAndSwapOnly.
532
533 * include/std/optional (optional::value_or(U&&) &&): Add missing
534 constexpr specifier.
535 * testsuite/20_util/optional/constexpr/observers/4.cc: Check value_or
536 for disengaged optionals and rvalue optionals.
537 * testsuite/20_util/optional/observers/4.cc: Likewise.
538
539 2019-04-12 Thomas Rodgers <trodgers@redhat.com>
540
541 * include/pstl/algorithm_impl.h: Uglify identfiers.
542 * include/pstl/numeric_impl.h: Uglify identfiers.
543 * include/pstl/parallel_backend_tbb.h: Uglify identfiers.
544
545 2019-04-11 Thomas Rodgers <trodgers@redhat.com>
546
547 * include/bits/c++config:
548 Add definition for __PSTL_ASSERT.
549 Add definition for __PSTL_ASSERT_MSG.
550 * include/pstl/algorithm_impl.h: Replace use of assert().
551 * include/pstl/numeric_impl.h: Replace use of assert().
552 * include/pstl/parallel_backend_tbb.h:
553 Replace use of assert().
554 Replace use of __TBB_ASSERT().
555 * include/pstl/parallel_backend_utils.h: Replace use of assert().
556
557 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
558
559 PR libstdc++/90046
560 * src/c++17/memory_resource.cc
561 (monotonic_buffer_resource::_Chunk::allocate): Increase alignment if
562 needed to allow placing a _Chunk at the end of the buffer.
563 (monotonic_buffer_resource::_M_new_buffer): Remove static_assert.
564
565 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
566
567 * doc/xml/faq.xml: Add information about emergency EH pool.
568 * doc/xml/manual/debug.xml: Update list of memory debugging tools.
569 Move outdated information on mt_allocator to a separate section.
570 * doc/xml/manual/evolution.xml: Clarify that GLIBCXX_FORCE_NEW
571 doesn't affect the default allocator.
572
573 * testsuite/lib/libstdc++.exp (check_v3_target_parallel_mode): Fix
574 typo.
575
576 PR libstdc++/89851
577 * testsuite/20_util/variant/89851.cc: New test.
578
579 2019-04-09 Jonathan Wakely <jwakely@redhat.com>
580
581 * include/std/variant: Adjust whitespace. Add comments.
582 (_Multi_array): Leave primary template undefined.
583 (_Multi_array<_Tp>): Define partial specialization for base case of
584 recursion.
585 (__gen_vtable_impl, __gen_vtable): Remove redundant && from type
586 which is always a reference.
587 (__gen_vtable::_S_apply()): Remove function, inline body into
588 default member initializer.
589 * testsuite/20_util/variant/visit.cc: Test with noncopyable types.
590
591 * include/std/variant (__variant_idx_cookie): Add member type.
592 (__visitor_result_type): Remove.
593 (__do_visit): Use invoke_result instead of __visitor_result_type.
594 * testsuite/20_util/variant/visit.cc: New test.
595
596 PR libstdc++/90008
597 * include/std/variant (_VARIANT_RELATION_FUNCTION_TEMPLATE): Remove
598 unused capture.
599 * testsuite/20_util/variant/90008.cc: New test.
600
601 2019-04-09 Thomas Rodgers <trodgers@redhat.com>
602
603 * include/pstl/algorithm_impl.h: Add namespace qualification.
604 * include/pstl/execution_defs.h: Add namespace qualification.
605 * include/pstl/execution_impl.h: Add namespace qualification.
606 * include/pstl/numeric_impl.h: Add namespace qualification.
607 * include/pstl/parallel_backend_tbb.h: Add namespace qualification.
608 * include/pstl/unseq_backend_simd.h: Add namespace qualification.
609 * include/pstl/parallel_backend_utils.h: Include <cassert>.
610
611 2019-04-08 Ville Voutilainen <ville.voutilainen@gmail.com>
612
613 Fix visit<R> for variant.
614 * include/std/variant (__do_visit): Add a template parameter
615 for enforcing same return types for visit.
616 (__gen_vtable_impl): Likewise.
617 (_S_apply_single_alt): Adjust.
618 (__visit_invoke_impl): New. Handle casting to void.
619 (__do_visit_invoke): New. Enforces same return types.
620 (__do_visit_invoke_r): New. Converts return types.
621 (__visit_invoke): Adjust.
622 (__gen_vtable): Add a template parameter for enforcing
623 same return types for visit.
624 * testsuite/20_util/variant/visit_r.cc: Add a test for a visitor with
625 different return types.
626 * testsuite/20_util/variant/visit_neg.cc: New. Ensures that
627 visitors with different return types don't accidentally
628 compile with regular visitation.
629
630 2019-04-08 Christophe Lyon <christophe.lyon@linaro.org>
631
632 * testsuite/27_io/filesystem/iterators/caching.cc: Add
633 dg-require-filesystem-ts.
634
635 2019-04-05 Jonathan Wakely <jwakely@redhat.com>
636
637 * doc/xml/manual/status_cxx2020.xml: Update status.
638 * include/std/variant (visit<R>): Define for C++2a (P0655R1).
639 * testsuite/20_util/variant/visit_r.cc: New test.
640
641 * include/bits/fs_dir.h (directory_iterator::operator*)
642 (directory_iterator::operator->): Add noexcept.
643 (operator==, operator!=): Replace namespace-scope equality operators
644 for directory iterators with hidden friends.
645
646 PR libstdc++/89986
647 * config/abi/pre/gnu.ver: Add missing exports.
648 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Test
649 increment member.
650
651 * config/abi/pre/gnu.ver: Export new symbols.
652 * include/bits/fs_dir.h (recursive_directory_iterator::options())
653 (recursive_directory_iterator::recursion_pending())
654 (recursive_directory_iterator::disable_recursion_pending()): Remove
655 inline definitions. Make noexcept.
656 (recursive_directory_iterator::depth())
657 (recursive_directory_iterator::operator*())
658 (recursive_directory_iterator::operator->()): Make noexcept.
659 (recursive_directory_iterator::_M_options)
660 (recursive_directory_iterator::_M_pending): Remove data members.
661 * src/c++17/fs_path.cc (_Dir_stack): Add constructor and data members.
662 (recursive_directory_iterator::recursive_directory_iterator): Remove
663 ctor-initializer. Use new constructor for _Dir_stack.
664 (recursive_directory_iterator::options())
665 (recursive_directory_iterator::recursion_pending())
666 (recursive_directory_iterator::disable_recursion_pending()): Add
667 non-inline definitions.
668 (recursive_directory_iterator::depth()): Make noexcept.
669 (recursive_directory_iterator::increment(error_code&))
670 (recursive_directory_iterator::pop(error_code&)): Adjust to new
671 location of options and recursion_pending members.
672 * testsuite/27_io/filesystem/iterators/recursion_pending.cc: New test.
673 * testsuite/util/testsuite_fs.h (__gnu_test::scoped_file): Add
674 user-declared move constructor and assignment operator, to make the
675 type move-only.
676
677 * src/c++17/fs_dir.cc (_Dir::advance(bool, error_code&)): Handle
678 d_type == DT_UNKNOWN immediately.
679 (_Dir::should_recurse(bool, error_code&)): Remove file_type::unknown
680 handling here.
681 * testsuite/27_io/filesystem/iterators/caching.cc: New test.
682
683 * include/bits/fs_path.h (path::operator=(path&&)): Check for self
684 assignment.
685 * src/c++17/fs_path.cc (path::operator=(const path&)): Likewise.
686 * testsuite/27_io/filesystem/path/assign/copy.cc: Test self
687 assignment.
688
689 PR libstdc++/87431 (again)
690 * include/bits/basic_string.h (__variant::_Never_valueless_alt):
691 Define partial specialization for basic_string.
692 * include/bits/shared_ptr.h (_Never_valueless_alt): Likewise for
693 shared_ptr and weak_ptr.
694 * include/bits/std_function.h (_Never_valueless_alt): Likewise for
695 function.
696 * include/bits/stl_vector.h (_Never_valueless_alt): Likewise for
697 vector.
698 * include/bits/unique_ptr.h (_Never_valueless_alt): Likewise for
699 unique_ptr.
700 * include/debug/vector (_Never_valueless_alt): Likewise for debug
701 vector.
702 * include/std/any (_Never_valueless_alt): Define explicit
703 specialization for any.
704 * include/std/variant (_Never_valueless_alt): Define primary template.
705 (__never_valueless): Use _Never_valueless_alt instead of
706 is_trivially_copyable.
707 (variant::emplace<N>(Args&&...)): Add special case for non-throwing
708 initializations to avoid try-catch overhead. Add special case for
709 scalars produced by potentially-throwing conversions. Use
710 _Never_valueless_alt instead of is_trivially_copyable for the
711 remaining strong exception-safety cases.
712 (variant::emplace<N>(initializer_list<U>, Args&&...)): Likewise.
713 * testsuite/20_util/variant/87431.cc: Run both test functions.
714 * testsuite/20_util/variant/exception_safety.cc: New test.
715 * testsuite/20_util/variant/run.cc: Use pmr::string instead of string,
716 so the variant becomes valueless.
717
718 2019-04-03 Jonathan Wakely <jwakely@redhat.com>
719
720 PR libstdc++/85184
721 * include/std/variant (_Copy_assign_base, _Move_assign_base, variant):
722 Remove assertions.
723 (variant::emplace<_Tp>): Return result of emplace<N> directly.
724
725 * include/std/string (__hash_string_base): New class template defining
726 operator() for hashing strings.
727 (hash<pmr::string>, hash<pmr::u8string>, hash<pmr::u16string>)
728 (hash<pmr::u32string>, hash<pmr::wstring>): Define for C++17.
729 * testsuite/21_strings/basic_string/hash/hash.cc: New test.
730 * testsuite/21_strings/basic_string/hash/hash_char8_t.cc: New test.
731
732 2019-04-01 Ville Voutilainen <ville.voutilainen@gmail.com>
733
734 Use single-visitation in variant assignment and swap and relops.
735 Also use indices instead of types when checking whether
736 variants hold the same thing.
737 * include/std/variant (__do_visit): Add a template parameter
738 for index visitation, invoke with indices if index visitation
739 is used.
740 (__variant_idx_cookie): New.
741 (__visit_with_index): Likewise.
742 (_Copy_assign_base::operator=): Do single-visitation with
743 an index visitor.
744 (_Move_assign_base::operator=): Likewise.
745 (_Extra_visit_slot_needed): Adjust.
746 (__visit_invoke): Call with indices if it's an index visitor.
747 (relops): Do single-visitation with an index visitor.
748 (swap): Likewise.
749 (__visitor_result_type): New.
750
751 2019-03-30 Eric Botcazou <ebotcazou@adacore.com>
752
753 * src/c++17/fs_ops.cc (fs::permissions): Use std::errc::not_supported.
754
755 2019-03-28 Ville Voutilainen <ville.voutilainen@gmail.com>
756
757 Don't revisit a variant we are already visiting.
758 * include/std/variant (__variant_construct_single): New.
759 (__variant_construct): Use it.
760 (_M_destructive_move): Likewise.
761 (_M_destructive_copy): Likewise.
762 (_Copy_assign_base::operator=): Adjust.
763 (_Move_assign_base::operator=): Likewise.
764 (swap): Likewise.
765
766 2019-03-26 Jonathan Wakely <jwakely@redhat.com>
767
768 PR libstdc++/85965
769 * include/bits/hashtable.h (_Hashtable): Move static assertions to
770 destructor so they are not evaluated until the _Key type is complete.
771 * include/bits/stl_tree.h (_Rb_tree): Likewise.
772 * testsuite/23_containers/set/85965.cc: New test.
773 * testsuite/23_containers/unordered_set/85965.cc: New test.
774 * testsuite/23_containers/map/48101_neg.cc: Replace "here" errors
775 with regexp matching the corresponding _Rb_tree specialization.
776 * testsuite/23_containers/multimap/48101_neg.cc: Likewise.
777 * testsuite/23_containers/multiset/48101_neg.cc: Remove "here" error.
778 * testsuite/23_containers/set/48101_neg.cc: Likewise.
779 * testsuite/23_containers/unordered_map/48101_neg.cc: Likewise.
780 * testsuite/23_containers/unordered_multimap/48101_neg.cc: Likewise.
781 * testsuite/23_containers/unordered_multiset/48101_neg.cc: Likewise.
782 * testsuite/23_containers/unordered_set/48101_neg.cc: Likewise.
783
784 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com>
785
786 PR libstdc++/89825
787 Fix based on a suggestion by Antony Polukhin.
788 * include/std/variant (__never_valueless): New.
789 (_M_valid): Use it.
790 (_Extra_visit_slot_needed): New.
791 (_Multi_array): Use it.
792 (_S_apply_all_alts): Likewise.
793
794 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com>
795
796 PR libstdc++/89824
797 Fix based on a suggestion by Antony Polukhin.
798 * include/std/variant (__gen_vtable): Don't reserve an
799 additional table slot, _Multi_array already does that.
800
801 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com>
802
803 PR libstdc++/89816
804 Fix based on a suggestion by Antony Polukhin.
805 * include/std/variant (__variant_construct): Capture a pointer
806 to the storage and visit just one variant.
807
808 2019-03-22 Jonathan Wakely <jwakely@redhat.com>
809
810 * doc/xml/manual/backwards_compatibility.xml: Remove link to
811 Doxygen-generated pages with unstable URL.
812 * doc/xml/manual/concurrency_extensions.xml: Likewise.
813 * doc/xml/manual/extensions.xml: Likewise.
814 * doc/xml/manual/parallel_mode.xml: Likewise.
815 * doc/xml/manual/support.xml: Likewise.
816
817 * include/bits/stl_algobase.h (__lg): Do arithmetic on type int to
818 avoid -Wconversion warnings.
819
820 2019-03-21 Thomas Rodgers <trodgers@redhat.com>
821
822 * include/Makefile.am (std_header): Add ${std_srcdir}/execution.
823 (pstl_srcdir, pstl_builddir, pstl_headers): New variables.
824 (allstamped): Add stamp-pstl.
825 (install-headers): Add ptsl_builddir.
826 * include/Makefile.in: Regenerate.
827 * include/bits/c++config: Add pstl configuration.
828 * include/pstl/LICENSE.txt: New file.
829 * include/pstl/algorithm_fwd.h: New file.
830 * include/pstl/algorithm_impl.h: New file.
831 * include/pstl/execution_defs.h: New file.
832 * include/pstl/execution_impl.h: New file.
833 * include/pstl/glue_algorithm_defs.h: New file.
834 * include/pstl/glue_algorithm_impl.h: New file.
835 * include/pstl/glue_execution_defs.h: New file.
836 * include/pstl/glue_memory_defs.h: New file.
837 * include/pstl/glue_memory_impl.h: New file.
838 * include/pstl/glue_numeric_defs.h: New file.
839 * include/pstl/glue_numeric_impl.h: New file.
840 * include/pstl/memory_impl.h: New file.
841 * include/pstl/numeric_fwd.h: New file.
842 * include/pstl/numeric_impl.h: New file.
843 * include/pstl/parallel_backend.h: New file.
844 * include/pstl/parallel_backend_tbb.h: New file.
845 * include/pstl/parallel_backend_utils.h: New file.
846 * include/pstl/parallel_impl.h: New file.
847 * include/pstl/pstl_config.h: New file.
848 * include/pstl/unseq_backend_simd.h: New file.
849 * include/pstl/utils.h: New file.
850 * include/std/algorithm: Include parallel algorithm implementations.
851 * include/std/execution: New file.
852 * include/std/memory: Include parallel algorithm implementations.
853 * include/std/numeric: Include parallel algorithm implementations.
854 * include/std/version: Add parallel algorithms feature test macro.
855 * testsuite/util/pstl/pstl_test_config.h: New file.
856 * testsuite/util/pstl/test_utils.h: New file.
857 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc: New file.
858 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc: New file.
859 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc: New file.
860 * testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: New file.
861 * testsuite/25_algorithms/pstl/alg_merge/merge.cc: New file.
862 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc: New file.
863 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc: New file.
864 * testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc: New file.
865 * testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc: New file.
866 * testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc: New file.
867 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc: New file.
868 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc: New file.
869 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc: New file.
870 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc: New file.
871 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc: New file.
872 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc: New file.
873 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc: New file.
874 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc: New file.
875 * testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc: New file.
876 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc: New file.
877 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc: New file.
878 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc: New file.
879 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc: New file.
880 * testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc: New file.
881 * testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: New file.
882 * testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: New file.
883 * testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: New file.
884 * testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: New file.
885 * testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: New file.
886 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: New file.
887 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc: New file.
888 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: New file.
889 * testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc: New file.
890 * testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc: New file.
891 * testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: New file.
892 * testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc: New file.
893 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: New file.
894 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc: New file.
895 * testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: New file.
896 * testsuite/25_algorithms/pstl/alg_sorting/includes.cc: New file.
897 * testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: New file.
898 * testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc: New file.
899 * testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc: New file.
900 * testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc: New file.
901 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: New file.
902 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc: New file.
903 * testsuite/25_algorithms/pstl/alg_sorting/set.cc: New file.
904 * testsuite/25_algorithms/pstl/alg_sorting/sort.cc: New file.
905 * testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc: New file.
906 * testsuite/26_numerics/pstl/numeric_ops/reduce.cc: New file.
907 * testsuite/26_numerics/pstl/numeric_ops/scan.cc: New file.
908 * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc: New file.
909 * testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: New file.
910 * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc: New file.
911 * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc: New file.
912 * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc: New file.
913 * testsuite/testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: New file.
914 * testsuite/testsuite/25_algorithms/pstl/alg_merge/merge.cc: New file.
915 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc: New file.
916 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc: New file.
917 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc: New file.
918 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc: New file.
919 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc: New file.
920 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc: New file.
921 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc: New file.
922 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc: New file.
923 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc: New file.
924 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc: New file.
925 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc: New file.
926 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc: New file.
927 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc: New file.
928 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc: New file.
929 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc: New file.
930 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc: New file.
931 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc: New file.
932 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc: New file.
933 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc: New file.
934 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: New file.
935 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: New file.
936 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: New file.
937 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: New file.
938 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: New file.
939 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: New file.
940 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc: New file.
941 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: New file.
942 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc: New file.
943 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc: New file.
944 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: New file.
945 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc: New file.
946 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: New file.
947 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc: New file.
948 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: New file.
949 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/includes.cc: New file.
950 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: New file.
951 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc: New file.
952 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc: New file.
953 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc: New file.
954 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: New file.
955 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc: New file.
956 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/set.cc: New file.
957 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/sort.cc: New file.
958 * testsuite/testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc: New file.
959 * testsuite/testsuite/26_numerics/pstl/numeric_ops/reduce.cc: New file.
960 * testsuite/testsuite/26_numerics/pstl/numeric_ops/scan.cc: New file.
961 * testsuite/testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc: New file.
962 * testsuite/testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: New file.
963
964 2019-03-21 Jonathan Wakely <jwakely@redhat.com>
965
966 * include/c_compatibility/math.h [!__STDCPP_WANT_MATH_SPEC_FUNCS__]
967 (assoc_laguerre, assoc_laguerref, assoc_laguerrel, assoc_legendre)
968 (assoc_legendref, assoc_legendrel, beta, betaf, betal, comp_ellint_1)
969 (comp_ellint_1f, comp_ellint_1l, comp_ellint_2, comp_ellint_2f)
970 (comp_ellint_2l, comp_ellint_3, comp_ellint_3f, comp_ellint_3l)
971 (cyl_bessel_i, cyl_bessel_if, cyl_bessel_il, cyl_bessel_j)
972 (cyl_bessel_jf, cyl_bessel_jl, cyl_bessel_k, cyl_bessel_kf)
973 (cyl_bessel_kl, cyl_neumann, cyl_neumannf, cyl_neumannl, ellint_1)
974 (ellint_1f, ellint_1l, ellint_2, ellint_2f, ellint_2l, ellint_3)
975 (ellint_3f, ellint_3l, expint, expintf, expintl, hermite, hermitef)
976 (hermitel, laguerre, laguerref, laguerrel, legendre, legendref)
977 (legendrel, riemann_zeta, riemann_zetaf, riemann_zetal, sph_bessel)
978 (sph_besself, sph_bessell, sph_legendre, sph_legendref, sph_legendrel)
979 (sph_neumann, sph_neumannf, sph_neumannl): Only add using-declarations
980 when the special functions IS is enabled, not for C++17.
981 * testsuite/26_numerics/headers/cmath/functions_global_c++17.cc:
982 Replace with ...
983 * testsuite/26_numerics/headers/cmath/functions_global.cc: New test,
984 without checks for special functions in C++17.
985 * testsuite/26_numerics/headers/cmath/special_functions_global.cc:
986 New test.
987
988 PR libstdc++/88066
989 * include/backward/hash_map: Use <> for includes not "".
990 * include/backward/hash_set: Likewise.
991 * include/backward/strstream: Likewise.
992 * include/tr1/bessel_function.tcc: Likewise.
993 * include/tr1/exp_integral.tcc: Likewise.
994 * include/tr1/legendre_function.tcc: Likewise.
995 * include/tr1/modified_bessel_func.tcc: Likewise.
996 * include/tr1/riemann_zeta.tcc: Likewise.
997
998 2019-03-19 Jonathan Wakely <jwakely@redhat.com>
999
1000 * doc/xml/manual/allocator.xml: Link to table documenting evolution
1001 of extension allocators.
1002 * doc/xml/manual/evolution.xml: Use angle brackets for header names.
1003 Document new headers in 7.2, 8.1 and 9.1 releases.
1004 * doc/xml/manual/using.xml: Adjust link target for new_allocator.
1005 * doc/html/*: Regenerate.
1006
1007 2019-03-12 John David Anglin <dave.anglin@bell.net>
1008
1009 PR libstdc++/89461
1010 * testsuite/lib/libstdc++.exp: Locate libatomic.
1011 * testsuite/lib/dg-options.exp (add_options_for_libatomic): New.
1012 * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: Add
1013 libatomic options.
1014 * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise.
1015 * testsuite/experimental/net/timer/waitable/cons.cc: Likewise.
1016 * testsuite/experimental/net/timer/waitable/dest.cc: Likewise.
1017 * testsuite/experimental/net/timer/waitable/ops.cc: Likewise.
1018
1019 2019-03-11 Jonathan Wakely <jwakely@redhat.com>
1020
1021 PR libstdc++/89460
1022 * configure.ac: Check for sockatmark.
1023 * crossconfig.m4: Check for sockatmark.
1024 * config.h.in: Regenerate.
1025 * configure: Regenerate.
1026 * include/experimental/internet (address_v4::_S_hton): Rename
1027 overloaded functions to _S_hton_16 and _S_ntoh_16.
1028 (address_v4::_S_ntoh): Rename to _S_ntoh_16 and _S_ntoh_32.
1029 (basic_endpoint): Adjust calls to _S_hton and _S_ntoh.
1030 * include/experimental/socket (basic_socket::at_mark): Check
1031 _GLIBCXX_HAVE_SOCKATMARK.
1032
1033 * testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc: Use
1034 const variables instead of macros.
1035
1036 PR libstdc++/89629
1037 * libsupc++/hash_bytes.cc [__SIZEOF_SIZE_T__ == 8] (_Hash_bytes):
1038 Use correct type for len_aligned.
1039 * testsuite/20_util/hash/89629.cc: New test.
1040
1041 2019-03-11 Jakub Jelinek <jakub@redhat.com>
1042
1043 PR libstdc++/89641
1044 * include/std/atomic (atomic<T>::store, atomic<T>::load,
1045 atomic<T>::exchange, atomic<T>::compare_exchange_weak,
1046 atomic<T>::compare_exchange_strong): Cast __m or __s and __f to int.
1047 * include/bits/atomic_base.h (__atomic_base<T>::operator++,
1048 __atomic_base<T>::operator--, __atomic_base<T>::operator+=,
1049 __atomic_base<T>::operator-=, __atomic_base<T>::operator&=,
1050 __atomic_base<T>::operator|=, __atomic_base<T>::operator^=,
1051 __atomic_base<T*>::operator++, __atomic_base<T*>::operator--,
1052 __atomic_base<T*>::operator+=, __atomic_base<T*>::operator-=): Cast
1053 memory_order_seq_cst to int.
1054
1055 2019-03-08 Jonathan Wakely <jwakely@redhat.com>
1056
1057 * doc/xml/manual/using.xml: Use link element instead of xref.
1058 * doc/html/*: Regenerate.
1059
1060 * include/bits/fs_path.h (path::format): Add fixed underlying type.
1061
1062 2019-03-08 François Dumont <fdumont@gcc.gnu.org>
1063
1064 PR libstdc++/89477
1065 * include/debug/map.h (map): Use _RequireNotAllocator to constrain
1066 parameters in deduction guides.
1067 * include/debug/multimap.h (multimap): Likewise.
1068 * include/debug/set.h (multimap): Likewise.
1069 * include/debug/multiset.h (multimap): Likewise.
1070 * include/debug/unordered_map (unordered_map): Likewise.
1071 (unordered_multimap): Likewise.
1072 * include/debug/unordered_set (unordered_set): Likewise.
1073 (unordered_multiset): Likewise.
1074
1075 PR libstdc++/89608
1076 * include/debug/unordered_map (unordered_map<>::_M_check_rehashed):
1077 Invalidate all iterators in case of rehash.
1078 (unordered_multimap<>::_M_check_rehashed): Likewise.
1079 * include/debug/unordered_set
1080 (unordered_set<>::_M_check_rehashed): Likewise.
1081 (unordered_multiset<>::_M_check_rehashed): Likewise.
1082 * testsuite/23_containers/unordered_set/debug/89608_neg.cc: New.
1083
1084 2019-03-07 Andreas Schwab <schwab@suse.de>
1085
1086 * config/abi/post/riscv64-linux-gnu: New directory.
1087 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: New file.
1088
1089 2019-03-07 Jonathan Wakely <jwakely@redhat.com>
1090
1091 * testsuite/20_util/function_objects/bind_front/1.cc: Change from
1092 compile test to run. Fix typo.
1093
1094 * doc/xml/manual/status_cxx2020.xml: Update C++20 status.
1095 * doc/html/*: Regenerate.
1096
1097 P0356R5 Simplified partial function application
1098 * include/std/functional [C++20] (_Bind_front, _Bind_front_t): Define
1099 helpers for bind_front.
1100 (bind_front, __cpp_lib_bind_front): Define.
1101 * testsuite/20_util/function_objects/bind_front/1.cc: New test.
1102
1103 2019-03-06 Jonathan Wakely <jwakely@redhat.com>
1104
1105 * include/std/type_traits (__cpp_lib_bounded_array_traits): Define.
1106 * include/std/version (__cpp_lib_bounded_array_traits): Likewise.
1107 * testsuite/20_util/is_bounded_array/value.cc: Check for macro.
1108 * testsuite/20_util/is_unbounded_array/value.cc: Likewise.
1109
1110 2019-03-06 Edward Smith-Rowland <3dw4rd@verizon.net>
1111
1112 PR libstdc++/86655 - std::assoc_legendre should not constrain
1113 the value of m (or x).
1114 * include/tr1/legendre_function.tcc (__assoc_legendre_p,
1115 __sph_legendre): If degree > order Don't throw, return 0.
1116 (__legendre_p, __assoc_legendre_p): Don't constrain x either.
1117 * testsuite/special_functions/02_assoc_legendre/pr86655.cc: New test.
1118 * testsuite/special_functions/20_sph_legendre/pr86655.cc: New test.
1119 * testsuite/tr1/5_numerical_facilities/special_functions/
1120 02_assoc_legendre/pr86655.cc: New test.
1121 * testsuite/tr1/5_numerical_facilities/special_functions/
1122 22_sph_legendre/pr86655.cc: New test.
1123
1124 2019-03-06 Ville Voutilainen <ville.voutilainen@gmail.com>
1125
1126 Rewrite variant.
1127 Also PR libstdc++/85517
1128 * include/std/variant (__do_visit): New.
1129 (__variant_cast): Likewise.
1130 (__variant_cookie): Likewise.
1131 (__erased_*): Remove.
1132 (_Variant_storage::_S_vtable): Likewise.
1133 (_Variant_storage::__M_reset_impl): Adjust to use __do_visit.
1134 (_Variant_storage::__M_reset): Adjust.
1135 (__variant_construct): New.
1136 (_Copy_ctor_base(const _Copy_ctor_base&)): Adjust to use
1137 __variant_construct.
1138 (_Move_ctor_base(_Move_ctor_base&&)): Likewise.
1139 (_Move_ctor_base::__M_destructive_copy): New.
1140 (_Move_ctor_base::__M_destructive_move): Adjust to use
1141 __variant_construct.
1142 (_Copy_assign_base::operator=): Adjust to use __do_visit.
1143 (_Copy_assign_alias): Adjust to check both copy assignment
1144 and copy construction for triviality.
1145 (_Move_assign_base::operator=): Adjust to use __do_visit.
1146 (_Multi_array): Add support for visitors that accept and return
1147 a __variant_cookie.
1148 (__gen_vtable_impl::_S_apply_all_alts): Likewise.
1149 (__gen_vtable_impl::_S_apply_single_alt): Likewise.
1150 (__gen_vtable_impl::__element_by_index_or_cookie): New. Generate
1151 a __variant_cookie temporary for a variant that is valueless and..
1152 (__gen_vtable_impl::__visit_invoke): ..adjust here.
1153 (__gen_vtable::_Array_type): Conditionally make space for
1154 the __variant_cookie visitor case.
1155 (__variant_construct_by_index): New.
1156 (get_if): Adjust to use std::addressof.
1157 (relops): Adjust to use __do_visit.
1158 (variant): Add __variant_cast and __variant_construct_by_index
1159 as friends.
1160 (variant::emplace): Use _M_reset() and __variant_construct_by_index
1161 instead of self-destruction.
1162 (variant::swap): Adjust to use __do_visit.
1163 (visit): Reimplement in terms of __do_visit.
1164 (__variant_hash_call_base_impl::operator()): Adjust to use __do_visit.
1165 * testsuite/20_util/variant/compile.cc: Adjust.
1166 * testsuite/20_util/variant/run.cc: Likewise.
1167
1168 2019-03-06 Jonathan Wakely <jwakely@redhat.com>
1169
1170 * include/bits/c++config.h (_cpp_lib_char8_t): Add L suffix to
1171 constant.
1172 * testsuite/experimental/feat-char8_t.cc: Likewise.
1173
1174 * include/std/type_traits [C++20] (is_bounded_array)
1175 (is_unbounded_array, is_bounded_array_v, is_unbounded_array_v):
1176 Define.
1177 * testsuite/20_util/is_bounded_array/requirements/
1178 explicit_instantiation.cc: New test.
1179 * testsuite/20_util/is_bounded_array/requirements/typedefs.cc: New
1180 test.
1181 * testsuite/20_util/is_bounded_array/value.cc: New test.
1182 * testsuite/20_util/is_unbounded_array/requirements/
1183 explicit_instantiation.cc: New test.
1184 * testsuite/20_util/is_unbounded_array/requirements/typedefs.cc: New
1185 * test.
1186 * testsuite/20_util/is_unbounded_array/value.cc: New test.
1187
1188 * include/bits/ptr_traits.h [C++20] (pointer_traits<T*>::pointer_to):
1189 Add constexpr.
1190 * testsuite/20_util/pointer_traits/pointer_to_constexpr.cc: New test.
1191
1192 2019-03-05 Jonathan Wakely <jwakely@redhat.com>
1193
1194 * include/c_compatibility/math.h [C++20] (lerp): Add using
1195 declaration.
1196 * include/c_global/cmath [C++20] (__cpp_lib_interpolate): Define.
1197 (__lerp): Define function template to implement lerp.
1198 (lerp(float, float, float), lerp(double, double, double))
1199 (lerp(long double, long double, long double)): Define for C++20.
1200 * include/std/numeric [C++20] (__cpp_lib_interpolate): Define.
1201 (midpoint(T, T), midpoint(T*, T*)): Define.
1202 * include/std::version [C++20] (__cpp_lib_interpolate): Define.
1203 * testsuite/26_numerics/lerp.cc: New test.
1204 * testsuite/26_numerics/midpoint/floating.cc: New test.
1205 * testsuite/26_numerics/midpoint/integral.cc: New test.
1206 * testsuite/26_numerics/midpoint/pointer.cc: New test.
1207
1208 2019-03-04 Edward Smith-Rowland <3dw4rd@verizon.net>
1209
1210 PR libstdc++/88996 Implement P0439R0
1211 Make std::memory_order a scoped enumeration.
1212 * include/bits/atomic_base.h: For C++20 make memory_order a scoped enum,
1213 add variables for the old enumerators. Adjust calls.
1214 * testsuite/29_atomics/headers/atomic/types_std_c++2a.cc: New test.
1215 * testsuite/29_atomics/headers/atomic/types_std_c++2a_neg.cc: New test.
1216
1217 2019-03-04 Jonathan Wakely <jwakely@redhat.com>
1218
1219 * testsuite/26_numerics/bit/bitops.rot/rotl.cc: Remove bogus dg-do
1220 directive.
1221
1222 * include/std/memory_resource (polymorphic_allocator): Add default
1223 template argument for C++20.
1224 (polymorphic_allocator::allocate_bytes)
1225 (polymorphic_allocator::deallocate_bytes)
1226 (polymorphic_allocator::allocate_object)
1227 (polymorphic_allocator::deallocate_object)
1228 (polymorphic_allocator::new_object)
1229 (polymorphic_allocator::delete_object): New member functions for
1230 C++20.
1231 * testsuite/20_util/polymorphic_allocator/allocate_object.cc: New
1232 test.
1233
1234 2019-03-03 Jonathan Wakely <jwakely@redhat.com>
1235
1236 PR libstdc++/89562
1237 * src/filesystem/ops-common.h (do_copy_file): Open files in binary
1238 mode for mingw.
1239
1240 2019-03-01 Jonathan Wakely <jwakely@redhat.com>
1241
1242 * testsuite/util/testsuite_allocator.h (__gnu_test::memory_resource)
1243 [!__cpp_sized_deallocation]: Do not pass size to operator delete.
1244
1245 * include/std/memory (uses_allocator_construction_args): New set of
1246 overloaded functions.
1247 (make_obj_using_allocator, uninitialized_construct_using_allocator):
1248 New functions.
1249 * include/std/memory_resource (polymorphic_allocator::construct)
1250 [__cplusplus > 201703l]: Replace all overloads with a single function
1251 using uses_allocator_construction_args.
1252 * testsuite/20_util/polymorphic_allocator/construct_c++2a.cc: New
1253 test.
1254 * testsuite/20_util/uses_allocator/make_obj.cc: New test.
1255
1256 2019-02-27 Jonathan Wakely <jwakely@redhat.com>
1257
1258 PR libstdc++/89466
1259 * acinclude.m4 (GLIBCXX_CONFIGURE_DOCBOOK): Reorder check for local
1260 stylesheet directories before check for xsltproc. Try to use
1261 xmlcatalog to find local stylesheet directory before trying hardcoded
1262 paths. Add path used by suse to hardcoded paths. Adjust xsltproc
1263 check to look for the same stylesheet as doc/Makefile.am uses. Don't
1264 use xsltproc if xmlcatalog fails to find a local stylesheet.
1265 * configure.ac: Check for xmlcatalog.
1266 * Makefile.in: Regenerate.
1267 * configure: Likewise.
1268 * doc/Makefile.in: Likewise.
1269 * include/Makefile.in: Likewise.
1270 * libsupc++/Makefile.in: Likewise.
1271 * po/Makefile.in: Likewise.
1272 * python/Makefile.in: Likewise.
1273 * src/Makefile.in: Likewise.
1274 * src/c++11/Makefile.in: Likewise.
1275 * src/c++17/Makefile.in: Likewise.
1276 * src/c++98/Makefile.in: Likewise.
1277 * src/filesystem/Makefile.in: Likewise.
1278 * testsuite/Makefile.in: Likewise.
1279
1280 2019-02-26 Jonathan Wakely <jwakely@redhat.com>
1281
1282 PR libstdc++/89477
1283 * include/bits/alloc_traits.h (_RequireNotAllocator): New helper for
1284 container deduction guides.
1285 * include/bits/hashtable.h (_RequireNotAllocatorOrIntegral): Likewise.
1286 * include/bits/stl_map.h (map): Use _RequireNotAllocator to constrain
1287 parameters in deduction guides.
1288 * include/bits/stl_multimap.h (multimap): Likewise.
1289 * include/bits/stl_multiset.h (multiset): Likewise.
1290 * include/bits/stl_queue.h (queue, priority_queue): Likewise.
1291 * include/bits/stl_set.h (set): Likewise.
1292 * include/bits/stl_stack.h (stack): Likewise.
1293 * include/bits/unordered_map.h (unordered_map, unordered_multimap):
1294 use _RequireNotAllocator and _RequireNotAllocatorOrIntegral to
1295 constrain parameters in deduction guides.
1296 * include/bits/unordered_set.h (unordered_set, unordered_multiset):
1297 Likewise.
1298 * testsuite/23_containers/map/cons/deduction.cc: Test additional
1299 deduction cases.
1300 * testsuite/23_containers/multiset/cons/deduction.cc: Likewise.
1301 * testsuite/23_containers/set/cons/deduction.cc: Likewise.
1302 * testsuite/23_containers/unordered_map/cons/deduction.cc: Likewise.
1303 * testsuite/23_containers/unordered_multimap/cons/deduction.cc:
1304 Likewise.
1305 * testsuite/23_containers/unordered_multiset/cons/deduction.cc:
1306 Likewise.
1307 * testsuite/23_containers/unordered_set/cons/deduction.cc: Likewise.
1308
1309 PR libstdc++/89416
1310 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Change
1311 to class template and partial specialization using void_t.
1312 (__is_copy_insertable, __is_move_insertable): Adjust base class.
1313
1314 2019-02-24 Jonathan Wakely <jwakely@redhat.com>
1315
1316 PR libstdc++/89416
1317 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Make
1318 copy and move members public.
1319
1320 2019-02-23 Jonathan Wakely <jwakely@redhat.com>
1321
1322 * include/std/type_traits (__underlying_type_impl): New helper to
1323 make underlying_type SFINAE-friendly.
1324 (underlying_type): Derive from __underlying_type_impl.
1325 * testsuite/20_util/underlying_type/requirements/typedefs-3.cc: New
1326 test.
1327
1328 PR libstdc++/89446
1329 * include/bits/char_traits.h (__constant_char_array): Check index is
1330 in range before dereferencing.
1331 (char_traits<char>::compare, char_traits<char>::find)
1332 (char_traits<char8_t>::compare, char_traits<char8_t>::find): Return
1333 immediately if n is zero.
1334 (char_traits<wchar_t>::compare, char_traits<wchar_t>::find): Likewise.
1335 Remove workarounds for PR 67026.
1336 * testsuite/21_strings/basic_string_view/operators/char/89446.cc:
1337 New test.
1338 * testsuite/21_strings/basic_string_view/operators/wchar_t/89446.cc:
1339 New test.
1340
1341 2019-02-22 Eric Botcazou <ebotcazou@adacore.com>
1342
1343 * config/abi/post/sparc64-linux-gnu/baseline_symbols.txt: Adjust.
1344 * config/abi/post/sparc64-linux-gnu/32/baseline_symbols.txt: Likewise.
1345
1346 2019-02-22 Jakub Jelinek <jakub@redhat.com>
1347
1348 PR libstdc++/89402
1349 * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Change return
1350 type to std::size_t and argument to type to long double.
1351
1352 2019-02-22 Eric Botcazou <ebotcazou@adacore.com>
1353
1354 * configure.host (abi_baseline_pair): Adjust for SPARC64/Linux.
1355 * config/abi/post/sparc64-linux-gnu: New directory.
1356 * config/abi/post/sparc64-linux-gnu/baseline_symbols.txt: New file.
1357 * config/abi/post/sparc64-linux-gnu/32: New directory.
1358 * config/abi/post/sparc64-linux-gnu/32/baseline_symbols.txt: New file.
1359
1360 2019-02-21 Jonathan Wakely <jwakely@redhat.com>
1361
1362 * testsuite/29_atomics/headers/atomic/types_std_c++20.cc: New test.
1363 * testsuite/29_atomics/headers/atomic/types_std_c++20_neg.cc: New
1364 test.
1365
1366 2019-02-22 Tom Honermann <tom@honermann.net>
1367
1368 * python/libstdcxx/v6/printers.py (register_type_printers): Add type
1369 printers for u8string and u8string_view.
1370
1371 2019-02-22 Tom Honermann <tom@honermann.net>
1372
1373 * testsuite/18_support/byte/ops.cc: Validate
1374 std::to_integer<char8_t>, std::to_integer<char16_t>, and
1375 std::to_integer<char32_t>.
1376 * testsuite/18_support/numeric_limits/dr559.cc: Validate
1377 std::numeric_limits<char8_t>.
1378 * testsuite/18_support/numeric_limits/lowest.cc: Validate
1379 std::numeric_limits<char8_t>::lowest().
1380 * testsuite/18_support/numeric_limits/max_digits10.cc: Validate
1381 std::numeric_limits<char8_t>::max_digits10.
1382 * testsuite/18_support/type_info/fundamental.cc: Validate
1383 typeinfo for char8_t.
1384 * testsuite/20_util/from_chars/1_c++20_neg.cc: New test, validating
1385 std::from_chars with char8_t.
1386 * testsuite/20_util/hash/requirements/explicit_instantiation.cc:
1387 Validate explicit instantiation of std::hash<char8_t>.
1388 * testsuite/20_util/is_integral/value.cc: Validate
1389 std::is_integral<char8_t>.
1390 * testsuite/20_util/make_signed/requirements/typedefs-4.cc:
1391 Validate std::make_signed<char8_t>.
1392 * testsuite/21_strings/basic_string/cons/char/deduction.cc:
1393 Validate u8string construction from char8_t sources.
1394 * testsuite/21_strings/basic_string/types/pmr_typedefs.cc: Validate
1395 std::pmr::u8string.
1396 * testsuite/21_strings/basic_string_view/operations/compare/
1397 char/70483.cc: Validate substr operations on u8string_view.
1398 * testsuite/21_strings/basic_string_view/typedefs.cc: Validate that
1399 the u8string_view typedef is defined.
1400 * testsuite/21_strings/char_traits/requirements/
1401 constexpr_functions.cc: Validate char_traits<char8_t> constexpr
1402 member functions.
1403 * testsuite/21_strings/char_traits/requirements/
1404 constexpr_functions_c++17.cc: Validate char_traits<char8_t> C++17
1405 constexpr member functions.
1406 * testsuite/21_strings/headers/string/types_std_c++0x.cc: Validate
1407 that the u8string typedef is defined.
1408 * testsuite/22_locale/locale/cons/unicode.cc: Validate the presence
1409 of the std::codecvt<char16_t, char8_t, std::mbstate_t> and
1410 std::codecvt<char32_t, char8_t, std::mbstate_t> facets.
1411 * testsuite/29_atomics/atomic/cons/assign_neg.cc: Update line
1412 numbers.
1413 * testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise.
1414 * testsuite/29_atomics/atomic_integral/cons/assign_neg.cc:
1415 Likewise.
1416 * testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Likewise.
1417 * testsuite/29_atomics/atomic_integral/is_always_lock_free.cc:
1418 Validate std::atomic<char8_t>::is_always_lock_free
1419 * testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc:
1420 Update line numbers.
1421 * testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc:
1422 Likewise.
1423 * testsuite/29_atomics/atomic_integral/operators/increment_neg.cc:
1424 Likewise.
1425 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_string.cc:
1426 Validate std::experimental::pmr::u8string.
1427 * testsuite/experimental/string_view/typedefs.cc: Validate that the
1428 u8string_view typedef is defined.
1429 * testsuite/util/testsuite_common_types.h: Add char8_t, char16_t and
1430 char32_t to the typelists.
1431
1432 2019-02-22 Tom Honermann <tom@honermann.net>
1433
1434 * include/ext/typelist.h: Constrain a partial specialization of
1435 typelist::detail::append_ to only match chain<T1,T2>.
1436
1437 2019-02-21 Jonathan Wakely <jwakely@redhat.com>
1438
1439 PR libstdc++/89416
1440 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Replace
1441 class template with class. Replace move and copy member types with
1442 member alias templates, so they are only instantiated when needed.
1443 (__is_copy_insertable, __is_move_insertable): Adjust base class.
1444 * testsuite/23_containers/vector/modifiers/push_back/89130.cc: Enable
1445 test for C++11/14/17 as well.
1446 * testsuite/23_containers/vector/modifiers/push_back/89416.cc: New
1447 test.
1448
1449 2019-02-20 Jakub Jelinek <jakub@redhat.com>
1450
1451 PR libstdc++/89402
1452 * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Add
1453 _GLIBCXX_PURE to the alias declaration.
1454
1455 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
1456
1457 * testsuite/21_strings/basic_string/literals/types.cc
1458 [_GLIBCXX_USE_CHAR8_T]: Adjust expected string type for u8 literal.
1459 * testsuite/21_strings/basic_string/literals/values.cc
1460 [_GLIBCXX_USE_CHAR8_T]: Likewise.
1461 * testsuite/22_locale/codecvt/char16_t.cc: Adjust for u8 literals
1462 potentially having different type.
1463 * testsuite/22_locale/codecvt/char32_t.cc: Likewise.
1464 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: Cast u8 literal
1465 to char.
1466 * testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc: Likewise.
1467 * testsuite/22_locale/codecvt/utf8.cc: Likewise.
1468 * testsuite/22_locale/conversions/string/2.cc: Remove u8 prefix from
1469 string literals only using basic character set.
1470 * testsuite/22_locale/conversions/string/3.cc: Likewise. Cast other
1471 u8 literals to char.
1472 * testsuite/29_atomics/headers/atomic/macros.cc [_GLIBCXX_USE_CHAR8_T]:
1473 Test ATOMIC_CHAR8_T_LOCK_FREE.
1474 Add missing #error to ATOMIC_CHAR16_T_LOCK_FREE test.
1475 * testsuite/29_atomics/headers/atomic/types_std_c++0x.cc
1476 [_GLIBCXX_USE_CHAR8_T]: Check for std::atomic_char8_t.
1477 * testsuite/experimental/string_view/literals/types.cc
1478 [_GLIBCXX_USE_CHAR8_T]: Adjust expected string_view type for u8
1479 literal.
1480 * testsuite/experimental/string_view/literals/values.cc
1481 [_GLIBCXX_USE_CHAR8_T]: Likewise.
1482
1483 2019-02-19 Tom Honermann <tom@honermann.net>
1484
1485 * testsuite/18_support/numeric_limits/char8_t.cc: New test cloned
1486 from char16_32_t.cc; validates numeric_limits<char8_t>.
1487 * testsuite/21_strings/basic_string/literals/types-char8_t.cc: New
1488 test cloned from types.cc; validates operator""s for char8_t
1489 returns u8string.
1490 * testsuite/21_strings/basic_string/literals/values-char8_t.cc: New
1491 test cloned from values.cc; validates construction and comparison
1492 of u8string values.
1493 * testsuite/21_strings/basic_string/requirements/
1494 /explicit_instantiation/char8_t/1.cc: New test cloned from
1495 char16_t/1.cc; validates explicit instantiation of
1496 basic_string<char8_t>.
1497 * testsuite/21_strings/basic_string_view/literals/types-char8_t.cc:
1498 New test cloned from types.cc; validates operator""sv for char8_t
1499 returns u8string_view.
1500 * testsuite/21_strings/basic_string_view/literals/
1501 values-char8_t.cc: New test cloned from values.cc; validates
1502 construction and comparison of u8string_view values.
1503 * testsuite/21_strings/basic_string_view/requirements/
1504 explicit_instantiation/char8_t/1.cc: New test cloned from
1505 char16_t/1.cc; validates explicit instantiation of
1506 basic_string_view<char8_t>.
1507 * testsuite/21_strings/char_traits/requirements/char8_t/65049.cc:
1508 New test cloned from char16_t/65049.cc; validates that
1509 char_traits<char8_t> is not vulnerable to the concerns in PR65049.
1510 * testsuite/21_strings/char_traits/requirements/char8_t/
1511 typedefs.cc: New test cloned from char16_t/typedefs.cc; validates
1512 that char_traits<char8_t> member typedefs are present and correct.
1513 * testsuite/21_strings/char_traits/requirements/
1514 explicit_instantiation/char8_t/1.cc: New test cloned from
1515 char16_t/1.cc; validates explicit instantiation of
1516 char_traits<char8_t>.
1517 * testsuite/22_locale/codecvt/char16_t-char8_t.cc: New test cloned
1518 from char16_t.cc: validates
1519 codecvt<char16_t, char8_t, mbstate_t>.
1520 * testsuite/22_locale/codecvt/char32_t-char8_t.cc: New test cloned
1521 from char32_t.cc: validates
1522 codecvt<char32_t, char8_t, mbstate_t>.
1523 * testsuite/22_locale/codecvt/utf8-char8_t.cc: New test cloned from
1524 utf8.cc; validates codecvt<char16_t, char8_t, std::mbstate_t> and
1525 codecvt<char32_t, char8_t, std::mbstate_t>.
1526 * testsuite/27_io/filesystem/path/native/string-char8_t.cc: New
1527 test cloned from string.cc; validates filesystem::path construction
1528 from char8_t input.
1529 * testsuite/experimental/feat-char8_t.cc: New test; validates that
1530 the __cpp_lib_char8_t feature test macro is defined with the
1531 correct value.
1532 * testsuite/experimental/filesystem/path/native/string-char8_t.cc:
1533 New test cloned from string.cc; validates filesystem::path
1534 construction from char8_t input.
1535 * testsuite/experimental/string_view/literals/types-char8_t.cc: New
1536 test cloned from types.cc; validates operator""sv for char8_t
1537 returns u8string_view.
1538 * testsuite/experimental/string_view/literals/values-char8_t.cc:
1539 New test cloned from values.cc; validates construction and
1540 comparison of u8string_view values.
1541 * testsuite/experimental/string_view/requirements/
1542 explicit_instantiation/char8_t/1.cc: New test cloned from
1543 char16_t/1.cc; validates explicit instantiation of
1544 basic_string_view<char8_t>.
1545 * testsuite/ext/char8_t/atomic-1.cc: New test; validates that
1546 ATOMIC_CHAR8_T_LOCK_FREE is not defined if char8_t support is not
1547 enabled.
1548
1549 2019-02-19 Tom Honermann <tom@honermann.net>
1550
1551 P0482R5 char8_t: Standard library support
1552 * config/abi/pre/gnu-versioned-namespace.ver (CXXABI_2.0): Add
1553 typeinfo symbols for char8_t.
1554 * config/abi/pre/gnu.ver: Add CXXABI_1.3.12.
1555 (GLIBCXX_3.4.26): Add symbols for specializations of
1556 numeric_limits and codecvt that involve char8_t.
1557 (CXXABI_1.3.12): Add typeinfo symbols for char8_t.
1558 * include/bits/atomic_base.h: Add atomic_char8_t.
1559 * include/bits/basic_string.h: Add std::hash<u8string> and
1560 operator""s(const char8_t*, size_t).
1561 * include/bits/c++config: Define _GLIBCXX_USE_CHAR8_T and
1562 __cpp_lib_char8_t.
1563 * include/bits/char_traits.h: Add char_traits<char8_t>.
1564 * include/bits/codecvt.h: Add
1565 codecvt<char16_t, char8_t, mbstate_t>,
1566 codecvt<char32_t, char8_t, mbstate_t>,
1567 codecvt_byname<char16_t, char8_t, mbstate_t>, and
1568 codecvt_byname<char32_t, char8_t, mbstate_t>.
1569 * include/bits/cpp_type_traits.h: Add __is_integer<char8_t> to
1570 recognize char8_t as an integral type.
1571 * include/bits/fs_path.h: (path::__is_encoded_char): Recognize
1572 char8_t.
1573 (path::u8string): Return std::u8string when char8_t support is
1574 enabled.
1575 (path::generic_u8string): Likewise.
1576 (path::_S_convert): Handle conversion from char8_t input.
1577 (path::_S_str_convert): Likewise.
1578 * include/bits/functional_hash.h: Add hash<char8_t>.
1579 * include/bits/locale_conv.h (__str_codecvt_out): Add overloads for
1580 char8_t.
1581 * include/bits/locale_facets.h (_GLIBCXX_NUM_UNICODE_FACETS): Bump
1582 for new char8_t specializations.
1583 * include/bits/localefwd.h: Add missing declarations of
1584 codecvt<char16_t, char, mbstate_t> and
1585 codecvt<char32_t, char, mbstate_t>. Add char8_t declarations
1586 codecvt<char16_t, char8_t, mbstate_t> and
1587 codecvt<char32_t, char8_t, mbstate_t>.
1588 * include/bits/postypes.h: Add u8streampos
1589 * include/bits/stringfwd.h: Add declarations of
1590 char_traits<char8_t> and u8string.
1591 * include/c_global/cstddef: Add __byte_operand<char8_t>.
1592 * include/experimental/bits/fs_path.h (path::__is_encoded_char):
1593 Recognize char8_t.
1594 (path::u8string): Return std::u8string when char8_t support is
1595 enabled.
1596 (path::generic_u8string): Likewise.
1597 (path::_S_convert): Handle conversion from char8_t input.
1598 (path::_S_str_convert): Likewise.
1599 * include/experimental/string: Add u8string.
1600 * include/experimental/string_view: Add u8string_view,
1601 hash<experimental::u8string_view>, and
1602 operator""sv(const char8_t*, size_t).
1603 * include/std/atomic: Add atomic<char8_t> and atomic_char8_t.
1604 * include/std/charconv (__is_int_to_chars_type): Recognize char8_t
1605 as a character type.
1606 * include/std/limits: Add numeric_limits<char8_t>.
1607 * include/std/string_view: Add u8string_view,
1608 hash<experimental::u8string_view>, and
1609 operator""sv(const char8_t*, size_t).
1610 * include/std/type_traits: Add __is_integral_helper<char8_t>,
1611 __make_unsigned<char8_t>, and __make_signed<char8_t>.
1612 * libsupc++/atomic_lockfree_defines.h: Define
1613 ATOMIC_CHAR8_T_LOCK_FREE.
1614 * src/c++11/Makefile.am: Compile with -fchar8_t when compiling
1615 codecvt.cc and limits.cc so that char8_t specializations of
1616 numeric_limits and codecvt and emitted.
1617 * src/c++11/Makefile.in: Likewise.
1618 * src/c++11/codecvt.cc: Define members of
1619 codecvt<char16_t, char8_t, mbstate_t>,
1620 codecvt<char32_t, char8_t, mbstate_t>,
1621 codecvt_byname<char16_t, char8_t, mbstate_t>, and
1622 codecvt_byname<char32_t, char8_t, mbstate_t>.
1623 * src/c++11/limits.cc: Define members of
1624 numeric_limits<char8_t>.
1625 * src/c++98/Makefile.am: Compile with -fchar8_t when compiling
1626 locale_init.cc and localename.cc.
1627 * src/c++98/Makefile.in: Likewise.
1628 * src/c++98/locale_init.cc: Add initialization for the
1629 codecvt<char16_t, char8_t, mbstate_t> and
1630 codecvt<char32_t, char8_t, mbstate_t> facets.
1631 * src/c++98/localename.cc: Likewise.
1632 * testsuite/util/testsuite_abi.cc: Validate ABI bump.
1633
1634 2019-02-18 Wilco Dijkstra <wdijkstr@arm.com>
1635
1636 * 27_io/filesystem/operations/all.cc: Add dg-require-filesystem-ts.
1637 * 27_io/filesystem/operations/resize_file.cc: Likewise.
1638 * 27_io/filesystem/path/generation/normal2.cc: Likewise.
1639
1640 2019-02-14 Jonathan Wakely <jwakely@redhat.com>
1641
1642 * doc/xml/manual/status_cxx2020.xml: Update P0887R1 status.
1643 * doc/html/*: Regenerate.
1644
1645 * doc/xml/manual/status_cxx2017.xml: Add P0063R3 to status table.
1646 * doc/html/*: Regenerate.
1647
1648 * doc/xml/manual/intro.xml: Document LWG 2586 status.
1649 * include/bits/uses_allocator.h (__uses_alloc): Use const lvalue
1650 allocator type in is_constructible checks.
1651 * testsuite/20_util/scoped_allocator/69293_neg.cc: Adjust dg-error.
1652 * testsuite/20_util/scoped_allocator/dr2586.cc: New test.
1653 * testsuite/20_util/tuple/cons/allocators.cc: Add test using
1654 problematic type from LWG 2586 discussion.
1655 * testsuite/20_util/uses_allocator/69293_neg.cc: Adjust dg-error.
1656 * testsuite/20_util/uses_allocator/cons_neg.cc: Likewise.
1657
1658 * configure.ac: Check for C11 timespec_get function.
1659 * crossconfig.m4 (freebsd, linux, gnu, cygwin, solaris, netbsd)
1660 (openbsd): Likewise
1661 * config.h.in: Regenerate.
1662 * configure: Regenerate.
1663 * include/c_global/ctime (timespec, timespec_get): Add to namespace
1664 std for C++17 and up.
1665
1666 * doc/xml/manual/intro.xml: Document LWG 2537 status.
1667 * include/bits/stl_queue.h
1668 (priority_queue(const Compare&, const Container&, const Alloc&))
1669 (priority_queue(const Compare&, Container&&, const Alloc&)): Call
1670 make_heap.
1671 * testsuite/23_containers/priority_queue/dr2537.cc: New test.
1672
1673 * doc/xml/manual/intro.xml: Document LWG 2566 status.
1674 * include/bits/stl_queue.h (queue, priority_queue): Add static
1675 assertions to enforce LWG 2566 requirement on value_type.
1676 * include/bits/stl_stack.h (stack): Likewise.
1677
1678 PR middle-end/89303
1679 * testsuite/20_util/enable_shared_from_this/89303.cc: New test.
1680
1681 * doc/xml/manual/intro.xml: Document LWG 2735 status.
1682 * include/bits/std_abs.h: Add comment about LWG 2735.
1683 * testsuite/26_numerics/headers/cstdlib/dr2735.cc: New test.
1684
1685 2019-02-13 Jonathan Wakely <jwakely@redhat.com>
1686
1687 PR libstdc++/89345
1688 * include/std/version [__cpp_impl_destroying_delete]
1689 (__cpp_lib_destroying_delete): Only define for C++2a and later.
1690 * libsupc++/new [__cpp_impl_destroying_delete]
1691 (__cpp_lib_destroying_delete): Likewise.
1692 (destroying_delete_t, destroying_delete): Likewise, but define even
1693 when __cpp_impl_destroying_delete is not defined.
1694 * testsuite/18_support/destroying_delete.cc: New test.
1695
1696 2019-02-11 Jonathan Wakely <jwakely@redhat.com>
1697
1698 PR libstdc++/89023
1699 * testsuite/17_intro/headers/c++2011/parallel_mode.cc: New test.
1700 * testsuite/17_intro/headers/c++2014/parallel_mode.cc: New test.
1701 * testsuite/17_intro/headers/c++2017/parallel_mode.cc: New test.
1702 * testsuite/28_regex/headers/regex/parallel_mode.cc: Remove.
1703
1704 2019-02-09 Jonathan Wakely <jwakely@redhat.com>
1705
1706 PR libstdc++/71044
1707 * include/bits/fs_path.h (path::has_root_name)
1708 (path::has_root_directory, path::has_root_path)
1709 (path::has_relative_path, path::has_parent_path)
1710 (path::has_filename, path::has_stem, path::has_extension)
1711 (path::is_absolute, path::is_relative, path::_M_find_extension): Add
1712 noexcept.
1713 * src/c++17/fs_path.cc (path::has_root_name)
1714 (path::has_root_directory, path::has_root_path)
1715 (path::has_relative_path, path::has_parent_path)
1716 (path::has_filename, path::_M_find_extension): Add noexcept.
1717
1718 2019-02-06 Jonathan Wakely <jwakely@redhat.com>
1719
1720 PR libstdc++/89102 (partial)
1721 * include/std/type_traits (common_type<>): Define.
1722 (common_type<T>): Derive from common_type<T, T>.
1723 * testsuite/20_util/common_type/requirements/explicit_instantiation.cc:
1724 Test zero-length template argument list.
1725 * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc:
1726 Test additional single argument cases.
1727 * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc:
1728 Adjust expected error.
1729
1730 2019-02-05 Jonathan Wakely <jwakely@redhat.com>
1731
1732 PR libstdc++/89128
1733 * include/bits/stl_queue.h (queue, priority_queue): Add deduction
1734 guides.
1735 * include/bits/stl_stack.h (stack): Likewise.
1736 * testsuite/23_containers/priority_queue/deduction.cc: New test.
1737 * testsuite/23_containers/queue/deduction.cc: New test.
1738 * testsuite/23_containers/stack/deduction.cc: New test.
1739
1740 PR libstdc++/89194
1741 * include/std/type_traits (__is_convertible_helper)
1742 (__is_convertible_helper<_From, _To, false>): Revert changes to
1743 support is_nothrow_convertible.
1744 (__is_nt_convertible_helper): New helper.
1745 (is_nothrow_convertible): Use __is_nt_convertible_helper.
1746
1747 * testsuite/23_containers/vector/modifiers/push_back/49836.cc: Restore
1748 use of CopyConsOnlyType, but also test DelAnyAssign for completeness.
1749
1750 PR libstdc++/89130
1751 * include/bits/alloc_traits.h (__is_copy_insertable_impl): Rename to
1752 __is_alloc_insertable_impl. Replace single type member with two
1753 members, one for each of copy and move insertable.
1754 (__is_move_insertable): New trait for internal use.
1755 * include/bits/stl_vector.h (vector::_S_nothrow_relocate(true_type))
1756 (vector::_S_nothrow_relocate(true_type)): New functions to
1757 conditionally check if __relocate_a can throw.
1758 (vector::_S_use_relocate()): Dispatch to _S_nothrow_relocate based
1759 on __is_move_insertable.
1760 (vector::_S_do_relocate): New overloaded functions to conditionally
1761 call __relocate_a.
1762 (vector::_S_relocate): New function that dispatches to _S_do_relocate
1763 based on _S_use_relocate.
1764 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
1765 (vector::_M_default_append): Call _S_relocate instead of __relocate_a.
1766 * testsuite/23_containers/vector/modifiers/push_back/89130.cc: New.
1767
1768 PR libstdc++/89090
1769 * include/bits/stl_uninitialized.h (__relocate_a_1): Make unused
1770 parameter unnamed. Add message to static assertion.
1771 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
1772 (vector::_M_default_append): Use _GLIBCXX17_CONSTEXPR for if constexpr
1773 in C++11 code.
1774
1775 2019-02-05 Marc Glisse <marc.glisse@inria.fr>
1776
1777 PR libstdc++/87106
1778 * include/bits/stl_uninitialized.h (__is_trivially_relocatable):
1779 Rename...
1780 (__is_bitwise_relocatable): ... to this.
1781 (__relocate_a_1): Adapt.
1782 * include/bits/stl_deque.h (__is_trivially_relocatable): Rename...
1783 (__is_bitwise_relocatable): ... to this.
1784
1785 2019-01-30 Jonathan Wakely <jwakely@redhat.com>
1786
1787 PR libstdc++/89117
1788 * src/c++17/fs_path.cc (path::replace_extension): Erase extension from
1789 final component as well as from _M_pathname. Append the dot using
1790 operator+= instead of only to _M_pathname.
1791 (path::_M_find_extension): Reformat slightly.
1792 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
1793 Add more test cases.
1794
1795 2019-01-30 Ulrich Drepper <drepper@redhat.com>
1796
1797 * doc/xml/manual/status_cxx2020.xml: Update P0600 entry.
1798
1799 2019-01-29 Jonathan Wakely <jwakely@redhat.com>
1800
1801 * testsuite/26_numerics/headers/complex/synopsis.cc: Remove incorrect
1802 constexpr specifiers from arg and proj.
1803
1804 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add missing exports for
1805 __shared_ptr instantiations used by gcc4-compatible ABI.
1806
1807 * include/experimental/forward_list (experimental::erase): Qualify
1808 call to erase_if.
1809 * include/experimental/list (experimental::erase): Likewise.
1810 * include/std/forward_list (std::erase): Likewise.
1811 * include/std/list (std::erase): Likewise.
1812
1813 * testsuite/20_util/reference_wrapper/result_type.cc: Disable for
1814 C++2a.
1815 * testsuite/20_util/reference_wrapper/typedefs-2.cc: Likewise.
1816 * testsuite/20_util/reference_wrapper/typedefs-3.cc: Likewise.
1817 * testsuite/20_util/reference_wrapper/typedefs.cc: Likewise.
1818 * testsuite/30_threads/async/54297.cc: Suppress nodiscard warning.
1819 * testsuite/ext/array_allocator/26875.cc: Likewise.
1820 * testsuite/ext/pool_allocator/allocate_chunk.cc: Likewise.
1821 * testsuite/util/replacement_memory_operators.h: Likewise.
1822 * testsuite/util/testsuite_allocator.h: Likewise.
1823
1824 * include/std/memory_resource (__pool_resource::_M_unpooled): Use
1825 normal mode vector, even for debug mode.
1826 * include/std/vector [_GLIBCXX_DEBUG] (_GLIBCXX_STD_C::pmr::vector):
1827 Define alias template for normal mode vector.
1828
1829 2019-01-28 Jonathan Wakely <jwakely@redhat.com>
1830
1831 PR libstdc++/68737
1832 * config/locale/generic/c_locale.h (__convert_from_v)
1833 [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
1834 * config/os/hpux/os_defines.h: Define _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
1835 * include/bits/locale_facets.tcc (num_put::_M_insert_float)
1836 [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
1837
1838 2019-01-24 Jonathan Wakely <jwakely@redhat.com>
1839
1840 PR libstdc++/88840
1841 * include/bits/stl_vector.h (vector::__use_relocate): Replace static
1842 data member with static member function _S_use_relocate().
1843 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
1844 (vector::_M_default_append): Use _S_use_relocate() instead of
1845 __use_relocate.
1846
1847 * testsuite/27_io/filesystem/path/compare/strings.cc: Only compare
1848 sign of results.
1849
1850 2019-01-22 Jonathan Wakely <jwakely@redhat.com>
1851
1852 PR libstdc++/88740
1853 * testsuite/util/testsuite_hooks.h [stderr] (VERIFY): Use fprintf to
1854 write to stderr instead of using printf.
1855
1856 2019-01-21 Jakub Jelinek <jakub@redhat.com>
1857
1858 PR libstdc++/86590
1859 * include/bits/char_traits.h (__constant_string_p,
1860 __constant_char_array_p): Use __builtin_is_constant_evaluated if
1861 available.
1862
1863 2019-01-20 Ulrich Drepper <drepper@redhat.com>
1864
1865 Implement C++20 P0600r1.
1866 * include/backward/hash_map: Add nodiscard attribute to empty.
1867 * include/backward/hash_set: Likewise.
1868 * backward/hashtable.h: Likewise.
1869 * include/bits/basic_string.h: Likewise.
1870 * include/bits/forward_list.h: Likewise.
1871 * include/bits/hashtable.h: Likewise.
1872 * include/bits/regex.h: Likewise.
1873 * include/bits/stl_deque.h: Likewise.
1874 * include/bits/stl_list.h: Likewise.
1875 * include/bits/stl_map.h: Likewise.
1876 * include/bits/stl_multimap.h: Likewise.
1877 * include/bits/stl_multiset.h: Likewise.
1878 * include/bits/stl_queue.h: Likewise.
1879 * include/bits/stl_set.h: Likewise.
1880 * include/bits/stl_stack.h: Likewise.
1881 * include/bits/stl_tree.h: Likewise.
1882 * include/bits/stl_vector.h: Likewise.
1883 * include/bits/unordered_map.h: Likewise.
1884 * include/bits/unordered_set.h: Likewise.
1885 * include/debug/array: Likewise.
1886 * include/experimental/any: Likewise.
1887 * include/experimental/bits/fs_path.h: Likewise.
1888 * include/experimental/internet: Likewise.
1889 * include/experimental/string_view: Likewise.
1890 * include/ext/pb_ds/detail/bin_search_tree_/info_fn_imps.hpp:
1891 Likewise.
1892 * include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp:
1893 Likewise.
1894 * include/ext/pb_ds/detail/binary_heap_/info_fn_imps.hpp:
1895 Likewise.
1896 * include/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp:
1897 Likewise.
1898 * include/ext/pb_ds/detail/cc_hash_table_map_/info_fn_imps.hpp:
1899 Likewise.
1900 * include/ext/pb_ds/detail/cc_hash_table_map_/size_fn_imps.hpp:
1901 Likewise.
1902 * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp:
1903 Likewise.
1904 * include/ext/pb_ds/detail/gp_hash_table_map_/info_fn_imps.hpp:
1905 Likewise.
1906 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
1907 info_fn_imps.hpp: Likewise.
1908 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
1909 left_child_next_sibling_heap_.hpp: Likewise.
1910 * include/ext/pb_ds/detail/list_update_map_/info_fn_imps.hpp:
1911 Likewise.
1912 * include/ext/pb_ds/detail/list_update_map_/lu_map_.hpp:
1913 Likewise.
1914 * include/ext/pb_ds/detail/ov_tree_map_/info_fn_imps.hpp:
1915 Likewise.
1916 * include/ext/pb_ds/detail/ov_tree_map_/ov_tree_map_.hp:
1917 Likewise.
1918 * include/ext/pb_ds/detail/pat_trie_/info_fn_imps.hpp:
1919 Likewise.
1920 * include/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp:
1921 Likewise.
1922 * include/ext/pb_ds/detail/rc_binomial_heap_/rc.hpp:
1923 Likewise.
1924 * include/ext/pb_ds/detail/tree_trace_base.hpp: Likewise.
1925 * include/ext/pb_ds/trie_policy.hpp: Likewise.
1926 * include/ext/rope: Likewise.
1927 * include/ext/slist: Likewise.
1928 * include/ext/vstring.h: Likewise.
1929 * include/profile/array: Likewise.
1930 * include/std/array: Likewise.
1931 * include/tr1/array: Likewise.
1932 * include/tr1/hashtable.h: Likewise.
1933 * include/tr1/regex: Likewise.
1934 * include/tr2/dynamic_bitset: Likewise.
1935 * include/bits/alloc_traits.h: Add nodiscard attribute to
1936 allocate.
1937 * include/experimental/memory_resource: Likewise.
1938 * include/ext/alloc_traits.h: Likewise.
1939 * include/ext/array_allocator.h: Likewise.
1940 * include/ext/bitmap_allocator.h: Likewise.
1941 * include/ext/debug_allocator.h: Likewise.
1942 * include/ext/extptr_allocator.h: Likewise.
1943 * include/ext/mt_allocator.h: Likewise.
1944 * include/ext/new_allocator.h: Likewise.
1945 * include/ext/pool_allocator.h: Likewise.
1946 * include/ext/throw_allocator.h: Likewise.
1947 * include/std/scoped_allocator: Likewise.
1948 * libsupc++/eh_alloc.cc: Likewise.
1949 * include/std/future: Add nodiscard attribute to async.
1950 * libsupc++/new: Add nodiscard attribute to new.
1951
1952 2019-01-18 Jonathan Wakely <jwakely@redhat.com>
1953
1954 PR libstdc++/87514
1955 PR libstdc++/87520
1956 PR libstdc++/88782
1957 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export new symbol.
1958 * include/bits/shared_ptr.h
1959 (shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...))
1960 (allocate_shared): Change to use new tag type.
1961 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_eq):
1962 Declare new member function.
1963 (_Sp_alloc_shared_tag): Define new type.
1964 (_Sp_counted_ptr_inplace): Declare __shared_count<_Lp> as a friend.
1965 (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Use
1966 _Sp_make_shared_tag::_S_eq to check type_info.
1967 (__shared_count(Ptr, Deleter),__shared_count(Ptr, Deleter, Alloc)):
1968 Constrain to prevent being called with _Sp_alloc_shared_tag.
1969 (__shared_count(_Sp_make_shared_tag, const _Alloc&, Args&&...)):
1970 Replace constructor with ...
1971 (__shared_count(Tp*&, _Sp_alloc_shared_tag<_Alloc>, Args&&...)): Use
1972 reference parameter so address of the new object can be returned to
1973 the caller. Obtain the allocator from the tag type.
1974 (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Replace
1975 constructor with ...
1976 (__shared_ptr(_Sp_alloc_shared_tag<Alloc>, Args&&...)): Pass _M_ptr
1977 to the __shared_count constructor.
1978 (__allocate_shared): Change to use new tag type.
1979 * src/c++11/shared_ptr.cc (_Sp_make_shared_tag::_S_eq): Define.
1980
1981 2019-01-17 Jonathan Wakely <jwakely@redhat.com>
1982
1983 * src/c++17/fs_ops.cc
1984 (equivalent(const path&, const path&, error_code&))
1985 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use GetFileInformationByHandle to
1986 compare files instead of relying on incomplete info returned by stat.
1987
1988 PR libstdc++/88884
1989 * src/c++17/fs_ops.cc (absolute(const path&, error_code&)): Do nothing
1990 if the path is already absolute.
1991 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize root-directory.
1992 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Pass error_code to current_path.
1993
1994 PR libstdc++/88881
1995 * src/c++17/fs_ops.cc (canonical(const path&, error_code&))
1996 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize path, to match behaviour
1997 of filesystem::exists.
1998 (create_directories(const path&, error_code&)): Add assertions.
1999 (status(const path&, error_code&)) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]:
2000 Add workaround for bug in _wstat for paths with trailing slash.
2001 * testsuite/27_io/filesystem/operations/create_directories.cc: Adjust
2002 for expected behaviour on mingw.
2003 * testsuite/experimental/filesystem/operations/create_directories.cc:
2004 Likewise.
2005 * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Use
2006 "TMP" instead of "TMPDIR" and clean environment before each test. Do
2007 not test permissions on mingw targets.
2008
2009 2019-01-16 Jonathan Wakely <jwakely@redhat.com>
2010
2011 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add exports for fstream
2012 constructors and open members taking wide strings. Fix patterns for
2013 filesystem::path members to match wstring_view parameters. Add
2014 exports for shared_ptr members used by directory iterators.
2015 * src/c++17/fs_ops.cc (remove(const path&, error_code&)): Clear the
2016 error code parameter if the file doesn't exist.
2017 * src/filesystem/ops.cc (remove(const path&, error_code&)):
2018 Likewise.
2019 * testsuite/27_io/filesystem/operations/canonical.cc: Fix expected
2020 values for mingw targets, where "/" is not an absolute path. Do not
2021 test symlinks on mingw targets.
2022 * testsuite/experimental/filesystem/operations/canonical.cc: Likewise.
2023 * testsuite/27_io/filesystem/operations/copy.cc: Do not test symlinks
2024 on mingw targets.
2025 * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
2026 * testsuite/27_io/filesystem/operations/create_directories.cc: Check
2027 that each component of the path is created.
2028 * testsuite/experimental/filesystem/operations/create_directories.cc:
2029 Likewise.
2030 * testsuite/27_io/filesystem/operations/exists.cc: Do not test
2031 permissions on mingw targets.
2032 * testsuite/experimental/filesystem/operations/exists.cc: Likewise.
2033 * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
2034 * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise.
2035 * testsuite/27_io/filesystem/operations/permissions.cc: XFAIL for
2036 mingw targets.
2037 * testsuite/experimental/filesystem/operations/permissions.cc:
2038 Likewise.
2039 * testsuite/27_io/filesystem/operations/remove.cc: Do not test
2040 symlinks or permissions on mingw targets.
2041 * testsuite/experimental/filesystem/operations/remove.cc: Likewise.
2042 * testsuite/27_io/filesystem/operations/remove_all.cc: Do not test
2043 symlinks on mingw targets.
2044 * testsuite/experimental/filesystem/operations/remove_all.cc:
2045 Likewise.
2046 * testsuite/27_io/filesystem/operations/status.cc: Do not test
2047 permissions on mingw targets.
2048 * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Do not
2049 test symlinks on mingw targets.
2050 * testsuite/experimental/filesystem/operations/space.cc: Fix test
2051 for mingw targets.
2052
2053 2019-02-14 Ulrich Drepper <drepper@redhat.com>
2054
2055 PR libstdc++/88738
2056 Warn about unused comparisons of shared_ptr/unique_ptr
2057 * include/bits/c++config [_GLIBCXX_NODISCARD]: Define.
2058 * include/bits/shared_ptr.h: Use it for operator ==, !=,
2059 <, <=, >, >= for shared_ptr.
2060 * include/bits/unique_ptr.h: Likewise for unique_ptr.
2061
2062 2019-01-15 Jonathan Wakely <jwakely@redhat.com>
2063
2064 * include/bits/shared_ptr_base.h (__cpp_lib_shared_ptr_arrays): Define
2065 as 201611L, because P0497R0 changes are supported.
2066 * include/std/version (__cpp_lib_shared_ptr_arrays): Likewise.
2067
2068 * include/bits/erase_if.h [__cplusplus > 201703L]
2069 (__cpp_lib_erase_if): Only define for C++2a.
2070 * include/std/iterator [__cplusplus >= 201402L && !_GLIBCXX_DEBUG]
2071 (__cpp_lib_null_iterators): Define.
2072 * include/std/version [__cplusplus >= 201402L && !_GLIBCXX_DEBUG]
2073 (__cpp_lib_null_iterators): Define.
2074 [__cpp_impl_destroying_delete] (__cpp_lib_destroying_delete): Define.
2075
2076 * doc/xml/manual/status_cxx2017.xml: Document P0032R3 and P0307R2
2077 status.
2078 * include/bits/stl_uninitialized.h (__cpp_lib_raw_memory_algorithms):
2079 Define.
2080 * include/std/any (__cpp_lib_any): Define as 201606L, because P0032R3
2081 changes are supported.
2082 * include/std/optional (__cpp_lib_optional): Likewise.
2083 * include/std/variant (__cpp_lib_variant): Likewise.
2084 * include/std/version [!__STRICT_ANSI__]
2085 (__cpp_lib_uncaught_exceptions): Define as long integer.
2086 [__cplusplus >= 201703L] (__cpp_lib_any)
2087 (__cpp_lib_raw_memory_algorithms, __cpp_lib_uncaught_exceptions)
2088 (__cpp_lib_variant): Define for C++17.
2089 [__cplusplus >= 201703L] (__cpp_lib_optional): Update value and define
2090 as long integer.
2091 * libsupc++/exception (__cpp_lib_uncaught_exceptions): Define as long
2092 integer.
2093
2094 * doc/xml/manual/status_cxx2020.xml: Update P1123R0 status.
2095
2096 2019-01-12 Jonathan Wakely <jwakely@redhat.com>
2097
2098 PR libstdc++/88811
2099 PR libstdc++/83306
2100 * src/filesystem/path.cc: Fix typo. If first path is empty, show []
2101 before second path.
2102 * testsuite/experimental/filesystem/filesystem_error/cons.cc: New
2103 test.
2104
2105 2019-01-11 Jonathan Wakely <jwakely@redhat.com>
2106
2107 * doc/xml/manual/intro.xml: Include new section.
2108 * doc/xml/manual/status_cxx2017.xml: Document more
2109 implementation-defined properties of the library.
2110 * doc/xml/manual/status_cxx2020.xml: Document C++2a status.
2111 * doc/html/*: Regenerate.
2112
2113 * include/bits/refwrap.h [__cplusplus > 201703L]
2114 (_Refwrap_base_arg1, _Refwrap_base_arg2, _Reference_wrapper_base)
2115 (_Reference_wrapper_base_memfun): Do not define for C++2a.
2116 (reference_wrapper): Do not derive from _Reference_wrapper_base_memfun
2117 for C++2a.
2118 (reference_wrapper::operator()): Add static assertion.
2119 * testsuite/20_util/reference_wrapper/incomplete.cc: New test.
2120
2121 * include/std/chrono (duration_values::zero(), duration_values::min())
2122 (duration_values::max()): Add noexcept.
2123 (duration::zero(), duration::min(), duration::max()): Likewise.
2124 (time_point::zero(), time_point::min(), time_point::max()): Likewise.
2125 * testsuite/20_util/duration/requirements/noexcept.cc: New test.
2126 * testsuite/20_util/time_point/requirements/noexcept.cc: New test.
2127
2128 * include/std/version (__cpp_lib_erase_if): Move to C++20 group.
2129
2130 2019-01-11 Jakub Jelinek <jakub@redhat.com>
2131
2132 * include/std/type_traits (__cpp_lib_is_constant_evaluated): Define.
2133 * include/std/version (__cpp_lib_is_constant_evaluated): Define.
2134
2135 2019-01-11 Jonathan Wakely <jwakely@redhat.com>
2136
2137 PR libstdc++/88802
2138 * include/bits/functional_hash.h (hash<nullptr_t>): Define
2139 specialization for C++17 (P0513R0, LWG 2817).
2140 * testsuite/20_util/hash/nullptr.cc: New test.
2141
2142 PR libstdc++/88125
2143 * config/abi/pre/gnu.ver (GLIBCXX_3.4.6): Remove unused duplicate
2144 pattern for std::basic_stringbuf::str().
2145
2146 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Correct recent changes to
2147 basic_ostream::operator<< patterns.
2148
2149 2019-01-10 Jonathan Wakely <jwakely@redhat.com>
2150
2151 * testsuite/27_io/filesystem/operations/last_write_time.cc: Fix
2152 test failures on targets with 32-bit time_t.
2153
2154 * include/bits/erase_if.h: Define __cpp_lib_erase_if.
2155 * include/std/deque: Likewise.
2156 * include/std/forward_list: Likewise.
2157 * include/std/list: Likewise.
2158 * include/std/string: Likewise.
2159 * include/std/vector: Likewise.
2160 * include/std/version: Likewise.
2161 * testsuite/21_strings/basic_string/erasure.cc: Test macro.
2162 * testsuite/23_containers/deque/erasure.cc: Likewise.
2163 * testsuite/23_containers/forward_list/erasure.cc: Likewise.
2164 * testsuite/23_containers/list/erasure.cc: Likewise.
2165 * testsuite/23_containers/map/erasure.cc: Likewise.
2166 * testsuite/23_containers/set/erasure.cc: Likewise.
2167 * testsuite/23_containers/unordered_map/erasure.cc: Likewise.
2168 * testsuite/23_containers/unordered_set/erasure.cc: Likewise.
2169 * testsuite/23_containers/vector/erasure.cc: Likewise.
2170
2171 * include/experimental/internet [AI_NUMERICSERV]
2172 (resolver_base::numeric_service): Define conditionally.
2173 * testsuite/experimental/net/internet/resolver/base.cc: Test it
2174 conditionally.
2175 * testsuite/experimental/net/internet/resolver/ops/lookup.cc:
2176 Likewise.
2177
2178 2019-01-10 Ville Voutilainen <ville.voutilainen@gmail.com>
2179 Jonathan Wakely <jwakely@redhat.com>
2180
2181 Implement LWG 2221
2182 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten patterns.
2183 (GLIBCXX_3.4.26): Add new exports.
2184 * include/Makefile.am: Add ostream-inst.cc. Move string-inst.cc to
2185 correct list of sources.
2186 * include/Makefile.in: Regenerate.
2187 * include/std/ostream (operator<<(nullptr_t)): New member function.
2188 * src/c++17/ostream-inst.cc: New file.
2189 * testsuite/27_io/basic_ostream/inserters_other/char/lwg2221.cc: New
2190 test.
2191
2192 2019-01-10 Jonathan Wakely <jwakely@redhat.com>
2193
2194 * testsuite/util/testsuite_fs.h (nonexistent_path): Include name
2195 of the source file containing the caller.
2196 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Remove
2197 directories created by test.
2198 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
2199 Likewise.
2200 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
2201 Likewise.
2202 * testsuite/experimental/filesystem/iterators/
2203 recursive_directory_iterator.cc: Likewise.
2204
2205 2019-01-10 Jakub Jelinek <jakub@redhat.com>
2206
2207 PR tree-optimization/88775
2208 * include/bits/stl_function.h (greater<_Tp*>::operator(),
2209 less<_Tp*>::operator(), greater_equal<_Tp*>::operator(),
2210 less_equal<_Tp*>::operator()): Use __builtin_is_constant_evaluated
2211 instead of __builtin_constant_p if available. Don't bother with
2212 the pointer comparison in C++11 and earlier.
2213
2214 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
2215
2216 PR other/16615
2217
2218 * include/ext/bitmap_allocator.h: Mechanically replace "can not"
2219 with "cannot".
2220
2221 2019-01-09 Jonathan Wakely <jwakely@redhat.com>
2222
2223 * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix expected output
2224 for filesystem::path. Give variables more distinctive names.
2225
2226 * include/std/optional (_Optional_payload_base::_M_copy_assign): New
2227 member function to perform non-trivial assignment.
2228 (_Optional_payload_base::_M_move_assign): Likewise.
2229 (_Optional_payload<T, true, false, true>::operator=)
2230 (_Optional_payload<T, true, true, false>::operator=)
2231 (_Optional_payload<T, true, false, false>::operator=): Call
2232 _M_copy_assign and/or _M_move_assign to do non-trivial assignments.
2233
2234 PR libstdc++/88204
2235 * testsuite/26_numerics/complex/operators/more_constexpr.cc: Do not
2236 test std::complex<long double> if long double format is IBM128.
2237 * testsuite/26_numerics/complex/requirements/more_constexpr.cc:
2238 Likewise.
2239
2240 2019-01-08 Jonathan Wakely <jwakely@redhat.com>
2241
2242 * testsuite/libstdc++-prettyprinters/compat.cc: Test printer support
2243 for old std::unique_ptr layout.
2244 * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix std::variant test
2245 to become valueless. Add filesystem::path tests.
2246
2247 PR libstdc++/87855
2248 * include/std/optional (_Optional_payload_base): New class template
2249 for common code hoisted from _Optional_payload specializations. Use
2250 a template for the union, to allow a partial specialization for
2251 types with non-trivial destructors. Add constructors for in-place
2252 initialization to the union.
2253 (_Optional_payload(bool, const _Optional_payload&)): Use _M_construct
2254 to perform non-trivial copy construction, instead of relying on
2255 non-standard copy elision in a delegating constructor.
2256 (_Optional_payload(bool, _Optional_payload&&)): Likewise for
2257 non-trivial move construction.
2258 (_Optional_payload): Derive from _Optional_payload_base and use it
2259 for everything except the non-trivial assignment operators, which are
2260 defined as needed.
2261 (_Optional_payload<false, C, M>): Derive from the specialization
2262 _Optional_payload<true, false, false> and add a destructor.
2263 (_Optional_base_impl::_M_destruct, _Optional_base_impl::_M_reset):
2264 Forward to corresponding members of _Optional_payload.
2265 (_Optional_base_impl::_M_is_engaged, _Optional_base_impl::_M_get):
2266 Hoist common members from _Optional_base.
2267 (_Optional_base): Make all members and base class public.
2268 (_Optional_base::_M_get, _Optional_base::_M_is_engaged): Move to
2269 _Optional_base_impl.
2270 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter): Add
2271 support for new std::optional layout.
2272 * testsuite/libstdc++-prettyprinters/compat.cc: New test.
2273
2274 PR libstdc++/88066
2275 * include/bits/locale_conv.h: Use <> for includes not "".
2276 * include/ext/random: Likewise.
2277 * include/ext/vstring.h: Likewise.
2278
2279 2019-01-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2280
2281 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten existing patterns.
2282 (GLIBCXX_3.4.21): Likewise.
2283
2284 2019-01-08 Jonathan Wakely <jwakely@redhat.com>
2285
2286 PR libstdc++/88749
2287 * src/filesystem/ops.cc (last_write_time): Fix preprocessor condition
2288 to match the one that controls whether utimbuf and utime are declared.
2289
2290 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
2291
2292 PR libstdc++/87787
2293 * include/bits/char_traits.h (char_traits::move): Do not pass null
2294 pointers to memmove.
2295 * include/bits/locale_facets.h
2296 (ctype<char>::widen(const char*, const char*, char*)): Do not
2297 pass null pointers to memcpy.
2298 (ctype<char>::narrow(const char*, const char*, char, char*)):
2299 Likewise.
2300 (ctype<char>::do_widen(const char*, const char*, char*)):
2301 Likewise.
2302 (ctype<char>::do_narrow(const char*, const char*, char, char*)):
2303 Likewise.
2304
2305 * doc/xml/manual/spine.xml: Update copyright years.
2306 * doc/xml/manual/status_cxx2017.xml: Adjust note about -lstdc++fs.
2307 * doc/xml/manual/using.xml: Remove requirement to link with -lstdc++fs
2308 for C++17 filesystem library.
2309 * doc/html/*: Regenerate.
2310
2311 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for truncate.
2312 * config.h.in: Regenerate.
2313 * config/abi/pre/gnu.ver: Order patterns for filesystem operations
2314 alphabetically and add missing entries for copy_symlink,
2315 hard_link_count, rename, and resize_file.
2316 * configure: Regenerate.
2317 * src/c++17/fs_ops.cc (resize_file): Remove #if so posix::truncate is
2318 used unconditionally.
2319 * src/filesystem/ops-common.h (__gnu_posix::truncate)
2320 [!_GLIBCXX_HAVE_TRUNCATE]: Provide fallback definition that only
2321 supports truncating to zero length.
2322 * testsuite/27_io/filesystem/operations/all.cc: New test.
2323 * testsuite/27_io/filesystem/operations/resize_file.cc: New test.
2324
2325 2019-01-06 Jonathan Wakely <jwakely@redhat.com>
2326
2327 PR libstdc++/86756
2328 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for utime and
2329 lstat and define _GLIBCXX_USE_UTIME and _GLIBCXX_USE_LSTAT.
2330 * config.h.in: Regenerate.
2331 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export symbols for
2332 remaining std::filesystem types and functions.
2333 * configure: Regenerate.
2334 * src/c++17/Makefile.am: Add C++17 filesystem sources.
2335 * src/c++17/Makefile.in: Regenerate.
2336 * src/c++17/cow-fs_dir.cc: Move src/filesystem/cow-std-dir.cc to
2337 here, and change name of included file.
2338 * src/c++17/cow-fs_ops.cc: Move src/filesystem/cow-std-ops.cc to
2339 here, and change name of included file.
2340 * src/c++17/fs_dir.cc: Move src/filesystem/std-dir.cc to here. Change
2341 path to dir-common.h.
2342 * src/c++17/fs_ops.cc: Move src/filesystem/std-ops.cc to here. Change
2343 path to ops-common.h. Disable -Wunused-parameter warnings.
2344 (internal_file_clock): Define unconditionally.
2345 [!_GLIBCXX_HAVE_SYS_STAT_H] (internal_file_clock::from_stat): Do not
2346 define.
2347 (do_copy_file, do_space): Move definitions to ops.common.h.
2348 (copy, file_size, hard_link_count, last_write_time, space): Only
2349 perform operation when _GLIBCXX_HAVE_SYS_STAT_H is defined, otherwise
2350 report an error.
2351 (last_write_time, read_symlink): Remove unused attributes from
2352 parameters.
2353 * src/filesystem/Makefile.am: Remove C++17 filesystem sources.
2354 * src/filesystem/Makefile.in: Regenerate.
2355 * src/filesystem/cow-std-dir.cc: Move to src/c++17/cow-fs_dir.cc.
2356 * src/filesystem/cow-std-ops.cc: Move to src/c++17/cow-fs_ops.cc.
2357 * src/filesystem/std-dir.cc: Move to src/c++17/fs_dir.cc.
2358 * src/filesystem/std-ops.cc: Move to src/c++17/fs_ops.cc.
2359 * src/filesystem/dir-common.h [!_GLIBCXX_HAVE_DIRENT_H]: Define
2360 dummy types and functions instead of using #error.
2361 * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H]: Use #error.
2362 * src/filesystem/ops-common.h [!_GLIBCXX_USE_LSTAT] (lstat): Define
2363 in terms of stat.
2364 [!_GLIBCXX_HAVE_UNISTD_H]: Define dummy types and functions.
2365 (do_copy_file, do_space): Move definitions here from std-ops.cc.
2366 * src/filesystem/ops.cc: Adjust calls to do_copy_file and do_space
2367 to account for new namespace.
2368 * testsuite/27_io/filesystem/directory_entry/86597.cc: Remove
2369 -lstdc++fs from dg-options.
2370 * testsuite/27_io/filesystem/directory_entry/lwg3171.cc: Likewise.
2371 * testsuite/27_io/filesystem/file_status/1.cc: Likewise.
2372 * testsuite/27_io/filesystem/filesystem_error/cons.cc: Likewise.
2373 * testsuite/27_io/filesystem/filesystem_error/copy.cc: Likewise.
2374 * testsuite/27_io/filesystem/iterators/directory_iterator.cc:
2375 Likewise.
2376 * testsuite/27_io/filesystem/iterators/pop.cc: Likewise.
2377 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
2378 Likewise.
2379 * testsuite/27_io/filesystem/operations/absolute.cc: Likewise.
2380 * testsuite/27_io/filesystem/operations/canonical.cc: Likewise.
2381 * testsuite/27_io/filesystem/operations/copy.cc: Likewise.
2382 * testsuite/27_io/filesystem/operations/copy_file.cc: Likewise.
2383 * testsuite/27_io/filesystem/operations/create_directories.cc:
2384 Likewise.
2385 * testsuite/27_io/filesystem/operations/create_directory.cc: Likewise.
2386 * testsuite/27_io/filesystem/operations/create_symlink.cc: Likewise.
2387 * testsuite/27_io/filesystem/operations/current_path.cc: Likewise.
2388 * testsuite/27_io/filesystem/operations/equivalent.cc: Likewise.
2389 * testsuite/27_io/filesystem/operations/exists.cc: Likewise.
2390 * testsuite/27_io/filesystem/operations/file_size.cc: Likewise.
2391 * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
2392 * testsuite/27_io/filesystem/operations/last_write_time.cc: Likewise.
2393 * testsuite/27_io/filesystem/operations/permissions.cc: Likewise.
2394 * testsuite/27_io/filesystem/operations/proximate.cc: Likewise.
2395 * testsuite/27_io/filesystem/operations/read_symlink.cc: Likewise.
2396 * testsuite/27_io/filesystem/operations/relative.cc: Likewise.
2397 * testsuite/27_io/filesystem/operations/remove.cc: Likewise.
2398 * testsuite/27_io/filesystem/operations/remove_all.cc: Likewise.
2399 * testsuite/27_io/filesystem/operations/space.cc: Likewise.
2400 * testsuite/27_io/filesystem/operations/status.cc: Likewise.
2401 * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
2402 * testsuite/27_io/filesystem/operations/temp_directory_path.cc:
2403 Likewise.
2404 * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Likewise.
2405
2406
2407 PR libstdc++/86756
2408 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Make various patterns for
2409 typeinfo and vtables less greedy.
2410 (GLIBCXX_3.4.26): Export symbols for std::filesystem::path.
2411 * src/c++17/Makefile.am: Add fs_path.cc and cow-fs_path.cc.
2412 * src/c++17/Makefile.in: Regenerate.
2413 * src/c++17/cow-fs_path.cc: Move src/filesystem/cow-std-path.cc to
2414 here, and change name of included file.
2415 * src/c++17/fs_path.cc: Move src/filesystem/std-path.cc to here.
2416 * src/filesystem/Makefile.am: Remove std-path.cc and cow-std-path.cc
2417 from sources.
2418 * src/filesystem/Makefile.in: Regenerate.
2419 * src/filesystem/cow-std-path.cc: Move to src/c++17/cow-fs_path.cc.
2420 * src/filesystem/std-path.cc: Move to src/c++17/fs_path.cc.
2421 * testsuite/27_io/filesystem/path/append/path.cc: Remove -lstdc++fs
2422 from dg-options and remove dg-require-filesystem-ts.
2423 * testsuite/27_io/filesystem/path/append/source.cc: Likewise.
2424 * testsuite/27_io/filesystem/path/assign/assign.cc: Likewise.
2425 * testsuite/27_io/filesystem/path/assign/copy.cc: Likewise.
2426 * testsuite/27_io/filesystem/path/compare/compare.cc: Likewise.
2427 * testsuite/27_io/filesystem/path/compare/lwg2936.cc: Likewise.
2428 * testsuite/27_io/filesystem/path/compare/path.cc: Likewise.
2429 * testsuite/27_io/filesystem/path/compare/strings.cc: Likewise.
2430 * testsuite/27_io/filesystem/path/concat/path.cc: Likewise.
2431 * testsuite/27_io/filesystem/path/concat/strings.cc: Likewise.
2432 * testsuite/27_io/filesystem/path/construct/80762.cc: Likewise.
2433 * testsuite/27_io/filesystem/path/construct/copy.cc: Likewise.
2434 * testsuite/27_io/filesystem/path/construct/default.cc: Likewise.
2435 * testsuite/27_io/filesystem/path/construct/format.cc: Likewise.
2436 * testsuite/27_io/filesystem/path/construct/locale.cc: Likewise.
2437 * testsuite/27_io/filesystem/path/construct/range.cc: Likewise.
2438 * testsuite/27_io/filesystem/path/construct/string_view.cc: Likewise.
2439 * testsuite/27_io/filesystem/path/decompose/extension.cc: Likewise.
2440 * testsuite/27_io/filesystem/path/decompose/filename.cc: Likewise.
2441 * testsuite/27_io/filesystem/path/decompose/parent_path.cc: Likewise.
2442 * testsuite/27_io/filesystem/path/decompose/relative_path.cc: Likewise.
2443 * testsuite/27_io/filesystem/path/decompose/root_directory.cc:
2444 Likewise.
2445 * testsuite/27_io/filesystem/path/decompose/root_name.cc: Likewise.
2446 * testsuite/27_io/filesystem/path/decompose/root_path.cc: Likewise.
2447 * testsuite/27_io/filesystem/path/decompose/stem.cc: Likewise.
2448 * testsuite/27_io/filesystem/path/generation/normal.cc: Likewise.
2449 * testsuite/27_io/filesystem/path/generation/normal2.cc: Likewise.
2450 * testsuite/27_io/filesystem/path/generation/proximate.cc: Likewise.
2451 * testsuite/27_io/filesystem/path/generation/relative.cc: Likewise.
2452 * testsuite/27_io/filesystem/path/generic/generic_string.cc: Likewise.
2453 * testsuite/27_io/filesystem/path/itr/components.cc: Likewise.
2454 * testsuite/27_io/filesystem/path/itr/traversal.cc: Likewise.
2455 * testsuite/27_io/filesystem/path/modifiers/clear.cc: Likewise.
2456 * testsuite/27_io/filesystem/path/modifiers/make_preferred.cc:
2457 Likewise.
2458 * testsuite/27_io/filesystem/path/modifiers/remove_filename.cc:
2459 Likewise.
2460 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
2461 Likewise.
2462 * testsuite/27_io/filesystem/path/modifiers/replace_filename.cc:
2463 Likewise.
2464 * testsuite/27_io/filesystem/path/modifiers/swap.cc: Likewise.
2465 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
2466 * testsuite/27_io/filesystem/path/nonmember/append.cc: Likewise.
2467 * testsuite/27_io/filesystem/path/nonmember/hash_value.cc: Likewise.
2468 * testsuite/27_io/filesystem/path/query/empty.cc: Likewise.
2469 * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise.
2470 * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise.
2471 * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise.
2472 * testsuite/27_io/filesystem/path/query/has_relative_path.cc: Likewise.
2473 * testsuite/27_io/filesystem/path/query/has_root_directory.cc:
2474 Likewise.
2475 * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise.
2476 * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise.
2477 * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise.
2478 * testsuite/27_io/filesystem/path/query/is_absolute.cc: Likewise.
2479 * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise.
2480
2481 PR libstdc++/87431
2482 * include/std/variant (_Variant_storage<true, _Types...>::_M_valid):
2483 Check is_trivially_copyable instead of is_scalar.
2484 (variant::emplace<N, Args>(Args&&...)): If construction of the new
2485 contained value can throw and its type is trivially copyable then
2486 construct into a temporary variant and move from it, to provide the
2487 strong exception safety guarantee.
2488 (variant::emplace<N, U, Args>(initializer_list<U>, Args&&...)):
2489 Likewise.
2490 * testsuite/20_util/variant/87431.cc: New test.
2491 * testsuite/20_util/variant/run.cc: Adjust test so that throwing
2492 conversion causes valueless state.
2493
2494 PR libstdc++/88607
2495 * testsuite/17_intro/headers/c++1998/charset.cc: New test.
2496 * testsuite/17_intro/headers/c++2011/charset.cc: New test.
2497 * testsuite/17_intro/headers/c++2014/charset.cc: New test.
2498 * testsuite/17_intro/headers/c++2017/charset.cc: New test.
2499 * testsuite/17_intro/headers/c++2020/charset.cc: New test.
2500
2501 2019-01-05 Jonathan Wakely <jwakely@redhat.com>
2502
2503 * include/bits/fs_fwd.h (__file_clock): Define new clock.
2504 (file_time_type): Redefine in terms of __file_clock.
2505 * src/filesystem/ops-common.h (file_time): Add FIXME comment about
2506 overflow.
2507 * src/filesystem/std-ops.cc (is_set(perm_options, perm_options)): Give
2508 internal linkage.
2509 (internal_file_lock): New helper type for accessing __file_clock.
2510 (do_copy_file): Use internal_file_lock to convert system time to
2511 file_time_type.
2512 (last_write_time(const path&, error_code&)): Likewise.
2513 (last_write_time(const path&, file_time_type, error_code&)): Likewise.
2514
2515 2019-01-04 Jonathan Wakely <jwakely@redhat.com>
2516
2517 * config/abi/pre/gnu.ver (GLIBCXX_3.4.21): Make patterns less greedy
2518 for const member functions of std::basic_string.
2519 (GLIBCXX_3.4.26): Export member functions of std::basic_string added
2520 in C++17.
2521 * include/bits/basic_string.h (basic_string(__sv_wrapper, const A&)):
2522 Make non-standard constructor private.
2523 [!_GLIBCXX_USE_CXX11_ABI] (basic_string(__sv_wrapper, const A&)):
2524 Likewise.
2525 * include/bits/basic_string.tcc (std::string, std::wstring): Declare
2526 explicit instantiations for C++17 as well as earlier dialects.
2527 * src/c++17/Makefile.am: Add new source files.
2528 * src/c++17/Makefile.in: Regenerate.
2529 * src/c++17/cow-string-inst.cc: New file defining explicit
2530 instantiations for basic_string member functions added in C++17.
2531 * src/c++17/string-inst.cc: Likewise.
2532
2533 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export allocator-extended
2534 copy/move constructors for old std::basic_string.
2535 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
2536 (basic_string::reference, basic_string::const_reference): Define
2537 as plain references for C++11 and later.
2538 (basic_string::basic_string()): Put constructor body outside
2539 preprocessor conditional groups.
2540 (basic_string::basic_string(basic_string&&)): Move _Alloc_hider
2541 instead of copying it.
2542 (basic_string::basic_string(const basic_string&, const _Alloc&)):
2543 Define.
2544 (basic_string::basic_string(basic_string&&, const _Alloc&)):
2545 Define.
2546 * include/bits/fs_path.h [!_GLIBCXX_USE_CXX11_ABI]: Remove special
2547 cases for old basic_string.
2548 * testsuite/21_strings/basic_string/cons/char/8.cc: Test
2549 allocator-extended constructors unconditionally. Add extra members to
2550 allocator type when using old string ABI.
2551 * testsuite/21_strings/basic_string/allocator/71964.cc: Enable test
2552 for old string ABI.
2553 * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise.
2554
2555 * testsuite/23_containers/list/61347.cc: Avoid spurious failure when
2556 -fno-inline added to test flags.
2557
2558 * testsuite/21_strings/basic_string/requirements/
2559 explicit_instantiation/debug.cc: Remove XFAIL for old ABI.
2560
2561 * testsuite/27_io/filesystem/filesystem_error/copy.cc: Fix static
2562 assertion failures with old std::string ABI.
2563
2564 * include/bits/fs_path.h (path::_List::erase): Replace both overloads
2565 with ...
2566 (path::pop_back(), path::_M_erase_from(const_iterator)): New member
2567 functions that will only erase elements at the end.
2568 * src/filesystem/std-path.cc (path::_List::_Impl::pop_back()): Define.
2569 (path::_List::_Impl::_M_erase_from(const_iterator)): Define.
2570 (path::_List::operator=(const _List&)): Use _M_erase_from(p) instead
2571 of erase(p, end()).
2572 (path::_List::pop_back()): Define.
2573 (path::_List::_M_erase_from(const_iterator)): Define.
2574 (path::operator/=(const path&)): Use pop_back to remove last component
2575 and _M_erase_from to remove multiple components.
2576 (path::_M_append(basic_string_view<value_type>)): Likewise.
2577 (path::operator+=(const path&)): Likewise.
2578 (path::_M_concat(basic_string_view<value_type>)): Likewise.
2579 (path::remove_filename()): Likewise.
2580 (path::lexically_normal()): Use _List::_Impl iterators instead of
2581 path::iterator. Use pop_back to remove components from the end. Clear
2582 trailing filename, instead of using erase(const_iterator) to remove
2583 a non-final component.
2584 * testsuite/27_io/filesystem/path/generation/normal.cc: Test
2585 additional cases.
2586 * testsuite/27_io/filesystem/path/generation/normal2.cc: New test.
2587
2588 * src/filesystem/std-path.cc (path::operator+=(const path&)): Fix
2589 incorrect treatment of empty filename after trailing slash.
2590 * testsuite/27_io/filesystem/path/concat/path.cc: Test problem case.
2591
2592 * testsuite/21_strings/basic_string/modifiers/assign/char/
2593 move_assign_optim.cc: Avoid spurious failure when -fno-inline added
2594 to test flags.
2595 * testsuite/21_strings/basic_string/modifiers/assign/wchar_t/
2596 move_assign_optim.cc: Likewise.
2597
2598 2019-01-03 Jonathan Wakely <jwakely@redhat.com>
2599 Jakub Jelinek <jakub@redhat.com>
2600
2601 PR libstdc++/88607
2602 * include/experimental/memory: Replace UTF-8 quote characters.
2603 * include/std/future: Replace UTF-8 "em dash" characters.
2604
2605 2019-01-03 Jonathan Wakely <jwakely@redhat.com>
2606
2607 PR libstdc++/88607
2608 * include/bits/forward_list.h: Replace UTF-8 "ligature fi" character.
2609 * include/debug/forward_list: Likewise.
2610 * include/experimental/bits/shared_ptr.h: Remove UTF-8 "section sign"
2611 character.
2612 * include/experimental/chrono: Likewise.
2613 * include/experimental/functional: Likewise.
2614 * include/experimental/ratio: Likewise.
2615 * include/experimental/system_error: Likewise.
2616 * include/experimental/tuple: Likewise.
2617 * include/experimental/type_traits: Likewise.
2618 * include/parallel/workstealing.h: Replace UTF-8 "en dash" character.
2619 * include/parallel/multiseq_selection.h: Likewise.
2620
2621 PR libstdc++/88681
2622 * config/abi/pre/gnu.ver: Add missing exports.
2623 * testsuite/22_locale/collate_byname/88681.cc: New test.
2624 * testsuite/22_locale/time_get/get/char/88681.cc: New test.
2625 * testsuite/22_locale/time_get/get/wchar_t/88681.cc: New test.
2626
2627 2019-01-02 Jonathan Wakely <jwakely@redhat.com>
2628
2629 * testsuite/23_containers/map/cons/deduction.cc: Test deduction from
2630 initializer_list<value_type> and from input iterator ranges.
2631 * testsuite/23_containers/multimap/cons/deduction.cc: Likewise.
2632
2633 * testsuite/experimental/string_view/element_access/char/empty.cc:
2634 Fix year range in copyright header.
2635
2636 2019-01-02 Joel Brobecker <brobecker@adacore.com>
2637
2638 * testsuite/21_strings/basic_string_view/element_access/char/empty.cc:
2639 Fix year range in copyright header.
2640
2641 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2642
2643 Update copyright years.
2644 \f
2645 Copyright (C) 2019 Free Software Foundation, Inc.
2646
2647 Copying and distribution of this file, with or without modification,
2648 are permitted in any medium without royalty provided the copyright
2649 notice and this notice are preserved.