]> git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/ChangeLog
4d9148437d57d7aea47c9e1da2e76749b8e574cc
[thirdparty/gcc.git] / libstdc++-v3 / ChangeLog
1 2017-06-02 Jonathan Wakely <jwakely@redhat.com>
2
3 PR libstdc++/80624
4 * doc/xml/manual/status_cxx2011.xml: Document to_int_type behaviour.
5 * include/bits/char_traits.h (char_traits<char16_t>::to_int_type):
6 Transform eof value to U+FFFD.
7 * testsuite/21_strings/char_traits/requirements/char16_t/eof.cc: New.
8 * testsuite/27_io/basic_streambuf/sgetc/char16_t/80624.cc: New.
9 * testsuite/27_io/basic_streambuf/sputc/char16_t/80624.cc: New.
10
11 * libsupc++/Makefile.am: Remove custom targets for files that need to
12 be compiled as C++11 or C++14.
13 * libsupc++/Makefile.in: Regenerate.
14 * libsupc++/del_ops.cc: Use pragma to disable -Wsized-deallocation
15 warnings.
16 * libsupc++/del_opvs.cc: Likewise.
17
18 2017-06-02 Richard Biener <rguenther@suse.de>
19 Markus Eisenmann <meisenmann.lba@fh-salzburg.ac.at>
20
21 PR libstdc++/80721
22 * libsupc++/eh_alloc.cc (pool::free): Keep list properly
23 sorted and add missing freelist item merging cases.
24
25 2017-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26
27 (GLIBCXX_CROSSCONFIG): Handle *-solaris* like *-linux* etc.
28 Remove *-solaris* section.
29 * configure: Regenerate.
30
31 2017-05-31 Jonathan Wakely <jwakely@redhat.com>
32
33 PR libstdc++/80893
34 * include/bits/stl_bvector.h (vector<bool>::_M_initialize): Avoid
35 null pointer dereference when size is zero.
36 * testsuite/23_containers/vector/bool/80893.cc: New.
37 * testsuite/util/testsuite_allocator.h (PointerBase::PointerBase):
38 Add non-explicit constructor from nullptr.
39 (PointerBase::derived() const): Add const-qualified overload.
40
41 2017-05-20 Tim Shen <timshen@google.com>
42
43 PR libstdc++/80737
44 * include/std/variant(variant::variant): SFINAE on is_same first.
45 * testsuite/20_util/variant/any.cc: test case.
46
47 2017-05-24 Jonathan Wakely <jwakely@redhat.com>
48
49 * src/c++11/random.cc (random_device::_M_getentropy): Use __CHAR_BIT__
50 instead of fixed number of bits.
51
52 2017-05-24 Andreas Schwab <schwab@suse.de>
53
54 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
55 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Likewise.
56
57 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
58 Jonathan Wakely <jwakely@redhat.com>
59
60 PR libstdc++/67578
61 * acinclude.m4: Bump libtool_VERSION.
62 * config/abi/pre/gnu.ver: Create GLIBCXX_3.4.24 with new symbol.
63 * config.h.in: Regenerate.
64 * configure: Regenerate.
65 * configure.ac: Add test for <linux/random.h>.
66 * doc/xml/manual/abi.xml: Document new library version.
67 * include/bits/random.h (random_device::entropy)
68 [_GLIBCXX_USE_RANDOM_TR1]: Add call to new _M_getentropy member.
69 (random_device::_M_getentropy): Declare.
70 * src/c++11/random.cc (random_device::_M_getentropy): Define.
71 * testsuite/util/testsuite_abi.cc: Add GLIBCXX_3.4.24 to known
72 versions, and make it the latest version.
73
74 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
75
76 PR libstdc++/67214
77 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Add
78 explicit conversion to avoid signed overflow.
79
80 2017-05-19 Jonathan Wakely <jwakely@redhat.com>
81
82 PR libstdc++/80796
83 * include/bits/stl_algo.h (search): Add new overload for C++17.
84 * testsuite/25_algorithms/search/searcher.cc: New.
85
86 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
87
88 PR libstdc++/80478
89 * include/std/functional (_Mem_fn_traits_base): Add specializations
90 for noexcept member function types.
91 * testsuite/20_util/function_objects/mem_fn/80478.cc: New test.
92
93 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
94
95 * doc/xml/manual/policy_data_structures.xml: Fix typo.
96 * doc/xml/manual/test_policy_data_structures.xml: Likewise.
97 * doc/html/*: Regenerate.
98
99 * doc/xml/manual/abi.xml: Document latest library versions.
100 * doc/xml/manual/build_hacking.xml: Document requirement to update
101 abi.xml when bumping library versions.
102 * doc/html/*: Regenerate.
103
104 2017-05-17 Jonathan Wakely <jwakely@redhat.com>
105
106 * include/bits/refwrap.h: Fix Doxygen warning.
107 * include/bits/specfun.h: Likewise.
108 * include/bits/std_function.h: Likewise.
109 * include/bits/stl_algo.h (set_union, set_intersection)
110 (set_difference, set_symmetric_difference): Add Doxygen @param tags
111 for output iterator parameters.
112 * include/bits/stl_iterator.h (inserter): Add Doxygen @param tag for
113 iterator parameter.
114 * include/std/mutex (try_lock, lock): Change Mutex to Lockable in
115 Doxygen comments.
116
117 2017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
118
119 Implement new C++ intrinsics __is_assignable and __is_constructible.
120 * include/std/type_traits (__do_is_static_castable_impl): Remove.
121 (__is_static_castable_impl, __is_static_castable_safe): Likewise.
122 (__is_static_castable, __do_is_direct_constructible_impl): Likewise.
123 (__is_direct_constructible_impl): Likewise.
124 (__is_direct_constructible_new_safe): Likewise.
125 (__is_base_to_derived_ref, __is_lvalue_to_rvalue_ref): Likewise.
126 (__is_direct_constructible_ref_cast): Likewise.
127 (__is_direct_constructible_new, __is_direct_constructible): Likewise.
128 (__do_is_nary_constructible_impl): Likewise.
129 (__is_nary_constructible_impl, __is_nary_constructible): Likewise.
130 (__is_constructible_impl): Likewise.
131 (is_constructible): Call the intrinsic.
132 (__is_assignable_helper): Remove.
133 (is_assignable): Call the intrinsic.
134 (is_trivially_constructible): Likewise.
135 (__is_trivially_copy_constructible_impl): New.
136 (is_trivially_copy_constructible): Use it.
137 (__is_trivially_move_constructible_impl): New.
138 (is_trivially_move_constructible): Use it.
139 (is_trivially_assignable): Call the intrinsic.
140 (__is_trivially_copy_assignable_impl): New.
141 (is_trivially_copy_assignable): Use it.
142 (__is_trivially_move_assignable_impl): New.
143 (is_trivially_move_assignable): Use it.
144 (testsuite/20_util/declval/requirements/1_neg.cc): Adjust.
145 (testsuite/20_util/is_trivially_copy_assignable/value.cc):
146 Add test for void.
147 (testsuite/20_util/is_trivially_copy_constructible/value.cc): Likewise.
148 (testsuite/20_util/is_trivially_move_assignable/value.cc): Likewise.
149 (testsuite/20_util/is_trivially_move_constructible/value.cc): Likewise.
150 (testsuite/20_util/make_signed/requirements/typedefs_neg.cc): Adjust.
151 (testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc):
152 Likewise.
153
154 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
155
156 * testsuite/experimental/source_location/1.cc: Change expected result
157 for source_location::current() used in default member initializer.
158
159 * doc/xml/manual/status_cxx2017.xml: Update status table.
160 * doc/html/*: Regenerate.
161 * include/Makefile.am: Add new header.
162 * include/Makefile.in: Regenerate.
163 * include/experimental/source_location: New header implementing N4519.
164 * testsuite/experimental/source_location/1.cc: New test.
165
166 PR libstdc++/80285
167 * include/bits/shared_ptr_base.h [!__cpp_rtti] (type_info): Declare
168 outside versioned namespace.
169
170 * configure: Regenerate.
171
172 2017-05-16 Marc Glisse <marc.glisse@inria.fr>
173
174 * include/std/optional (_Optional_base::_M_get): Check precondition.
175 * testsuite/20_util/optional/cons/value_neg.cc: Update line numbers.
176
177 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
178
179 * doc/xml/manual/appendix_contributing.xml: Link to test docs and
180 note higher DejaGnu version requirement.
181 * doc/html/*: Regenerate.
182
183 * doc/xml/manual/appendix_contributing.xml: Link to the list of bad
184 identifiers.
185 * doc/html/*: Regenerate.
186
187 2017-05-15 Jonathan Wakely <jwakely@redhat.com>
188
189 PR libstdc++/80761
190 * include/bits/node_handle.h (_Node_insert_return): Reorder members.
191 (tuple_size, tuple_element): Remove partial specializations.
192 * include/bits/stl_tree.h (_Rb_tree::insert_return_type): Use
193 const_iterator for std::set.
194 * testsuite/23_containers/map/modifiers/extract.cc: New.
195 * testsuite/23_containers/set/modifiers/extract.cc: New.
196 * testsuite/23_containers/unordered_map/modifiers/extract.cc: New.
197 * testsuite/23_containers/unordered_set/modifiers/extract.cc: New.
198
199 2017-05-12 Jonathan Wakely <jwakely@redhat.com>
200
201 PR libstdc++/78939
202 * include/std/utility (tuple_size<cv T>): Only define partial
203 specializations when tuple_size<T>::value is valid.
204 * testsuite/20_util/tuple/78939.cc: New.
205 * testsuite/20_util/tuple/cv_tuple_size_neg.cc: New.
206
207 2017-05-11 François Dumont <fdumont@gcc.gnu.org>
208
209 * include/bits/stl_tree.h [_GLIBCXX_INLINE_VERSION]
210 (_Rb_tree_impl<>): Remove _Is_pod_comparator
211 template parameter.
212
213 * include/debug/formatter.h [_GLIBCXX_INLINE_VERSION]
214 (__gnu_debug::_Error_formatter::_Parameter::_M_print_field): Remove.
215 (__gnu_debug::_Error_formatter::_Parameter::_M_print_description):
216 Remove.
217 (__gnu_debug::_Error_formatter::_M_format_word): Remove.
218 (__gnu_debug::_Error_formatter::_M_print_word): Remove.
219 (__gnu_debug::_Error_formatter::_M_print_string): Remove.
220 (__gnu_debug::_Error_formatter::_M_get_max_length): Remove.
221 * src/c++11/debug.cc: Adapt.
222 * config/abi/pre/gnu-versioned-namespace.ver: Adapt.
223
224 2017-05-11 Jonathan Wakely <jwakely@redhat.com>
225
226 * doc/xml/manual/allocator.xml: Fix ViewCVS URLs.
227 * doc/xml/manual/mt_allocator.xml: Likewise.
228 * doc/html/*: Regenerate.
229
230 PR libstdc++/80285
231 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Define
232 function to get unique fake std::type_info reference.
233 (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Compare to
234 _S_ti() fake reference.
235 (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Share
236 single implementation with or without RTTI enable.
237 [!__cpp_rtti]: Pass fake reference to _M_get_deleter.
238 * testsuite/20_util/shared_ptr/creation/alloc.cc: Change expected
239 allocation and deallocation counts.
240 * testsuite/20_util/shared_ptr/creation/single_allocation.cc: New.
241 * testsuite/20_util/shared_ptr/creation/single_allocation_no_rtti.cc:
242 New.
243
244 2017-05-10 François Dumont <fdumont@gcc.gnu.org>
245
246 Bump version namespace.
247 * config/abi/pre/gnu-versioned-namespace.ver: Bump version namespace
248 from __7 to __8. Bump GLIBCXX_7.0 to GLIBCXX_8.0.
249 * acinclude.m4 (libtool_VERSION): Bump to 8:0:0.
250 * include/bits/c++config: Adapt.
251 * include/bits/regex.h: Adapt.
252 * include/experimental/bits/fs_fwd.h: Adapt.
253 * include/experimental/bits/lfts_config.h: Adapt.
254 * include/std/variant: Adapt.
255 * python/libstdcxx/v6/printers.py: Adapt.
256 * testsuite/libstdc++-prettyprinters/48362.cc: Adapt.
257
258 * include/bits/stl_algobase.h (std::__iter_swap<false>): Remove
259 _GLIBCXX_MOVE usage.
260
261 2017-05-09 Jason Merrill <jason@redhat.com>
262
263 * testsuite/24_iterators/container_access.cc (test03): Make il3 static.
264
265 2017-05-08 Jonathan Wakely <jwakely@redhat.com>
266
267 * include/std/optional: Use a separate static_assert per condition.
268 * testsuite/20_util/optional/cons/value_neg.cc: Update dg-error line
269 numbers.
270
271 * doc/xml/manual/mt_allocator.xml: Clarify deallocation behaviour.
272 * doc/html/*: Regenerate.
273
274 2017-05-02 Hugo Beauzée-Luyssen <hugo@beauzee.fr>
275
276 PR libstdc++/69506
277 * config/os/mingw32-w64/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
278
279 2017-04-29 François Dumont <fdumont@gcc.gnu.org>
280
281 * testsuite/libstdc++-prettyprinters/48362.cc: Replace a regexp-test
282 by a note-test.
283
284 2017-04-28 Jonathan Wakely <jwakely@redhat.com>
285
286 PR libstdc++/80553
287 * include/bits/stl_construct.h (_Destroy, _Destroy_n): Add static
288 assertions to ensure type is destructible.
289 (destroy_at, destroy, destroy_n): Move from stl_uninitialized.h.
290 * include/bits/stl_uninitialized.h (destroy_at, destroy, destroy_n):
291 Move to stl_construct.h.
292 * testsuite/20_util/specialized_algorithms/memory_management_tools/
293 destroy_neg.cc: New test.
294 * testsuite/23_containers/vector/cons/destructible_neg.cc: New test.
295
296 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
297 superfluous "" in dg-error.
298
299 2017-04-28 Tom de Vries <tom@codesourcery.com>
300
301 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
302 superfluous '{ target *-*-* }' in dg-(error|warning|message|bogus).
303
304 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
305
306 * include/ext/pb_ds/detail/list_update_map_/iterators_fn_imps.hpp
307 (PB_DS_CLASS_C_DEC::end()): Remove redundant const in cast type.
308 * testsuite/util/testsuite_rng.h (twister_rand_gen::get_prob()):
309 Likewise.
310
311 2017-04-26 Jonathan Wakely <jwakely@redhat.com>
312
313 * testsuite/23_containers/deque/allocator/move_assign-2.cc: Improve
314 comment. Ensure first test works because allocator type propagates and
315 not because is_always_equal is true.
316 * testsuite/23_containers/vector/52591.cc: Likewise. Restore original
317 testcase that instantiates the move-assignment operator.
318
319 2017-04-24 Jonathan Wakely <jwakely@redhat.com>
320
321 PR libstdc++/80506
322 * include/bits/random.tcc (gamma_distribution::operator()): Fix magic
323 number used in loop condition.
324
325 PR libstdc++/80504
326 * include/bits/refwrap.h (ref, cref): Qualify calls.
327 * testsuite/20_util/reference_wrapper/80504.cc: New test.
328
329 PR libstdc++/80493
330 * include/experimental/optional (optional::swap): Fix exception
331 specification.
332
333 2017-04-21 Jonathan Wakely <jwakely@redhat.com>
334
335 PR libstdc++/80316
336 * include/std/future (_State_baseV2::_Setter::operator()): Remove
337 _S_check calls that are done after the pointer to the shared state is
338 already dereferenced.
339 (_State_baseV2::_Setter<_Res, void>): Define specialization for void
340 as partial specialization so it can be defined within the definition
341 of _State_baseV2.
342 (_State_baseV2::__setter): Call _S_check.
343 (_State_baseV2::__setter(promise<void>*)): Add overload for use by
344 promise<void>::set_value and promise<void>::set_value_at_thread_exit.
345 (promise<T>, promise<T&>, promise<void>): Make _State a friend.
346 (_State_baseV2::_Setter<void, void>): Remove explicit specialization.
347 (promise<void>::set_value, promise<void>::set_value_at_thread_exit):
348 Use new __setter overload.
349 * testsuite/30_threads/promise/members/at_thread_exit2.cc: New test.
350 * testsuite/30_threads/promise/members/set_exception.cc: Test
351 promise<T&> and promise<void> specializations.
352 * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
353 Test for no_state error condition.
354 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
355
356 * include/backward/auto_ptr.h: Ignore deprecated warnings from use
357 of auto_ptr.
358 * include/bits/shared_ptr.h: Likewise.
359 * include/bits/shared_ptr_base.h: Likewise.
360 * include/bits/unique_ptr.h: Likewise.
361 * libstdc++-v3/testsuite/20_util/default_delete/48631_neg.cc: Adjust
362 dg-error lineno.
363 * libstdc++-v3/testsuite/20_util/default_delete/void_neg.cc: Likewise.
364 * libstdc++-v3/testsuite/20_util/unique_ptr/assign/48635_neg.cc:
365 Likewise.
366 * libstdc++-v3/testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc:
367 Likewise.
368
369 2017-04-20 Edward Smith-Rowland <3dw4rd@verizon.net>
370
371 PR libstdc++/68397 std::tr1::expint fails ... long double arguments.
372 * include/tr1/exp_integral.tcc: Increase iteration limits.
373 * testsuite/tr1/5_numerical_facilities/special_functions/15_expint/
374 pr68397.cc: New test.
375 * testsuite/special_functions/14_expint/pr68397.cc: New test.
376
377 2017-04-20 Jonathan Wakely <jwakely@redhat.com>
378
379 PR libstdc++/79862
380 * include/std/atomic [!_GLIBCXX_USE_C99_STDINT_TR1] (atomic_int8_t)
381 (atomic_uint8_t, atomic_int16_t, atomic_uint16_t, atomic_int32_t,
382 (atomic_uint32_t, atomic_int64_t, atomic_uint64_t)
383 (atomic_int_least8_t, atomic_uint_least8_t, atomic_int_least16_t)
384 (atomic_uint_least16_t, atomic_int_least32_t, atomic_uint_least32_t)
385 (atomic_int_least64_t, atomic_uint_least64_t, atomic_int_fast8_t)
386 (atomic_uint_fast8_t, atomic_int_fast16_t, atomic_uint_fast16_t)
387 (atomic_int_fast32_t, atomic_uint_fast32_t, atomic_int_fast64_t)
388 (atomic_uint_fast64_t, atomic_intmax_t, atomic_uintmax_t): Don't
389 define.
390
391 2017-04-19 Jonathan Wakely <jwakely@redhat.com>
392
393 * doc/xml/manual/abi.xml: Rephrase one of the references to the
394 Itanium C++ ABI.
395 * doc/xml/manual/test.xml: Document DejaGnu 1.5.3 requirement.
396 * doc/html/*: Regenerate.
397
398 * libsupc++/new: Update comment on #endif directive.
399
400 PR libstdc++/80448
401 * include/experimental/bits/fs_dir.h (directory_iterator)
402 (recursive_directory_iterator): Remove noexcept from defaulted
403 constructors.
404
405 PR libstdc++/80446
406 * include/std/type_traits (is_aggregate): Change __has_builtin checks.
407 * libsupc++/new (launder): Likewise.
408
409 2017-04-18 Jonathan Wakely <jwakely@redhat.com>
410
411 * include/std/functional (default_searcher, __boyer_moore_array_base)
412 (__is_std_equal_to, __boyer_moore_base_t, boyer_moore_searcher)
413 (boyer_moore_horspool_searcher): Remove redundant namespace
414 qualification.
415 (default_searcher::operator()): Construct return value early and
416 advance second member in-place.
417 (boyer_moore_horspool_searcher::operator()): Increment random access
418 iterator directly instead of using std::next.
419 (boyer_moore_searcher::operator()): Fix return value.
420 * testsuite/20_util/function_objects/searchers.cc: Check both parts
421 of return values.
422
423 2017-04-12 Gerald Pfeifer <gerald@pfeifer.com>
424
425 * doc/xml/faq.xml: Update reference link to C++ ABI for Itanium.
426 * doc/xml/manual/abi.xml. Ditto (thrice).
427
428 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
429
430 * doc/xml/manual/status_cxx2017.xml: Remove duplicate table entry.
431 * doc/html/*: Regenerate.
432
433 * testsuite/20_util/reference_wrapper/invoke.cc: Uncomment tests
434 that no longer fail.
435
436 * include/bits/ios_base.h: Correct comment.
437 * testsuite/util/testsuite_hooks.h: Likewise.
438
439 * doc/xml/manual/status_cxx2017.xml: Update C++17 status table.
440 * doc/xml/manual/appendix_contributing.xml (contrib.organization): Add
441 directories for debug, parallel and profile headers.
442 * doc/html/*: Regenerate.
443
444 * include/bits/char_traits.h (__gnu_cxx::char_traits): Add
445 _GLIBCXX14_CONSTEXPR on assign, compare, find, and length.
446 (std::char_traits<char>, std::char_traits<wchar_t>): Add
447 _GLIBCXX17_CONSTEXPR on assign.
448 (std::char_traits<char16_t>, std::char_traits<char32_t>): Add
449 _GLIBCXX17_CONSTEXPR on assign, compare, find, and length.
450 * testsuite/21_strings/char_traits/requirements/
451 constexpr_functions_c++17.cc: New test.
452
453 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
454
455 PR libstdc++/79141
456 * include/bits/stl_pair.h (__nonesuch_no_braces): New.
457 (operator=(typename conditional<
458 __and_<is_copy_assignable<_T1>,
459 is_copy_assignable<_T2>>::value,
460 const pair&, const __nonesuch&>::type)): Change __nonesuch
461 to __nonesuch_no_braces.
462 (operator=(typename conditional<
463 __not_<__and_<is_copy_assignable<_T1>,
464 is_copy_assignable<_T2>>>::value,
465 const pair&, const __nonesuch&>::type)): Likewise.
466 (operator=(typename conditional<
467 __and_<is_move_assignable<_T1>,
468 is_move_assignable<_T2>>::value,
469 pair&&, __nonesuch&&>::type)): Likewise.
470 * testsuite/20_util/pair/79141.cc: New.
471
472 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
473
474 Implement std::is_aggregate.
475 * include/std/type_traits (is_aggregate, is_aggregate_v): New.
476 * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc:
477 New.
478 * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise.
479 * testsuite/20_util/is_aggregate/value.cc: Likewise.
480
481 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
482
483 Adjust optional's pretty printer for LWG 2900.
484 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter.__init__):
485 Look at the nested payload in case of non-experimental optional.
486
487 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
488
489 Implement LWG 2900, The copy and move constructors
490 of optional are not constexpr.
491 * include/std/optional (_Optional_payload): New.
492 (_Optional_base): Remove the bool parameter.
493 (_Optional_base<_Tp, false>): Remove.
494 (_Optional_base()): Adjust.
495 (_Optional_base(nullopt_t)): Likewise.
496 (_Optional_base(in_place_t, _Args&&...)): Likewise.
497 (_Optional_base(in_place_t, initializer_list<_Up>, _Args&&...)):
498 Likewise.
499 (_Optional_base(const _Optional_base&)): Likewise.
500 (_Optional_base(_Optional_base&&)): Likewise.
501 (operator=(const _Optional_base&)): Likewise.
502 (operator=(_Optional_base&&)): Likewise.
503 (~_Optional_base()): Remove.
504 (_M_is_engaged()): Adjust.
505 (_M_get()): Likewise.
506 (_M_construct(_Args&&...)): Likewise.
507 (_M_destruct()): Likewise.
508 (_M_reset()): Likewise.
509 (_Optional_base::_Empty_byte): Remove.
510 (_Optional_base::_M_empty): Remove.
511 (_Optional_base::_M_payload): Adjust.
512 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
513 * testsuite/20_util/optional/constexpr/cons/value.cc: Add tests.
514
515 2017-03-28 Jonathan Wakely <jwakely@redhat.com>
516
517 PR libstdc++/80137
518 * include/bits/random.tcc (generate_canonical): Use std::nextafter
519 or numeric_limits::epsilon() to reduce out-of-range values.
520 * testsuite/26_numerics/random/uniform_real_distribution/operators/
521 64351.cc: Verify complexity requirement is met.
522
523 * doc/xml/manual/abi.xml: Add xml:id anchor.
524 * doc/xml/manual/using.xml (manual.intro.using.macros): Document
525 _GLIBCXX_RELEASE. Link to new anchor for __GLIBCXX__ notes.
526 (concurrency.io.structure): Add markup.
527 * doc/html/*: Regenerate.
528
529 PR libstdc++/80229
530 * include/bits/shared_ptr_base.h
531 (__shared_ptr::_M_enable_shared_from_this_with): Change parameters to
532 non-const and then use remove_cv to get unqualified type.
533 * testsuite/20_util/enable_shared_from_this/members/const.cc: Don't
534 cast away constness on object created const.
535 * testsuite/20_util/shared_ptr/cons/80229.cc: New test.
536
537 2017-03-26 Markus Trippelsdorf <markus@trippelsdorf.de>
538
539 PR libstdc++/80183
540 * include/bits/stl_tree.h:
541 (_Rb_tree_header::_M_move_data(_Rb_tree_header&)): Also save _M_color.
542
543 2017-03-23 Jonathan Wakely <jwakely@redhat.com>
544
545 * testsuite/23_containers/array/tuple_interface/
546 tuple_element_debug_neg.cc: Adjust dg-error.
547 * testsuite/23_containers/list/operations/78389.cc: Fix less-than to
548 define a valid strict weak ordering.
549 * testsuite/23_containers/priority_queue/67085.cc: Disable test for
550 Debug Mode, due to debug checks making extra copies of predicate.
551 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
552 Likewise.
553
554 * doc/xml/faq.xml: Add link.
555 * doc/xml/manual/backwards_compatibility.xml: Remove outdated
556 information on pre-ISO headers. Replace broken link to C++ FAQ Lite.
557 * doc/xml/manual/io.xml: Update broken link.
558 * doc/html/*: Regenerate.
559
560 2017-03-23 Daniel Kruegler <daniel.kruegler@gmail.com>
561
562 Implement LWG 2686, Why is std::hash specialized for error_code,
563 but not error_condition?
564 * include/std/system_error (hash<error_condition>): Define for C++17.
565 * testsuite/20_util/hash/operators/size_t.cc (hash<error_condition>):
566 Instantiate test for error_condition.
567 * testsuite/20_util/hash/requirements/explicit_instantiation.cc
568 (hash<error_condition>): Instantiate hash<error_condition>.
569
570 * include/bits/c++config (_GLIBCXX17_INLINE): Define.
571 * include/bits/regex_constants.h (All std::regex_constants constants):
572 Add _GLIBCXX17_INLINE as per P0607R0.
573 * include/bits/std_mutex.h (defer_lock, try_to_lock, adopt_lock):
574 Likewise.
575 * include/bits/stl_pair.h (piecewise_construct): Likewise.
576 * include/bits/uses_allocator.h (allocator_arg, uses_allocator_v)
577 (__is_uses_allocator_constructible_v)
578 (__is_nothrow_uses_allocator_constructible_v): Likewise.
579 * include/std/chrono (treat_as_floating_point_v): Likewise.
580 * include/std/functional (is_bind_expression_v, is_placeholder_v):
581 Likewise.
582 * include/std/optional (nullopt): Likewise.
583 * include/std/ratio (ratio_equal_v, ratio_not_equal_v, ratio_less_v)
584 ratio_less_equal_v, ratio_greater_v, ratio_greater_equal_v): Likewise.
585 * include/std/system_error (is_error_code_enum_v)
586 (is_error_condition_enum_v): Likewise.
587 * include/std/tuple (tuple_size_v, ignore): Likewise.
588 (ignore): Declare ignore constexpr as per LWG 2773, declare assignment
589 constexpr as per LWG 2933.
590 * include/std/type_traits (All variable templates): Add
591 _GLIBCXX17_INLINE as per P0607R0.
592 * include/std/variant (variant_size_v, variant_npos, __index_of_v)
593 (__tuple_count_v, __exactly_once): Likewise.
594 * testsuite/18_support/headers/new/synopsis.cc
595 (hardware_destructive_interference_size)
596 (hardware_constructive_interference_size): Likewise for commented-out
597 variables.
598 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Add new
599 test function for constexpr std::ignore (LWG 2773).
600 * testsuite/20_util/tuple/creation_functions/constexpr_cpp14.cc: New
601 test for LWG 2933.
602
603 2017-03-22 Jonathan Wakely <jwakely@redhat.com>
604
605 * include/bits/shared_ptr.h (shared_ptr, weak_ptr): Add deduction
606 guides for C++17.
607 * include/bits/std_function.h (function): Likewise.
608 * include/bits/stl_pair.h (pair): Likewise.
609 * include/debug/array (__gnu_debug::array): Likewise.
610 * include/std/array (array): Likewise.
611 * include/std/functional (make_default_searcher)
612 (make_boyer_moore_searcher, make_boyer_moore_horspool_searcher):
613 Remove generator functions.
614 * include/std/tuple (tuple): Add deduction guides.
615 * include/std/valarray (valarray): Likewise.
616 * testsuite/20_util/function_objects/searchers.cc: Adjust to use
617 class template argument deduction instead of generator functions.
618 * testsuite/20_util/function/cons/deduction.cc: New test.
619 * testsuite/20_util/optional/cons/deduction_guide.cc: Rename to ...
620 * testsuite/20_util/optional/cons/deduction.cc: ... here.
621 * testsuite/20_util/pair/cons/deduction.cc: New test.
622 * testsuite/20_util/shared_ptr/cons/deduction.cc: New test.
623 * testsuite/20_util/tuple/cons/deduction.cc: New test.
624 * testsuite/20_util/tuple/element_access/get_neg.cc: Adjust dg-error.
625 * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: New test.
626 * testsuite/20_util/weak_ptr/cons/deduction.cc: New test.
627 * testsuite/23_containers/array/cons/deduction.cc: New test.
628 * testsuite/23_containers/array/cons/deduction_neg.cc: New test.
629 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
630 Adjust dg-error.
631 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise.
632 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
633 Likewise.
634 * testsuite/26_numerics/valarray/deduction.cc: New test.
635 * testsuite/30_threads/lock_guard/cons/deduction.cc: New test.
636 * testsuite/30_threads/scoped_lock/cons/deduction.cc: New test.
637 * testsuite/30_threads/unique_lock/cons/deduction.cc: New test.
638
639 2017-03-20 François Dumont <fdumont@gcc.gnu.org>
640
641 * include/bits/stl_deque.h (deque): Access allocator value_type only if
642 concept checks are enabled.
643 * include/bits/stl_stack.h (stack): Likewise.
644 * include/bits/stl_vector.h (vector): Likewise.
645 * include/bits/stl_list.h (list): Likewise and check
646 _SGIAssignableConcept only in C++03.
647 * include/bits/stl_map.h (map): Likewise.
648 * include/bits/stl_set.h (set): Likewise.
649 * include/bits/stl_multimap.h (multimap): Likewise.
650 * include/bits/stl_multiset.h (multiset): Likewise.
651 * include/bits/stl_queue.h (queue, priority_queue): Likewise.
652
653 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
654
655 * doc/xml/manual/appendix_contributing.xml: Convert link to
656 ansi.org to https.
657 Update link to the C++ standard at ansi.org.
658
659 * doc/xml/faq.xml: Remove information redundant with the above;
660 instead add a reference.
661
662 2017-03-17 Jonathan Wakely <jwakely@redhat.com>
663
664 * src/c++11/codecvt.cc (range): Add non-type template parameter and
665 define oerloaded operators for reading and writing code units.
666 (range<Elem, false>): Define partial specialization for accessing
667 wide characters in potentially unaligned byte ranges.
668 (ucs2_span(const char16_t*, const char16_t*, ...))
669 (ucs4_span(const char16_t*, const char16_t*, ...)): Change parameters
670 to range<const char16_t, false> in order to avoid unaligned reads.
671 (__codecvt_utf16_base<char16_t>::do_out)
672 (__codecvt_utf16_base<char32_t>::do_out)
673 (__codecvt_utf16_base<wchar_t>::do_out): Use range specialization for
674 unaligned data to avoid unaligned writes.
675 (__codecvt_utf16_base<char16_t>::do_in)
676 (__codecvt_utf16_base<char32_t>::do_in)
677 (__codecvt_utf16_base<wchar_t>::do_in): Likewise for writes. Return
678 error if there are unprocessable trailing bytes.
679 (__codecvt_utf16_base<char16_t>::do_length)
680 (__codecvt_utf16_base<char32_t>::do_length)
681 (__codecvt_utf16_base<wchar_t>::do_length): Pass arguments of type
682 range<const char16_t, false> to span functions.
683 * testsuite/22_locale/codecvt/codecvt_utf16/misaligned.cc: New test.
684
685 2017-03-16 Jonathan Wakely <jwakely@redhat.com>
686
687 PR libstdc++/79980
688 * src/c++11/codecvt.cc (to_integer(codecvt_mode)): Fix target type.
689
690 PR libstdc++/80041
691 * src/c++11/codecvt.cc (__codecvt_utf16_base<wchar_t>::do_out)
692 (__codecvt_utf16_base<wchar_t>::do_in): Convert char arguments to
693 char16_t to work with UTF-16 instead of UTF-8.
694 * testsuite/22_locale/codecvt/codecvt_utf16/80041.cc: New test.
695
696 * src/c++11/codecvt.cc (codecvt<char16_t, char, mbstate_t>)
697 (codecvt<char32_t, char, mbstate_t>, __codecvt_utf8_base<char16_t>)
698 (__codecvt_utf8_base<char32_t>, __codecvt_utf8_base<wchar_t>)
699 (__codecvt_utf16_base<char16_t>, __codecvt_utf16_base<char32_t>)
700 (__codecvt_utf16_base<wchar_t>, __codecvt_utf8_utf16_base<char16_t>)
701 (__codecvt_utf8_utf16_base<char32_t>)
702 (__codecvt_utf8_utf16_base<wchar_t>): Fix do_encoding() and
703 do_max_length() return values.
704 * testsuite/22_locale/codecvt/codecvt_utf16/members.cc: New test.
705 * testsuite/22_locale/codecvt/codecvt_utf8/members.cc: New test.
706 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/members.cc: New test.
707
708 PR libstdc++/79980
709 * include/bits/locale_conv.h (__do_str_codecvt): Set __count on
710 error path.
711 * src/c++11/codecvt.cc (operator&=, operator|=, operator~): Overloads
712 for manipulating codecvt_mode values.
713 (read_utf16_bom): Compare input to BOM constants instead of integral
714 constants that depend on endianness. Take mode parameter by
715 reference and adjust it, to distinguish between no BOM present and
716 UTF-16BE BOM present.
717 (ucs4_in, ucs2_span, ucs4_span): Adjust calls to read_utf16_bom.
718 (surrogates): New enumeration type.
719 (utf16_in, utf16_out): Add surrogates parameter to choose between
720 UTF-16 and UCS2 behaviour.
721 (utf16_span, ucs2_span): Use std::min not std::max.
722 (ucs2_out): Use std::min not std::max. Disallow surrogate pairs.
723 (ucs2_in): Likewise. Adjust calls to read_utf16_bom.
724 * testsuite/22_locale/codecvt/codecvt_utf16/79980.cc: New test.
725 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: New test.
726
727 PR libstdc++/79511
728 * src/c++11/codecvt.cc (write_utf16_code_point): Don't write 0xffff
729 as a surrogate pair.
730 (__codecvt_utf8_utf16_base<char32_t>::do_in): Use native endianness
731 for internal representation.
732 (__codecvt_utf8_utf16_base<wchar_t>::do_in): Likewise.
733 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/79511.cc: New test.
734
735 PR libstdc++/80064
736 * include/bits/stl_heap.h (__is_heap, push_heap, __adjust_heap)
737 (pop_heap, make_heap, sort_heap, is_heap_until, is_heap): Cope with
738 invalid instantiations using function types for _Compare argument.
739 * testsuite/25_algorithms/make_heap/80064.cc: New test.
740
741 PR libstdc++/67440
742 * python/libstdcxx/v6/printers.py (find_type): Avoid gdb.Type.name
743 for GDB 7.6 compatibility, use gdb.Type.unqualified instead.
744
745 2017-03-15 Ville Voutilainen <ville.voutilainen@gmail.com>
746
747 Implement LWG 2857, {variant,optional,any}::emplace should
748 return the constructed value.
749 * include/std/any (emplace(_Args&&...)): Change the return type and
750 return a reference to the constructed value.
751 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
752 * include/std/optional (emplace(_Args&&...)): Likewise.
753 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
754 * include/std/variant (emplace<_Tp>(_Args&&...)): Likewise.
755 (emplace<_Tp>(initializer_list<_Up>, _Args&&...)): Likewise.
756 (emplace<_Np>(_Args&&...)): Likewise.
757 (emplace<_Np>(initializer_list<_Up>, _Args&&...)): Likewise.
758 * testsuite/20_util/any/assign/emplace.cc: Add tests for
759 checking the return value of emplace.
760 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust.
761 * testsuite/20_util/optional/assignment/6.cc: Add tests for
762 checking the return value of emplace.
763 * testsuite/20_util/variant/run.cc: Likewise.
764
765 2017-03-15 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
766
767 PR libstdc++/62045
768 * include/ext/pb_ds/qdetail/binary_heap_/binary_heap_.hpp
769 (is_heap): Remove.
770 (push_heap): Remove the wrong checking using is_heap.
771 (make_heap): Remove the assertion using is_heap.
772 * include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp
773 (modify): Ditto.
774 (resize_for_insert_if_needed): Add PB_DS_ASSERT_VALID after
775 calling make_heap.
776
777 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
778
779 PR libstdc++/62045
780 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
781 New test.
782 * testsuite/ext/pb_ds/regression/priority_queues.cc: Fix copy&paste
783 error in comment.
784
785 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
786
787 * acinclude.m4 (GLIBCXX_CHECK_S_ISREG_OR_S_IFREG): Fix typo in
788 comment.
789 * config.h.in: Regenerate.
790 * configure: Regenerate.
791 * doc/Makefile.in: Regenerate.
792
793 2017-03-14 Jonathan Wakely <jwakely@redhat.com>
794
795 PR libstdc++/79162
796 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
797 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace
798 with a constrained template.
799 [!_GLIBCXX_USE_CXX11_ABI]
800 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise.
801 * testsuite/21_strings/basic_string/cons/char/79162.cc: New test.
802 * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test.
803
804 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
805
806 PR libstdc++/80034
807 * include/bits/list.tcc (merge(list&&)): Use const for the size_t
808 in the catch-block.
809 (merge(list&&, _StrictWeakOrdering)): Likewise.
810 * testsuite/23_containers/list/operations/80034.cc: New.
811
812 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
813
814 Implement LWG 2806, Base class of bad_optional_access.
815 * include/std/optional (bad_optional_access):
816 Derive from std::exception.
817 (bad_optional_access::bad_optional_access): Adjust.
818 (bad_optional_access::what): New.
819 (__throw_bad_optional_access(const char*)):
820 Remove the parameter and adjust calls.
821 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
822 * testsuite/20_util/optional/typedefs.cc: Likewise.
823
824 2017-03-12 Ville Voutilainen <ville.voutilainen@gmail.com>
825
826 Implement LWG 2934, optional<const T> doesn't compare with T.
827 * include/std/optional
828 (operator==(const optional<_Tp>&, const optional<_Tp>&)):
829 Turn into operator==(const optional<_Tp>&, const optional<_Up>&).
830 (operator!=(const optional<_Tp>&, const optional<_Tp>&)):
831 Turn into operator!=(const optional<_Tp>&, const optional<_Up>&).
832 (operator<(const optional<_Tp>&, const optional<_Tp>&)):
833 Turn into operator<(const optional<_Tp>&, const optional<_Up>&.
834 (operator>(const optional<_Tp>&, const optional<_Tp>&)):
835 Turn into operator>(const optional<_Tp>&, const optional<_Up>&.
836 (operator<=(const optional<_Tp>&, const optional<_Tp>&)):
837 Turn into operator<=(const optional<_Tp>&, const optional<_Up>&).
838 (operator>=(const optional<_Tp>&, const optional<_Tp>&)):
839 Turn into operator>=(const optional<_Tp>&, const optional<_Up>&).
840 (operator==(const optional<_Tp>&, const _Tp&)):
841 Turn into operator==(const optional<_Tp>&, const _Up&).
842 (operator==(const _Tp&, const optional<_Tp>&)):
843 Turn into operator==(const _Up&, const optional<_Tp>&).
844 (operator!=(const optional<_Tp>&, const _Tp&)):
845 Turn into operator!=(const optional<_Tp>&, const _Up&).
846 (operator!=(const _Tp&, const optional<_Tp>&)):
847 Turn into operator!=(const _Up&, const optional<_Tp>&).
848 (operator<(const optional<_Tp>&, const _Tp&)):
849 Turn into operator<(const optional<_Tp>&, const _Up&).
850 (operator<(const _Tp&, const optional<_Tp>&)):
851 Turn into operator<(const _Up&, const optional<_Tp>&).
852 (operator>(const optional<_Tp>&, const _Tp&)):
853 Turn into operator>(const optional<_Tp>&, const _Up&).
854 (operator>(const _Tp&, const optional<_Tp>&)):
855 Turn into operator>(const _Up&, const optional<_Tp>&).
856 (operator<=(const optional<_Tp>&, const _Tp&)):
857 Turn into operator<=(const optional<_Tp>&, const _Up&).
858 (operator<=(const _Tp&, const optional<_Tp>&)):
859 Turn into operator<=(const _Up&, const optional<_Tp>&).
860 (operator>=(const optional<_Tp>&, const _Tp&)):
861 Turn into operator>=(const optional<_Tp>&, const _Up&).
862 (operator>=(const _Tp&, const optional<_Tp>&)):
863 Turn into operator>=(const _Up&, const optional<_Tp>&).
864 * testsuite/20_util/optional/relops/7.cc: New.
865
866 2017-03-10 Jonathan Wakely <jwakely@redhat.com>
867
868 * testsuite/17_intro/names.cc: Undefine macros that clash with
869 identifiers in AIX system headers.
870
871 * include/bits/invoke.h (__invoke): Use __invoke_result instead of
872 result_of, and __is_nothrow_invocable instead of
873 __is_nothrow_callable.
874 * include/bits/shared_ptr_base.h (__shared_ptr): Use __is_invocable
875 instead of __is_callable.
876 * include/std/functional (invoke): use invoke_result_t instead of
877 result_of_t and is_nothrow_invocable instead of is_nothrow_callable.
878 (_Not_fn): Use __invoke_result instead of result_of.
879 * include/std/type_traits (__result_of_memobj, __result_of_memfun):
880 Remove partial specializations for reference_wrapper types.
881 (__result_of_impl): Use __inv_unwrap to strip reference_wrapper.
882 (__invoke_result): Define replacement for result_of and then use it to
883 define result_of.
884 (__is_callable_impl, __is_callable, __is_nothrow_callable): Replace
885 with __is_invocable_impl, __is_invocable, and __is_nothrow_invocable
886 respectively.
887 (invoke_result, invoke_result_t): Define for C++17.
888 (is_callable, is_nothrow_callable): Replace with is_invocable,
889 is_invocable_r, is_nothrow_invocable, and is_nothrow_invocable_r.
890 (is_callable_v, is_nothrow_callable_v): Replace with is_invocable_v,
891 is_invocable_r_v, is_nothrow_invocable_v, and is_nothrow_invocable_r_v.
892 * include/std/variant (hash<variant<T...>>): Use is_nothrow_invocable_v
893 instead of is_nothrow_callable_v.
894 * testsuite/20_util/function_objects/invoke/59768.cc: Remove unused
895 main function.
896 * testsuite/20_util/function_objects/not_fn/1.cc: Use is_invocable
897 instead of is_callable.
898 * testsuite/20_util/is_callable/*: Rename directory and adjust tests
899 to use new traits.
900 * testsuite/20_util/is_nothrow_callable/*: Likewise.
901 * testsuite/20_util/optional/hash.cc: Use is_invocable_v instead of
902 is_callable.
903 * testsuite/20_util/variant/hash.cc: Likewise.
904
905 2017-03-10 George Lander <george.lander@arm.com>
906
907 * acinclude.m4 (glibcxx_cv_obsolete_isnan): Define
908 _GLIBCXX_INCLUDE_NEXT_C_HEADERS before including math.h.
909 * configure: Regenerate.
910
911 2017-03-09 Jonathan Wakely <jwakely@redhat.com>
912
913 * include/std/functional (_Not_fn): Define macro to simplify
914 repetitive function definitions.
915
916 * doc/xml/manual/status_cxx2017.xml: Document std::byte support.
917 * include/c_global/cstddef (std::byte): Define for C++17.
918 * testsuite/18_support/byte/global_neg.cc: New test.
919 * testsuite/18_support/byte/ops.cc: New test.
920 * testsuite/18_support/byte/requirements.cc: New test.
921
922 2017-03-05 Jonathan Wakely <jwakely@redhat.com>
923
924 * doc/xml/manual/status_cxx2017.xml: Document P0156R2 status.
925 * doc/html/*: Regenerate.
926 * include/std/mutex (scoped_lock): Implement new C++17 template.
927 * testsuite/30_threads/scoped_lock/cons/1.cc: New test.
928 * testsuite/30_threads/scoped_lock/requirements/
929 explicit_instantiation.cc: New test.
930 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: New test.
931
932 2017-03-02 Gerald Pfeifer <gerald@pfeifer.com>
933 François Dumont <frs.dumont@gmail.com>
934 Jonathan Wakely <jwakely@redhat.com>
935
936 * doc/xml/manual/debug_mode.xml: Update and simplify note
937 on link- and run-time coexistence.
938
939 2017-03-02 Jonathan Wakely <jwakely@redhat.com>
940
941 * testsuite/17_intro/headers/names.cc: Rename to ...
942 * testsuite/17_intro/names.cc: ... here.
943
944 PR libstdc++/79789
945 * include/bits/hashtable_policy.h (__clp2): Use reserved names for
946 parameters and local variables.
947 * include/bits/ios_base.h (make_error_code, make_error_condition):
948 Likewise.
949 * include/bits/list.tcc (list::sort): Likewise.
950 * include/bits/mask_array.h (mask_array): Likewise.
951 * include/bits/regex.h (regex_token_iterator): Likewise.
952 * include/bits/slice_array.h (slice_array): Likewise.
953 * include/bits/stl_algo.h (__sample): Likewise.
954 * include/std/memory (undeclare_no_pointers): Likewise.
955 * include/std/type_traits (is_callable_v, is_nothrow_callable_v):
956 Likewise.
957 * libsupc++/exception_ptr.h (__dest_thunk): Likewise.
958 * testsuite/17_intro/headers/names.cc: New test.
959
960 PR libstdc++/79798
961 * include/std/functional (bind::_Res_type_impl): Fix incorrect use of
962 result_of that loses top-level cv-qualifiers.
963 * testsuite/20_util/bind/79798.cc: New test.
964
965 2017-03-01 Gerald Pfeifer <gerald@pfeifer.com>
966
967 * doc/xml/manual/documentation_hacking.xml: Tweak link to
968 doxygen.org.
969
970 2017-02-23 Jonathan Wakely <jwakely@redhat.com>
971
972 * include/experimental/iterator: Include <iterator>.
973 * testsuite/experimental/iterator/requirements.cc: Check for contents
974 of <iterator>.
975
976 2017-02-19 Dinka Ranns <dinka.ranns@googlemail.com>
977
978 C++17 GB50 resolution
979 * include/std/chrono (duration::operator++()): Add
980 _GLIBCXX17_CONSTEXPR.
981 (duration::operator++(int)): Likewise.
982 (duration::operator--()): Likewise.
983 (duration::operator--(int)): Likewise.
984 (duration::operator+=(const duration&)): Likewise.
985 (duration::operator-=(const duration&)): Likewise.
986 (duration::operator*=(const rep&)): Likewise.
987 (duration::operator/=(const rep&)): Likewise.
988 (duration::operator%=(const rep&)): Likewise.
989 (duration::operator%=(const duration&)): Likewise.
990 (time_point::operator+=(const duration&)): Likewise.
991 (time_point::operator-=(const duration&)): Likewise.
992 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: New test.
993 * testsuite/20_util/duration/literals/range.cc: Adjust dg-error.
994 * testsuite/20_util/time_point/arithmetic/constexpr.cc: New test.
995
996 2017-02-19 Gerald Pfeifer <gerald@pfeifer.com>
997
998 * doc/xml/manual/debug.xml: Adjust link to ThreadSanitizer.
999
1000 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
1001
1002 * doc/xml/manual/io.xml: Update link to groups.google.com.
1003 Tweak link description.
1004
1005 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
1006
1007 * doc/xml/manual/profile_mode.xml: Fix link.
1008
1009 2017-02-16 Gerald Pfeifer <gerald@pfeifer.com>
1010
1011 * doc/xml/manual/policy_data_structures.xml: Simplify and
1012 standardize references to boost.org.
1013 * doc/xml/manual/policy_data_structures_biblio.xml: Ditto.
1014 * doc/xml/manual/shared_ptr.xml: Ditto.
1015
1016 2017-02-16 Jonathan Wakely <jwakely@redhat.com>
1017
1018 PR libstdc++/60936
1019 * src/c++11/snprintf_lite.cc (__concat_size_t): Calculate length
1020 written to buffer, not length remaining in buffer.
1021
1022 2017-02-15 Tim Shen <timshen@google.com>
1023
1024 PR libstdc++/78723
1025 * include/std/variant (operator<(), operator>(), operator<=(),
1026 operator>=(), operator==(), operator!=()): Implement P0393R3.
1027 * testsuite/20_util/variant/compile.cc: Adjust tests.
1028 * testsuite/20_util/variant/run.cc: Adjust tests.
1029
1030 2017-02-15 Tim Shen <timshen@google.com>
1031
1032 PR libstdc++/79513
1033 * include/std/variant (visit()): Forward variant types to the return
1034 type detection code.
1035 * testsuite/20_util/variant/compile.cc: Add test cases.
1036
1037 2017-02-13 H.J. Lu <hongjiu.lu@intel.com>
1038
1039 PR libstdc++/79348
1040 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
1041
1042 2017-02-13 Jakub Jelinek <jakub@redhat.com>
1043
1044 PR libstdc++/79348
1045 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
1046 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
1047 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Likewise.
1048 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
1049 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Likewise.
1050 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
1051 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Likewise.
1052 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
1053 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
1054
1055 2017-02-13 Jonathan Wakely <jwakely@redhat.com>
1056
1057 PR libstdc++/79486
1058 * include/std/future (__future_base::_Task_state::_M_run)
1059 (__future_base::_Task_state::_M_run_delayed): Use lvalue types in
1060 result_of expressions.
1061 * testsuite/30_threads/packaged_task/79486.cc: New.
1062
1063 2017-02-11 Jonathan Wakely <jwakely@redhat.com>
1064
1065 PR libstdc++/79467
1066 * include/bits/shared_ptr_base.h (__shared_ptr(_Yp*, _Deleter))
1067 (__shared_ptr(_Yp*, _Deleter, _Alloc)): Use lvalue types in
1068 __is_callable check.
1069 * testsuite/20_util/shared_ptr/cons/79467.cc: New.
1070
1071 * include/bits/atomic_base.h: Re-indent.
1072
1073 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
1074
1075 * doc/xml/manual/profile_mode.xml: Update a paper reference.
1076
1077 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1078
1079 * src/c++11/snprintf_lite.cc (__err): Use https for bug reporting.
1080
1081 2017-02-08 Jonathan Wakely <jwakely@redhat.com>
1082
1083 * doc/xml/manual/policy_data_structures.xml: Fix spelling of author's
1084 name.
1085 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise. Remove
1086 broken links to texts that are no longer online.
1087 * doc/xml/manual/profile_mode.xml: Update links to CGO 2009 paper and
1088 LCPC 2006 paper.
1089 * doc/xml/manual/using.xml: Update links to memory model information.
1090 * doc/xml/manual/using_exceptions.xml: Update link to "Appendix E:
1091 Standard-Library Exception Safety".
1092 * doc/html/*: Regenerate.
1093
1094 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1095
1096 * doc/xml/manual/profile_mode.xml: Unbreak link to
1097 "Optimizing Sorting with Machine Learning Algorithms".
1098
1099 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1100
1101 * src/c++11/snprintf_lite.cc (__err): Update bug reporting URL.
1102
1103 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1104
1105 * doc/xml/manual/abi.xml: Update link to "Sun Studio 11: C++
1106 Migration Guide".
1107
1108 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
1109
1110 * doc/html/ext/lwg-active.html: Remove.
1111 * doc/html/ext/lwg-closed.html: Ditto.
1112 * doc/html/ext/lwg-defects.html: Ditto.
1113
1114 * doc/Makefile.am (xml_extradir): Remove.
1115 (xml_extra): Ditto.
1116 (stamp-html-docbook-lwg): Remove recipe...
1117 (stamp-html-docbook-data): ...and its use here.
1118 * doc/Makefile.in: Regenerate.
1119
1120 * doc/xml/manual/intro.xml: Shorten two paragraphs explaining
1121 the relationship to the upstream working group.
1122 Replace a local link to ../ext/lwg-active.html by the upstream one.
1123 Replace all reference to ../ext/lwg-defects.html by a new entity
1124 &DR; which refers to the upstream address.
1125
1126 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
1127
1128 * doc/xml/manual/status_cxx2017.xml: Fix link to N4284.
1129
1130 2017-02-06 Jonathan Wakely <jwakely@redhat.com>
1131
1132 PR libstdc++/79323
1133 * testsuite/20_util/duration/literals/range.cc: Prune extra output
1134 at -O0.
1135
1136 2017-02-06 Gerald Pfeifer <gerald@pfeifer.com>
1137
1138 * doc/xml/manual/documentation_hacking.xml: Update URL of the
1139 DocBook Element Reference. Use that term as link description
1140 instead of "online".
1141 epubcheck has moved to GitHub.
1142 Remove obsolete link to DocBook Publishing Tools.
1143
1144 2017-02-03 Jonathan Wakely <jwakely@redhat.com>
1145
1146 PR libstdc++/66145
1147 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Restore ABI override
1148 so new ios::failure can be caught even when old ABI is the default.
1149 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1150 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1151 exceptions_failbit.cc: Likewise.
1152 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1153 exceptions_failbit.cc: Likewise.
1154 * testsuite/27_io/basic_istream/extractors_other/char/
1155 exceptions_null.cc: Likewise.
1156 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1157 exceptions_null.cc: Likewise.
1158 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1159 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1160 * testsuite/27_io/basic_ostream/inserters_other/char/
1161 exceptions_null.cc: Likewise.
1162 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1163 exceptions_null.cc: Likewise.
1164 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1165
1166 PR libstdc++/60936
1167 * src/c++11/Makefile.am: Add new files.
1168 * src/c++11/Makefile.in: Regenerate.
1169 * src/c++11/cow-string-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
1170 (operator<<, operator>>, getline): Move explicit instantiations to ...
1171 * src/c++11/cow-string-io-inst.cc: ... new file.
1172 * src/c++11/cow-wstring-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
1173 (operator<<, operator>>, getline): Move explicit instantiations to ...
1174 * src/c++11/cow-wstring-io-inst.cc: ... new file.
1175 * src/c++11/functexcept.cc (__throw_ios_failure, __throw_system_error)
1176 (__throw_future_error, __throw_bad_function_call):
1177 (__throw_regex_error): Move functions for C++11 exceptions to the
1178 files that define the exception types.
1179 * src/c++11/functional.cc (__throw_bad_function_call): Move here.
1180 * src/c++11/future.cc (__throw_future_error): Likewise.
1181 * src/c++11/ios.cc (__throw_ios_failure): Likewise.
1182 * src/c++11/regex.cc (__throw_regex_error): Likewise.
1183 * src/c++11/snprintf_lite.cc (__concat_size_t): Print decimal
1184 representation directly instead of calling __int_to_char.
1185 * src/c++11/sso_string.cc (__sso_string): New file for definition
1186 of __sso_string type.
1187 * src/c++11/string-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
1188 explicit instantiations of narrow string I/O functions.
1189 * src/c++11/system_error.cc (__throw_system_error): Move here.
1190 (__sso_string): Move to new file.
1191 * src/c++11/wstring-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
1192 explicit instantiations of wide string I/O functions.
1193 * src/c++98/misc-inst.cc [_GLIBCXX_USE_CXX11_ABI] (operator<<)
1194 (operator>>, getline): Remove explicit instantiations from here.
1195
1196 2017-02-02 H.J. Lu <hongjiu.lu@intel.com>
1197
1198 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
1199
1200 2017-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1201
1202 * configure.host: Separate Solaris/SPARC and x86 baselines.
1203 * config/abi/post/solaris2.10/baseline_symbols.txt: Move ...
1204 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: ... here.
1205 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Move ...
1206 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
1207 ... here.
1208 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Move ...
1209 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: ... here.
1210 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: New file.
1211 * config/abi/post/solaris2.11/baseline_symbols.txt: Move ...
1212 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: ... here.
1213 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Move ...
1214 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
1215 ... here.
1216 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Move ...
1217 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: ... here.
1218 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: New file.
1219
1220 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
1221 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
1222 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
1223 * config/abi/post/solaris2.11/baseline_symbols.txt: Likewise.
1224 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Likewise.
1225 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Likewise.
1226
1227 2017-02-01 Jonathan Wakely <jwakely@redhat.com>
1228
1229 PR libstdc++/78346
1230 * include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
1231 not its referent.
1232 (_Iter_comp_to_iter): Likewise.
1233 * testsuite/25_algorithms/search/78346.cc: New test.
1234
1235 PR libstdc++/79254
1236 * config/abi/pre/gnu.ver: Remove recently added symbols.
1237 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1238 (basic_string::_M_copy_assign): Remove.
1239 (basic_string::operator=(const basic_string&)): Don't dispatch to
1240 _M_copy_assign. If source object is small just deallocate, otherwise
1241 perform new allocation before making any changes.
1242 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
1243 (basic_string::_M_copy_assign(const basic_string&, true_type)):
1244 Remove.
1245 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1246 Test cases where the allocators are equal or the string is small.
1247 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1248 Likewise.
1249
1250 2017-01-30 Ville Voutilainen <ville.voutilainen@gmail.com>
1251
1252 Implement LWG 2825, LWG 2756 breaks class template argument
1253 deduction for optional.
1254 * include/std/optional: Add a deduction guide.
1255 * testsuite/20_util/optional/cons/deduction_guide.cc: New.
1256
1257 2017-01-27 Jonathan Wakely <jwakely@redhat.com>
1258
1259 PR libstdc++/79254
1260 * config/abi/pre/gnu.ver: Add new symbols.
1261 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1262 (basic_string::_M_copy_assign): New overloaded functions to perform
1263 copy assignment.
1264 (basic_string::operator=(const basic_string&)): Dispatch to
1265 _M_copy_assign.
1266 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
1267 (basic_string::_M_copy_assign(const basic_string&, true_type)):
1268 Define, performing rollback on exception.
1269 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1270 Test exception-safety guarantee.
1271 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1272 Likewise.
1273 * testsuite/util/testsuite_allocator.h (uneq_allocator::swap): Make
1274 std::swap visible.
1275
1276 2017-01-26 Jonathan Wakely <jwakely@redhat.com>
1277
1278 PR libstdc++/70607
1279 * include/tr1/complex (conj): Remove using-declaration and restore
1280 overloads, reverting previous change.
1281
1282 * testsuite/23_containers/list/operations/78389.cc: Fix for C++11
1283 mode.
1284 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
1285 Mark as unsupported in C++98 mode.
1286 * testsuite/23_containers/queue/requirements/constructible.cc:
1287 Likewise.
1288 * testsuite/23_containers/stack/requirements/constructible.cc:
1289 Likewise.
1290 * testsuite/25_algorithms/make_heap/movable.cc: Fix for C++11 mode.
1291
1292 PR libstdc++/79243
1293 * include/bits/c++config (literals::string_view_literals::__7): Add.
1294 Only declare versioned namespaces for the relevant C++ dialects.
1295 * include/experimental/bits/erase_if.h (fundamentals_v2::__detail):
1296 Add versioning macros.
1297 * include/experimental/bits/lfts_config.h:
1298 (fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add.
1299 * include/experimental/string_view (fundamentals_v2::__detail):
1300 Add versioning macros.
1301 (fundamentals_v2::__detail::__identity): Remove.
1302 (fundamentals_v2::__detail::__idt): Use common_type instead of
1303 __detail::__identity.
1304 * include/std/string_view (__detail::__identity, __detail::__idt):
1305 Likewise.
1306 (literals::string_view_literals): Fix nesting of versioning macros.
1307
1308 PR libstdc++/79190
1309 * libsupc++/del_opa.cc (operator delete(void*, std::align_val_t))
1310 [!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN
1311 && !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC]:
1312 Retrieve original pointer value allocated by malloc.
1313 * libsupc++/new_opa.cc [!_GLIBCXX_HAVE_ALIGNED_ALLOC
1314 && !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN
1315 && !_GLIBCXX_HAVE__ALIGNED_MALLOC] (aligned_alloc(size_t, size_t)):
1316 Define, adjusting pointer value allocated by malloc and storing for
1317 retrieval by operator delete.
1318
1319 2017-01-26 Jakub Jelinek <jakub@redhat.com>
1320
1321 * libsupc++/eh_atomics.h: Update copyright years.
1322 * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years.
1323
1324 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
1325
1326 PR libstdc++/61791
1327 PR libstdc++/70607
1328 * include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
1329 (proj(T), conj(T)): Change return types per DR 1522.
1330 * include/tr1/complex (conj): Remove overloads and use std::conj.
1331 * testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
1332 * testsuite/26_numerics/complex/dr781.cc: ... this, and update.
1333 * testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
1334 real(T) and imag(T). Allow testing for C++11 too.
1335
1336 2017-01-24 Jonathan Wakely <jwakely@redhat.com>
1337
1338 PR libstdc++/79206
1339 * include/experimental/string_view (operator==): Check sizes first.
1340 * include/std/string_view (operator==): Likewise.
1341
1342 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
1343
1344 * testsuite/experimental/array/make_array.cc: Restore <functional>
1345 inclusion.
1346
1347 2017-01-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
1348
1349 * testsuite/29_atomics/atomic/69301.cc: Require atomic builtins.
1350
1351 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
1352
1353 PR libstdc++/79195
1354 * include/experimental/array (__make_array_elem): New class template
1355 and partial specialization.
1356 (__is_reference_wrapper): Move into __make_array_elem specialization.
1357 (make_array): Use __make_array_elem to determine element type and move
1358 static assertion into specialization. Qualify std::forward call.
1359 (to_array): Add exception specifiation.
1360 * testsuite/experimental/array/make_array.cc: Test argument types
1361 without a common type.
1362 * testsuite/experimental/array/neg.cc: Adjust expected error message.
1363
1364 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
1365
1366 * doc/xml/manual/debug.xml: code.google.com uses https now.
1367
1368 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
1369
1370 * doc/xml/manual/test.xml: Fix link into gccint online manual.
1371
1372 2017-01-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1373
1374 Make poisoned hashes SFINAE away the call operator of the hash.
1375 * include/bits/functional_hash.h
1376 (__poison_hash::__enable_hash_call): New.
1377 * include/std/optional (__optional_hash_call_base): New.
1378 (hash<optional<_Tp>>): Derive from the new base,
1379 move the hash function into that base.
1380 * include/std/variant (__variant_hash_call_base_impl): New.
1381 (__variant_hash_call_base): Likewise.
1382 (hash<variant<_Types...>>): Derive from the new base,
1383 move the hash function into that base.
1384 * testsuite/20_util/optional/hash.cc: Add tests for is_callable.
1385 * testsuite/20_util/variant/hash.cc: Likewise.
1386
1387 2017-01-20 Joe Seymour <joe.s@somniumtech.com>
1388
1389 * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t.
1390 * configure: Regenerate.
1391
1392 2017-01-20 Jonathan Wakely <jwakely@redhat.com>
1393
1394 PR libstdc++/69240
1395 * include/bits/random.h (uniform_real_distribution::param_type)
1396 (normal_distribution::param_type, lognormal_distribution::param_type)
1397 (gamma_distribution::param_type, chi_squared_distribution::param_type)
1398 (cauchy_distribution::param_type, fisher_f_distribution::param_type)
1399 (student_t_distribution::param_type)
1400 (bernoulli_distribution::param_type, binomial_distribution::param_type)
1401 (geometric_distribution::param_type)
1402 (negative_binomial_distribution::param_type)
1403 (poisson_distribution::param_type)
1404 (exponential_distribution::param_type)
1405 (weibull_distribution::param_type)
1406 (extreme_value_distribution::param_type)
1407 (discrete_distribution::param_type)
1408 (piecewise_constant_distribution::param_type)
1409 (piecewise_linear_distribution::param_type): Define operator!=.
1410 * include/bits/uniform_int_dist.h
1411 (uniform_int_distribution::param_type): Likewise.
1412 * include/ext/random (beta_distribution::param_type)
1413 (rice_distribution::param_type, nakagami_distribution::param_type)
1414 (pareto_distribution::param_type, k_distribution::param_type)
1415 (arcsine_distribution::param_type, hoyt_distribution::param_type)
1416 (triangular_distribution::param_type)
1417 (von_mises_distribution::param_type)
1418 (hypergeometric_distribution::param_type)
1419 (logistic_distribution::param_type)
1420 (uniform_on_sphere_distribution::param_type)
1421 (uniform_inside_sphere_distribution::param_type): Likewise.
1422 * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc:
1423 Test construction with param_type.
1424 * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc:
1425 Likewise.
1426 * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
1427 Likewise.
1428 * testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc:
1429 Likewise.
1430 * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
1431 Likewise.
1432 * testsuite/26_numerics/random/extreme_value_distribution/cons/
1433 parms.cc: Likewise.
1434 * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc:
1435 Likewise.
1436 * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc:
1437 Likewise.
1438 * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc:
1439 Likewise.
1440 * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc:
1441 Likewise.
1442 * testsuite/26_numerics/random/negative_binomial_distribution/cons/
1443 parms.cc: Likewise.
1444 * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
1445 Likewise.
1446 * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc:
1447 Likewise.
1448 * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
1449 Likewise.
1450 * testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc:
1451 Likewise.
1452 * testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc:
1453 Likewise.
1454 * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc:
1455 Likewise.
1456 * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise.
1457 * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise.
1458 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
1459 * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc:
1460 Likewise.
1461 * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise.
1462 * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise.
1463 * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise.
1464 * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
1465 * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise.
1466 * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise.
1467 * testsuite/ext/random/triangular_distribution/cons/parms.cc:
1468 Likewise.
1469 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/
1470 parms.cc: Likewise.
1471 * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise.
1472
1473 PR libstdc++/72792
1474 * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
1475 (__allocator_traits_base::__size_type): Remove.
1476 (allocator_traits::_Ptr): New class template to detect const and void
1477 pointer types without instantiating pointer_traits::rebind
1478 unnecessarily.
1479 (allocator_traits::_Diff): Likewise for detecting difference_type.
1480 (allocator_traits::_Size): New class template to detect size_type
1481 without instantiating make_unsigned unnecessarily.
1482 * include/bits/ptr_traits.h (pointer_traits::element_type): Use
1483 __detected_or_t instead of __detected_or_t_.
1484 * include/std/type_traits (__detected_or_t_): Remove.
1485 * testsuite/20_util/allocator_traits/members/pointers.cc: New test.
1486
1487 PR libstdc++/72792
1488 PR libstdc++/72793
1489 * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
1490 Replace with class template using void_t.
1491 (__alloc_rebind): Define in terms of
1492 __allocator_traits_base::__rebind.
1493 (allocator_traits): Remove unconditional static_assert for
1494 rebind_alloc.
1495 * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
1496 (pointer_traits::__rebind): Replace with class template using void_t.
1497 (pointer_traits::rebind): Define in terms of __rebind.
1498 (pointer_traits): Remove unconditional static_assert for rebind.
1499 * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
1500 * testsuite/20_util/pointer_traits/rebind.cc: New test.
1501
1502 PR libstdc++/69321
1503 * include/experimental/any (__any_caster): Avoid instantiating
1504 manager function for types that can't be stored in any.
1505 * include/std/any (__any_caster): Likewise.
1506 * testsuite/20_util/any/misc/any_cast.cc: Test non-copyable type.
1507 * testsuite/experimental/any/misc/any_cast.cc: Likewise.
1508
1509 PR libstdc++/64903
1510 * include/bits/stl_algo.h (is_partitioned): Use increment instead of
1511 std::advance.
1512
1513 2017-01-19 Jonathan Wakely <jwakely@redhat.com>
1514
1515 PR libstdc++/79156
1516 * include/bits/shared_ptr_base.h (__enable_shared_from_this_base):
1517 Fix return type.
1518 (__enable_shared_from_this): Declare __shared_ptr as a friend.
1519 * testsuite/ext/shared_ptr/1.cc: New test.
1520
1521 PR libstdc++/64903
1522 * include/bits/stl_algo.h (is_partitioned): Don't retest the partition
1523 point.
1524 * testsuite/25_algorithms/is_partitioned/2.cc: New test.
1525
1526 * doc/xml/manual/abi.xml: Fix typo.
1527 * doc/html/manual/abi.html: Likewise.
1528
1529 PR libstdc++/67085
1530 * include/bits/predefined_ops.h (_Iter_less_val, _Val_less_iter): Add
1531 converting constructors from _Iter_less_iter.
1532 (_Iter_comp_val, _Val_comp_iter): Add converting constructors from
1533 _Iter_comp_iter.
1534 (__iter_comp_val(_Iter_comp_iter<C>): Use converting constructor.
1535 (__val_comp_iter(_Iter_comp_iter<C>): Likewise.
1536 * include/bits/stl_heap.h (__is_heap_until, __push_heap, __pop_heap)
1537 (__make_heap, __sort_heap): Change _Compare parameters to references.
1538 (__is_heap, push_heap, __adjust_heap, __pop_heap, pop_heap)
1539 (__make_heap, make_heap, sort_heap, is_heap_until): Pass comparison
1540 functions as lvalues.
1541 (is_heap): Call __is_heap_until directly to avoid copying __comp.
1542 * testsuite/23_containers/priority_queue/67085.cc: Adjust test to
1543 count copies during construction with empty sequence.
1544
1545 PR libstdc++/67085
1546 * include/bits/stl_heap.h (__is_heap): Use _GLIBCXX_MOVE.
1547 (__make_heap, __sort_heap): Don't use _GLIBCXX_MOVE inside loops.
1548 * testsuite/23_containers/priority_queue/67085.cc: Adjust expected
1549 number of copies.
1550 * testsuite/25_algorithms/make_heap/movable.cc: New test.
1551
1552 PR libstdc++/67085
1553 * include/bits/stl_heap.h (push_heap, __adjust_heap, __pop_heap)
1554 (pop_heap, __make_heap, make_heap, __sort_heap, sort_heap): Use
1555 _GLIBCXX_MOVE when passing comparison function to other functions.
1556 (is_heap_until, is_heap): Use std::move when passing comparison
1557 function.
1558 * testsuite/23_containers/priority_queue/67085.cc: New test.
1559
1560 PR libstdc++/78905
1561 * doc/xml/manual/abi.xml (abi.versioning.history): Add markup to
1562 macro names, filenames, and literal values. Document _GLIBCXX_RELEASE.
1563 Document that the deprecated _GLIBCXX_VERSION macro was removed for
1564 the 4.0.0 release.
1565 * doc/html/*: Regenerate.
1566 * include/Makefile.am (_GLIBCXX_RELEASE): Set value.
1567 * include/Makefile.in: Regenerate.
1568 * include/bits/c++config (_GLIBCXX_RELEASE): Add #define.
1569 * testsuite/ext/profile/mutex_extensions_neg.cc: Use lineno of 0 in
1570 dg-error.
1571
1572 2017-01-18 Jonathan Wakely <jwakely@redhat.com>
1573
1574 PR libstdc++/69301
1575 * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
1576 aligned buffer instead of default-initialized variable.
1577 * testsuite/29_atomics/atomic/69301.cc: New test.
1578 * include/experimental/memory (observer_ptr::release): Use reserved
1579 name.
1580 * include/ext/pointer.h (_Pointer_adapter::operator++(int))
1581 (_Pointer_adapter::operator--(int)): Likewise.
1582
1583 PR libstdc++/68925
1584 * include/experimental/random (randint): Use temporary instead of
1585 thread_local static.
1586
1587 2017-01-17 Joshua Conner <joshconner@google.com>
1588
1589 * crossconfig.m4: Add fuchsia OS.
1590 * configure: Regenerate.
1591
1592 2017-01-17 Jonathan Wakely <jwakely@redhat.com>
1593
1594 PR libstdc++/69699
1595 * doc/xml/manual/abi.xml (abi.versioning.history): Explain why the
1596 __GLIBCXX__ macro is not useful. Remove redundant date information
1597 and link to the GCC release timeline.
1598 (abi.versioning.active): Move partial sentence into the previous
1599 paragraph.
1600 * doc/html/*: Regenerate.
1601
1602 PR libstdc++/79114
1603 * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
1604 of remove_reference.
1605 * testsuite/18_support/nested_exception/79114.cc: New test.
1606
1607 2017-01-17 Jakub Jelinek <jakub@redhat.com>
1608
1609 PR other/79046
1610 * configure.ac: Add GCC_BASE_VER.
1611 * fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
1612 get version from BASE-VER file.
1613 * po/Makefile.in: Regenerated.
1614 * libsupc++/Makefile.in: Regenerated.
1615 * testsuite/Makefile.in: Regenerated.
1616 * src/Makefile.in: Regenerated.
1617 * configure: Regenerated.
1618 * Makefile.in: Regenerated.
1619 * include/Makefile.in: Regenerated.
1620 * doc/Makefile.in: Regenerated.
1621 * python/Makefile.in: Regenerated.
1622 * src/c++11/Makefile.in: Regenerated.
1623 * src/c++98/Makefile.in: Regenerated.
1624 * src/filesystem/Makefile.in: Regenerated.
1625
1626 2017-01-16 Jonathan Wakely <jwakely@redhat.com>
1627
1628 PR libstdc++/66145
1629 * src/c++11/functexcept.cc: Use new ABI for std::ios_base::failure
1630 exceptions.
1631 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Don't override ABI
1632 for test, so new ios::failure can be caught.
1633 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1634 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1635 exceptions_failbit.cc: Likewise.
1636 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1637 exceptions_failbit.cc: Likewise.
1638 * testsuite/27_io/basic_istream/extractors_other/char/
1639 exceptions_null.cc: Likewise.
1640 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1641 exceptions_null.cc: Likewise.
1642 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1643 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1644 * testsuite/27_io/basic_ostream/inserters_other/char/
1645 exceptions_null.cc: Likewise.
1646 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1647 exceptions_null.cc: Likewise.
1648 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1649
1650 PR libstdc++/78702
1651 * include/bits/locale_classes.h (locale::facet::__shim): Change from
1652 private to protected.
1653 * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
1654 make locale::facet::__shim accessible.
1655
1656 2017-01-16 Ville Voutilainen <ville.voutilainen@gmail.com>
1657
1658 PR libstdc++/78389
1659 * include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
1660 (merge(list&&, _StrictWeakOrdering)): Likewise.
1661 * testsuite/23_containers/list/operations/78389.cc: Add
1662 better test for the sizes.
1663
1664 2017-01-14 Jonathan Wakely <jwakely@redhat.com>
1665
1666 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
1667 Skip test when -D_GLIBCXX_PROFILE mode is included in options.
1668 * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
1669 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
1670 Likewise.
1671 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
1672 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
1673 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
1674 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
1675 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
1676 Likewise.
1677 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
1678 Likewise.
1679 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
1680 Likewise.
1681 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
1682 Likewise.
1683 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
1684 Likewise.
1685 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
1686 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
1687 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
1688 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
1689 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
1690 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
1691 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
1692 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
1693 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
1694 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
1695 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
1696 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
1697 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1698
1699 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
1700
1701 PR libstdc++/65411
1702 * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
1703 retry fclose on EINTR.
1704
1705 * include/profile/base.h: Remove unused header that leads to header
1706 cycle in C++17 mode.
1707
1708 PR libstdc++/79075
1709 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
1710 Make _If_sv private.
1711 [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
1712 basic_string_view arguments.
1713
1714 PR libstdc++/79075
1715 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
1716 redundant option from cxxflags.
1717 (check_effective_target_cxx11-abi): Define.
1718 * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
1719 effective target.
1720 * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
1721 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1722 Likewise.
1723 * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
1724 Likewise.
1725 * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
1726 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
1727 Likewise.
1728 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
1729 Likewise.
1730 * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
1731 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
1732 Likewise.
1733 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1734 Likewise.
1735 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
1736 Likewise.
1737 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
1738 Likewise.
1739 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
1740 Likewise.
1741 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
1742 Likewise.
1743 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
1744 Likewise.
1745 * testsuite/23_containers/list/61347.cc: Likewise.
1746 * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
1747 * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
1748
1749 2017-01-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1750
1751 PR libstdc++/78389
1752 * include/bits/list.tcc (merge(list&&)):
1753 Adjust list sizes if the comparator throws.
1754 (merge(list&&, _StrictWeakOrdering)): Likewise.
1755 (sort()): Splice elements back from the scratch buffers
1756 if the comparator throws.
1757 (sort(_StrictWeakOrdering)): Likewise.
1758 * testsuite/23_containers/list/operations/78389.cc: New.
1759
1760 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
1761
1762 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
1763 XFAIL for C++17 until node reinsertion supports fancy pointers.
1764
1765 PR libstdc++/78361
1766 * testsuite/20_util/add_pointer/value.cc: Test forming function
1767 pointers.
1768
1769 2017-01-13 Michael Brune <lucdanton@free.fr>
1770
1771 PR libstdc++/78361
1772 * include/std/type_traits (__is_referenceable): Handle noexcept
1773 function types.
1774
1775 2017-01-12 Jonathan Wakely <jwakely@redhat.com>
1776
1777 PR libstdc++/77528
1778 * include/bits/stl_queue.h (queue, priority_queue): Remove default
1779 member-initializers and define default constructors as templates with
1780 constraints.
1781 * include/bits/stl_stack.h (stack): Likewise.
1782 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
1783 New.
1784 * testsuite/23_containers/priority_queue/requirements/
1785 explicit_instantiation/1.cc: Test more instantiations.
1786 * testsuite/23_containers/priority_queue/requirements/
1787 explicit_instantiation/1_c++98.cc: Likewise.
1788 * testsuite/23_containers/queue/requirements/constructible.cc: New.
1789 * testsuite/23_containers/stack/requirements/constructible.cc: New.
1790
1791 PR libstdc++/66284
1792 * doc/xml/manual/intro.xml: Document LWG 2781 change.
1793 * doc/html/*: Regenerate.
1794 * include/std/functional (_Function_base::_Ref_manager): Remove.
1795 (_Function_handler): Remove partial specializations for
1796 reference_wrapper.
1797 (function::target): Remove special case for const qualification.
1798 * testsuite/20_util/function/6.cc: Adjust tests for target type.
1799 * testsuite/20_util/function/7.cc: Likewise.
1800 * testsuite/20_util/function/8.cc: Likewise.
1801
1802 2017-01-11 Jonathan Wakely <jwakely@redhat.com>
1803
1804 PR libstdc++/78134
1805 * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
1806 (map::equal_range): Fix return type of heterogeneous overloads.
1807 * include/bits/stl_multimap.h (multimap::lower_bound)
1808 (multimap::upper_bound, multimap::equal_range): Likewise.
1809 * include/bits/stl_multiset.h (multiset::lower_bound)
1810 (multiset::upper_bound, multiset::equal_range): Likewise.
1811 * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
1812 (set::equal_range): Likewise.
1813 * testsuite/23_containers/map/operations/2.cc
1814 * testsuite/23_containers/multimap/operations/2.cc
1815 * testsuite/23_containers/multiset/operations/2.cc
1816 * testsuite/23_containers/set/operations/2.cc
1817
1818 PR libstdc++/78273
1819 * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
1820 the heterogeneous comparison can only find one match.
1821 * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
1822 * testsuite/23_containers/map/operations/2.cc: Test count works with
1823 comparison function that just partitions rather than sorting.
1824 * testsuite/23_containers/set/operations/2.cc: Likewise.
1825
1826 2017-01-11 Ville Voutilainen <ville.voutilainen@gmail.com>
1827
1828 Reduce the size of variant, it doesn't need an index of
1829 type size_t internally.
1830 * include/std/variant (parse_numbers.h): New include.
1831 (__select_index): New.
1832 (_Variant_storage<false, _Types...>::_M_reset_impl): Use
1833 _index_type for comparison with variant_npos.
1834 (_Variant_storage<false, _Types...>::__index_type): New.
1835 (_Variant_storage<false, _Types...>::_M_index): Change the
1836 type from size_t to __index_type.
1837 (_Variant_storage<true, _Types...>::__index_type): New.
1838 (_Variant_storage<true, _Types...>::_M_index): Change the
1839 type from size_t to __index_type.
1840 (_Variant_base::_M_valid): Use _Storage::__index_type
1841 for comparison with variant_npos.
1842 (variant::index): Use _Base::_Storage::__index_type
1843 for comparison with variant_npos.
1844 * testsuite/20_util/variant/index_type.cc: New.
1845
1846 2017-01-10 Jonathan Wakely <jwakely@redhat.com>
1847
1848 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
1849 effective target selector to prevent running in C++17 mode.
1850
1851 PR libstdc++/77528
1852 * include/bits/stl_queue.h (queue::c): Add default member initializer.
1853 (queue::queue()): Add constructor and define as defaulted.
1854 (queue::queue(_Sequence&&)): Remove default argument.
1855 (priority_queue::c, priority_queue::comp): Add default member
1856 initializers.
1857 (priority_queue::priority_queue()): Add constructor and define as
1858 defaulted.
1859 (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
1860 Remove default argument for first parameter.
1861 * include/bits/stl_stack.h (stack::c): Add default member initializer.
1862 (stack::stack()): Add constructor and define as defaulted.
1863 (stack::stack(const _Sequence&)): Remove default argument.
1864 * testsuite/23_containers/priority_queue/requirements/
1865 explicit_instantiation/1.cc: Test explicit instantiation with
1866 non-DefaultConstructible sequence.
1867 * testsuite/23_containers/priority_queue/77528.cc: New test.
1868 * testsuite/23_containers/priority_queue/requirements/
1869 explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
1870 * testsuite/23_containers/queue/77528.cc: New test.
1871 * testsuite/23_containers/queue/requirements/explicit_instantiation/
1872 1.cc: Test explicit instantiation with non-DefaultConstructible
1873 sequence.
1874 * testsuite/23_containers/queue/requirements/explicit_instantiation/
1875 1_c++0x.cc: Replace with 1_c++98.cc.
1876 * testsuite/23_containers/stack/77528.cc: New test.
1877 * testsuite/23_containers/stack/requirements/explicit_instantiation/
1878 1.cc: Test explicit instantiation with non-DefaultConstructible
1879 sequence.
1880 * testsuite/23_containers/stack/requirements/explicit_instantiation/
1881 1_c++0x.cc: Replace with 1_c++98.cc.
1882
1883 2017-01-10 Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
1884
1885 * include/bits/locale_facets_nonio.tcc
1886 (time_get::_M_extract_via_format): Avoid compilation errors with
1887 non-standard struct tm.
1888
1889 2017-01-10 François Dumont <fdumont@gcc.gnu.org>
1890 Jonathan Wakely <jwakely@redhat.com>
1891
1892 * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
1893 (is_specialization, strip_versioned_namespace): New helpers functions
1894 to work with symbols in the versioned namespace.
1895 (Printer.add_version): Add second name using versioned namespace.
1896 (add_one_template_type_printer, add_one_type_printer): Add second
1897 type printers using versioned namespace.
1898 (register_type_printers): Add template type printer for basic_string.
1899 (build_libstdcxx_dictionary): Remove dead code.
1900 * python/libstdcxx/v6/xmethods.py: Make all matchers look for
1901 versioned namespace.
1902 * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
1903 results.
1904 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1905
1906 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
1907
1908 PR libstdc++/79017
1909 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
1910 functions separately on darwin and if they're missing define
1911 _GLIBCXX_NO_C99_ROUNDING_FUNCS.
1912 * config.h.in: Regenerate.
1913 * configure: Regenerate.
1914 * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
1915 (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
1916
1917 * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
1918 to detect correct thread_local destructors.
1919 * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
1920 Define.
1921
1922 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
1923 Aditya Kumar <hiraditya@msn.com>
1924
1925 PR libstdc++/66414
1926 * include/bits/basic_string.tcc
1927 (basic_string::find(const CharT*, size_type, size_type)): Optimize.
1928
1929 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
1930
1931 * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
1932 * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
1933
1934 * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
1935 Include <cassert> header.
1936
1937 PR libstdc++/78968
1938 * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
1939 * configure: Regenerate.
1940
1941 2017-01-06 Barrett Adair <barrettellisadair@gmail.com>
1942 Jonathan Wakely <jwakely@redhat.com>
1943
1944 * include/std/variant (variant, swap): Replace __and_ usage with fold
1945 expressions.
1946
1947 2017-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1948
1949 PR go/78978
1950 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
1951 * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
1952 GLIBCXX_CHECK_ASSEMBLER_HWCAP.
1953 * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
1954 HWCAP_FLAGS.
1955 * aclocal.m4: Regenerate.
1956 * configure: Regenerate.
1957 * Makefile.in, doc/Makefile.in, include/Makefile.in,
1958 libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
1959 src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
1960 src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
1961
1962 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
1963
1964 * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
1965
1966 PR libstdc++/78991
1967 * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
1968 (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
1969 (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
1970 move function objects.
1971 (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
1972 (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
1973 * testsuite/25_algorithms/sort/78991.cc: New test.
1974
1975 2017-01-05 Jonathan Wakely <jwakely@redhat.com>
1976
1977 * include/bits/std_function.h (function::_Signature_type): Remove.
1978 (function::function(_Functor)): Adjust.
1979
1980 2017-01-05 Tim Shen <timshen@google.com>
1981
1982 PR libstdc++/78996
1983 * include/std/variant (__gen_vtable_impl): rename __unused to
1984 __dimensions to avoid naming conflict.
1985
1986 2017-01-04 Jonathan Wakely <jwakely@redhat.com>
1987
1988 PR libstdc++/78968
1989 * config.h.in: Regenerate.
1990 * configure: Likewise.
1991 * configure.ac: Check for __cxa_thread_atexit.
1992 * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
1993 Don't define __cxa_thread_atexit if libc provides it.
1994
1995 2017-01-04 Ville Voutilainen <ville.voutilainen@gmail.com>
1996
1997 Implement 2801, Default-constructibility of unique_ptr.
1998 * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
1999 (unique_ptr::_DeleterConstraint): Likewise.
2000 (unique_ptr()): Constrain.
2001 (unique_ptr(pointer)): Likewise.
2002 (unique_ptr(nullptr_t)): Likewise.
2003 (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
2004 (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
2005 (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
2006 (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
2007 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
2008 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
2009 * testsuite/20_util/unique_ptr/cons/default.cc: New.
2010 * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
2011
2012 2017-01-04 Pauli Nieminen <suokkos@gmail.com>
2013 Jonathan Wakely <jwakely@redhat.com>
2014
2015 PR libstdc++/64735
2016 * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
2017 * config.h.in: Regenerate.
2018 * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
2019 (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
2020 exports for exception_ptr, nested_exception, and future conditional.
2021 [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
2022 exports for exception_ptr, nested_exception, and future conditional.
2023 * configure: Regenerate.
2024 * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
2025 * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
2026 * libsupc++/eh_atomics.h: New file for internal use only.
2027 (__eh_atomic_inc, __eh_atomic_dec): New.
2028 * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
2029 (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
2030 (rethrow_exception): Use eh_atomics.h reference counting helpers.
2031 * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
2032 * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
2033 * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
2034 * libsupc++/exception_ptr.h: Likewise.
2035 * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
2036 * libsupc++/nested_exception.cc: Remove check for
2037 ATOMIC_INT_LOCK_FREE.
2038 * libsupc++/nested_exception.h: Likewise.
2039 * src/c++11/future.cc: Likewise.
2040 * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
2041 * testsuite/18_support/nested_exception/*: Likewise.
2042 * testsuite/30_threads/async/*: Likewise.
2043 * testsuite/30_threads/future/*: Likewise.
2044 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
2045 * testsuite/30_threads/packaged_task/*: Likewise.
2046 * testsuite/30_threads/promise/*: Likewise.
2047 * testsuite/30_threads/shared_future/*: Likewise.
2048
2049 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
2050
2051 * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
2052 defaults to https; adjust reference.
2053
2054 2017-01-03 Jonathan Wakely <jwakely@redhat.com>
2055
2056 PR libstdc++/78956
2057 * include/std/thread (thread(const thread&&)): Add deleted
2058 constructor.
2059 * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
2060
2061 * doc/xml/manual/spine.xml: Update copyright years.
2062 * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
2063 * doc/xml/manual/test.xml: Likewise.
2064 * doc/html/*: Regenerate.
2065
2066 2017-01-01 Gerald Pfeifer <gerald@pfeifer.com>
2067
2068 * doc/xml/faq.xml: Update address of C++ ABI link.
2069 * doc/xml/manual/abi.xml: Ditto.
2070
2071 2017-01-01 Jakub Jelinek <jakub@redhat.com>
2072
2073 Update copyright years.
2074 \f
2075 Copyright (C) 2017 Free Software Foundation, Inc.
2076
2077 Copying and distribution of this file, with or without modification,
2078 are permitted in any medium without royalty provided the copyright
2079 notice and this notice are preserved.