1 2017-09-15 Jakub Jelinek <jakub@redhat.com>
3 * testsuite/libstdc++-prettyprinters/cxx17.cc: Use -std=c++17 or
4 -std=gnu++17 instead of -std=c++1z or -std=gnu++1z. Use c++17 instead
5 of c++1z and c++17_only instead of c++1z_only. Adjust expected
6 diagnostics and comments refering to 1z to 17.
7 * testsuite/30_threads/lock_guard/cons/deduction.cc: Likewise.
8 * testsuite/30_threads/scoped_lock/cons/deduction.cc: Likewise.
9 * testsuite/30_threads/scoped_lock/cons/1.cc: Likewise.
10 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: Likewise.
11 * testsuite/30_threads/scoped_lock/requirements/explicit_instantiation.cc:
13 * testsuite/30_threads/unique_lock/cons/deduction.cc: Likewise.
14 * testsuite/18_support/launder/1.cc (test02): Likewise.
15 * testsuite/18_support/launder/requirements_neg.cc: Likewise.
16 * testsuite/18_support/launder/requirements.cc: Likewise.
17 * testsuite/18_support/byte/requirements.cc: Likewise.
18 * testsuite/18_support/byte/ops.cc: Likewise.
19 * testsuite/18_support/byte/global_neg.cc: Likewise.
20 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc:
22 * testsuite/27_io/types/4.cc: Likewise.
23 * testsuite/25_algorithms/sample/81221.cc: Likewise.
24 * testsuite/25_algorithms/sample/1.cc: Likewise.
25 * testsuite/25_algorithms/sample/2.cc: Likewise.
26 * testsuite/25_algorithms/search/searcher.cc: Likewise.
27 * testsuite/28_regex/basic_regex/ctors/deduction.cc: Likewise.
28 * testsuite/experimental/filesystem/path/construct/string_view.cc:
30 * testsuite/24_iterators/range_access_cpp17.cc: Likewise.
31 * testsuite/24_iterators/container_access.cc: Likewise.
32 * testsuite/ext/pb_ds/regression/hash_map_rand.cc: Likewise.
33 * testsuite/ext/pb_ds/regression/trie_set_rand.cc: Likewise.
34 * testsuite/ext/pb_ds/regression/hash_set_rand.cc: Likewise.
35 * testsuite/ext/pb_ds/regression/list_update_set_rand.cc: Likewise.
36 * testsuite/ext/pb_ds/regression/list_update_map_rand.cc: Likewise.
37 * testsuite/ext/pb_ds/regression/priority_queue_rand.cc: Likewise.
38 * testsuite/ext/pb_ds/regression/tree_set_rand.cc: Likewise.
39 * testsuite/ext/pb_ds/regression/tree_map_rand.cc: Likewise.
40 * testsuite/ext/pb_ds/regression/trie_map_rand.cc: Likewise.
41 * testsuite/20_util/shared_ptr/casts/reinterpret.cc: Likewise.
42 * testsuite/20_util/shared_ptr/cons/deduction.cc: Likewise.
43 * testsuite/20_util/shared_ptr/cons/array.cc: Likewise.
44 * testsuite/20_util/shared_ptr/observers/array.cc (struct A): Likewise.
45 * testsuite/20_util/pair/cons/deduction.cc: Likewise.
46 * testsuite/20_util/variant/deduction.cc: Likewise.
47 * testsuite/20_util/tuple/78939.cc: Likewise.
48 * testsuite/20_util/tuple/cons/deduction.cc: Likewise.
49 * testsuite/20_util/void_t/1.cc: Likewise.
50 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: Likewise.
51 * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: Likewise.
52 * testsuite/20_util/addressof/requirements/constexpr.cc: Likewise.
53 * testsuite/20_util/weak_ptr/cons/deduction.cc: Likewise.
54 * testsuite/20_util/has_unique_object_representations/requirements/typedefs.cc:
56 * testsuite/20_util/has_unique_object_representations/requirements/explicit_instantiation.cc:
58 * testsuite/20_util/has_unique_object_representations/value.cc:
60 * testsuite/20_util/time_point/arithmetic/constexpr.cc: Likewise.
61 * testsuite/20_util/function_objects/invoke/59768.cc: Likewise.
62 * testsuite/20_util/function_objects/mem_fn/80478.cc: Likewise.
63 * testsuite/20_util/function/cons/deduction.cc: Likewise.
64 * testsuite/20_util/specialized_algorithms/memory_management_tools/destroy_neg.cc:
66 * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise.
67 * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc:
69 * testsuite/20_util/is_aggregate/value.cc: Likewise.
70 * testsuite/26_numerics/lcm/1.cc: Likewise.
71 * testsuite/26_numerics/lcm/lcm_neg.cc: Likewise.
72 * testsuite/26_numerics/gcd/1.cc: Likewise.
73 * testsuite/26_numerics/gcd/gcd_neg.cc: Likewise.
74 * testsuite/26_numerics/valarray/deduction.cc: Likewise.
75 * testsuite/26_numerics/headers/cmath/types_std_c++0x_neg.cc: Likewise.
76 * testsuite/26_numerics/headers/cmath/hypot.cc: Likewise.
77 * testsuite/23_containers/queue/members/emplace_cxx17_return.cc:
79 * testsuite/23_containers/array/cons/deduction.cc: Likewise.
80 * testsuite/23_containers/array/cons/deduction_neg.cc: Likewise.
81 * testsuite/23_containers/deque/modifiers/emplace/cxx17_return.cc:
83 * testsuite/23_containers/deque/cons/deduction.cc: Likewise.
84 * testsuite/23_containers/stack/members/emplace_cxx17_return.cc:
86 * testsuite/23_containers/list/modifiers/emplace/cxx17_return.cc:
88 * testsuite/23_containers/list/cons/deduction.cc: Likewise.
89 * testsuite/23_containers/forward_list/modifiers/emplace_cxx17_return.cc:
91 * testsuite/23_containers/forward_list/cons/deduction.cc: Likewise.
92 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Likewise.
93 * testsuite/23_containers/vector/modifiers/emplace/cxx17_return.cc:
95 * testsuite/23_containers/vector/cons/deduction.cc: Likewise.
96 * testsuite/23_containers/vector/bool/emplace_cxx17_return.cc:
98 * testsuite/21_strings/basic_string/cons/char/9.cc: Likewise.
99 * testsuite/21_strings/basic_string/cons/char/deduction.cc: Likewise.
100 * testsuite/21_strings/basic_string/cons/char/79162.cc: Likewise.
101 * testsuite/21_strings/basic_string/cons/wchar_t/9.cc: Likewise.
102 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
104 * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: Likewise.
105 * testsuite/21_strings/basic_string_view/modifiers/swap/char/1.cc:
107 * testsuite/21_strings/basic_string_view/modifiers/swap/wchar_t/1.cc:
109 * testsuite/21_strings/basic_string_view/operations/compare/char/2.cc:
111 * testsuite/21_strings/basic_string_view/operations/compare/char/70483.cc:
113 * testsuite/21_strings/basic_string_view/operations/compare/wchar_t/2.cc:
115 * testsuite/21_strings/char_traits/requirements/constexpr_functions_c++17.cc:
118 2017-09-13 Jonathan Wakely <jwakely@redhat.com>
121 * include/std/chrono (__enable_if_is_duration)
122 (__disable_if_is_duration): New alias templates to simplify SFINAE.
123 (duration_cast, floor, ceil): Use __enable_if_is_duration.
124 (duration::__is_float, duration::__is_harmonic): New alias templates
126 (duration::duration(const _Rep2&)): Use _Require, __is_float and
128 (duration::duration(const duration<_Rep2, _Period2>&)): Likewise.
129 (__common_rep_type): Remove, replace with ...
130 (__common_rep_t): New alias template.
131 (operator*, operator/, operator%): Use __common_rep_t and
132 __disable_if_is_duration.
133 (time_point::time_point(const time_point<clock, _Dur2>&)): Add missing
134 constraint from LWG DR 1177.
135 * testsuite/20_util/duration/cons/dr1177.cc: New.
136 * testsuite/20_util/duration/literals/range.cc: Update dg-error line.
137 * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise.
138 * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
139 * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
140 * testsuite/20_util/time_point/cons/81468.cc: New.
142 * doc/doxygen/mainpage.html: Fix broken URLs.
145 * doc/xml/manual/extensions.xml: Replace unstable URL.
146 * doc/html/manual/ext_demangling.html: Regenerate.
147 * libsupc++/cxxabi.h (__cxa_demangle): Fix broken URL.
149 * include/bits/allocated_ptr.h (__allocated_ptr::get): Use
151 (__allocated_ptr::_S_raw_ptr): Remove.
152 * include/bits/forward_list.h (_Fwd_list_base::_M_get_node): Use
154 * include/bits/hashtable_policy.h (_Hashtable_alloc): Likewise.
155 * include/bits/ptr_traits.h (__to_address): Define new function
157 * include/bits/shared_ptr_base.h (__shared_ptr): Use __to_address.
158 (__shared_ptr::_S_raw_ptr): Remove.
159 * include/bits/stl_vector.h [__cplusplus >= 201103L]
160 (vector::_M_data_ptr): Use __to_address.
161 [__cplusplus < 201103L] (vector::_M_data_ptr): Don't dereference
162 possibly invalid pointers.
163 * include/ext/alloc_traits.h (__alloc_traits::construct)
164 (__alloc_traits::destroy): Use __to_address.
166 2017-09-12 Jonathan Wakely <jwakely@redhat.com>
169 * include/Makefile.am: Remove <bits/c++14_warning.h>.
170 * include/Makefile.in: Regenerate.
171 * include/bits/c++14_warning.h: Remove.
172 * include/experimental/algorithm: Do not include <c++14_warning.h>.
173 * include/experimental/any: Likewise.
174 * include/experimental/array: Likewise.
175 * include/experimental/bits/erase_if.h: Likewise.
176 * include/experimental/bits/lfts_config.h: Likewise.
177 * include/experimental/bits/shared_ptr.h: Likewise.
178 * include/experimental/bits/string_view.tcc: Likewise.
179 * include/experimental/chrono: Likewise.
180 * include/experimental/deque: Likewise.
181 * include/experimental/filesystem: Do not include <c++0x_warning.h>.
182 * include/experimental/forward_list: Do not include <c++14_warning.h>.
183 * include/experimental/functional: Likewise.
184 * include/experimental/iterator: Likewise.
185 * include/experimental/list: Likewise.
186 * include/experimental/map: Likewise.
187 * include/experimental/memory: Likewise.
188 * include/experimental/numeric: Likewise.
189 * include/experimental/optional: Likewise.
190 * include/experimental/propagate_const: Likewise.
191 * include/experimental/ratio: Likewise.
192 * include/experimental/regex: Likewise.
193 * include/experimental/set: Likewise.
194 * include/experimental/string: Likewise.
195 * include/experimental/string_view: Likewise.
196 * include/experimental/system_error: Likewise.
197 * include/experimental/tuple: Likewise.
198 * include/experimental/type_traits: Likewise.
199 * include/experimental/unordered_map: Likewise.
200 * include/experimental/unordered_set: Likewise.
201 * include/experimental/vector: Likewise.
202 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error
204 * testsuite/experimental/array/neg.cc: Likewise.
205 * testsuite/experimental/propagate_const/assignment/move_neg.cc:
207 * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
208 * testsuite/experimental/propagate_const/requirements2.cc: Likewise.
209 * testsuite/experimental/propagate_const/requirements3.cc: Likewise.
210 * testsuite/experimental/propagate_const/requirements4.cc: Likewise.
211 * testsuite/experimental/propagate_const/requirements5.cc: Likewise.
214 * doc/xml/manual/status_cxx2017.xml: Update feature-test macros.
215 * doc/html/*: Regenerate.
216 * include/Makefile.am: Remove <bits/c++17_warning.h>.
217 * include/Makefile.in: Regenerate.
218 * include/bits/c++17_warning.h: Remove.
219 * include/bits/string_view.tcc: Do not include <bits/c++17_warning.h>
221 * include/std/any: Likewise.
222 (__cpp_lib_any): Define.
223 * include/std/mutex (__cpp_lib_scoped_lock): Adjust value as per new
225 * include/std/numeric (__cpp_lib_gcd_lcm): Define as per new SD-6
227 * include/std/optional: Do not include <bits/c++17_warning.h>.
228 (__cpp_lib_optional): Define.
229 * include/std/shared_mutex: Do not include <bits/c++14_warning.h>.
230 * include/std/string_view: Do not include <bits/c++17_warning.h>.
231 (__cpp_lib_string_view): Define.
232 * include/std/variant: Do not include <bits/c++17_warning.h>.
233 (__cpp_lib_variant): Define.
234 * testsuite/20_util/optional/cons/value_neg.cc: Adjust dg-error line
236 * testsuite/26_numerics/gcd/1.cc: Test for __cpp_lib_gcd_lcm.
237 * testsuite/26_numerics/gcd/gcd_neg.cc: Adjust dg-error line
239 * testsuite/26_numerics/lcm/1.cc: Test for __cpp_lib_gcd_lcm.
240 * testsuite/26_numerics/lcm/lcm_neg.cc: Adjust dg-error line
242 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: Adjust
243 expected value of __cpp_lib_scoped_lock.
246 * include/experimental/bits/string_view.tcc (basic_string_view::find)
247 (basic_string_view::rfind, basic_string_view::find_first_of)
248 (basic_string_view::find_last_of, basic_string_view::find_first_not_of)
249 (basic_string_view::find_last_not_of): Add constexpr specifier.
250 * include/experimental/string_view (basic_string_view::remove_prefix)
251 (basic_string_view::remove_suffix, basic_string_view::swap)
252 (basic_string_view::compare, basic_string_view::find)
253 (basic_string_view::rfind, basic_string_view::find_first_of)
254 (basic_string_view::find_last_of, basic_string_view::find_first_not_of)
255 (basic_string_view::find_last_not_of, operator==, operator!=)
256 (operator<, operator>, operator<=, operator>=): Likewise.
257 * testsuite/experimental/string_view/operations/compare/char/70483.cc:
260 2017-09-11 Jonathan Wakely <jwakely@redhat.com>
263 * include/bits/string_view.tcc (basic_string_view::find)
264 (basic_string_view::rfind, basic_string_view::find_first_of)
265 (basic_string_view::find_last_of, basic_string_view::find_first_not_of)
266 (basic_string_view::find_last_not_of): Add constexpr specifier.
267 * include/std/string_view (basic_string_view::operator=)
268 (basic_string_view::rbegin, basic_string_view::rend)
269 (basic_string_view::crbegin, basic_string_view::crend)
270 (basic_string_view::remove_prefix, basic_string_view::remove_suffix)
271 (basic_string_view::swap, basic_string_view::compare)
272 (basic_string_view::find, basic_string_view::rfind)
273 (basic_string_view::find_first_of, basic_string_view::find_last_of)
274 (basic_string_view::find_first_not_of)
275 (basic_string_view::find_last_not_of, basic_string_view::_M_check)
276 (basic_string_view::_M_limit, operator==, operator!=, operator<)
277 (operator>, operator<=, operator>=): Likewise.
278 * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
279 char/1.cc: Repeat tests in constexpr context.
280 * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
281 wchar_t/1.cc: Likewise.
282 * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
284 * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
285 wchar_t/1.cc: Likewise.
286 * testsuite/21_strings/basic_string_view/operations/find/char/1.cc:
288 * testsuite/21_strings/basic_string_view/operations/find/char/2.cc:
290 * testsuite/21_strings/basic_string_view/operations/find/char/3.cc:
292 * testsuite/21_strings/basic_string_view/operations/find/wchar_t/1.cc:
294 * testsuite/21_strings/basic_string_view/operations/find/wchar_t/2.cc:
296 * testsuite/21_strings/basic_string_view/operations/find/wchar_t/3.cc:
298 * testsuite/21_strings/basic_string_view/operators/char/2.cc:
300 * testsuite/21_strings/basic_string_view/operators/wchar_t/2.cc:
302 * testsuite/21_strings/basic_string_view/range_access/char/1.cc: Test
303 cbegin, cend, rbegin, rend, crbegin and crend.
304 * testsuite/21_strings/basic_string_view/range_access/wchar_t/1.cc:
306 * testsuite/21_strings/basic_string_view/operations/compare/char/1.cc:
307 Remove trailing whitespace.
308 * testsuite/21_strings/basic_string_view/operations/compare/wchar_t/
310 * testsuite/21_strings/basic_string_view/modifiers/swap/char/1.cc:
312 * testsuite/21_strings/basic_string_view/modifiers/swap/wchar_t/1.cc:
314 * testsuite/21_strings/basic_string_view/operations/compare/char/2.cc:
316 * testsuite/21_strings/basic_string_view/operations/compare/wchar_t/
319 2017-09-11 Tim Shen <timshen@google.com>
322 * include/bits/regex_executor.tcc: Support icase in regex_tratis<...>
323 for back reference matches.
324 * testsuite/28_regex/regression.cc: Test case.
326 2017-09-11 Jonathan Wakely <jwakely@redhat.com>
328 * testsuite/21_strings/basic_string/lwg2946.cc: Adjust for
329 compatibility with old COW std::string.
331 2017-09-09 Gerald Pfeifer <gerald@pfeifer.com>
333 * doc/xml/manual/allocator.xml: Adjust link for Hoard.
334 * doc/html/manual/memory.html: Regenerate.
336 2017-09-04 Daniel Kruegler <daniel.kruegler@gmail.com>
339 Implement LWG 2946, LWG 2758's resolution missed further corrections
340 * include/bits/basic_string.h (basic_string::compare): Add missing
341 required noexcept specifications.
342 (basic_string): Introduce internal _S_to_string_view and __sv_wrapper
343 for implicit string_view conversion.
344 (basic_string::basic_string): Fix explicit string_view conversion by
345 implicit conversion using _S_to_string_view and __sv_wrapper.
346 (basic_string): Introduce internal basic_string(__sv_wrapper, Alloc)
348 (basic_string): Fix operator=(T) template by operator=(const T&)
349 template for uncopyable types (PR 79162).
350 (basic_string::operator+=, basic_string::append, basic_string::assign)
351 (basic_string::insert, basic_string::replace, basic_string::find)
352 (basic_string::rfind, basic_string::find_first_of)
353 (basic_string::find_last_of, basic_string::find_first_not_of)
354 (basic_string::find_last_not_of, basic_string::compare): Replace
355 __sv_type argument by template const T& (LWG 2946) and correct
356 documentation describing __sv_type argument.
357 (basic_string::find, basic_string::rfind, basic_string::find_first_of)
358 (basic_string::find_last_of, basic_string::find_first_not_of)
359 (basic_string::find_last_not_of, basic_string::compare): Replace
360 unconditional noexcept specification by conditional noexcept
361 specification to partially balance the removal of noexcept by LWG 2946.
362 * testsuite/21_strings/basic_string/79162.cc: New.
363 * testsuite/21_strings/basic_string/lwg2946.cc: New.
365 2017-08-31 Jonathan Wakely <jwakely@redhat.com>
368 * include/ext/new_allocator.h (__gnu_cxx::new_allocator::allocate):
369 Adjust null pointer constant to avoid warning.
371 2017-08-24 François Dumont <fdumont@gcc.gnu.org>
373 * include/bits/stl_list.h
374 [!_GLIBCXX_INLINE_VERSION](_List_base<>::_S_distance): Remove.
375 (_List_impl(_Node_alloc_type&&, _List_impl&&)): New.
376 (_List_base(_Node_alloc_type&&, _List_base&&)): New, use latter.
377 [!_GLIBCXX_INLINE_VERSION](_List_base(_Node_alloc_type&&,_List_base&&)):
379 (_List_base(_Node_alloc_type&&)): New.
380 [!_GLIBCXX_INLINE_VERSION](_List_base<>::_M_distance): Remove.
381 [!_GLIBCXX_INLINE_VERSION](_List_base<>::_M_node_count): Remove.
382 (list<>::_M_node_count): New.
383 (list<>::size()): Adapt to call latter.
384 (list<>::_S_distance(const_iterator, const_iterator)): New.
385 (list<>::splice(iterator, list&, const_iterator, const_iterator)):
386 Adapt to call latter.
387 (list(list&&, const allocator_type&, true_type)): New.
388 (list(list&&, const allocator_type&, false_type)): New.
389 (list(list&&, const allocator_type&)): Adapt to call latters.
391 2017-08-21 Jonathan Wakely <jwakely@redhat.com>
394 * include/bits/stl_iterator_base_types.h (__iterator_category): Add
395 constexpr for C++11 and later.
396 * testsuite/24_iterators/container_access.cc: Add target selector.
397 * testsuite/24_iterators/range_access.cc: Fix clause number in
399 * testsuite/24_iterators/range_access_cpp14.cc: Likewise.
400 * testsuite/24_iterators/range_access_cpp17.cc: New.
402 2017-08-21 Richard Biener <rguenther@suse.de>
404 * testsuite/libstdc++-prettyprinters/prettyprinters.exp: Run all
405 tests with -flto as well if supported.
407 2017-08-20 Martin Sebor <msebor@redhat.com>
410 * src/c++98/compatibility.cc (_GLIBCXX_3_4_SYMVER): Declare alias
411 target as a C++ function with no prototype.
412 (_GLIBCXX_3_4_5_SYMVER): Ditto.
414 2017-08-20 John David Anglin <danglin@gcc.gnu.org>
417 * testsuite/17_intro/names.cc: Undef 'd' and 'r' on __hpux__.
419 2017-08-18 Jonathan Wakely <jwakely@redhat.com>
421 * include/bits/hashtable_policy.h (_ReuseOrAllocNode): Remove
422 __value_alloc_type and __value_alloc_traits typedefs.
423 (_ReuseOrAllocNode::operator()): Call construct and destroy on the
425 (_Hashtable_alloc): Simplify __value_alloc_traits typedef.
426 (_Hashtable_alloc<_NodeAlloc>::_M_allocate_node(_Args&&...)): Call
427 construct on the node allocator.
428 (_Hashtable_alloc<_NodeAlloc>::_M_deallocate_node(__node_type*)): Call
429 destroy on the node allocator.
432 * include/bits/hashtable.h (_Hashtable(_InputIterator, _InputIterator,
433 size_type, const _H1&, const _H2&, const _Hash&, const _Equal&,
434 const _ExtractKey&, const allocator_type&)): Let destructor do clean
435 up if an exception is thrown.
436 * testsuite/23_containers/unordered_map/cons/81891.cc: New.
438 2017-08-11 Jonathan Wakely <jwakely@redhat.com>
441 * testsuite/27_io/basic_fstream/53984.cc: Adjust test for targets
442 that allow opening a directory as a FILE and reading from it.
444 2017-08-09 Jonathan Wakely <jwakely@redhat.com>
446 * include/std/type_traits (_GLIBCXX_NO_BUILTIN_HAS_UNIQ_OBJ_REP):
447 Replace with _GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP and use
448 __is_identifier to set it.
450 2017-08-09 Katsuhiko Nishimra <ktns.87@gmail.com>
452 * include/std/type_traits (_GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE): Use
453 __is_identifier instead of __has_builtin.
455 2017-08-09 Jonathan Wakely <jwakely@redhat.com>
459 * config/io/basic_file_stdio.cc (sys_open(FILE*, ios_base::openmode)):
460 Call fflush on the stream instead of calling sync() while _M_cfile is
461 null. Restore original value of errno.
462 * testsuite/ext/stdio_filebuf/char/79820.cc: New.
463 * testsuite/ext/stdio_filebuf/char/81751.cc: New.
465 2017-07-31 Marek Polacek <polacek@redhat.com>
468 * include/bits/stl_stack.h: Fix typo.
470 2017-07-26 Jonathan Wakely <jwakely@redhat.com>
472 * testsuite/27_io/basic_fstream/53984.cc: Fix test.
474 2017-07-26 Paolo Carlini <paolo.carlini@oracle.com>
476 * testsuite/27_io/basic_fstream/53984.cc: Fix typo in dg-require
479 2017-07-25 Jonathan Wakely <jwakely@redhat.com>
482 * include/bits/basic_ios.h (basic_ios::_M_setstate): Adjust comment.
483 * include/bits/istream.tcc (basic_istream::sentry): Handle exceptions
485 * include/std/istream: Adjust comments for formatted input functions
486 and unformatted input functions.
487 * testsuite/27_io/basic_fstream/53984.cc: New.
488 * testsuite/27_io/basic_istream/sentry/char/53984.cc: New.
490 * include/bits/ios_base.h (ios_base::io_state, ios_base::open_mode)
491 (ios_base::seek_dir): Remove for C++17.
492 * include/std/streambuf (basic_streambuf::stossc): Remove for C++17.
493 Add deprecated attribute for C++11 and C++14.
494 * testsuite/27_io/types/1.cc: Don't run for C++17 and later.
495 * testsuite/27_io/types/4.cc: New.
497 2017-07-23 Michael Collison <michael.collison@arm.com>
499 Add optimized implementation of mersenne twister for aarch64
500 * config/cpu/aarch64/opt/ext/opt_random.h: New file.
501 (__arch64_recursion): New function.
502 (__aarch64_lsr_128): New function.
503 (__aarch64_lsl_128): New function.
504 (operator==): New function.
505 (simd_fast_mersenne_twister_engine): Implement
507 * config/cpu/aarch64/opt/bits/opt_random.h: New file.
508 * include/ext/random: (simd_fast_mersenne_twister_engine):
509 add _M_state private array.
511 2017-07-23 François Dumont <fdumont@gcc.gnu.org>
514 * include/bits/algorithmfwd.h: Reorganize versioned namespace.
515 * include/bits/basic_string.h: Likewise.
516 * include/bits/c++config: Likewise.
517 * include/bits/deque.tcc: Likewise.
518 * include/bits/forward_list.h: Likewise.
519 * include/bits/forward_list.tcc: Likewise.
520 * include/bits/hashtable_policy.h: Likewise.
521 * include/bits/list.tcc: Likewise.
522 * include/bits/move.h: Likewise.
523 * include/bits/quoted_string.h: Likewise.
524 * include/bits/random.h: Likewise.
525 * include/bits/random.tcc: Likewise.
526 * include/bits/regex.h: Likewise.
527 * include/bits/regex.tcc: Likewise.
528 * include/bits/regex_automaton.h: Likewise.
529 * include/bits/regex_automaton.tcc: Likewise.
530 * include/bits/regex_compiler.h: Likewise.
531 * include/bits/regex_compiler.tcc: Likewise.
532 * include/bits/regex_constants.h: Likewise.
533 * include/bits/regex_error.h: Likewise.
534 * include/bits/regex_executor.h: Likewise.
535 * include/bits/regex_executor.tcc: Likewise.
536 * include/bits/regex_scanner.h: Likewise.
537 * include/bits/regex_scanner.tcc: Likewise.
538 * include/bits/specfun.h: Likewise.
539 * include/bits/stl_algo.h: Likewise.
540 * include/bits/stl_algobase.h: Likewise.
541 * include/bits/stl_bvector.h: Likewise.
542 * include/bits/stl_deque.h: Likewise.
543 * include/bits/stl_iterator.h: Likewise.
544 * include/bits/stl_iterator_base_funcs.h: Likewise.
545 * include/bits/stl_list.h: Likewise.
546 * include/bits/stl_map.h: Likewise.
547 * include/bits/stl_multimap.h: Likewise.
548 * include/bits/stl_multiset.h: Likewise.
549 * include/bits/stl_relops.h: Likewise.
550 * include/bits/stl_set.h: Likewise.
551 * include/bits/stl_vector.h: Likewise.
552 * include/bits/uniform_int_dist.h: Likewise.
553 * include/bits/unordered_map.h: Likewise.
554 * include/bits/unordered_set.h: Likewise.
555 * include/bits/vector.tcc: Likewise.
556 * include/c_global/cmath: Likewise.
557 * include/c_std/cmath: Likewise.
558 * include/decimal/decimal: Likewise.
559 * include/decimal/decimal.h: Likewise.
560 * include/experimental/algorithm: Likewise.
561 * include/experimental/any: Likewise.
562 * include/experimental/array: Likewise.
563 * include/experimental/bits/erase_if.h: Likewise.
564 * include/experimental/bits/fs_dir.h: Likewise.
565 * include/experimental/bits/fs_fwd.h: Likewise.
566 * include/experimental/bits/fs_ops.h: Likewise.
567 * include/experimental/bits/fs_path.h: Likewise.
568 * include/experimental/bits/lfts_config.h: Likewise.
569 * include/experimental/bits/shared_ptr.h: Likewise.
570 * include/experimental/bits/string_view.tcc: Likewise.
571 * include/experimental/chrono: Likewise.
572 * include/experimental/deque: Likewise.
573 * include/experimental/filesystem: Likewise.
574 * include/experimental/forward_list: Likewise.
575 * include/experimental/functional: Likewise.
576 * include/experimental/iterator: Likewise.
577 * include/experimental/list: Likewise.
578 * include/experimental/map: Likewise.
579 * include/experimental/memory: Likewise.
580 * include/experimental/memory_resource: Likewise.
581 * include/experimental/numeric: Likewise.
582 * include/experimental/optional: Likewise.
583 * include/experimental/propagate_const: Likewise.
584 * include/experimental/random: Likewise.
585 * include/experimental/ratio: Likewise.
586 * include/experimental/regex: Likewise.
587 * include/experimental/set: Likewise.
588 * include/experimental/source_location: Likewise.
589 * include/experimental/string: Likewise.
590 * include/experimental/string_view: Likewise.
591 * include/experimental/system_error: Likewise.
592 * include/experimental/tuple: Likewise.
593 * include/experimental/type_traits: Likewise.
594 * include/experimental/unordered_map: Likewise.
595 * include/experimental/unordered_set: Likewise.
596 * include/experimental/utility: Likewise.
597 * include/experimental/vector: Likewise.
598 * include/ext/bitmap_allocator.h: Likewise.
599 * include/ext/codecvt_specializations.h: Likewise.
600 * include/ext/rope: Likewise.
601 * include/ext/typelist.h: Likewise.
602 * include/std/chrono: Likewise.
603 * include/std/complex: Likewise.
604 * include/std/functional: Likewise.
605 * include/std/numeric: Likewise.
606 * include/std/string_view: Likewise.
607 * include/std/thread: Likewise.
608 * include/std/variant: Likewise.
609 * include/tr1/array: Likewise.
610 * include/tr1/bessel_function.tcc: Likewise.
611 * include/tr1/beta_function.tcc: Likewise.
612 * include/tr1/cmath: Likewise.
613 * include/tr1/complex: Likewise.
614 * include/tr1/ell_integral.tcc: Likewise.
615 * include/tr1/exp_integral.tcc: Likewise.
616 * include/tr1/functional: Likewise.
617 * include/tr1/functional_hash.h: Likewise.
618 * include/tr1/gamma.tcc: Likewise.
619 * include/tr1/hashtable.h: Likewise.
620 * include/tr1/hashtable_policy.h: Likewise.
621 * include/tr1/hypergeometric.tcc: Likewise.
622 * include/tr1/legendre_function.tcc: Likewise.
623 * include/tr1/modified_bessel_func.tcc: Likewise.
624 * include/tr1/poly_hermite.tcc: Likewise.
625 * include/tr1/poly_laguerre.tcc: Likewise.
626 * include/tr1/random.h: Likewise.
627 * include/tr1/random.tcc: Likewise.
628 * include/tr1/regex: Likewise.
629 * include/tr1/riemann_zeta.tcc: Likewise.
630 * include/tr1/shared_ptr.h: Likewise.
631 * include/tr1/special_function_util.h: Likewise.
632 * include/tr1/tuple: Likewise.
633 * include/tr1/type_traits: Likewise.
634 * include/tr1/unordered_map.h: Likewise.
635 * include/tr1/unordered_set.h: Likewise.
636 * include/tr1/utility: Likewise.
637 * include/tr2/bool_set: Likewise.
638 * include/tr2/bool_set.tcc: Likewise.
639 * include/tr2/dynamic_bitset: Likewise.
640 * include/tr2/dynamic_bitset.tcc: Likewise.
641 * include/tr2/ratio: Likewise.
642 * include/tr2/type_traits: Likewise.
643 * src/c++11/chrono.cc: Likewise.
644 * src/c++11/compatibility-c++0x.cc: Likewise.
645 * src/c++11/compatibility-chrono.cc: Likewise.
646 * src/c++11/cxx11-shim_facets.cc: Likewise.
647 * src/c++11/hashtable_c++0x.cc: Likewise.
648 * src/c++11/placeholders.cc: Likewise.
649 * src/c++11/thread.cc: Likewise.
650 * src/c++98/bitmap_allocator.cc: Likewise.
651 * src/c++98/hashtable_tr1.cc: Likewise.
652 * src/c++98/list.cc: Likewise.
653 * src/shared/hashtable-aux.cc: Likewise.
654 * testsuite/20_util/duration/literals/range.cc: Adapt line number.
655 * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise.
656 * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
657 * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
658 * testsuite/20_util/forward/c_neg.cc: Likewise.
659 * testsuite/20_util/forward/f_neg.cc: Likewise.
660 * testsuite/26_numerics/gcd/gcd_neg.cc: Likewise.
661 * testsuite/26_numerics/lcm/lcm_neg.cc: Likewise.
662 * testsuite/26_numerics/random/pr60037-neg.cc: Likewise.
663 * python/libstdcxx/v6/printers.py: Adapt.
665 2017-07-20 Jonathan Wakely <jwakely@redhat.com>
667 * config/allocator/malloc_allocator_base.h [__SANITIZE_ADDRESS__]
668 (_GLIBCXX_SANITIZE_STD_ALLOCATOR): Define.
669 * config/allocator/new_allocator_base.h [__SANITIZE_ADDRESS__]
670 (_GLIBCXX_SANITIZE_STD_ALLOCATOR): Define.
671 * doc/xml/manual/using.xml (_GLIBCXX_SANITIZE_VECTOR): Document macro.
672 * include/bits/stl_vector.h [_GLIBCXX_SANITIZE_VECTOR]
673 (_Vector_impl::_Asan, _Vector_impl::_Asan::_Reinit)
674 (_Vector_impl::_Asan::_Grow, _GLIBCXX_ASAN_ANNOTATE_REINIT)
675 (_GLIBCXX_ASAN_ANNOTATE_GROW, _GLIBCXX_ASAN_ANNOTATE_GREW)
676 (_GLIBCXX_ASAN_ANNOTATE_SHRINK, _GLIBCXX_ASAN_ANNOTATE_BEFORE_DEALLOC):
677 Define annotation helper types and macros.
678 (vector::~vector, vector::push_back, vector::pop_back)
679 (vector::_M_erase_at_end): Add annotations.
680 * include/bits/vector.tcc (vector::reserve, vector::emplace_back)
681 (vector::insert, vector::_M_erase, vector::operator=)
682 (vector::_M_fill_assign, vector::_M_assign_aux)
683 (vector::_M_insert_rval, vector::_M_emplace_aux)
684 (vector::_M_insert_aux, vector::_M_realloc_insert)
685 (vector::_M_fill_insert, vector::_M_default_append)
686 (vector::_M_shrink_to_fit, vector::_M_range_insert): Annotate.
688 2017-07-19 Jonathan Wakely <jwakely@redhat.com>
691 * include/bits/vector.tcc (vector::_M_range_insert<_InputIterator>):
692 Only insert elements one-by-one when inserting at the end.
693 * testsuite/performance/23_containers/insert/81476.cc: New.
695 2017-07-19 Volker Reichelt <v.reichelt@netcologne.de>
697 * libsupc++/new (bad_array_new_length): Remove redundant
698 semicolon after in-class member function definition.
699 * include/bits/locale_facets.h (ctype_byname, num_put): Likewise.
700 * include/bits/locale_facets_nonio.h (time_put_byname): Likewise.
701 * include/bits/random.h (mersenne_twister_engine): Likewise.
702 * include/tr1/random.h (mersenne_twister): Likewise
703 * include/ext/random (simd_fast_mersenne_twister_engine): Likewise.
704 * include/ext/rope (char_producer, _Rope_char_consumer,
705 _Rope_self_destruct_ptr, _Rope_const_iterator, _Rope_iterator):
707 * include/ext/ropeimpl.h (_Rope_flatten_char_consumer,
708 _Rope_insert_char_consumer): Likewise.
710 2017-07-19 Jonathan Wakely <jwakely@redhat.com>
712 * include/bits/fstream.tcc (basic_filebuf::xsgetn)
713 (basic_filebuf::xsputn, basic_filebuf::seekoff): Fix indentation.
715 * testsuite/util/testsuite_iterators.h: Fix indentation.
717 * testsuite/27_io/basic_filebuf/sgetn/char/81395.cc: Add dg-require.
719 2017-07-18 Jonathan Wakely <jwakely@redhat.com>
722 * include/bits/fstream.tcc (basic_filebuf::xsgetn): Don't set buffer
723 pointers for write mode after reading.
724 * testsuite/27_io/basic_filebuf/sgetn/char/81395.cc: New.
726 2017-07-18 François Dumont <fdumont@gcc.gnu.org>
728 * include/bits/stl_list.h
729 (struct _List_node_header): New.
730 (_List_impl()): Fix noexcept qualification.
731 (_List_impl(_List_impl&&)): New, default.
732 (_List_base()): Default.
733 (_List_base(_List_base&&)): Default.
734 (_List_base::_M_move_nodes): Adapt to use
735 _List_node_header._M_move_nodes.
736 (_List_base::_M_init): Likewise.
738 (list<>(list&&)): Default.
739 (list<>::_M_move_assign(list&&, true_type)): Use _M_move_nodes.
740 (__distance(_List_const_iterator<>, _List_const_iterator<>,
741 input_iterator_tag)): Adapt.
742 * testsuite/23_containers/list/allocator/default_init.cc: New.
744 2017-07-15 Jonathan Wakely <jwakely@redhat.com>
746 * include/std/mutex (scoped_lock): Reorder std::adopt_lock_t parameter
748 * testsuite/30_threads/scoped_lock/cons/1.cc: Reorder arguments.
749 * testsuite/30_threads/scoped_lock/cons/deduction.cc: Test deduction
750 with std::adopt_lock_t.
751 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: Check
754 2017-07-14 Jason Merrill <jason@redhat.com>
755 Jonathan Wakely <jwakely@redhat.com>
757 * include/std/variant (variant::variant(_Tp&&)): Constrain to remove
758 the constructor for empty variants from the candidate functions
759 during class template argument deduction.
760 * testsuite/20_util/variant/deduction.cc: New.
762 2017-07-11 Jonathan Wakely <jwakely@redhat.com>
764 * doc/xml/faq.xml: Update several old entries. Improve
766 * doc/xml/manual/intro.xml: Add anchors to each DR.
767 * doc/html/*: Regenerate.
769 2017-07-10 Jonathan Wakely <jwakely@redhat.com>
771 * testsuite/abi/pr42230.cc: Add header for std::free.
774 * include/bits/sstream.tcc (basic_stringbuf::overflow)
775 (basic_stringbuf::basic_stringbuf(const __string_type&, ios::mode))
776 (basic_stringbuf::str()): Construct new strings with an allocator.
777 * testsuite/27_io/basic_stringbuf/cons/81381.cc: New.
780 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
781 Declare basic_stringbuf to be a friend.
782 * include/bits/sstream.tcc (basic_stringbuf::overflow)
783 [_GLIBCXX_USE_CXX11_ABI]: Use unused capacity before reallocating.
784 * include/std/sstream (basic_stringbuf::__xfer_bufptrs): Update string
785 length to buffer length.
786 * testsuite/27_io/basic_stringstream/assign/81338.cc: New.
788 2017-07-06 Jonathan Wakely <jwakely@redhat.com>
790 * testsuite/20_util/specialized_algorithms/memory_management_tools/
792 * testsuite/22_locale/locale/cons/5.cc: Remove redundant restoration
793 of original environment and free memory.
795 * testsuite/abi/pr42230.cc: Free memory.
796 * testsuite/util/testsuite_abi.cc (demangle): Return std::string
797 instead of pointer that might need freeing.
798 * testsuite/util/testsuite_abi.h (demangle): Likewise.
799 * testsuite/util/testsuite_hooks.cc (verify_demangle): Free memory.
801 * include/bits/uses_allocator.h (__use_alloc(const _Alloc&&)): Add
802 deleted overload to prevent dangling references to rvalues.
803 * include/experimental/memory_resource
804 (polymorphic_allocator::construct): Do not call __use_alloc with
807 2017-06-27 Tim Shen <timshen@google.com>
810 * include/std/variant (variant::variant, variant::~variant,
811 variant::operator=): Implement triviality forwarding for four
812 special member functions.
813 * testsuite/20_util/variant/compile.cc: Tests.
815 2017-06-27 Jonathan Wakely <jwakely@redhat.com>
818 * testsuite/25_algorithms/sample/81221.cc: Disable except for
822 * include/bits/stl_algo.h (sample): Qualify with _GLIBCXX_STD_A not
824 * testsuite/25_algorithms/sample/81221.cc: New.
826 2017-06-22 Jonathan Wakely <jwakely@redhat.com>
829 * include/bits/stl_bvector.h (vector<bool>::_M_initialize_value):
830 Do not pass null pointer to memset.
832 2017-06-21 Ville Voutilainen <ville.voutilainen@gmail.com>
836 * include/std/istream:
837 (__is_convertible_to_basic_istream_test(basic_istream<_Ch, _Up>*)): New.
838 (__do_is_convertible_to_basic_istream_impl): Likewise.
839 (__is_convertible_to_basic_istream_impl): Likewise.
840 (__is_convertible_to_basic_istream): Use the new base.
841 (__rvalue_istream_type): New.
842 (operator>>(_Istream&&, _Tp&&)): Use the new helper alias
843 for the SFINAE check, convert to the helper alias type before
844 doing the actual extraction.
845 * include/std/ostream:
846 (__is_convertible_to_basic_ostream_test(basic_ostream<_Ch, _Up>*)): New.
847 (__do_is_convertible_to_basic_ostream_impl): Likewise.
848 (__is_convertible_to_basic_ostream_impl): Likewise.
849 (__is_convertible_to_basic_ostream): Use the new base.
850 (__rvalue_ostream_type): New.
851 (operator<<(_Ostream&&, const _Tp&)): Use the new helper alias
852 for the SFINAE check, convert to the helper alias type before
853 doing the actual insertion.
854 * testsuite/27_io/rvalue_streams-2.cc: Add new tests.
856 2017-06-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
858 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
860 2017-06-21 Jonathan Wakely <jwakely@redhat.com>
863 * configure: Regenerate.
865 2017-06-20 Uros Bizjak <ubizjak@gmail.com>
867 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
869 2017-06-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
871 * testsuite/20_util/variant/index_type.cc: Allow for all ilp32 and
874 2017-06-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
876 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: Regenerate.
877 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: Likewise.
878 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: Likewise.
879 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: Likewise.
880 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: Likewise.
881 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
883 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: Likewise.
884 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
887 2017-06-18 H.J. Lu <hongjiu.lu@intel.com>
890 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
892 2017-06-18 Andreas Schwab <schwab@linux-m68k.org>
895 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
897 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
899 * testsuite: Remove dg-skip-if, dg-xfail-if, dg-xfail-run-if
902 2017-06-17 Jonathan Wakely <jwakely@redhat.com>
905 * testsuite/23_containers/vector/bool/80893.cc: Add { target c++11 }.
907 2017-06-16 Jonathan Wakely <jwakely@redhat.com>
909 * include/bits/shared_ptr.h (get_deleter): Add overload matching
911 * include/bits/shared_ptr_base.h (__shared_ptr): Declare new
912 get_deleter overload as a friend.
913 * testsuite/20_util/shared_ptr/misc/get_deleter.cc: New.
915 2017-06-16 Jakub Jelinek <jakub@redhat.com>
918 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
919 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
920 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
922 2017-06-16 Jonathan Wakely <jwakely@redhat.com>
924 * include/bits/locale_conv.h (wbuffer_convert::sync): Fix condition.
925 * testsuite/22_locale/conversions/buffer/2.cc: New.
928 * acinclude.m4: Bump libtool_VERSION.
929 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
930 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
931 * config/abi/pre/gnu.ver: Add wstring constructor symbols to
932 GLIBCXX_3.4.24 version and move random_device::_M_get_entropy() symbol
933 to new GLIBCXX_3.4.25 version.
934 * doc/xml/manual/abi.xml: Document new versions.
935 * doc/html/*: Regenerate.
936 * testsuite/21_strings/basic_string/cons/char/8.cc: Use base object
937 constructors to ensure required symbols are exported.
938 * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise.
939 * testsuite/util/testsuite_abi.cc: Add new version.
941 * include/bits/locale_conv.h (wbuffer_convert::_M_put): Add missing
943 * testsuite/21_strings/basic_string_view/operations/copy/char/1.cc:
945 * testsuite/21_strings/basic_string_view/operations/copy/wchar_t/1.cc:
947 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc: Add
948 missing return statements.
949 * testsuite/23_containers/unordered_map/modifiers/insert_or_assign.cc:
951 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
953 * testsuite/special_functions/14_expint/pr68397.cc: Likewise.
955 2017-06-16 François Dumont <fdumont@gcc.gnu.org>
957 * include/bits/stl_bvector.h
958 (__fill_bvector(_Bit_type*, unsigned int, unsigned int, bool)):
960 (std::fill(_Bit_iterator, _Bit_iterator, bool)): Adapt.
961 (_Bvector_impl_data): New.
962 (_Bvector_impl): Inherits from latter.
963 (_Bvector_impl(_Bit_alloc_type&&)): Delete.
964 (_Bvector_impl(_Bvector_impl&&)): New, default.
965 (_Bvector_base()): Default.
966 (_Bvector_base(_Bvector_base&&)): Default.
967 (_Bvector_base::_M_move_data(_Bvector_base&&)): New.
968 (vector(vector&&, const allocator_type&)): Use latter.
969 (vector<bool>::operator=(vector&&)): Likewise.
970 (vector<bool>::vector()): Default.
971 (vector<bool>::vector(vector&&)): Default.
972 (vector<bool>::assign(_InputIterator, _InputIterator)): Use
974 (vector<bool>::assign(initializer_list<bool>)): Likewise.
975 (vector<bool>::_M_initialize_value(bool)): New.
976 (vector<bool>(size_type, const bool&, const allocator_type&)): Use
978 (vector<bool>::_M_initialize_dispatch(_Integer, _Integer, __true_type)):
980 (vector<bool>::_M_fill_assign(size_t, bool)): Likewise.
982 2017-06-15 François Dumont <fdumont@gcc.gnu.org>
984 * src/c++98/tree.cc [!_GLIBCXX_INLINE_VERSION]
985 (_Rb_tree_rotate_left, _Rb_tree_rotate_right): Delete.
987 2017-06-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
989 * testsuite: Add dg-require-effective-target pthread to -pthread
991 Remove explicit target lists from dg-do and dg-options.
993 * testsuite/30_threads/async/forced_unwind.cc: Remove explit
994 target list from dg-options.
995 * testsuite/30_threads/packaged_task/forced_unwind.cc: Likewise.
997 * 30_threads/shared_mutex/cons/1.cc: Likewise.
998 Pass -pthread for all targets.
999 * 30_threads/shared_mutex/try_lock/1.cc: Likewise.
1000 * 30_threads/shared_mutex/try_lock/2.cc: Likewise.
1001 * 30_threads/shared_mutex/unlock/1.cc: Likewise.
1003 * testsuite/30_threads/this_thread/57060.cc: Require c++11 via
1004 dg-require-effective-target.
1006 2017-06-14 Jonathan Wakely <jwakely@redhat.com>
1008 * doc/xml/manual/test.xml: Correct instructions on running tests.
1009 * testsuite/21_strings/basic_string/cons/char/deduction.cc: Adjust to
1010 pass when -D_GLIBCXX_USE_CXX11_ABI=0 added to RUNTESTFLAGS.
1011 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
1013 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Likewise.
1014 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1015 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1016 exceptions_failbit.cc: Likewise.
1017 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1018 exceptions_failbit.cc: Likewise.
1019 * testsuite/27_io/basic_istream/extractors_other/char/
1020 exceptions_null.cc: Likewise.
1021 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1022 exceptions_null.cc: Likewise.
1023 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1024 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1025 * testsuite/27_io/basic_ostream/inserters_other/char/
1026 exceptions_null.cc: Likewise.
1027 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1028 exceptions_null.cc: Likewise.
1029 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1031 2017-06-12 Pedro Alves <palves@redhat.com>
1033 * doc/xml/manual/status_cxx2017.xml: Update C++17 constexpr
1035 * doc/html/*: Regenerate.
1037 * include/bits/char_traits.h (_GLIBCXX_ALWAYS_INLINE): Define if
1038 not already defined.
1039 (__cpp_lib_constexpr_char_traits): Uncomment.
1040 (__constant_string_p, __constant_char_array_p): New.
1041 (std::char_traits<char>, std::char_traits<wchar_t>): Add
1042 _GLIBCXX17_CONSTEXPR on compare, length and find and use
1043 __constant_string_p, __constant_char_array_p and
1044 __builtin_constant_p to defer to __gnu_cxx::char_traits at compile
1047 * testsuite/21_strings/char_traits/requirements/
1048 constexpr_functions_c++17.cc: Uncomment
1049 __cpp_lib_constexpr_char_traits tests. Uncomment
1050 test_compare<char>, test_length<char>, test_find<char>,
1051 test_compare<wchar_t>, test_length<wchar_t> and test_find<wchar_t>
1052 static_assert tests.
1054 2017-06-12 François Dumont <fdumont@gcc.gnu.org>
1056 * include/bits/stl_tree.h (_Rb_tree_impl()): Restore _Node_allocator
1058 * testsuite/util/testsuite_allocator.h
1059 (__gnu_test::default_init_allocator<>) New.
1060 * testsuite/23_containers/set/allocator/default_init.cc: New.
1061 * testsuite/23_containers/map/allocator/default_init.cc: New.
1063 2017-06-12 Jonathan Wakely <jwakely@redhat.com>
1066 * src/c++11/thread.cc (execute_native_thread_routine): Remove
1067 try-block so that exceptions propagate out of the thread and terminate
1068 is called by the exception-handling runtime.
1069 (execute_native_thread_routine_compat): Likewise.
1070 * testsuite/30_threads/thread/cons/terminate.cc: New.
1072 2017-06-09 Jonathan Wakely <jwakely@redhat.com>
1074 * doc/xml/manual/intro.xml: Document LWG 2802, 2873 and 2942 changes.
1075 * include/bits/shared_ptr.h (shared_ptr): Use rvalues for deleters
1077 * include/bits/shared_ptr_base.h (_Sp_ebo_helper, _Sp_counted_deleter
1078 (_Sp_counted_deleter::_Impl, __shared_count, __shared_ptr): Likewise.
1079 * testsuite/20_util/shared_ptr/cons/lwg2802.cc: New.
1081 * include/bits/forward_list.h (forward_list): Add deduction guide.
1082 * include/bits/stl_deque.h (deque): Likewise.
1083 * include/bits/stl_list.h (list): Likewise.
1084 * include/bits/stl_vector.h (vector): Likewise.
1085 * testsuite/23_containers/deque/cons/deduction.cc: New.
1086 * testsuite/23_containers/forward_list/cons/deduction.cc: New.
1087 * testsuite/23_containers/list/cons/deduction.cc: New.
1088 * testsuite/23_containers/vector/cons/deduction.cc: New.
1090 2017-06-08 Jonathan Wakely <jwakely@redhat.com>
1093 * include/bits/std_function.h (function::function(function&&))
1094 (function::operator=(funtion&&)): Add noexcept.
1095 * testsuite/20_util/function/assign/move.cc: Check for noexcept.
1096 * testsuite/20_util/function/cons/move.cc: Likewise.
1098 2017-06-07 Jonathan Wakely <jwakely@redhat.com>
1100 * include/bits/regex.h (basic_regex): Add deduction guide from P0433.
1101 * testsuite/28_regex/basic_regex/ctors/deduction.cc: New.
1104 * include/bits/regex.h (basic_regex): Adjust call to __compile_nfa
1105 so iterator type is deduced.
1106 * include/bits/regex_compiler.h (__compile_nfa): Reorder template
1107 parameters to allow iterator type to be deduced.
1108 * testsuite/28_regex/basic_regex/ctors/basic/iter.cc: New.
1110 * include/bits/alloc_traits.h (__is_allocator, _RequireAllocator):
1111 New trait and alias for detecting Allocator-like types.
1112 * include/bits/basic_string.h (basic_string): Add deduction guide
1114 * include/ext/alloc_traits.h (__gnu_cxx::__alloc_traits): Add template
1115 parameter with default template argument that causes substitution
1116 failures for types that cannot be allocators.
1117 * testsuite/21_strings/basic_string/cons/char/deduction.cc: New.
1118 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc: New.
1120 2017-06-02 Jonathan Wakely <jwakely@redhat.com>
1123 * include/std/variant (__erased_ctor, __erased_assign, __erased_swap)
1124 (__erased_hash): Remove constexpr specifier and qualify calls to
1126 (__erased_dtor): Remove constexpr specifier and use _Destroy.
1128 2017-06-05 Jonathan Wakely <jwakely@redhat.com>
1130 * include/bits/stl_iterator_base_funcs.h
1131 (__advance<_RandomAccessIterator, _Distance>): Optimize for next/prev
1132 cases where incrementing or decrementing a single step.
1134 * include/bits/shared_ptr_base.h (__shared_ptr::owner_before)
1135 (__weak_ptr::owner_before, _Sp_owner_less::operator()): Add noexcept
1136 specifiers as per LWG 2873 and LWG 2942.
1137 * testsuite/20_util/owner_less/noexcept.cc: New.
1138 * testsuite/20_util/shared_ptr/observers/owner_before.cc: Test
1139 noexcept guarantees.
1140 * testsuite/20_util/weak_ptr/observers/owner_before.cc: Likewise.
1142 2017-06-03 Andreas Schwab <schwab@linux-m68k.org>
1144 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
1146 2017-06-03 Eric Botcazou <ebotcazou@adacore.com>
1148 * src/filesystem/dir.cc (fs::_Dir::advance): Use std::exchange.
1150 2017-06-02 Jonathan Wakely <jwakely@redhat.com>
1153 * doc/xml/manual/status_cxx2011.xml: Document to_int_type behaviour.
1154 * include/bits/char_traits.h (char_traits<char16_t>::to_int_type):
1155 Transform eof value to U+FFFD.
1156 * testsuite/21_strings/char_traits/requirements/char16_t/eof.cc: New.
1157 * testsuite/27_io/basic_streambuf/sgetc/char16_t/80624.cc: New.
1158 * testsuite/27_io/basic_streambuf/sputc/char16_t/80624.cc: New.
1160 * libsupc++/Makefile.am: Remove custom targets for files that need to
1161 be compiled as C++11 or C++14.
1162 * libsupc++/Makefile.in: Regenerate.
1163 * libsupc++/del_ops.cc: Use pragma to disable -Wsized-deallocation
1165 * libsupc++/del_opvs.cc: Likewise.
1167 2017-06-02 Richard Biener <rguenther@suse.de>
1168 Markus Eisenmann <meisenmann.lba@fh-salzburg.ac.at>
1171 * libsupc++/eh_alloc.cc (pool::free): Keep list properly
1172 sorted and add missing freelist item merging cases.
1174 2017-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1176 (GLIBCXX_CROSSCONFIG): Handle *-solaris* like *-linux* etc.
1177 Remove *-solaris* section.
1178 * configure: Regenerate.
1180 2017-05-31 Jonathan Wakely <jwakely@redhat.com>
1183 * include/bits/stl_bvector.h (vector<bool>::_M_initialize): Avoid
1184 null pointer dereference when size is zero.
1185 * testsuite/23_containers/vector/bool/80893.cc: New.
1186 * testsuite/util/testsuite_allocator.h (PointerBase::PointerBase):
1187 Add non-explicit constructor from nullptr.
1188 (PointerBase::derived() const): Add const-qualified overload.
1190 2017-05-20 Tim Shen <timshen@google.com>
1193 * include/std/variant(variant::variant): SFINAE on is_same first.
1194 * testsuite/20_util/variant/any.cc: test case.
1196 2017-05-24 Jonathan Wakely <jwakely@redhat.com>
1198 * src/c++11/random.cc (random_device::_M_getentropy): Use __CHAR_BIT__
1199 instead of fixed number of bits.
1201 2017-05-24 Andreas Schwab <schwab@suse.de>
1203 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
1204 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Likewise.
1206 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
1207 Jonathan Wakely <jwakely@redhat.com>
1210 * acinclude.m4: Bump libtool_VERSION.
1211 * config/abi/pre/gnu.ver: Create GLIBCXX_3.4.24 with new symbol.
1212 * config.h.in: Regenerate.
1213 * configure: Regenerate.
1214 * configure.ac: Add test for <linux/random.h>.
1215 * doc/xml/manual/abi.xml: Document new library version.
1216 * include/bits/random.h (random_device::entropy)
1217 [_GLIBCXX_USE_RANDOM_TR1]: Add call to new _M_getentropy member.
1218 (random_device::_M_getentropy): Declare.
1219 * src/c++11/random.cc (random_device::_M_getentropy): Define.
1220 * testsuite/util/testsuite_abi.cc: Add GLIBCXX_3.4.24 to known
1221 versions, and make it the latest version.
1223 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
1226 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Add
1227 explicit conversion to avoid signed overflow.
1229 2017-05-19 Jonathan Wakely <jwakely@redhat.com>
1232 * include/bits/stl_algo.h (search): Add new overload for C++17.
1233 * testsuite/25_algorithms/search/searcher.cc: New.
1235 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
1238 * include/std/functional (_Mem_fn_traits_base): Add specializations
1239 for noexcept member function types.
1240 * testsuite/20_util/function_objects/mem_fn/80478.cc: New test.
1242 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
1244 * doc/xml/manual/policy_data_structures.xml: Fix typo.
1245 * doc/xml/manual/test_policy_data_structures.xml: Likewise.
1246 * doc/html/*: Regenerate.
1248 * doc/xml/manual/abi.xml: Document latest library versions.
1249 * doc/xml/manual/build_hacking.xml: Document requirement to update
1250 abi.xml when bumping library versions.
1251 * doc/html/*: Regenerate.
1253 2017-05-17 Jonathan Wakely <jwakely@redhat.com>
1255 * include/bits/refwrap.h: Fix Doxygen warning.
1256 * include/bits/specfun.h: Likewise.
1257 * include/bits/std_function.h: Likewise.
1258 * include/bits/stl_algo.h (set_union, set_intersection)
1259 (set_difference, set_symmetric_difference): Add Doxygen @param tags
1260 for output iterator parameters.
1261 * include/bits/stl_iterator.h (inserter): Add Doxygen @param tag for
1263 * include/std/mutex (try_lock, lock): Change Mutex to Lockable in
1266 2017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
1268 Implement new C++ intrinsics __is_assignable and __is_constructible.
1269 * include/std/type_traits (__do_is_static_castable_impl): Remove.
1270 (__is_static_castable_impl, __is_static_castable_safe): Likewise.
1271 (__is_static_castable, __do_is_direct_constructible_impl): Likewise.
1272 (__is_direct_constructible_impl): Likewise.
1273 (__is_direct_constructible_new_safe): Likewise.
1274 (__is_base_to_derived_ref, __is_lvalue_to_rvalue_ref): Likewise.
1275 (__is_direct_constructible_ref_cast): Likewise.
1276 (__is_direct_constructible_new, __is_direct_constructible): Likewise.
1277 (__do_is_nary_constructible_impl): Likewise.
1278 (__is_nary_constructible_impl, __is_nary_constructible): Likewise.
1279 (__is_constructible_impl): Likewise.
1280 (is_constructible): Call the intrinsic.
1281 (__is_assignable_helper): Remove.
1282 (is_assignable): Call the intrinsic.
1283 (is_trivially_constructible): Likewise.
1284 (__is_trivially_copy_constructible_impl): New.
1285 (is_trivially_copy_constructible): Use it.
1286 (__is_trivially_move_constructible_impl): New.
1287 (is_trivially_move_constructible): Use it.
1288 (is_trivially_assignable): Call the intrinsic.
1289 (__is_trivially_copy_assignable_impl): New.
1290 (is_trivially_copy_assignable): Use it.
1291 (__is_trivially_move_assignable_impl): New.
1292 (is_trivially_move_assignable): Use it.
1293 (testsuite/20_util/declval/requirements/1_neg.cc): Adjust.
1294 (testsuite/20_util/is_trivially_copy_assignable/value.cc):
1296 (testsuite/20_util/is_trivially_copy_constructible/value.cc): Likewise.
1297 (testsuite/20_util/is_trivially_move_assignable/value.cc): Likewise.
1298 (testsuite/20_util/is_trivially_move_constructible/value.cc): Likewise.
1299 (testsuite/20_util/make_signed/requirements/typedefs_neg.cc): Adjust.
1300 (testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc):
1303 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
1305 * testsuite/experimental/source_location/1.cc: Change expected result
1306 for source_location::current() used in default member initializer.
1308 * doc/xml/manual/status_cxx2017.xml: Update status table.
1309 * doc/html/*: Regenerate.
1310 * include/Makefile.am: Add new header.
1311 * include/Makefile.in: Regenerate.
1312 * include/experimental/source_location: New header implementing N4519.
1313 * testsuite/experimental/source_location/1.cc: New test.
1316 * include/bits/shared_ptr_base.h [!__cpp_rtti] (type_info): Declare
1317 outside versioned namespace.
1319 * configure: Regenerate.
1321 2017-05-16 Marc Glisse <marc.glisse@inria.fr>
1323 * include/std/optional (_Optional_base::_M_get): Check precondition.
1324 * testsuite/20_util/optional/cons/value_neg.cc: Update line numbers.
1326 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
1328 * doc/xml/manual/appendix_contributing.xml: Link to test docs and
1329 note higher DejaGnu version requirement.
1330 * doc/html/*: Regenerate.
1332 * doc/xml/manual/appendix_contributing.xml: Link to the list of bad
1334 * doc/html/*: Regenerate.
1336 2017-05-15 Jonathan Wakely <jwakely@redhat.com>
1339 * include/bits/node_handle.h (_Node_insert_return): Reorder members.
1340 (tuple_size, tuple_element): Remove partial specializations.
1341 * include/bits/stl_tree.h (_Rb_tree::insert_return_type): Use
1342 const_iterator for std::set.
1343 * testsuite/23_containers/map/modifiers/extract.cc: New.
1344 * testsuite/23_containers/set/modifiers/extract.cc: New.
1345 * testsuite/23_containers/unordered_map/modifiers/extract.cc: New.
1346 * testsuite/23_containers/unordered_set/modifiers/extract.cc: New.
1348 2017-05-12 Jonathan Wakely <jwakely@redhat.com>
1351 * include/std/utility (tuple_size<cv T>): Only define partial
1352 specializations when tuple_size<T>::value is valid.
1353 * testsuite/20_util/tuple/78939.cc: New.
1354 * testsuite/20_util/tuple/cv_tuple_size_neg.cc: New.
1356 2017-05-11 François Dumont <fdumont@gcc.gnu.org>
1358 * include/bits/stl_tree.h [_GLIBCXX_INLINE_VERSION]
1359 (_Rb_tree_impl<>): Remove _Is_pod_comparator
1362 * include/debug/formatter.h [_GLIBCXX_INLINE_VERSION]
1363 (__gnu_debug::_Error_formatter::_Parameter::_M_print_field): Remove.
1364 (__gnu_debug::_Error_formatter::_Parameter::_M_print_description):
1366 (__gnu_debug::_Error_formatter::_M_format_word): Remove.
1367 (__gnu_debug::_Error_formatter::_M_print_word): Remove.
1368 (__gnu_debug::_Error_formatter::_M_print_string): Remove.
1369 (__gnu_debug::_Error_formatter::_M_get_max_length): Remove.
1370 * src/c++11/debug.cc: Adapt.
1371 * config/abi/pre/gnu-versioned-namespace.ver: Adapt.
1373 2017-05-11 Jonathan Wakely <jwakely@redhat.com>
1375 * doc/xml/manual/allocator.xml: Fix ViewCVS URLs.
1376 * doc/xml/manual/mt_allocator.xml: Likewise.
1377 * doc/html/*: Regenerate.
1380 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Define
1381 function to get unique fake std::type_info reference.
1382 (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Compare to
1383 _S_ti() fake reference.
1384 (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Share
1385 single implementation with or without RTTI enable.
1386 [!__cpp_rtti]: Pass fake reference to _M_get_deleter.
1387 * testsuite/20_util/shared_ptr/creation/alloc.cc: Change expected
1388 allocation and deallocation counts.
1389 * testsuite/20_util/shared_ptr/creation/single_allocation.cc: New.
1390 * testsuite/20_util/shared_ptr/creation/single_allocation_no_rtti.cc:
1393 2017-05-10 François Dumont <fdumont@gcc.gnu.org>
1395 Bump version namespace.
1396 * config/abi/pre/gnu-versioned-namespace.ver: Bump version namespace
1397 from __7 to __8. Bump GLIBCXX_7.0 to GLIBCXX_8.0.
1398 * acinclude.m4 (libtool_VERSION): Bump to 8:0:0.
1399 * include/bits/c++config: Adapt.
1400 * include/bits/regex.h: Adapt.
1401 * include/experimental/bits/fs_fwd.h: Adapt.
1402 * include/experimental/bits/lfts_config.h: Adapt.
1403 * include/std/variant: Adapt.
1404 * python/libstdcxx/v6/printers.py: Adapt.
1405 * testsuite/libstdc++-prettyprinters/48362.cc: Adapt.
1407 * include/bits/stl_algobase.h (std::__iter_swap<false>): Remove
1408 _GLIBCXX_MOVE usage.
1410 2017-05-09 Jason Merrill <jason@redhat.com>
1412 * testsuite/24_iterators/container_access.cc (test03): Make il3 static.
1414 2017-05-08 Jonathan Wakely <jwakely@redhat.com>
1416 * include/std/optional: Use a separate static_assert per condition.
1417 * testsuite/20_util/optional/cons/value_neg.cc: Update dg-error line
1420 * doc/xml/manual/mt_allocator.xml: Clarify deallocation behaviour.
1421 * doc/html/*: Regenerate.
1423 2017-05-02 Hugo Beauzée-Luyssen <hugo@beauzee.fr>
1426 * config/os/mingw32-w64/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
1428 2017-04-29 François Dumont <fdumont@gcc.gnu.org>
1430 * testsuite/libstdc++-prettyprinters/48362.cc: Replace a regexp-test
1433 2017-04-28 Jonathan Wakely <jwakely@redhat.com>
1436 * include/bits/stl_construct.h (_Destroy, _Destroy_n): Add static
1437 assertions to ensure type is destructible.
1438 (destroy_at, destroy, destroy_n): Move from stl_uninitialized.h.
1439 * include/bits/stl_uninitialized.h (destroy_at, destroy, destroy_n):
1440 Move to stl_construct.h.
1441 * testsuite/20_util/specialized_algorithms/memory_management_tools/
1442 destroy_neg.cc: New test.
1443 * testsuite/23_containers/vector/cons/destructible_neg.cc: New test.
1445 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
1446 superfluous "" in dg-error.
1448 2017-04-28 Tom de Vries <tom@codesourcery.com>
1450 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
1451 superfluous '{ target *-*-* }' in dg-(error|warning|message|bogus).
1453 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
1455 * include/ext/pb_ds/detail/list_update_map_/iterators_fn_imps.hpp
1456 (PB_DS_CLASS_C_DEC::end()): Remove redundant const in cast type.
1457 * testsuite/util/testsuite_rng.h (twister_rand_gen::get_prob()):
1460 2017-04-26 Jonathan Wakely <jwakely@redhat.com>
1462 * testsuite/23_containers/deque/allocator/move_assign-2.cc: Improve
1463 comment. Ensure first test works because allocator type propagates and
1464 not because is_always_equal is true.
1465 * testsuite/23_containers/vector/52591.cc: Likewise. Restore original
1466 testcase that instantiates the move-assignment operator.
1468 2017-04-24 Jonathan Wakely <jwakely@redhat.com>
1471 * include/bits/random.tcc (gamma_distribution::operator()): Fix magic
1472 number used in loop condition.
1475 * include/bits/refwrap.h (ref, cref): Qualify calls.
1476 * testsuite/20_util/reference_wrapper/80504.cc: New test.
1479 * include/experimental/optional (optional::swap): Fix exception
1482 2017-04-21 Jonathan Wakely <jwakely@redhat.com>
1485 * include/std/future (_State_baseV2::_Setter::operator()): Remove
1486 _S_check calls that are done after the pointer to the shared state is
1487 already dereferenced.
1488 (_State_baseV2::_Setter<_Res, void>): Define specialization for void
1489 as partial specialization so it can be defined within the definition
1491 (_State_baseV2::__setter): Call _S_check.
1492 (_State_baseV2::__setter(promise<void>*)): Add overload for use by
1493 promise<void>::set_value and promise<void>::set_value_at_thread_exit.
1494 (promise<T>, promise<T&>, promise<void>): Make _State a friend.
1495 (_State_baseV2::_Setter<void, void>): Remove explicit specialization.
1496 (promise<void>::set_value, promise<void>::set_value_at_thread_exit):
1497 Use new __setter overload.
1498 * testsuite/30_threads/promise/members/at_thread_exit2.cc: New test.
1499 * testsuite/30_threads/promise/members/set_exception.cc: Test
1500 promise<T&> and promise<void> specializations.
1501 * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
1502 Test for no_state error condition.
1503 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
1505 * include/backward/auto_ptr.h: Ignore deprecated warnings from use
1507 * include/bits/shared_ptr.h: Likewise.
1508 * include/bits/shared_ptr_base.h: Likewise.
1509 * include/bits/unique_ptr.h: Likewise.
1510 * libstdc++-v3/testsuite/20_util/default_delete/48631_neg.cc: Adjust
1512 * libstdc++-v3/testsuite/20_util/default_delete/void_neg.cc: Likewise.
1513 * libstdc++-v3/testsuite/20_util/unique_ptr/assign/48635_neg.cc:
1515 * libstdc++-v3/testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc:
1518 2017-04-20 Edward Smith-Rowland <3dw4rd@verizon.net>
1520 PR libstdc++/68397 std::tr1::expint fails ... long double arguments.
1521 * include/tr1/exp_integral.tcc: Increase iteration limits.
1522 * testsuite/tr1/5_numerical_facilities/special_functions/15_expint/
1523 pr68397.cc: New test.
1524 * testsuite/special_functions/14_expint/pr68397.cc: New test.
1526 2017-04-20 Jonathan Wakely <jwakely@redhat.com>
1529 * include/std/atomic [!_GLIBCXX_USE_C99_STDINT_TR1] (atomic_int8_t)
1530 (atomic_uint8_t, atomic_int16_t, atomic_uint16_t, atomic_int32_t,
1531 (atomic_uint32_t, atomic_int64_t, atomic_uint64_t)
1532 (atomic_int_least8_t, atomic_uint_least8_t, atomic_int_least16_t)
1533 (atomic_uint_least16_t, atomic_int_least32_t, atomic_uint_least32_t)
1534 (atomic_int_least64_t, atomic_uint_least64_t, atomic_int_fast8_t)
1535 (atomic_uint_fast8_t, atomic_int_fast16_t, atomic_uint_fast16_t)
1536 (atomic_int_fast32_t, atomic_uint_fast32_t, atomic_int_fast64_t)
1537 (atomic_uint_fast64_t, atomic_intmax_t, atomic_uintmax_t): Don't
1540 2017-04-19 Jonathan Wakely <jwakely@redhat.com>
1542 * doc/xml/manual/abi.xml: Rephrase one of the references to the
1544 * doc/xml/manual/test.xml: Document DejaGnu 1.5.3 requirement.
1545 * doc/html/*: Regenerate.
1547 * libsupc++/new: Update comment on #endif directive.
1550 * include/experimental/bits/fs_dir.h (directory_iterator)
1551 (recursive_directory_iterator): Remove noexcept from defaulted
1555 * include/std/type_traits (is_aggregate): Change __has_builtin checks.
1556 * libsupc++/new (launder): Likewise.
1558 2017-04-18 Jonathan Wakely <jwakely@redhat.com>
1560 * include/std/functional (default_searcher, __boyer_moore_array_base)
1561 (__is_std_equal_to, __boyer_moore_base_t, boyer_moore_searcher)
1562 (boyer_moore_horspool_searcher): Remove redundant namespace
1564 (default_searcher::operator()): Construct return value early and
1565 advance second member in-place.
1566 (boyer_moore_horspool_searcher::operator()): Increment random access
1567 iterator directly instead of using std::next.
1568 (boyer_moore_searcher::operator()): Fix return value.
1569 * testsuite/20_util/function_objects/searchers.cc: Check both parts
1572 2017-04-12 Gerald Pfeifer <gerald@pfeifer.com>
1574 * doc/xml/faq.xml: Update reference link to C++ ABI for Itanium.
1575 * doc/xml/manual/abi.xml. Ditto (thrice).
1577 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
1579 * doc/xml/manual/status_cxx2017.xml: Remove duplicate table entry.
1580 * doc/html/*: Regenerate.
1582 * testsuite/20_util/reference_wrapper/invoke.cc: Uncomment tests
1583 that no longer fail.
1585 * include/bits/ios_base.h: Correct comment.
1586 * testsuite/util/testsuite_hooks.h: Likewise.
1588 * doc/xml/manual/status_cxx2017.xml: Update C++17 status table.
1589 * doc/xml/manual/appendix_contributing.xml (contrib.organization): Add
1590 directories for debug, parallel and profile headers.
1591 * doc/html/*: Regenerate.
1593 * include/bits/char_traits.h (__gnu_cxx::char_traits): Add
1594 _GLIBCXX14_CONSTEXPR on assign, compare, find, and length.
1595 (std::char_traits<char>, std::char_traits<wchar_t>): Add
1596 _GLIBCXX17_CONSTEXPR on assign.
1597 (std::char_traits<char16_t>, std::char_traits<char32_t>): Add
1598 _GLIBCXX17_CONSTEXPR on assign, compare, find, and length.
1599 * testsuite/21_strings/char_traits/requirements/
1600 constexpr_functions_c++17.cc: New test.
1602 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
1605 * include/bits/stl_pair.h (__nonesuch_no_braces): New.
1606 (operator=(typename conditional<
1607 __and_<is_copy_assignable<_T1>,
1608 is_copy_assignable<_T2>>::value,
1609 const pair&, const __nonesuch&>::type)): Change __nonesuch
1610 to __nonesuch_no_braces.
1611 (operator=(typename conditional<
1612 __not_<__and_<is_copy_assignable<_T1>,
1613 is_copy_assignable<_T2>>>::value,
1614 const pair&, const __nonesuch&>::type)): Likewise.
1615 (operator=(typename conditional<
1616 __and_<is_move_assignable<_T1>,
1617 is_move_assignable<_T2>>::value,
1618 pair&&, __nonesuch&&>::type)): Likewise.
1619 * testsuite/20_util/pair/79141.cc: New.
1621 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
1623 Implement std::is_aggregate.
1624 * include/std/type_traits (is_aggregate, is_aggregate_v): New.
1625 * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc:
1627 * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise.
1628 * testsuite/20_util/is_aggregate/value.cc: Likewise.
1630 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
1632 Adjust optional's pretty printer for LWG 2900.
1633 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter.__init__):
1634 Look at the nested payload in case of non-experimental optional.
1636 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
1638 Implement LWG 2900, The copy and move constructors
1639 of optional are not constexpr.
1640 * include/std/optional (_Optional_payload): New.
1641 (_Optional_base): Remove the bool parameter.
1642 (_Optional_base<_Tp, false>): Remove.
1643 (_Optional_base()): Adjust.
1644 (_Optional_base(nullopt_t)): Likewise.
1645 (_Optional_base(in_place_t, _Args&&...)): Likewise.
1646 (_Optional_base(in_place_t, initializer_list<_Up>, _Args&&...)):
1648 (_Optional_base(const _Optional_base&)): Likewise.
1649 (_Optional_base(_Optional_base&&)): Likewise.
1650 (operator=(const _Optional_base&)): Likewise.
1651 (operator=(_Optional_base&&)): Likewise.
1652 (~_Optional_base()): Remove.
1653 (_M_is_engaged()): Adjust.
1654 (_M_get()): Likewise.
1655 (_M_construct(_Args&&...)): Likewise.
1656 (_M_destruct()): Likewise.
1657 (_M_reset()): Likewise.
1658 (_Optional_base::_Empty_byte): Remove.
1659 (_Optional_base::_M_empty): Remove.
1660 (_Optional_base::_M_payload): Adjust.
1661 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
1662 * testsuite/20_util/optional/constexpr/cons/value.cc: Add tests.
1664 2017-03-28 Jonathan Wakely <jwakely@redhat.com>
1667 * include/bits/random.tcc (generate_canonical): Use std::nextafter
1668 or numeric_limits::epsilon() to reduce out-of-range values.
1669 * testsuite/26_numerics/random/uniform_real_distribution/operators/
1670 64351.cc: Verify complexity requirement is met.
1672 * doc/xml/manual/abi.xml: Add xml:id anchor.
1673 * doc/xml/manual/using.xml (manual.intro.using.macros): Document
1674 _GLIBCXX_RELEASE. Link to new anchor for __GLIBCXX__ notes.
1675 (concurrency.io.structure): Add markup.
1676 * doc/html/*: Regenerate.
1679 * include/bits/shared_ptr_base.h
1680 (__shared_ptr::_M_enable_shared_from_this_with): Change parameters to
1681 non-const and then use remove_cv to get unqualified type.
1682 * testsuite/20_util/enable_shared_from_this/members/const.cc: Don't
1683 cast away constness on object created const.
1684 * testsuite/20_util/shared_ptr/cons/80229.cc: New test.
1686 2017-03-26 Markus Trippelsdorf <markus@trippelsdorf.de>
1689 * include/bits/stl_tree.h:
1690 (_Rb_tree_header::_M_move_data(_Rb_tree_header&)): Also save _M_color.
1692 2017-03-23 Jonathan Wakely <jwakely@redhat.com>
1694 * testsuite/23_containers/array/tuple_interface/
1695 tuple_element_debug_neg.cc: Adjust dg-error.
1696 * testsuite/23_containers/list/operations/78389.cc: Fix less-than to
1697 define a valid strict weak ordering.
1698 * testsuite/23_containers/priority_queue/67085.cc: Disable test for
1699 Debug Mode, due to debug checks making extra copies of predicate.
1700 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
1703 * doc/xml/faq.xml: Add link.
1704 * doc/xml/manual/backwards_compatibility.xml: Remove outdated
1705 information on pre-ISO headers. Replace broken link to C++ FAQ Lite.
1706 * doc/xml/manual/io.xml: Update broken link.
1707 * doc/html/*: Regenerate.
1709 2017-03-23 Daniel Kruegler <daniel.kruegler@gmail.com>
1711 Implement LWG 2686, Why is std::hash specialized for error_code,
1712 but not error_condition?
1713 * include/std/system_error (hash<error_condition>): Define for C++17.
1714 * testsuite/20_util/hash/operators/size_t.cc (hash<error_condition>):
1715 Instantiate test for error_condition.
1716 * testsuite/20_util/hash/requirements/explicit_instantiation.cc
1717 (hash<error_condition>): Instantiate hash<error_condition>.
1719 * include/bits/c++config (_GLIBCXX17_INLINE): Define.
1720 * include/bits/regex_constants.h (All std::regex_constants constants):
1721 Add _GLIBCXX17_INLINE as per P0607R0.
1722 * include/bits/std_mutex.h (defer_lock, try_to_lock, adopt_lock):
1724 * include/bits/stl_pair.h (piecewise_construct): Likewise.
1725 * include/bits/uses_allocator.h (allocator_arg, uses_allocator_v)
1726 (__is_uses_allocator_constructible_v)
1727 (__is_nothrow_uses_allocator_constructible_v): Likewise.
1728 * include/std/chrono (treat_as_floating_point_v): Likewise.
1729 * include/std/functional (is_bind_expression_v, is_placeholder_v):
1731 * include/std/optional (nullopt): Likewise.
1732 * include/std/ratio (ratio_equal_v, ratio_not_equal_v, ratio_less_v)
1733 ratio_less_equal_v, ratio_greater_v, ratio_greater_equal_v): Likewise.
1734 * include/std/system_error (is_error_code_enum_v)
1735 (is_error_condition_enum_v): Likewise.
1736 * include/std/tuple (tuple_size_v, ignore): Likewise.
1737 (ignore): Declare ignore constexpr as per LWG 2773, declare assignment
1738 constexpr as per LWG 2933.
1739 * include/std/type_traits (All variable templates): Add
1740 _GLIBCXX17_INLINE as per P0607R0.
1741 * include/std/variant (variant_size_v, variant_npos, __index_of_v)
1742 (__tuple_count_v, __exactly_once): Likewise.
1743 * testsuite/18_support/headers/new/synopsis.cc
1744 (hardware_destructive_interference_size)
1745 (hardware_constructive_interference_size): Likewise for commented-out
1747 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Add new
1748 test function for constexpr std::ignore (LWG 2773).
1749 * testsuite/20_util/tuple/creation_functions/constexpr_cpp14.cc: New
1752 2017-03-22 Jonathan Wakely <jwakely@redhat.com>
1754 * include/bits/shared_ptr.h (shared_ptr, weak_ptr): Add deduction
1756 * include/bits/std_function.h (function): Likewise.
1757 * include/bits/stl_pair.h (pair): Likewise.
1758 * include/debug/array (__gnu_debug::array): Likewise.
1759 * include/std/array (array): Likewise.
1760 * include/std/functional (make_default_searcher)
1761 (make_boyer_moore_searcher, make_boyer_moore_horspool_searcher):
1762 Remove generator functions.
1763 * include/std/tuple (tuple): Add deduction guides.
1764 * include/std/valarray (valarray): Likewise.
1765 * testsuite/20_util/function_objects/searchers.cc: Adjust to use
1766 class template argument deduction instead of generator functions.
1767 * testsuite/20_util/function/cons/deduction.cc: New test.
1768 * testsuite/20_util/optional/cons/deduction_guide.cc: Rename to ...
1769 * testsuite/20_util/optional/cons/deduction.cc: ... here.
1770 * testsuite/20_util/pair/cons/deduction.cc: New test.
1771 * testsuite/20_util/shared_ptr/cons/deduction.cc: New test.
1772 * testsuite/20_util/tuple/cons/deduction.cc: New test.
1773 * testsuite/20_util/tuple/element_access/get_neg.cc: Adjust dg-error.
1774 * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: New test.
1775 * testsuite/20_util/weak_ptr/cons/deduction.cc: New test.
1776 * testsuite/23_containers/array/cons/deduction.cc: New test.
1777 * testsuite/23_containers/array/cons/deduction_neg.cc: New test.
1778 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
1780 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise.
1781 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
1783 * testsuite/26_numerics/valarray/deduction.cc: New test.
1784 * testsuite/30_threads/lock_guard/cons/deduction.cc: New test.
1785 * testsuite/30_threads/scoped_lock/cons/deduction.cc: New test.
1786 * testsuite/30_threads/unique_lock/cons/deduction.cc: New test.
1788 2017-03-20 François Dumont <fdumont@gcc.gnu.org>
1790 * include/bits/stl_deque.h (deque): Access allocator value_type only if
1791 concept checks are enabled.
1792 * include/bits/stl_stack.h (stack): Likewise.
1793 * include/bits/stl_vector.h (vector): Likewise.
1794 * include/bits/stl_list.h (list): Likewise and check
1795 _SGIAssignableConcept only in C++03.
1796 * include/bits/stl_map.h (map): Likewise.
1797 * include/bits/stl_set.h (set): Likewise.
1798 * include/bits/stl_multimap.h (multimap): Likewise.
1799 * include/bits/stl_multiset.h (multiset): Likewise.
1800 * include/bits/stl_queue.h (queue, priority_queue): Likewise.
1802 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
1804 * doc/xml/manual/appendix_contributing.xml: Convert link to
1806 Update link to the C++ standard at ansi.org.
1808 * doc/xml/faq.xml: Remove information redundant with the above;
1809 instead add a reference.
1811 2017-03-17 Jonathan Wakely <jwakely@redhat.com>
1813 * src/c++11/codecvt.cc (range): Add non-type template parameter and
1814 define oerloaded operators for reading and writing code units.
1815 (range<Elem, false>): Define partial specialization for accessing
1816 wide characters in potentially unaligned byte ranges.
1817 (ucs2_span(const char16_t*, const char16_t*, ...))
1818 (ucs4_span(const char16_t*, const char16_t*, ...)): Change parameters
1819 to range<const char16_t, false> in order to avoid unaligned reads.
1820 (__codecvt_utf16_base<char16_t>::do_out)
1821 (__codecvt_utf16_base<char32_t>::do_out)
1822 (__codecvt_utf16_base<wchar_t>::do_out): Use range specialization for
1823 unaligned data to avoid unaligned writes.
1824 (__codecvt_utf16_base<char16_t>::do_in)
1825 (__codecvt_utf16_base<char32_t>::do_in)
1826 (__codecvt_utf16_base<wchar_t>::do_in): Likewise for writes. Return
1827 error if there are unprocessable trailing bytes.
1828 (__codecvt_utf16_base<char16_t>::do_length)
1829 (__codecvt_utf16_base<char32_t>::do_length)
1830 (__codecvt_utf16_base<wchar_t>::do_length): Pass arguments of type
1831 range<const char16_t, false> to span functions.
1832 * testsuite/22_locale/codecvt/codecvt_utf16/misaligned.cc: New test.
1834 2017-03-16 Jonathan Wakely <jwakely@redhat.com>
1837 * src/c++11/codecvt.cc (to_integer(codecvt_mode)): Fix target type.
1840 * src/c++11/codecvt.cc (__codecvt_utf16_base<wchar_t>::do_out)
1841 (__codecvt_utf16_base<wchar_t>::do_in): Convert char arguments to
1842 char16_t to work with UTF-16 instead of UTF-8.
1843 * testsuite/22_locale/codecvt/codecvt_utf16/80041.cc: New test.
1845 * src/c++11/codecvt.cc (codecvt<char16_t, char, mbstate_t>)
1846 (codecvt<char32_t, char, mbstate_t>, __codecvt_utf8_base<char16_t>)
1847 (__codecvt_utf8_base<char32_t>, __codecvt_utf8_base<wchar_t>)
1848 (__codecvt_utf16_base<char16_t>, __codecvt_utf16_base<char32_t>)
1849 (__codecvt_utf16_base<wchar_t>, __codecvt_utf8_utf16_base<char16_t>)
1850 (__codecvt_utf8_utf16_base<char32_t>)
1851 (__codecvt_utf8_utf16_base<wchar_t>): Fix do_encoding() and
1852 do_max_length() return values.
1853 * testsuite/22_locale/codecvt/codecvt_utf16/members.cc: New test.
1854 * testsuite/22_locale/codecvt/codecvt_utf8/members.cc: New test.
1855 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/members.cc: New test.
1858 * include/bits/locale_conv.h (__do_str_codecvt): Set __count on
1860 * src/c++11/codecvt.cc (operator&=, operator|=, operator~): Overloads
1861 for manipulating codecvt_mode values.
1862 (read_utf16_bom): Compare input to BOM constants instead of integral
1863 constants that depend on endianness. Take mode parameter by
1864 reference and adjust it, to distinguish between no BOM present and
1865 UTF-16BE BOM present.
1866 (ucs4_in, ucs2_span, ucs4_span): Adjust calls to read_utf16_bom.
1867 (surrogates): New enumeration type.
1868 (utf16_in, utf16_out): Add surrogates parameter to choose between
1869 UTF-16 and UCS2 behaviour.
1870 (utf16_span, ucs2_span): Use std::min not std::max.
1871 (ucs2_out): Use std::min not std::max. Disallow surrogate pairs.
1872 (ucs2_in): Likewise. Adjust calls to read_utf16_bom.
1873 * testsuite/22_locale/codecvt/codecvt_utf16/79980.cc: New test.
1874 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: New test.
1877 * src/c++11/codecvt.cc (write_utf16_code_point): Don't write 0xffff
1878 as a surrogate pair.
1879 (__codecvt_utf8_utf16_base<char32_t>::do_in): Use native endianness
1880 for internal representation.
1881 (__codecvt_utf8_utf16_base<wchar_t>::do_in): Likewise.
1882 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/79511.cc: New test.
1885 * include/bits/stl_heap.h (__is_heap, push_heap, __adjust_heap)
1886 (pop_heap, make_heap, sort_heap, is_heap_until, is_heap): Cope with
1887 invalid instantiations using function types for _Compare argument.
1888 * testsuite/25_algorithms/make_heap/80064.cc: New test.
1891 * python/libstdcxx/v6/printers.py (find_type): Avoid gdb.Type.name
1892 for GDB 7.6 compatibility, use gdb.Type.unqualified instead.
1894 2017-03-15 Ville Voutilainen <ville.voutilainen@gmail.com>
1896 Implement LWG 2857, {variant,optional,any}::emplace should
1897 return the constructed value.
1898 * include/std/any (emplace(_Args&&...)): Change the return type and
1899 return a reference to the constructed value.
1900 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
1901 * include/std/optional (emplace(_Args&&...)): Likewise.
1902 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
1903 * include/std/variant (emplace<_Tp>(_Args&&...)): Likewise.
1904 (emplace<_Tp>(initializer_list<_Up>, _Args&&...)): Likewise.
1905 (emplace<_Np>(_Args&&...)): Likewise.
1906 (emplace<_Np>(initializer_list<_Up>, _Args&&...)): Likewise.
1907 * testsuite/20_util/any/assign/emplace.cc: Add tests for
1908 checking the return value of emplace.
1909 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust.
1910 * testsuite/20_util/optional/assignment/6.cc: Add tests for
1911 checking the return value of emplace.
1912 * testsuite/20_util/variant/run.cc: Likewise.
1914 2017-03-15 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
1917 * include/ext/pb_ds/qdetail/binary_heap_/binary_heap_.hpp
1919 (push_heap): Remove the wrong checking using is_heap.
1920 (make_heap): Remove the assertion using is_heap.
1921 * include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp
1923 (resize_for_insert_if_needed): Add PB_DS_ASSERT_VALID after
1926 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
1929 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
1931 * testsuite/ext/pb_ds/regression/priority_queues.cc: Fix copy&paste
1934 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
1936 * acinclude.m4 (GLIBCXX_CHECK_S_ISREG_OR_S_IFREG): Fix typo in
1938 * config.h.in: Regenerate.
1939 * configure: Regenerate.
1940 * doc/Makefile.in: Regenerate.
1942 2017-03-14 Jonathan Wakely <jwakely@redhat.com>
1945 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1946 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace
1947 with a constrained template.
1948 [!_GLIBCXX_USE_CXX11_ABI]
1949 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise.
1950 * testsuite/21_strings/basic_string/cons/char/79162.cc: New test.
1951 * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test.
1953 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1956 * include/bits/list.tcc (merge(list&&)): Use const for the size_t
1958 (merge(list&&, _StrictWeakOrdering)): Likewise.
1959 * testsuite/23_containers/list/operations/80034.cc: New.
1961 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1963 Implement LWG 2806, Base class of bad_optional_access.
1964 * include/std/optional (bad_optional_access):
1965 Derive from std::exception.
1966 (bad_optional_access::bad_optional_access): Adjust.
1967 (bad_optional_access::what): New.
1968 (__throw_bad_optional_access(const char*)):
1969 Remove the parameter and adjust calls.
1970 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
1971 * testsuite/20_util/optional/typedefs.cc: Likewise.
1973 2017-03-12 Ville Voutilainen <ville.voutilainen@gmail.com>
1975 Implement LWG 2934, optional<const T> doesn't compare with T.
1976 * include/std/optional
1977 (operator==(const optional<_Tp>&, const optional<_Tp>&)):
1978 Turn into operator==(const optional<_Tp>&, const optional<_Up>&).
1979 (operator!=(const optional<_Tp>&, const optional<_Tp>&)):
1980 Turn into operator!=(const optional<_Tp>&, const optional<_Up>&).
1981 (operator<(const optional<_Tp>&, const optional<_Tp>&)):
1982 Turn into operator<(const optional<_Tp>&, const optional<_Up>&.
1983 (operator>(const optional<_Tp>&, const optional<_Tp>&)):
1984 Turn into operator>(const optional<_Tp>&, const optional<_Up>&.
1985 (operator<=(const optional<_Tp>&, const optional<_Tp>&)):
1986 Turn into operator<=(const optional<_Tp>&, const optional<_Up>&).
1987 (operator>=(const optional<_Tp>&, const optional<_Tp>&)):
1988 Turn into operator>=(const optional<_Tp>&, const optional<_Up>&).
1989 (operator==(const optional<_Tp>&, const _Tp&)):
1990 Turn into operator==(const optional<_Tp>&, const _Up&).
1991 (operator==(const _Tp&, const optional<_Tp>&)):
1992 Turn into operator==(const _Up&, const optional<_Tp>&).
1993 (operator!=(const optional<_Tp>&, const _Tp&)):
1994 Turn into operator!=(const optional<_Tp>&, const _Up&).
1995 (operator!=(const _Tp&, const optional<_Tp>&)):
1996 Turn into operator!=(const _Up&, const optional<_Tp>&).
1997 (operator<(const optional<_Tp>&, const _Tp&)):
1998 Turn into operator<(const optional<_Tp>&, const _Up&).
1999 (operator<(const _Tp&, const optional<_Tp>&)):
2000 Turn into operator<(const _Up&, const optional<_Tp>&).
2001 (operator>(const optional<_Tp>&, const _Tp&)):
2002 Turn into operator>(const optional<_Tp>&, const _Up&).
2003 (operator>(const _Tp&, const optional<_Tp>&)):
2004 Turn into operator>(const _Up&, const optional<_Tp>&).
2005 (operator<=(const optional<_Tp>&, const _Tp&)):
2006 Turn into operator<=(const optional<_Tp>&, const _Up&).
2007 (operator<=(const _Tp&, const optional<_Tp>&)):
2008 Turn into operator<=(const _Up&, const optional<_Tp>&).
2009 (operator>=(const optional<_Tp>&, const _Tp&)):
2010 Turn into operator>=(const optional<_Tp>&, const _Up&).
2011 (operator>=(const _Tp&, const optional<_Tp>&)):
2012 Turn into operator>=(const _Up&, const optional<_Tp>&).
2013 * testsuite/20_util/optional/relops/7.cc: New.
2015 2017-03-10 Jonathan Wakely <jwakely@redhat.com>
2017 * testsuite/17_intro/names.cc: Undefine macros that clash with
2018 identifiers in AIX system headers.
2020 * include/bits/invoke.h (__invoke): Use __invoke_result instead of
2021 result_of, and __is_nothrow_invocable instead of
2022 __is_nothrow_callable.
2023 * include/bits/shared_ptr_base.h (__shared_ptr): Use __is_invocable
2024 instead of __is_callable.
2025 * include/std/functional (invoke): use invoke_result_t instead of
2026 result_of_t and is_nothrow_invocable instead of is_nothrow_callable.
2027 (_Not_fn): Use __invoke_result instead of result_of.
2028 * include/std/type_traits (__result_of_memobj, __result_of_memfun):
2029 Remove partial specializations for reference_wrapper types.
2030 (__result_of_impl): Use __inv_unwrap to strip reference_wrapper.
2031 (__invoke_result): Define replacement for result_of and then use it to
2033 (__is_callable_impl, __is_callable, __is_nothrow_callable): Replace
2034 with __is_invocable_impl, __is_invocable, and __is_nothrow_invocable
2036 (invoke_result, invoke_result_t): Define for C++17.
2037 (is_callable, is_nothrow_callable): Replace with is_invocable,
2038 is_invocable_r, is_nothrow_invocable, and is_nothrow_invocable_r.
2039 (is_callable_v, is_nothrow_callable_v): Replace with is_invocable_v,
2040 is_invocable_r_v, is_nothrow_invocable_v, and is_nothrow_invocable_r_v.
2041 * include/std/variant (hash<variant<T...>>): Use is_nothrow_invocable_v
2042 instead of is_nothrow_callable_v.
2043 * testsuite/20_util/function_objects/invoke/59768.cc: Remove unused
2045 * testsuite/20_util/function_objects/not_fn/1.cc: Use is_invocable
2046 instead of is_callable.
2047 * testsuite/20_util/is_callable/*: Rename directory and adjust tests
2049 * testsuite/20_util/is_nothrow_callable/*: Likewise.
2050 * testsuite/20_util/optional/hash.cc: Use is_invocable_v instead of
2052 * testsuite/20_util/variant/hash.cc: Likewise.
2054 2017-03-10 George Lander <george.lander@arm.com>
2056 * acinclude.m4 (glibcxx_cv_obsolete_isnan): Define
2057 _GLIBCXX_INCLUDE_NEXT_C_HEADERS before including math.h.
2058 * configure: Regenerate.
2060 2017-03-09 Jonathan Wakely <jwakely@redhat.com>
2062 * include/std/functional (_Not_fn): Define macro to simplify
2063 repetitive function definitions.
2065 * doc/xml/manual/status_cxx2017.xml: Document std::byte support.
2066 * include/c_global/cstddef (std::byte): Define for C++17.
2067 * testsuite/18_support/byte/global_neg.cc: New test.
2068 * testsuite/18_support/byte/ops.cc: New test.
2069 * testsuite/18_support/byte/requirements.cc: New test.
2071 2017-03-05 Jonathan Wakely <jwakely@redhat.com>
2073 * doc/xml/manual/status_cxx2017.xml: Document P0156R2 status.
2074 * doc/html/*: Regenerate.
2075 * include/std/mutex (scoped_lock): Implement new C++17 template.
2076 * testsuite/30_threads/scoped_lock/cons/1.cc: New test.
2077 * testsuite/30_threads/scoped_lock/requirements/
2078 explicit_instantiation.cc: New test.
2079 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: New test.
2081 2017-03-02 Gerald Pfeifer <gerald@pfeifer.com>
2082 François Dumont <frs.dumont@gmail.com>
2083 Jonathan Wakely <jwakely@redhat.com>
2085 * doc/xml/manual/debug_mode.xml: Update and simplify note
2086 on link- and run-time coexistence.
2088 2017-03-02 Jonathan Wakely <jwakely@redhat.com>
2090 * testsuite/17_intro/headers/names.cc: Rename to ...
2091 * testsuite/17_intro/names.cc: ... here.
2094 * include/bits/hashtable_policy.h (__clp2): Use reserved names for
2095 parameters and local variables.
2096 * include/bits/ios_base.h (make_error_code, make_error_condition):
2098 * include/bits/list.tcc (list::sort): Likewise.
2099 * include/bits/mask_array.h (mask_array): Likewise.
2100 * include/bits/regex.h (regex_token_iterator): Likewise.
2101 * include/bits/slice_array.h (slice_array): Likewise.
2102 * include/bits/stl_algo.h (__sample): Likewise.
2103 * include/std/memory (undeclare_no_pointers): Likewise.
2104 * include/std/type_traits (is_callable_v, is_nothrow_callable_v):
2106 * libsupc++/exception_ptr.h (__dest_thunk): Likewise.
2107 * testsuite/17_intro/headers/names.cc: New test.
2110 * include/std/functional (bind::_Res_type_impl): Fix incorrect use of
2111 result_of that loses top-level cv-qualifiers.
2112 * testsuite/20_util/bind/79798.cc: New test.
2114 2017-03-01 Gerald Pfeifer <gerald@pfeifer.com>
2116 * doc/xml/manual/documentation_hacking.xml: Tweak link to
2119 2017-02-23 Jonathan Wakely <jwakely@redhat.com>
2121 * include/experimental/iterator: Include <iterator>.
2122 * testsuite/experimental/iterator/requirements.cc: Check for contents
2125 2017-02-19 Dinka Ranns <dinka.ranns@googlemail.com>
2127 C++17 GB50 resolution
2128 * include/std/chrono (duration::operator++()): Add
2129 _GLIBCXX17_CONSTEXPR.
2130 (duration::operator++(int)): Likewise.
2131 (duration::operator--()): Likewise.
2132 (duration::operator--(int)): Likewise.
2133 (duration::operator+=(const duration&)): Likewise.
2134 (duration::operator-=(const duration&)): Likewise.
2135 (duration::operator*=(const rep&)): Likewise.
2136 (duration::operator/=(const rep&)): Likewise.
2137 (duration::operator%=(const rep&)): Likewise.
2138 (duration::operator%=(const duration&)): Likewise.
2139 (time_point::operator+=(const duration&)): Likewise.
2140 (time_point::operator-=(const duration&)): Likewise.
2141 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: New test.
2142 * testsuite/20_util/duration/literals/range.cc: Adjust dg-error.
2143 * testsuite/20_util/time_point/arithmetic/constexpr.cc: New test.
2145 2017-02-19 Gerald Pfeifer <gerald@pfeifer.com>
2147 * doc/xml/manual/debug.xml: Adjust link to ThreadSanitizer.
2149 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
2151 * doc/xml/manual/io.xml: Update link to groups.google.com.
2152 Tweak link description.
2154 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
2156 * doc/xml/manual/profile_mode.xml: Fix link.
2158 2017-02-16 Gerald Pfeifer <gerald@pfeifer.com>
2160 * doc/xml/manual/policy_data_structures.xml: Simplify and
2161 standardize references to boost.org.
2162 * doc/xml/manual/policy_data_structures_biblio.xml: Ditto.
2163 * doc/xml/manual/shared_ptr.xml: Ditto.
2165 2017-02-16 Jonathan Wakely <jwakely@redhat.com>
2168 * src/c++11/snprintf_lite.cc (__concat_size_t): Calculate length
2169 written to buffer, not length remaining in buffer.
2171 2017-02-15 Tim Shen <timshen@google.com>
2174 * include/std/variant (operator<(), operator>(), operator<=(),
2175 operator>=(), operator==(), operator!=()): Implement P0393R3.
2176 * testsuite/20_util/variant/compile.cc: Adjust tests.
2177 * testsuite/20_util/variant/run.cc: Adjust tests.
2179 2017-02-15 Tim Shen <timshen@google.com>
2182 * include/std/variant (visit()): Forward variant types to the return
2183 type detection code.
2184 * testsuite/20_util/variant/compile.cc: Add test cases.
2186 2017-02-13 H.J. Lu <hongjiu.lu@intel.com>
2189 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
2191 2017-02-13 Jakub Jelinek <jakub@redhat.com>
2194 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
2195 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
2196 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Likewise.
2197 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
2198 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Likewise.
2199 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
2200 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Likewise.
2201 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
2202 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
2204 2017-02-13 Jonathan Wakely <jwakely@redhat.com>
2207 * include/std/future (__future_base::_Task_state::_M_run)
2208 (__future_base::_Task_state::_M_run_delayed): Use lvalue types in
2209 result_of expressions.
2210 * testsuite/30_threads/packaged_task/79486.cc: New.
2212 2017-02-11 Jonathan Wakely <jwakely@redhat.com>
2215 * include/bits/shared_ptr_base.h (__shared_ptr(_Yp*, _Deleter))
2216 (__shared_ptr(_Yp*, _Deleter, _Alloc)): Use lvalue types in
2217 __is_callable check.
2218 * testsuite/20_util/shared_ptr/cons/79467.cc: New.
2220 * include/bits/atomic_base.h: Re-indent.
2222 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
2224 * doc/xml/manual/profile_mode.xml: Update a paper reference.
2226 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
2228 * src/c++11/snprintf_lite.cc (__err): Use https for bug reporting.
2230 2017-02-08 Jonathan Wakely <jwakely@redhat.com>
2232 * doc/xml/manual/policy_data_structures.xml: Fix spelling of author's
2234 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise. Remove
2235 broken links to texts that are no longer online.
2236 * doc/xml/manual/profile_mode.xml: Update links to CGO 2009 paper and
2238 * doc/xml/manual/using.xml: Update links to memory model information.
2239 * doc/xml/manual/using_exceptions.xml: Update link to "Appendix E:
2240 Standard-Library Exception Safety".
2241 * doc/html/*: Regenerate.
2243 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
2245 * doc/xml/manual/profile_mode.xml: Unbreak link to
2246 "Optimizing Sorting with Machine Learning Algorithms".
2248 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
2250 * src/c++11/snprintf_lite.cc (__err): Update bug reporting URL.
2252 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
2254 * doc/xml/manual/abi.xml: Update link to "Sun Studio 11: C++
2257 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
2259 * doc/html/ext/lwg-active.html: Remove.
2260 * doc/html/ext/lwg-closed.html: Ditto.
2261 * doc/html/ext/lwg-defects.html: Ditto.
2263 * doc/Makefile.am (xml_extradir): Remove.
2265 (stamp-html-docbook-lwg): Remove recipe...
2266 (stamp-html-docbook-data): ...and its use here.
2267 * doc/Makefile.in: Regenerate.
2269 * doc/xml/manual/intro.xml: Shorten two paragraphs explaining
2270 the relationship to the upstream working group.
2271 Replace a local link to ../ext/lwg-active.html by the upstream one.
2272 Replace all reference to ../ext/lwg-defects.html by a new entity
2273 &DR; which refers to the upstream address.
2275 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
2277 * doc/xml/manual/status_cxx2017.xml: Fix link to N4284.
2279 2017-02-06 Jonathan Wakely <jwakely@redhat.com>
2282 * testsuite/20_util/duration/literals/range.cc: Prune extra output
2285 2017-02-06 Gerald Pfeifer <gerald@pfeifer.com>
2287 * doc/xml/manual/documentation_hacking.xml: Update URL of the
2288 DocBook Element Reference. Use that term as link description
2289 instead of "online".
2290 epubcheck has moved to GitHub.
2291 Remove obsolete link to DocBook Publishing Tools.
2293 2017-02-03 Jonathan Wakely <jwakely@redhat.com>
2296 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Restore ABI override
2297 so new ios::failure can be caught even when old ABI is the default.
2298 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
2299 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
2300 exceptions_failbit.cc: Likewise.
2301 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
2302 exceptions_failbit.cc: Likewise.
2303 * testsuite/27_io/basic_istream/extractors_other/char/
2304 exceptions_null.cc: Likewise.
2305 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
2306 exceptions_null.cc: Likewise.
2307 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
2308 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
2309 * testsuite/27_io/basic_ostream/inserters_other/char/
2310 exceptions_null.cc: Likewise.
2311 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
2312 exceptions_null.cc: Likewise.
2313 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
2316 * src/c++11/Makefile.am: Add new files.
2317 * src/c++11/Makefile.in: Regenerate.
2318 * src/c++11/cow-string-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
2319 (operator<<, operator>>, getline): Move explicit instantiations to ...
2320 * src/c++11/cow-string-io-inst.cc: ... new file.
2321 * src/c++11/cow-wstring-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
2322 (operator<<, operator>>, getline): Move explicit instantiations to ...
2323 * src/c++11/cow-wstring-io-inst.cc: ... new file.
2324 * src/c++11/functexcept.cc (__throw_ios_failure, __throw_system_error)
2325 (__throw_future_error, __throw_bad_function_call):
2326 (__throw_regex_error): Move functions for C++11 exceptions to the
2327 files that define the exception types.
2328 * src/c++11/functional.cc (__throw_bad_function_call): Move here.
2329 * src/c++11/future.cc (__throw_future_error): Likewise.
2330 * src/c++11/ios.cc (__throw_ios_failure): Likewise.
2331 * src/c++11/regex.cc (__throw_regex_error): Likewise.
2332 * src/c++11/snprintf_lite.cc (__concat_size_t): Print decimal
2333 representation directly instead of calling __int_to_char.
2334 * src/c++11/sso_string.cc (__sso_string): New file for definition
2335 of __sso_string type.
2336 * src/c++11/string-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
2337 explicit instantiations of narrow string I/O functions.
2338 * src/c++11/system_error.cc (__throw_system_error): Move here.
2339 (__sso_string): Move to new file.
2340 * src/c++11/wstring-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
2341 explicit instantiations of wide string I/O functions.
2342 * src/c++98/misc-inst.cc [_GLIBCXX_USE_CXX11_ABI] (operator<<)
2343 (operator>>, getline): Remove explicit instantiations from here.
2345 2017-02-02 H.J. Lu <hongjiu.lu@intel.com>
2347 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
2349 2017-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2351 * configure.host: Separate Solaris/SPARC and x86 baselines.
2352 * config/abi/post/solaris2.10/baseline_symbols.txt: Move ...
2353 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: ... here.
2354 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Move ...
2355 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
2357 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Move ...
2358 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: ... here.
2359 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: New file.
2360 * config/abi/post/solaris2.11/baseline_symbols.txt: Move ...
2361 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: ... here.
2362 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Move ...
2363 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
2365 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Move ...
2366 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: ... here.
2367 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: New file.
2369 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
2370 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
2371 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
2372 * config/abi/post/solaris2.11/baseline_symbols.txt: Likewise.
2373 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Likewise.
2374 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Likewise.
2376 2017-02-01 Jonathan Wakely <jwakely@redhat.com>
2379 * include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
2381 (_Iter_comp_to_iter): Likewise.
2382 * testsuite/25_algorithms/search/78346.cc: New test.
2385 * config/abi/pre/gnu.ver: Remove recently added symbols.
2386 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
2387 (basic_string::_M_copy_assign): Remove.
2388 (basic_string::operator=(const basic_string&)): Don't dispatch to
2389 _M_copy_assign. If source object is small just deallocate, otherwise
2390 perform new allocation before making any changes.
2391 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
2392 (basic_string::_M_copy_assign(const basic_string&, true_type)):
2394 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
2395 Test cases where the allocators are equal or the string is small.
2396 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
2399 2017-01-30 Ville Voutilainen <ville.voutilainen@gmail.com>
2401 Implement LWG 2825, LWG 2756 breaks class template argument
2402 deduction for optional.
2403 * include/std/optional: Add a deduction guide.
2404 * testsuite/20_util/optional/cons/deduction_guide.cc: New.
2406 2017-01-27 Jonathan Wakely <jwakely@redhat.com>
2409 * config/abi/pre/gnu.ver: Add new symbols.
2410 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
2411 (basic_string::_M_copy_assign): New overloaded functions to perform
2413 (basic_string::operator=(const basic_string&)): Dispatch to
2415 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
2416 (basic_string::_M_copy_assign(const basic_string&, true_type)):
2417 Define, performing rollback on exception.
2418 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
2419 Test exception-safety guarantee.
2420 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
2422 * testsuite/util/testsuite_allocator.h (uneq_allocator::swap): Make
2425 2017-01-26 Jonathan Wakely <jwakely@redhat.com>
2428 * include/tr1/complex (conj): Remove using-declaration and restore
2429 overloads, reverting previous change.
2431 * testsuite/23_containers/list/operations/78389.cc: Fix for C++11
2433 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
2434 Mark as unsupported in C++98 mode.
2435 * testsuite/23_containers/queue/requirements/constructible.cc:
2437 * testsuite/23_containers/stack/requirements/constructible.cc:
2439 * testsuite/25_algorithms/make_heap/movable.cc: Fix for C++11 mode.
2442 * include/bits/c++config (literals::string_view_literals::__7): Add.
2443 Only declare versioned namespaces for the relevant C++ dialects.
2444 * include/experimental/bits/erase_if.h (fundamentals_v2::__detail):
2445 Add versioning macros.
2446 * include/experimental/bits/lfts_config.h:
2447 (fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add.
2448 * include/experimental/string_view (fundamentals_v2::__detail):
2449 Add versioning macros.
2450 (fundamentals_v2::__detail::__identity): Remove.
2451 (fundamentals_v2::__detail::__idt): Use common_type instead of
2452 __detail::__identity.
2453 * include/std/string_view (__detail::__identity, __detail::__idt):
2455 (literals::string_view_literals): Fix nesting of versioning macros.
2458 * libsupc++/del_opa.cc (operator delete(void*, std::align_val_t))
2459 [!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN
2460 && !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC]:
2461 Retrieve original pointer value allocated by malloc.
2462 * libsupc++/new_opa.cc [!_GLIBCXX_HAVE_ALIGNED_ALLOC
2463 && !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN
2464 && !_GLIBCXX_HAVE__ALIGNED_MALLOC] (aligned_alloc(size_t, size_t)):
2465 Define, adjusting pointer value allocated by malloc and storing for
2466 retrieval by operator delete.
2468 2017-01-26 Jakub Jelinek <jakub@redhat.com>
2470 * libsupc++/eh_atomics.h: Update copyright years.
2471 * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years.
2473 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
2477 * include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
2478 (proj(T), conj(T)): Change return types per DR 1522.
2479 * include/tr1/complex (conj): Remove overloads and use std::conj.
2480 * testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
2481 * testsuite/26_numerics/complex/dr781.cc: ... this, and update.
2482 * testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
2483 real(T) and imag(T). Allow testing for C++11 too.
2485 2017-01-24 Jonathan Wakely <jwakely@redhat.com>
2488 * include/experimental/string_view (operator==): Check sizes first.
2489 * include/std/string_view (operator==): Likewise.
2491 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
2493 * testsuite/experimental/array/make_array.cc: Restore <functional>
2496 2017-01-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
2498 * testsuite/29_atomics/atomic/69301.cc: Require atomic builtins.
2500 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
2503 * include/experimental/array (__make_array_elem): New class template
2504 and partial specialization.
2505 (__is_reference_wrapper): Move into __make_array_elem specialization.
2506 (make_array): Use __make_array_elem to determine element type and move
2507 static assertion into specialization. Qualify std::forward call.
2508 (to_array): Add exception specifiation.
2509 * testsuite/experimental/array/make_array.cc: Test argument types
2510 without a common type.
2511 * testsuite/experimental/array/neg.cc: Adjust expected error message.
2513 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
2515 * doc/xml/manual/debug.xml: code.google.com uses https now.
2517 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
2519 * doc/xml/manual/test.xml: Fix link into gccint online manual.
2521 2017-01-21 Ville Voutilainen <ville.voutilainen@gmail.com>
2523 Make poisoned hashes SFINAE away the call operator of the hash.
2524 * include/bits/functional_hash.h
2525 (__poison_hash::__enable_hash_call): New.
2526 * include/std/optional (__optional_hash_call_base): New.
2527 (hash<optional<_Tp>>): Derive from the new base,
2528 move the hash function into that base.
2529 * include/std/variant (__variant_hash_call_base_impl): New.
2530 (__variant_hash_call_base): Likewise.
2531 (hash<variant<_Types...>>): Derive from the new base,
2532 move the hash function into that base.
2533 * testsuite/20_util/optional/hash.cc: Add tests for is_callable.
2534 * testsuite/20_util/variant/hash.cc: Likewise.
2536 2017-01-20 Joe Seymour <joe.s@somniumtech.com>
2538 * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t.
2539 * configure: Regenerate.
2541 2017-01-20 Jonathan Wakely <jwakely@redhat.com>
2544 * include/bits/random.h (uniform_real_distribution::param_type)
2545 (normal_distribution::param_type, lognormal_distribution::param_type)
2546 (gamma_distribution::param_type, chi_squared_distribution::param_type)
2547 (cauchy_distribution::param_type, fisher_f_distribution::param_type)
2548 (student_t_distribution::param_type)
2549 (bernoulli_distribution::param_type, binomial_distribution::param_type)
2550 (geometric_distribution::param_type)
2551 (negative_binomial_distribution::param_type)
2552 (poisson_distribution::param_type)
2553 (exponential_distribution::param_type)
2554 (weibull_distribution::param_type)
2555 (extreme_value_distribution::param_type)
2556 (discrete_distribution::param_type)
2557 (piecewise_constant_distribution::param_type)
2558 (piecewise_linear_distribution::param_type): Define operator!=.
2559 * include/bits/uniform_int_dist.h
2560 (uniform_int_distribution::param_type): Likewise.
2561 * include/ext/random (beta_distribution::param_type)
2562 (rice_distribution::param_type, nakagami_distribution::param_type)
2563 (pareto_distribution::param_type, k_distribution::param_type)
2564 (arcsine_distribution::param_type, hoyt_distribution::param_type)
2565 (triangular_distribution::param_type)
2566 (von_mises_distribution::param_type)
2567 (hypergeometric_distribution::param_type)
2568 (logistic_distribution::param_type)
2569 (uniform_on_sphere_distribution::param_type)
2570 (uniform_inside_sphere_distribution::param_type): Likewise.
2571 * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc:
2572 Test construction with param_type.
2573 * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc:
2575 * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
2577 * testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc:
2579 * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
2581 * testsuite/26_numerics/random/extreme_value_distribution/cons/
2583 * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc:
2585 * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc:
2587 * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc:
2589 * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc:
2591 * testsuite/26_numerics/random/negative_binomial_distribution/cons/
2593 * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
2595 * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc:
2597 * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
2599 * testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc:
2601 * testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc:
2603 * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc:
2605 * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise.
2606 * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise.
2607 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
2608 * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc:
2610 * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise.
2611 * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise.
2612 * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise.
2613 * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
2614 * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise.
2615 * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise.
2616 * testsuite/ext/random/triangular_distribution/cons/parms.cc:
2618 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/
2620 * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise.
2623 * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
2624 (__allocator_traits_base::__size_type): Remove.
2625 (allocator_traits::_Ptr): New class template to detect const and void
2626 pointer types without instantiating pointer_traits::rebind
2628 (allocator_traits::_Diff): Likewise for detecting difference_type.
2629 (allocator_traits::_Size): New class template to detect size_type
2630 without instantiating make_unsigned unnecessarily.
2631 * include/bits/ptr_traits.h (pointer_traits::element_type): Use
2632 __detected_or_t instead of __detected_or_t_.
2633 * include/std/type_traits (__detected_or_t_): Remove.
2634 * testsuite/20_util/allocator_traits/members/pointers.cc: New test.
2638 * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
2639 Replace with class template using void_t.
2640 (__alloc_rebind): Define in terms of
2641 __allocator_traits_base::__rebind.
2642 (allocator_traits): Remove unconditional static_assert for
2644 * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
2645 (pointer_traits::__rebind): Replace with class template using void_t.
2646 (pointer_traits::rebind): Define in terms of __rebind.
2647 (pointer_traits): Remove unconditional static_assert for rebind.
2648 * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
2649 * testsuite/20_util/pointer_traits/rebind.cc: New test.
2652 * include/experimental/any (__any_caster): Avoid instantiating
2653 manager function for types that can't be stored in any.
2654 * include/std/any (__any_caster): Likewise.
2655 * testsuite/20_util/any/misc/any_cast.cc: Test non-copyable type.
2656 * testsuite/experimental/any/misc/any_cast.cc: Likewise.
2659 * include/bits/stl_algo.h (is_partitioned): Use increment instead of
2662 2017-01-19 Jonathan Wakely <jwakely@redhat.com>
2665 * include/bits/shared_ptr_base.h (__enable_shared_from_this_base):
2667 (__enable_shared_from_this): Declare __shared_ptr as a friend.
2668 * testsuite/ext/shared_ptr/1.cc: New test.
2671 * include/bits/stl_algo.h (is_partitioned): Don't retest the partition
2673 * testsuite/25_algorithms/is_partitioned/2.cc: New test.
2675 * doc/xml/manual/abi.xml: Fix typo.
2676 * doc/html/manual/abi.html: Likewise.
2679 * include/bits/predefined_ops.h (_Iter_less_val, _Val_less_iter): Add
2680 converting constructors from _Iter_less_iter.
2681 (_Iter_comp_val, _Val_comp_iter): Add converting constructors from
2683 (__iter_comp_val(_Iter_comp_iter<C>): Use converting constructor.
2684 (__val_comp_iter(_Iter_comp_iter<C>): Likewise.
2685 * include/bits/stl_heap.h (__is_heap_until, __push_heap, __pop_heap)
2686 (__make_heap, __sort_heap): Change _Compare parameters to references.
2687 (__is_heap, push_heap, __adjust_heap, __pop_heap, pop_heap)
2688 (__make_heap, make_heap, sort_heap, is_heap_until): Pass comparison
2689 functions as lvalues.
2690 (is_heap): Call __is_heap_until directly to avoid copying __comp.
2691 * testsuite/23_containers/priority_queue/67085.cc: Adjust test to
2692 count copies during construction with empty sequence.
2695 * include/bits/stl_heap.h (__is_heap): Use _GLIBCXX_MOVE.
2696 (__make_heap, __sort_heap): Don't use _GLIBCXX_MOVE inside loops.
2697 * testsuite/23_containers/priority_queue/67085.cc: Adjust expected
2699 * testsuite/25_algorithms/make_heap/movable.cc: New test.
2702 * include/bits/stl_heap.h (push_heap, __adjust_heap, __pop_heap)
2703 (pop_heap, __make_heap, make_heap, __sort_heap, sort_heap): Use
2704 _GLIBCXX_MOVE when passing comparison function to other functions.
2705 (is_heap_until, is_heap): Use std::move when passing comparison
2707 * testsuite/23_containers/priority_queue/67085.cc: New test.
2710 * doc/xml/manual/abi.xml (abi.versioning.history): Add markup to
2711 macro names, filenames, and literal values. Document _GLIBCXX_RELEASE.
2712 Document that the deprecated _GLIBCXX_VERSION macro was removed for
2714 * doc/html/*: Regenerate.
2715 * include/Makefile.am (_GLIBCXX_RELEASE): Set value.
2716 * include/Makefile.in: Regenerate.
2717 * include/bits/c++config (_GLIBCXX_RELEASE): Add #define.
2718 * testsuite/ext/profile/mutex_extensions_neg.cc: Use lineno of 0 in
2721 2017-01-18 Jonathan Wakely <jwakely@redhat.com>
2724 * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
2725 aligned buffer instead of default-initialized variable.
2726 * testsuite/29_atomics/atomic/69301.cc: New test.
2727 * include/experimental/memory (observer_ptr::release): Use reserved
2729 * include/ext/pointer.h (_Pointer_adapter::operator++(int))
2730 (_Pointer_adapter::operator--(int)): Likewise.
2733 * include/experimental/random (randint): Use temporary instead of
2734 thread_local static.
2736 2017-01-17 Joshua Conner <joshconner@google.com>
2738 * crossconfig.m4: Add fuchsia OS.
2739 * configure: Regenerate.
2741 2017-01-17 Jonathan Wakely <jwakely@redhat.com>
2744 * doc/xml/manual/abi.xml (abi.versioning.history): Explain why the
2745 __GLIBCXX__ macro is not useful. Remove redundant date information
2746 and link to the GCC release timeline.
2747 (abi.versioning.active): Move partial sentence into the previous
2749 * doc/html/*: Regenerate.
2752 * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
2753 of remove_reference.
2754 * testsuite/18_support/nested_exception/79114.cc: New test.
2756 2017-01-17 Jakub Jelinek <jakub@redhat.com>
2759 * configure.ac: Add GCC_BASE_VER.
2760 * fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
2761 get version from BASE-VER file.
2762 * po/Makefile.in: Regenerated.
2763 * libsupc++/Makefile.in: Regenerated.
2764 * testsuite/Makefile.in: Regenerated.
2765 * src/Makefile.in: Regenerated.
2766 * configure: Regenerated.
2767 * Makefile.in: Regenerated.
2768 * include/Makefile.in: Regenerated.
2769 * doc/Makefile.in: Regenerated.
2770 * python/Makefile.in: Regenerated.
2771 * src/c++11/Makefile.in: Regenerated.
2772 * src/c++98/Makefile.in: Regenerated.
2773 * src/filesystem/Makefile.in: Regenerated.
2775 2017-01-16 Jonathan Wakely <jwakely@redhat.com>
2778 * src/c++11/functexcept.cc: Use new ABI for std::ios_base::failure
2780 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Don't override ABI
2781 for test, so new ios::failure can be caught.
2782 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
2783 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
2784 exceptions_failbit.cc: Likewise.
2785 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
2786 exceptions_failbit.cc: Likewise.
2787 * testsuite/27_io/basic_istream/extractors_other/char/
2788 exceptions_null.cc: Likewise.
2789 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
2790 exceptions_null.cc: Likewise.
2791 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
2792 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
2793 * testsuite/27_io/basic_ostream/inserters_other/char/
2794 exceptions_null.cc: Likewise.
2795 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
2796 exceptions_null.cc: Likewise.
2797 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
2800 * include/bits/locale_classes.h (locale::facet::__shim): Change from
2801 private to protected.
2802 * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
2803 make locale::facet::__shim accessible.
2805 2017-01-16 Ville Voutilainen <ville.voutilainen@gmail.com>
2808 * include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
2809 (merge(list&&, _StrictWeakOrdering)): Likewise.
2810 * testsuite/23_containers/list/operations/78389.cc: Add
2811 better test for the sizes.
2813 2017-01-14 Jonathan Wakely <jwakely@redhat.com>
2815 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
2816 Skip test when -D_GLIBCXX_PROFILE mode is included in options.
2817 * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
2818 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
2820 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
2821 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
2822 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
2823 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
2824 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
2826 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
2828 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
2830 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
2832 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
2834 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
2835 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
2836 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
2837 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
2838 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
2839 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
2840 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
2841 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
2842 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
2843 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
2844 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
2845 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
2846 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
2848 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
2851 * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
2852 retry fclose on EINTR.
2854 * include/profile/base.h: Remove unused header that leads to header
2855 cycle in C++17 mode.
2858 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
2859 Make _If_sv private.
2860 [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
2861 basic_string_view arguments.
2864 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
2865 redundant option from cxxflags.
2866 (check_effective_target_cxx11-abi): Define.
2867 * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
2869 * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
2870 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
2872 * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
2874 * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
2875 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
2877 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
2879 * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
2880 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
2882 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
2884 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
2886 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
2888 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
2890 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
2892 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
2894 * testsuite/23_containers/list/61347.cc: Likewise.
2895 * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
2896 * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
2898 2017-01-13 Ville Voutilainen <ville.voutilainen@gmail.com>
2901 * include/bits/list.tcc (merge(list&&)):
2902 Adjust list sizes if the comparator throws.
2903 (merge(list&&, _StrictWeakOrdering)): Likewise.
2904 (sort()): Splice elements back from the scratch buffers
2905 if the comparator throws.
2906 (sort(_StrictWeakOrdering)): Likewise.
2907 * testsuite/23_containers/list/operations/78389.cc: New.
2909 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
2911 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
2912 XFAIL for C++17 until node reinsertion supports fancy pointers.
2915 * testsuite/20_util/add_pointer/value.cc: Test forming function
2918 2017-01-13 Michael Brune <lucdanton@free.fr>
2921 * include/std/type_traits (__is_referenceable): Handle noexcept
2924 2017-01-12 Jonathan Wakely <jwakely@redhat.com>
2927 * include/bits/stl_queue.h (queue, priority_queue): Remove default
2928 member-initializers and define default constructors as templates with
2930 * include/bits/stl_stack.h (stack): Likewise.
2931 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
2933 * testsuite/23_containers/priority_queue/requirements/
2934 explicit_instantiation/1.cc: Test more instantiations.
2935 * testsuite/23_containers/priority_queue/requirements/
2936 explicit_instantiation/1_c++98.cc: Likewise.
2937 * testsuite/23_containers/queue/requirements/constructible.cc: New.
2938 * testsuite/23_containers/stack/requirements/constructible.cc: New.
2941 * doc/xml/manual/intro.xml: Document LWG 2781 change.
2942 * doc/html/*: Regenerate.
2943 * include/std/functional (_Function_base::_Ref_manager): Remove.
2944 (_Function_handler): Remove partial specializations for
2946 (function::target): Remove special case for const qualification.
2947 * testsuite/20_util/function/6.cc: Adjust tests for target type.
2948 * testsuite/20_util/function/7.cc: Likewise.
2949 * testsuite/20_util/function/8.cc: Likewise.
2951 2017-01-11 Jonathan Wakely <jwakely@redhat.com>
2954 * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
2955 (map::equal_range): Fix return type of heterogeneous overloads.
2956 * include/bits/stl_multimap.h (multimap::lower_bound)
2957 (multimap::upper_bound, multimap::equal_range): Likewise.
2958 * include/bits/stl_multiset.h (multiset::lower_bound)
2959 (multiset::upper_bound, multiset::equal_range): Likewise.
2960 * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
2961 (set::equal_range): Likewise.
2962 * testsuite/23_containers/map/operations/2.cc
2963 * testsuite/23_containers/multimap/operations/2.cc
2964 * testsuite/23_containers/multiset/operations/2.cc
2965 * testsuite/23_containers/set/operations/2.cc
2968 * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
2969 the heterogeneous comparison can only find one match.
2970 * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
2971 * testsuite/23_containers/map/operations/2.cc: Test count works with
2972 comparison function that just partitions rather than sorting.
2973 * testsuite/23_containers/set/operations/2.cc: Likewise.
2975 2017-01-11 Ville Voutilainen <ville.voutilainen@gmail.com>
2977 Reduce the size of variant, it doesn't need an index of
2978 type size_t internally.
2979 * include/std/variant (parse_numbers.h): New include.
2980 (__select_index): New.
2981 (_Variant_storage<false, _Types...>::_M_reset_impl): Use
2982 _index_type for comparison with variant_npos.
2983 (_Variant_storage<false, _Types...>::__index_type): New.
2984 (_Variant_storage<false, _Types...>::_M_index): Change the
2985 type from size_t to __index_type.
2986 (_Variant_storage<true, _Types...>::__index_type): New.
2987 (_Variant_storage<true, _Types...>::_M_index): Change the
2988 type from size_t to __index_type.
2989 (_Variant_base::_M_valid): Use _Storage::__index_type
2990 for comparison with variant_npos.
2991 (variant::index): Use _Base::_Storage::__index_type
2992 for comparison with variant_npos.
2993 * testsuite/20_util/variant/index_type.cc: New.
2995 2017-01-10 Jonathan Wakely <jwakely@redhat.com>
2997 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
2998 effective target selector to prevent running in C++17 mode.
3001 * include/bits/stl_queue.h (queue::c): Add default member initializer.
3002 (queue::queue()): Add constructor and define as defaulted.
3003 (queue::queue(_Sequence&&)): Remove default argument.
3004 (priority_queue::c, priority_queue::comp): Add default member
3006 (priority_queue::priority_queue()): Add constructor and define as
3008 (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
3009 Remove default argument for first parameter.
3010 * include/bits/stl_stack.h (stack::c): Add default member initializer.
3011 (stack::stack()): Add constructor and define as defaulted.
3012 (stack::stack(const _Sequence&)): Remove default argument.
3013 * testsuite/23_containers/priority_queue/requirements/
3014 explicit_instantiation/1.cc: Test explicit instantiation with
3015 non-DefaultConstructible sequence.
3016 * testsuite/23_containers/priority_queue/77528.cc: New test.
3017 * testsuite/23_containers/priority_queue/requirements/
3018 explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
3019 * testsuite/23_containers/queue/77528.cc: New test.
3020 * testsuite/23_containers/queue/requirements/explicit_instantiation/
3021 1.cc: Test explicit instantiation with non-DefaultConstructible
3023 * testsuite/23_containers/queue/requirements/explicit_instantiation/
3024 1_c++0x.cc: Replace with 1_c++98.cc.
3025 * testsuite/23_containers/stack/77528.cc: New test.
3026 * testsuite/23_containers/stack/requirements/explicit_instantiation/
3027 1.cc: Test explicit instantiation with non-DefaultConstructible
3029 * testsuite/23_containers/stack/requirements/explicit_instantiation/
3030 1_c++0x.cc: Replace with 1_c++98.cc.
3032 2017-01-10 Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
3034 * include/bits/locale_facets_nonio.tcc
3035 (time_get::_M_extract_via_format): Avoid compilation errors with
3036 non-standard struct tm.
3038 2017-01-10 François Dumont <fdumont@gcc.gnu.org>
3039 Jonathan Wakely <jwakely@redhat.com>
3041 * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
3042 (is_specialization, strip_versioned_namespace): New helpers functions
3043 to work with symbols in the versioned namespace.
3044 (Printer.add_version): Add second name using versioned namespace.
3045 (add_one_template_type_printer, add_one_type_printer): Add second
3046 type printers using versioned namespace.
3047 (register_type_printers): Add template type printer for basic_string.
3048 (build_libstdcxx_dictionary): Remove dead code.
3049 * python/libstdcxx/v6/xmethods.py: Make all matchers look for
3050 versioned namespace.
3051 * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
3053 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
3055 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
3058 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
3059 functions separately on darwin and if they're missing define
3060 _GLIBCXX_NO_C99_ROUNDING_FUNCS.
3061 * config.h.in: Regenerate.
3062 * configure: Regenerate.
3063 * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
3064 (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
3066 * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
3067 to detect correct thread_local destructors.
3068 * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
3071 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
3072 Aditya Kumar <hiraditya@msn.com>
3075 * include/bits/basic_string.tcc
3076 (basic_string::find(const CharT*, size_type, size_type)): Optimize.
3078 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
3080 * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
3081 * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
3083 * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
3084 Include <cassert> header.
3087 * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
3088 * configure: Regenerate.
3090 2017-01-06 Barrett Adair <barrettellisadair@gmail.com>
3091 Jonathan Wakely <jwakely@redhat.com>
3093 * include/std/variant (variant, swap): Replace __and_ usage with fold
3096 2017-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3099 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
3100 * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
3101 GLIBCXX_CHECK_ASSEMBLER_HWCAP.
3102 * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
3104 * aclocal.m4: Regenerate.
3105 * configure: Regenerate.
3106 * Makefile.in, doc/Makefile.in, include/Makefile.in,
3107 libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
3108 src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
3109 src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
3111 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
3113 * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
3116 * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
3117 (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
3118 (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
3119 move function objects.
3120 (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
3121 (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
3122 * testsuite/25_algorithms/sort/78991.cc: New test.
3124 2017-01-05 Jonathan Wakely <jwakely@redhat.com>
3126 * include/bits/std_function.h (function::_Signature_type): Remove.
3127 (function::function(_Functor)): Adjust.
3129 2017-01-05 Tim Shen <timshen@google.com>
3132 * include/std/variant (__gen_vtable_impl): rename __unused to
3133 __dimensions to avoid naming conflict.
3135 2017-01-04 Jonathan Wakely <jwakely@redhat.com>
3138 * config.h.in: Regenerate.
3139 * configure: Likewise.
3140 * configure.ac: Check for __cxa_thread_atexit.
3141 * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
3142 Don't define __cxa_thread_atexit if libc provides it.
3144 2017-01-04 Ville Voutilainen <ville.voutilainen@gmail.com>
3146 Implement 2801, Default-constructibility of unique_ptr.
3147 * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
3148 (unique_ptr::_DeleterConstraint): Likewise.
3149 (unique_ptr()): Constrain.
3150 (unique_ptr(pointer)): Likewise.
3151 (unique_ptr(nullptr_t)): Likewise.
3152 (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
3153 (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
3154 (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
3155 (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
3156 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
3157 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
3158 * testsuite/20_util/unique_ptr/cons/default.cc: New.
3159 * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
3161 2017-01-04 Pauli Nieminen <suokkos@gmail.com>
3162 Jonathan Wakely <jwakely@redhat.com>
3165 * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
3166 * config.h.in: Regenerate.
3167 * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
3168 (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
3169 exports for exception_ptr, nested_exception, and future conditional.
3170 [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
3171 exports for exception_ptr, nested_exception, and future conditional.
3172 * configure: Regenerate.
3173 * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
3174 * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
3175 * libsupc++/eh_atomics.h: New file for internal use only.
3176 (__eh_atomic_inc, __eh_atomic_dec): New.
3177 * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
3178 (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
3179 (rethrow_exception): Use eh_atomics.h reference counting helpers.
3180 * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
3181 * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
3182 * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
3183 * libsupc++/exception_ptr.h: Likewise.
3184 * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
3185 * libsupc++/nested_exception.cc: Remove check for
3186 ATOMIC_INT_LOCK_FREE.
3187 * libsupc++/nested_exception.h: Likewise.
3188 * src/c++11/future.cc: Likewise.
3189 * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
3190 * testsuite/18_support/nested_exception/*: Likewise.
3191 * testsuite/30_threads/async/*: Likewise.
3192 * testsuite/30_threads/future/*: Likewise.
3193 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
3194 * testsuite/30_threads/packaged_task/*: Likewise.
3195 * testsuite/30_threads/promise/*: Likewise.
3196 * testsuite/30_threads/shared_future/*: Likewise.
3198 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
3200 * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
3201 defaults to https; adjust reference.
3203 2017-01-03 Jonathan Wakely <jwakely@redhat.com>
3206 * include/std/thread (thread(const thread&&)): Add deleted
3208 * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
3210 * doc/xml/manual/spine.xml: Update copyright years.
3211 * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
3212 * doc/xml/manual/test.xml: Likewise.
3213 * doc/html/*: Regenerate.
3215 2017-01-01 Gerald Pfeifer <gerald@pfeifer.com>
3217 * doc/xml/faq.xml: Update address of C++ ABI link.
3218 * doc/xml/manual/abi.xml: Ditto.
3220 2017-01-01 Jakub Jelinek <jakub@redhat.com>
3222 Update copyright years.
3224 Copyright (C) 2017 Free Software Foundation, Inc.
3226 Copying and distribution of this file, with or without modification,
3227 are permitted in any medium without royalty provided the copyright
3228 notice and this notice are preserved.