1 2017-08-11 Jonathan Wakely <jwakely@redhat.com>
4 * testsuite/27_io/basic_fstream/53984.cc: Adjust test for targets
5 that allow opening a directory as a FILE and reading from it.
7 2017-08-09 Jonathan Wakely <jwakely@redhat.com>
9 * include/std/type_traits (_GLIBCXX_NO_BUILTIN_HAS_UNIQ_OBJ_REP):
10 Replace with _GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP and use
11 __is_identifier to set it.
13 2017-08-09 Katsuhiko Nishimra <ktns.87@gmail.com>
15 * include/std/type_traits (_GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE): Use
16 __is_identifier instead of __has_builtin.
18 2017-08-09 Jonathan Wakely <jwakely@redhat.com>
22 * config/io/basic_file_stdio.cc (sys_open(FILE*, ios_base::openmode)):
23 Call fflush on the stream instead of calling sync() while _M_cfile is
24 null. Restore original value of errno.
25 * testsuite/ext/stdio_filebuf/char/79820.cc: New.
26 * testsuite/ext/stdio_filebuf/char/81751.cc: New.
28 2017-07-31 Marek Polacek <polacek@redhat.com>
31 * include/bits/stl_stack.h: Fix typo.
33 2017-07-26 Jonathan Wakely <jwakely@redhat.com>
35 * testsuite/27_io/basic_fstream/53984.cc: Fix test.
37 2017-07-26 Paolo Carlini <paolo.carlini@oracle.com>
39 * testsuite/27_io/basic_fstream/53984.cc: Fix typo in dg-require
42 2017-07-25 Jonathan Wakely <jwakely@redhat.com>
45 * include/bits/basic_ios.h (basic_ios::_M_setstate): Adjust comment.
46 * include/bits/istream.tcc (basic_istream::sentry): Handle exceptions
48 * include/std/istream: Adjust comments for formatted input functions
49 and unformatted input functions.
50 * testsuite/27_io/basic_fstream/53984.cc: New.
51 * testsuite/27_io/basic_istream/sentry/char/53984.cc: New.
53 * include/bits/ios_base.h (ios_base::io_state, ios_base::open_mode)
54 (ios_base::seek_dir): Remove for C++17.
55 * include/std/streambuf (basic_streambuf::stossc): Remove for C++17.
56 Add deprecated attribute for C++11 and C++14.
57 * testsuite/27_io/types/1.cc: Don't run for C++17 and later.
58 * testsuite/27_io/types/4.cc: New.
60 2017-07-23 Michael Collison <michael.collison@arm.com>
62 Add optimized implementation of mersenne twister for aarch64
63 * config/cpu/aarch64/opt/ext/opt_random.h: New file.
64 (__arch64_recursion): New function.
65 (__aarch64_lsr_128): New function.
66 (__aarch64_lsl_128): New function.
67 (operator==): New function.
68 (simd_fast_mersenne_twister_engine): Implement
70 * config/cpu/aarch64/opt/bits/opt_random.h: New file.
71 * include/ext/random: (simd_fast_mersenne_twister_engine):
72 add _M_state private array.
74 2017-07-23 François Dumont <fdumont@gcc.gnu.org>
77 * include/bits/algorithmfwd.h: Reorganize versioned namespace.
78 * include/bits/basic_string.h: Likewise.
79 * include/bits/c++config: Likewise.
80 * include/bits/deque.tcc: Likewise.
81 * include/bits/forward_list.h: Likewise.
82 * include/bits/forward_list.tcc: Likewise.
83 * include/bits/hashtable_policy.h: Likewise.
84 * include/bits/list.tcc: Likewise.
85 * include/bits/move.h: Likewise.
86 * include/bits/quoted_string.h: Likewise.
87 * include/bits/random.h: Likewise.
88 * include/bits/random.tcc: Likewise.
89 * include/bits/regex.h: Likewise.
90 * include/bits/regex.tcc: Likewise.
91 * include/bits/regex_automaton.h: Likewise.
92 * include/bits/regex_automaton.tcc: Likewise.
93 * include/bits/regex_compiler.h: Likewise.
94 * include/bits/regex_compiler.tcc: Likewise.
95 * include/bits/regex_constants.h: Likewise.
96 * include/bits/regex_error.h: Likewise.
97 * include/bits/regex_executor.h: Likewise.
98 * include/bits/regex_executor.tcc: Likewise.
99 * include/bits/regex_scanner.h: Likewise.
100 * include/bits/regex_scanner.tcc: Likewise.
101 * include/bits/specfun.h: Likewise.
102 * include/bits/stl_algo.h: Likewise.
103 * include/bits/stl_algobase.h: Likewise.
104 * include/bits/stl_bvector.h: Likewise.
105 * include/bits/stl_deque.h: Likewise.
106 * include/bits/stl_iterator.h: Likewise.
107 * include/bits/stl_iterator_base_funcs.h: Likewise.
108 * include/bits/stl_list.h: Likewise.
109 * include/bits/stl_map.h: Likewise.
110 * include/bits/stl_multimap.h: Likewise.
111 * include/bits/stl_multiset.h: Likewise.
112 * include/bits/stl_relops.h: Likewise.
113 * include/bits/stl_set.h: Likewise.
114 * include/bits/stl_vector.h: Likewise.
115 * include/bits/uniform_int_dist.h: Likewise.
116 * include/bits/unordered_map.h: Likewise.
117 * include/bits/unordered_set.h: Likewise.
118 * include/bits/vector.tcc: Likewise.
119 * include/c_global/cmath: Likewise.
120 * include/c_std/cmath: Likewise.
121 * include/decimal/decimal: Likewise.
122 * include/decimal/decimal.h: Likewise.
123 * include/experimental/algorithm: Likewise.
124 * include/experimental/any: Likewise.
125 * include/experimental/array: Likewise.
126 * include/experimental/bits/erase_if.h: Likewise.
127 * include/experimental/bits/fs_dir.h: Likewise.
128 * include/experimental/bits/fs_fwd.h: Likewise.
129 * include/experimental/bits/fs_ops.h: Likewise.
130 * include/experimental/bits/fs_path.h: Likewise.
131 * include/experimental/bits/lfts_config.h: Likewise.
132 * include/experimental/bits/shared_ptr.h: Likewise.
133 * include/experimental/bits/string_view.tcc: Likewise.
134 * include/experimental/chrono: Likewise.
135 * include/experimental/deque: Likewise.
136 * include/experimental/filesystem: Likewise.
137 * include/experimental/forward_list: Likewise.
138 * include/experimental/functional: Likewise.
139 * include/experimental/iterator: Likewise.
140 * include/experimental/list: Likewise.
141 * include/experimental/map: Likewise.
142 * include/experimental/memory: Likewise.
143 * include/experimental/memory_resource: Likewise.
144 * include/experimental/numeric: Likewise.
145 * include/experimental/optional: Likewise.
146 * include/experimental/propagate_const: Likewise.
147 * include/experimental/random: Likewise.
148 * include/experimental/ratio: Likewise.
149 * include/experimental/regex: Likewise.
150 * include/experimental/set: Likewise.
151 * include/experimental/source_location: Likewise.
152 * include/experimental/string: Likewise.
153 * include/experimental/string_view: Likewise.
154 * include/experimental/system_error: Likewise.
155 * include/experimental/tuple: Likewise.
156 * include/experimental/type_traits: Likewise.
157 * include/experimental/unordered_map: Likewise.
158 * include/experimental/unordered_set: Likewise.
159 * include/experimental/utility: Likewise.
160 * include/experimental/vector: Likewise.
161 * include/ext/bitmap_allocator.h: Likewise.
162 * include/ext/codecvt_specializations.h: Likewise.
163 * include/ext/rope: Likewise.
164 * include/ext/typelist.h: Likewise.
165 * include/std/chrono: Likewise.
166 * include/std/complex: Likewise.
167 * include/std/functional: Likewise.
168 * include/std/numeric: Likewise.
169 * include/std/string_view: Likewise.
170 * include/std/thread: Likewise.
171 * include/std/variant: Likewise.
172 * include/tr1/array: Likewise.
173 * include/tr1/bessel_function.tcc: Likewise.
174 * include/tr1/beta_function.tcc: Likewise.
175 * include/tr1/cmath: Likewise.
176 * include/tr1/complex: Likewise.
177 * include/tr1/ell_integral.tcc: Likewise.
178 * include/tr1/exp_integral.tcc: Likewise.
179 * include/tr1/functional: Likewise.
180 * include/tr1/functional_hash.h: Likewise.
181 * include/tr1/gamma.tcc: Likewise.
182 * include/tr1/hashtable.h: Likewise.
183 * include/tr1/hashtable_policy.h: Likewise.
184 * include/tr1/hypergeometric.tcc: Likewise.
185 * include/tr1/legendre_function.tcc: Likewise.
186 * include/tr1/modified_bessel_func.tcc: Likewise.
187 * include/tr1/poly_hermite.tcc: Likewise.
188 * include/tr1/poly_laguerre.tcc: Likewise.
189 * include/tr1/random.h: Likewise.
190 * include/tr1/random.tcc: Likewise.
191 * include/tr1/regex: Likewise.
192 * include/tr1/riemann_zeta.tcc: Likewise.
193 * include/tr1/shared_ptr.h: Likewise.
194 * include/tr1/special_function_util.h: Likewise.
195 * include/tr1/tuple: Likewise.
196 * include/tr1/type_traits: Likewise.
197 * include/tr1/unordered_map.h: Likewise.
198 * include/tr1/unordered_set.h: Likewise.
199 * include/tr1/utility: Likewise.
200 * include/tr2/bool_set: Likewise.
201 * include/tr2/bool_set.tcc: Likewise.
202 * include/tr2/dynamic_bitset: Likewise.
203 * include/tr2/dynamic_bitset.tcc: Likewise.
204 * include/tr2/ratio: Likewise.
205 * include/tr2/type_traits: Likewise.
206 * src/c++11/chrono.cc: Likewise.
207 * src/c++11/compatibility-c++0x.cc: Likewise.
208 * src/c++11/compatibility-chrono.cc: Likewise.
209 * src/c++11/cxx11-shim_facets.cc: Likewise.
210 * src/c++11/hashtable_c++0x.cc: Likewise.
211 * src/c++11/placeholders.cc: Likewise.
212 * src/c++11/thread.cc: Likewise.
213 * src/c++98/bitmap_allocator.cc: Likewise.
214 * src/c++98/hashtable_tr1.cc: Likewise.
215 * src/c++98/list.cc: Likewise.
216 * src/shared/hashtable-aux.cc: Likewise.
217 * testsuite/20_util/duration/literals/range.cc: Adapt line number.
218 * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise.
219 * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
220 * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
221 * testsuite/20_util/forward/c_neg.cc: Likewise.
222 * testsuite/20_util/forward/f_neg.cc: Likewise.
223 * testsuite/26_numerics/gcd/gcd_neg.cc: Likewise.
224 * testsuite/26_numerics/lcm/lcm_neg.cc: Likewise.
225 * testsuite/26_numerics/random/pr60037-neg.cc: Likewise.
226 * python/libstdcxx/v6/printers.py: Adapt.
228 2017-07-20 Jonathan Wakely <jwakely@redhat.com>
230 * config/allocator/malloc_allocator_base.h [__SANITIZE_ADDRESS__]
231 (_GLIBCXX_SANITIZE_STD_ALLOCATOR): Define.
232 * config/allocator/new_allocator_base.h [__SANITIZE_ADDRESS__]
233 (_GLIBCXX_SANITIZE_STD_ALLOCATOR): Define.
234 * doc/xml/manual/using.xml (_GLIBCXX_SANITIZE_VECTOR): Document macro.
235 * include/bits/stl_vector.h [_GLIBCXX_SANITIZE_VECTOR]
236 (_Vector_impl::_Asan, _Vector_impl::_Asan::_Reinit)
237 (_Vector_impl::_Asan::_Grow, _GLIBCXX_ASAN_ANNOTATE_REINIT)
238 (_GLIBCXX_ASAN_ANNOTATE_GROW, _GLIBCXX_ASAN_ANNOTATE_GREW)
239 (_GLIBCXX_ASAN_ANNOTATE_SHRINK, _GLIBCXX_ASAN_ANNOTATE_BEFORE_DEALLOC):
240 Define annotation helper types and macros.
241 (vector::~vector, vector::push_back, vector::pop_back)
242 (vector::_M_erase_at_end): Add annotations.
243 * include/bits/vector.tcc (vector::reserve, vector::emplace_back)
244 (vector::insert, vector::_M_erase, vector::operator=)
245 (vector::_M_fill_assign, vector::_M_assign_aux)
246 (vector::_M_insert_rval, vector::_M_emplace_aux)
247 (vector::_M_insert_aux, vector::_M_realloc_insert)
248 (vector::_M_fill_insert, vector::_M_default_append)
249 (vector::_M_shrink_to_fit, vector::_M_range_insert): Annotate.
251 2017-07-19 Jonathan Wakely <jwakely@redhat.com>
254 * include/bits/vector.tcc (vector::_M_range_insert<_InputIterator>):
255 Only insert elements one-by-one when inserting at the end.
256 * testsuite/performance/23_containers/insert/81476.cc: New.
258 2017-07-19 Volker Reichelt <v.reichelt@netcologne.de>
260 * libsupc++/new (bad_array_new_length): Remove redundant
261 semicolon after in-class member function definition.
262 * include/bits/locale_facets.h (ctype_byname, num_put): Likewise.
263 * include/bits/locale_facets_nonio.h (time_put_byname): Likewise.
264 * include/bits/random.h (mersenne_twister_engine): Likewise.
265 * include/tr1/random.h (mersenne_twister): Likewise
266 * include/ext/random (simd_fast_mersenne_twister_engine): Likewise.
267 * include/ext/rope (char_producer, _Rope_char_consumer,
268 _Rope_self_destruct_ptr, _Rope_const_iterator, _Rope_iterator):
270 * include/ext/ropeimpl.h (_Rope_flatten_char_consumer,
271 _Rope_insert_char_consumer): Likewise.
273 2017-07-19 Jonathan Wakely <jwakely@redhat.com>
275 * include/bits/fstream.tcc (basic_filebuf::xsgetn)
276 (basic_filebuf::xsputn, basic_filebuf::seekoff): Fix indentation.
278 * testsuite/util/testsuite_iterators.h: Fix indentation.
280 * testsuite/27_io/basic_filebuf/sgetn/char/81395.cc: Add dg-require.
282 2017-07-18 Jonathan Wakely <jwakely@redhat.com>
285 * include/bits/fstream.tcc (basic_filebuf::xsgetn): Don't set buffer
286 pointers for write mode after reading.
287 * testsuite/27_io/basic_filebuf/sgetn/char/81395.cc: New.
289 2017-07-18 François Dumont <fdumont@gcc.gnu.org>
291 * include/bits/stl_list.h
292 (struct _List_node_header): New.
293 (_List_impl()): Fix noexcept qualification.
294 (_List_impl(_List_impl&&)): New, default.
295 (_List_base()): Default.
296 (_List_base(_List_base&&)): Default.
297 (_List_base::_M_move_nodes): Adapt to use
298 _List_node_header._M_move_nodes.
299 (_List_base::_M_init): Likewise.
301 (list<>(list&&)): Default.
302 (list<>::_M_move_assign(list&&, true_type)): Use _M_move_nodes.
303 (__distance(_List_const_iterator<>, _List_const_iterator<>,
304 input_iterator_tag)): Adapt.
305 * testsuite/23_containers/list/allocator/default_init.cc: New.
307 2017-07-15 Jonathan Wakely <jwakely@redhat.com>
309 * include/std/mutex (scoped_lock): Reorder std::adopt_lock_t parameter
311 * testsuite/30_threads/scoped_lock/cons/1.cc: Reorder arguments.
312 * testsuite/30_threads/scoped_lock/cons/deduction.cc: Test deduction
313 with std::adopt_lock_t.
314 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: Check
317 2017-07-14 Jason Merrill <jason@redhat.com>
318 Jonathan Wakely <jwakely@redhat.com>
320 * include/std/variant (variant::variant(_Tp&&)): Constrain to remove
321 the constructor for empty variants from the candidate functions
322 during class template argument deduction.
323 * testsuite/20_util/variant/deduction.cc: New.
325 2017-07-11 Jonathan Wakely <jwakely@redhat.com>
327 * doc/xml/faq.xml: Update several old entries. Improve
329 * doc/xml/manual/intro.xml: Add anchors to each DR.
330 * doc/html/*: Regenerate.
332 2017-07-10 Jonathan Wakely <jwakely@redhat.com>
334 * testsuite/abi/pr42230.cc: Add header for std::free.
337 * include/bits/sstream.tcc (basic_stringbuf::overflow)
338 (basic_stringbuf::basic_stringbuf(const __string_type&, ios::mode))
339 (basic_stringbuf::str()): Construct new strings with an allocator.
340 * testsuite/27_io/basic_stringbuf/cons/81381.cc: New.
343 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
344 Declare basic_stringbuf to be a friend.
345 * include/bits/sstream.tcc (basic_stringbuf::overflow)
346 [_GLIBCXX_USE_CXX11_ABI]: Use unused capacity before reallocating.
347 * include/std/sstream (basic_stringbuf::__xfer_bufptrs): Update string
348 length to buffer length.
349 * testsuite/27_io/basic_stringstream/assign/81338.cc: New.
351 2017-07-06 Jonathan Wakely <jwakely@redhat.com>
353 * testsuite/20_util/specialized_algorithms/memory_management_tools/
355 * testsuite/22_locale/locale/cons/5.cc: Remove redundant restoration
356 of original environment and free memory.
358 * testsuite/abi/pr42230.cc: Free memory.
359 * testsuite/util/testsuite_abi.cc (demangle): Return std::string
360 instead of pointer that might need freeing.
361 * testsuite/util/testsuite_abi.h (demangle): Likewise.
362 * testsuite/util/testsuite_hooks.cc (verify_demangle): Free memory.
364 * include/bits/uses_allocator.h (__use_alloc(const _Alloc&&)): Add
365 deleted overload to prevent dangling references to rvalues.
366 * include/experimental/memory_resource
367 (polymorphic_allocator::construct): Do not call __use_alloc with
370 2017-06-27 Tim Shen <timshen@google.com>
373 * include/std/variant (variant::variant, variant::~variant,
374 variant::operator=): Implement triviality forwarding for four
375 special member functions.
376 * testsuite/20_util/variant/compile.cc: Tests.
378 2017-06-27 Jonathan Wakely <jwakely@redhat.com>
381 * testsuite/25_algorithms/sample/81221.cc: Disable except for
385 * include/bits/stl_algo.h (sample): Qualify with _GLIBCXX_STD_A not
387 * testsuite/25_algorithms/sample/81221.cc: New.
389 2017-06-22 Jonathan Wakely <jwakely@redhat.com>
392 * include/bits/stl_bvector.h (vector<bool>::_M_initialize_value):
393 Do not pass null pointer to memset.
395 2017-06-21 Ville Voutilainen <ville.voutilainen@gmail.com>
399 * include/std/istream:
400 (__is_convertible_to_basic_istream_test(basic_istream<_Ch, _Up>*)): New.
401 (__do_is_convertible_to_basic_istream_impl): Likewise.
402 (__is_convertible_to_basic_istream_impl): Likewise.
403 (__is_convertible_to_basic_istream): Use the new base.
404 (__rvalue_istream_type): New.
405 (operator>>(_Istream&&, _Tp&&)): Use the new helper alias
406 for the SFINAE check, convert to the helper alias type before
407 doing the actual extraction.
408 * include/std/ostream:
409 (__is_convertible_to_basic_ostream_test(basic_ostream<_Ch, _Up>*)): New.
410 (__do_is_convertible_to_basic_ostream_impl): Likewise.
411 (__is_convertible_to_basic_ostream_impl): Likewise.
412 (__is_convertible_to_basic_ostream): Use the new base.
413 (__rvalue_ostream_type): New.
414 (operator<<(_Ostream&&, const _Tp&)): Use the new helper alias
415 for the SFINAE check, convert to the helper alias type before
416 doing the actual insertion.
417 * testsuite/27_io/rvalue_streams-2.cc: Add new tests.
419 2017-06-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
421 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
423 2017-06-21 Jonathan Wakely <jwakely@redhat.com>
426 * configure: Regenerate.
428 2017-06-20 Uros Bizjak <ubizjak@gmail.com>
430 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
432 2017-06-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
434 * testsuite/20_util/variant/index_type.cc: Allow for all ilp32 and
437 2017-06-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
439 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: Regenerate.
440 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: Likewise.
441 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: Likewise.
442 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: Likewise.
443 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: Likewise.
444 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
446 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: Likewise.
447 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
450 2017-06-18 H.J. Lu <hongjiu.lu@intel.com>
453 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
455 2017-06-18 Andreas Schwab <schwab@linux-m68k.org>
458 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
460 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
462 * testsuite: Remove dg-skip-if, dg-xfail-if, dg-xfail-run-if
465 2017-06-17 Jonathan Wakely <jwakely@redhat.com>
468 * testsuite/23_containers/vector/bool/80893.cc: Add { target c++11 }.
470 2017-06-16 Jonathan Wakely <jwakely@redhat.com>
472 * include/bits/shared_ptr.h (get_deleter): Add overload matching
474 * include/bits/shared_ptr_base.h (__shared_ptr): Declare new
475 get_deleter overload as a friend.
476 * testsuite/20_util/shared_ptr/misc/get_deleter.cc: New.
478 2017-06-16 Jakub Jelinek <jakub@redhat.com>
481 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
482 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
483 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
485 2017-06-16 Jonathan Wakely <jwakely@redhat.com>
487 * include/bits/locale_conv.h (wbuffer_convert::sync): Fix condition.
488 * testsuite/22_locale/conversions/buffer/2.cc: New.
491 * acinclude.m4: Bump libtool_VERSION.
492 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
493 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
494 * config/abi/pre/gnu.ver: Add wstring constructor symbols to
495 GLIBCXX_3.4.24 version and move random_device::_M_get_entropy() symbol
496 to new GLIBCXX_3.4.25 version.
497 * doc/xml/manual/abi.xml: Document new versions.
498 * doc/html/*: Regenerate.
499 * testsuite/21_strings/basic_string/cons/char/8.cc: Use base object
500 constructors to ensure required symbols are exported.
501 * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise.
502 * testsuite/util/testsuite_abi.cc: Add new version.
504 * include/bits/locale_conv.h (wbuffer_convert::_M_put): Add missing
506 * testsuite/21_strings/basic_string_view/operations/copy/char/1.cc:
508 * testsuite/21_strings/basic_string_view/operations/copy/wchar_t/1.cc:
510 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc: Add
511 missing return statements.
512 * testsuite/23_containers/unordered_map/modifiers/insert_or_assign.cc:
514 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
516 * testsuite/special_functions/14_expint/pr68397.cc: Likewise.
518 2017-06-16 François Dumont <fdumont@gcc.gnu.org>
520 * include/bits/stl_bvector.h
521 (__fill_bvector(_Bit_type*, unsigned int, unsigned int, bool)):
523 (std::fill(_Bit_iterator, _Bit_iterator, bool)): Adapt.
524 (_Bvector_impl_data): New.
525 (_Bvector_impl): Inherits from latter.
526 (_Bvector_impl(_Bit_alloc_type&&)): Delete.
527 (_Bvector_impl(_Bvector_impl&&)): New, default.
528 (_Bvector_base()): Default.
529 (_Bvector_base(_Bvector_base&&)): Default.
530 (_Bvector_base::_M_move_data(_Bvector_base&&)): New.
531 (vector(vector&&, const allocator_type&)): Use latter.
532 (vector<bool>::operator=(vector&&)): Likewise.
533 (vector<bool>::vector()): Default.
534 (vector<bool>::vector(vector&&)): Default.
535 (vector<bool>::assign(_InputIterator, _InputIterator)): Use
537 (vector<bool>::assign(initializer_list<bool>)): Likewise.
538 (vector<bool>::_M_initialize_value(bool)): New.
539 (vector<bool>(size_type, const bool&, const allocator_type&)): Use
541 (vector<bool>::_M_initialize_dispatch(_Integer, _Integer, __true_type)):
543 (vector<bool>::_M_fill_assign(size_t, bool)): Likewise.
545 2017-06-15 François Dumont <fdumont@gcc.gnu.org>
547 * src/c++98/tree.cc [!_GLIBCXX_INLINE_VERSION]
548 (_Rb_tree_rotate_left, _Rb_tree_rotate_right): Delete.
550 2017-06-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
552 * testsuite: Add dg-require-effective-target pthread to -pthread
554 Remove explicit target lists from dg-do and dg-options.
556 * testsuite/30_threads/async/forced_unwind.cc: Remove explit
557 target list from dg-options.
558 * testsuite/30_threads/packaged_task/forced_unwind.cc: Likewise.
560 * 30_threads/shared_mutex/cons/1.cc: Likewise.
561 Pass -pthread for all targets.
562 * 30_threads/shared_mutex/try_lock/1.cc: Likewise.
563 * 30_threads/shared_mutex/try_lock/2.cc: Likewise.
564 * 30_threads/shared_mutex/unlock/1.cc: Likewise.
566 * testsuite/30_threads/this_thread/57060.cc: Require c++11 via
567 dg-require-effective-target.
569 2017-06-14 Jonathan Wakely <jwakely@redhat.com>
571 * doc/xml/manual/test.xml: Correct instructions on running tests.
572 * testsuite/21_strings/basic_string/cons/char/deduction.cc: Adjust to
573 pass when -D_GLIBCXX_USE_CXX11_ABI=0 added to RUNTESTFLAGS.
574 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
576 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Likewise.
577 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
578 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
579 exceptions_failbit.cc: Likewise.
580 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
581 exceptions_failbit.cc: Likewise.
582 * testsuite/27_io/basic_istream/extractors_other/char/
583 exceptions_null.cc: Likewise.
584 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
585 exceptions_null.cc: Likewise.
586 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
587 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
588 * testsuite/27_io/basic_ostream/inserters_other/char/
589 exceptions_null.cc: Likewise.
590 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
591 exceptions_null.cc: Likewise.
592 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
594 2017-06-12 Pedro Alves <palves@redhat.com>
596 * doc/xml/manual/status_cxx2017.xml: Update C++17 constexpr
598 * doc/html/*: Regenerate.
600 * include/bits/char_traits.h (_GLIBCXX_ALWAYS_INLINE): Define if
602 (__cpp_lib_constexpr_char_traits): Uncomment.
603 (__constant_string_p, __constant_char_array_p): New.
604 (std::char_traits<char>, std::char_traits<wchar_t>): Add
605 _GLIBCXX17_CONSTEXPR on compare, length and find and use
606 __constant_string_p, __constant_char_array_p and
607 __builtin_constant_p to defer to __gnu_cxx::char_traits at compile
610 * testsuite/21_strings/char_traits/requirements/
611 constexpr_functions_c++17.cc: Uncomment
612 __cpp_lib_constexpr_char_traits tests. Uncomment
613 test_compare<char>, test_length<char>, test_find<char>,
614 test_compare<wchar_t>, test_length<wchar_t> and test_find<wchar_t>
617 2017-06-12 François Dumont <fdumont@gcc.gnu.org>
619 * include/bits/stl_tree.h (_Rb_tree_impl()): Restore _Node_allocator
621 * testsuite/util/testsuite_allocator.h
622 (__gnu_test::default_init_allocator<>) New.
623 * testsuite/23_containers/set/allocator/default_init.cc: New.
624 * testsuite/23_containers/map/allocator/default_init.cc: New.
626 2017-06-12 Jonathan Wakely <jwakely@redhat.com>
629 * src/c++11/thread.cc (execute_native_thread_routine): Remove
630 try-block so that exceptions propagate out of the thread and terminate
631 is called by the exception-handling runtime.
632 (execute_native_thread_routine_compat): Likewise.
633 * testsuite/30_threads/thread/cons/terminate.cc: New.
635 2017-06-09 Jonathan Wakely <jwakely@redhat.com>
637 * doc/xml/manual/intro.xml: Document LWG 2802, 2873 and 2942 changes.
638 * include/bits/shared_ptr.h (shared_ptr): Use rvalues for deleters
640 * include/bits/shared_ptr_base.h (_Sp_ebo_helper, _Sp_counted_deleter
641 (_Sp_counted_deleter::_Impl, __shared_count, __shared_ptr): Likewise.
642 * testsuite/20_util/shared_ptr/cons/lwg2802.cc: New.
644 * include/bits/forward_list.h (forward_list): Add deduction guide.
645 * include/bits/stl_deque.h (deque): Likewise.
646 * include/bits/stl_list.h (list): Likewise.
647 * include/bits/stl_vector.h (vector): Likewise.
648 * testsuite/23_containers/deque/cons/deduction.cc: New.
649 * testsuite/23_containers/forward_list/cons/deduction.cc: New.
650 * testsuite/23_containers/list/cons/deduction.cc: New.
651 * testsuite/23_containers/vector/cons/deduction.cc: New.
653 2017-06-08 Jonathan Wakely <jwakely@redhat.com>
656 * include/bits/std_function.h (function::function(function&&))
657 (function::operator=(funtion&&)): Add noexcept.
658 * testsuite/20_util/function/assign/move.cc: Check for noexcept.
659 * testsuite/20_util/function/cons/move.cc: Likewise.
661 2017-06-07 Jonathan Wakely <jwakely@redhat.com>
663 * include/bits/regex.h (basic_regex): Add deduction guide from P0433.
664 * testsuite/28_regex/basic_regex/ctors/deduction.cc: New.
667 * include/bits/regex.h (basic_regex): Adjust call to __compile_nfa
668 so iterator type is deduced.
669 * include/bits/regex_compiler.h (__compile_nfa): Reorder template
670 parameters to allow iterator type to be deduced.
671 * testsuite/28_regex/basic_regex/ctors/basic/iter.cc: New.
673 * include/bits/alloc_traits.h (__is_allocator, _RequireAllocator):
674 New trait and alias for detecting Allocator-like types.
675 * include/bits/basic_string.h (basic_string): Add deduction guide
677 * include/ext/alloc_traits.h (__gnu_cxx::__alloc_traits): Add template
678 parameter with default template argument that causes substitution
679 failures for types that cannot be allocators.
680 * testsuite/21_strings/basic_string/cons/char/deduction.cc: New.
681 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc: New.
683 2017-06-02 Jonathan Wakely <jwakely@redhat.com>
686 * include/std/variant (__erased_ctor, __erased_assign, __erased_swap)
687 (__erased_hash): Remove constexpr specifier and qualify calls to
689 (__erased_dtor): Remove constexpr specifier and use _Destroy.
691 2017-06-05 Jonathan Wakely <jwakely@redhat.com>
693 * include/bits/stl_iterator_base_funcs.h
694 (__advance<_RandomAccessIterator, _Distance>): Optimize for next/prev
695 cases where incrementing or decrementing a single step.
697 * include/bits/shared_ptr_base.h (__shared_ptr::owner_before)
698 (__weak_ptr::owner_before, _Sp_owner_less::operator()): Add noexcept
699 specifiers as per LWG 2873 and LWG 2942.
700 * testsuite/20_util/owner_less/noexcept.cc: New.
701 * testsuite/20_util/shared_ptr/observers/owner_before.cc: Test
703 * testsuite/20_util/weak_ptr/observers/owner_before.cc: Likewise.
705 2017-06-03 Andreas Schwab <schwab@linux-m68k.org>
707 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
709 2017-06-03 Eric Botcazou <ebotcazou@adacore.com>
711 * src/filesystem/dir.cc (fs::_Dir::advance): Use std::exchange.
713 2017-06-02 Jonathan Wakely <jwakely@redhat.com>
716 * doc/xml/manual/status_cxx2011.xml: Document to_int_type behaviour.
717 * include/bits/char_traits.h (char_traits<char16_t>::to_int_type):
718 Transform eof value to U+FFFD.
719 * testsuite/21_strings/char_traits/requirements/char16_t/eof.cc: New.
720 * testsuite/27_io/basic_streambuf/sgetc/char16_t/80624.cc: New.
721 * testsuite/27_io/basic_streambuf/sputc/char16_t/80624.cc: New.
723 * libsupc++/Makefile.am: Remove custom targets for files that need to
724 be compiled as C++11 or C++14.
725 * libsupc++/Makefile.in: Regenerate.
726 * libsupc++/del_ops.cc: Use pragma to disable -Wsized-deallocation
728 * libsupc++/del_opvs.cc: Likewise.
730 2017-06-02 Richard Biener <rguenther@suse.de>
731 Markus Eisenmann <meisenmann.lba@fh-salzburg.ac.at>
734 * libsupc++/eh_alloc.cc (pool::free): Keep list properly
735 sorted and add missing freelist item merging cases.
737 2017-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
739 (GLIBCXX_CROSSCONFIG): Handle *-solaris* like *-linux* etc.
740 Remove *-solaris* section.
741 * configure: Regenerate.
743 2017-05-31 Jonathan Wakely <jwakely@redhat.com>
746 * include/bits/stl_bvector.h (vector<bool>::_M_initialize): Avoid
747 null pointer dereference when size is zero.
748 * testsuite/23_containers/vector/bool/80893.cc: New.
749 * testsuite/util/testsuite_allocator.h (PointerBase::PointerBase):
750 Add non-explicit constructor from nullptr.
751 (PointerBase::derived() const): Add const-qualified overload.
753 2017-05-20 Tim Shen <timshen@google.com>
756 * include/std/variant(variant::variant): SFINAE on is_same first.
757 * testsuite/20_util/variant/any.cc: test case.
759 2017-05-24 Jonathan Wakely <jwakely@redhat.com>
761 * src/c++11/random.cc (random_device::_M_getentropy): Use __CHAR_BIT__
762 instead of fixed number of bits.
764 2017-05-24 Andreas Schwab <schwab@suse.de>
766 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
767 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Likewise.
769 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
770 Jonathan Wakely <jwakely@redhat.com>
773 * acinclude.m4: Bump libtool_VERSION.
774 * config/abi/pre/gnu.ver: Create GLIBCXX_3.4.24 with new symbol.
775 * config.h.in: Regenerate.
776 * configure: Regenerate.
777 * configure.ac: Add test for <linux/random.h>.
778 * doc/xml/manual/abi.xml: Document new library version.
779 * include/bits/random.h (random_device::entropy)
780 [_GLIBCXX_USE_RANDOM_TR1]: Add call to new _M_getentropy member.
781 (random_device::_M_getentropy): Declare.
782 * src/c++11/random.cc (random_device::_M_getentropy): Define.
783 * testsuite/util/testsuite_abi.cc: Add GLIBCXX_3.4.24 to known
784 versions, and make it the latest version.
786 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
789 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Add
790 explicit conversion to avoid signed overflow.
792 2017-05-19 Jonathan Wakely <jwakely@redhat.com>
795 * include/bits/stl_algo.h (search): Add new overload for C++17.
796 * testsuite/25_algorithms/search/searcher.cc: New.
798 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
801 * include/std/functional (_Mem_fn_traits_base): Add specializations
802 for noexcept member function types.
803 * testsuite/20_util/function_objects/mem_fn/80478.cc: New test.
805 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
807 * doc/xml/manual/policy_data_structures.xml: Fix typo.
808 * doc/xml/manual/test_policy_data_structures.xml: Likewise.
809 * doc/html/*: Regenerate.
811 * doc/xml/manual/abi.xml: Document latest library versions.
812 * doc/xml/manual/build_hacking.xml: Document requirement to update
813 abi.xml when bumping library versions.
814 * doc/html/*: Regenerate.
816 2017-05-17 Jonathan Wakely <jwakely@redhat.com>
818 * include/bits/refwrap.h: Fix Doxygen warning.
819 * include/bits/specfun.h: Likewise.
820 * include/bits/std_function.h: Likewise.
821 * include/bits/stl_algo.h (set_union, set_intersection)
822 (set_difference, set_symmetric_difference): Add Doxygen @param tags
823 for output iterator parameters.
824 * include/bits/stl_iterator.h (inserter): Add Doxygen @param tag for
826 * include/std/mutex (try_lock, lock): Change Mutex to Lockable in
829 2017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
831 Implement new C++ intrinsics __is_assignable and __is_constructible.
832 * include/std/type_traits (__do_is_static_castable_impl): Remove.
833 (__is_static_castable_impl, __is_static_castable_safe): Likewise.
834 (__is_static_castable, __do_is_direct_constructible_impl): Likewise.
835 (__is_direct_constructible_impl): Likewise.
836 (__is_direct_constructible_new_safe): Likewise.
837 (__is_base_to_derived_ref, __is_lvalue_to_rvalue_ref): Likewise.
838 (__is_direct_constructible_ref_cast): Likewise.
839 (__is_direct_constructible_new, __is_direct_constructible): Likewise.
840 (__do_is_nary_constructible_impl): Likewise.
841 (__is_nary_constructible_impl, __is_nary_constructible): Likewise.
842 (__is_constructible_impl): Likewise.
843 (is_constructible): Call the intrinsic.
844 (__is_assignable_helper): Remove.
845 (is_assignable): Call the intrinsic.
846 (is_trivially_constructible): Likewise.
847 (__is_trivially_copy_constructible_impl): New.
848 (is_trivially_copy_constructible): Use it.
849 (__is_trivially_move_constructible_impl): New.
850 (is_trivially_move_constructible): Use it.
851 (is_trivially_assignable): Call the intrinsic.
852 (__is_trivially_copy_assignable_impl): New.
853 (is_trivially_copy_assignable): Use it.
854 (__is_trivially_move_assignable_impl): New.
855 (is_trivially_move_assignable): Use it.
856 (testsuite/20_util/declval/requirements/1_neg.cc): Adjust.
857 (testsuite/20_util/is_trivially_copy_assignable/value.cc):
859 (testsuite/20_util/is_trivially_copy_constructible/value.cc): Likewise.
860 (testsuite/20_util/is_trivially_move_assignable/value.cc): Likewise.
861 (testsuite/20_util/is_trivially_move_constructible/value.cc): Likewise.
862 (testsuite/20_util/make_signed/requirements/typedefs_neg.cc): Adjust.
863 (testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc):
866 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
868 * testsuite/experimental/source_location/1.cc: Change expected result
869 for source_location::current() used in default member initializer.
871 * doc/xml/manual/status_cxx2017.xml: Update status table.
872 * doc/html/*: Regenerate.
873 * include/Makefile.am: Add new header.
874 * include/Makefile.in: Regenerate.
875 * include/experimental/source_location: New header implementing N4519.
876 * testsuite/experimental/source_location/1.cc: New test.
879 * include/bits/shared_ptr_base.h [!__cpp_rtti] (type_info): Declare
880 outside versioned namespace.
882 * configure: Regenerate.
884 2017-05-16 Marc Glisse <marc.glisse@inria.fr>
886 * include/std/optional (_Optional_base::_M_get): Check precondition.
887 * testsuite/20_util/optional/cons/value_neg.cc: Update line numbers.
889 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
891 * doc/xml/manual/appendix_contributing.xml: Link to test docs and
892 note higher DejaGnu version requirement.
893 * doc/html/*: Regenerate.
895 * doc/xml/manual/appendix_contributing.xml: Link to the list of bad
897 * doc/html/*: Regenerate.
899 2017-05-15 Jonathan Wakely <jwakely@redhat.com>
902 * include/bits/node_handle.h (_Node_insert_return): Reorder members.
903 (tuple_size, tuple_element): Remove partial specializations.
904 * include/bits/stl_tree.h (_Rb_tree::insert_return_type): Use
905 const_iterator for std::set.
906 * testsuite/23_containers/map/modifiers/extract.cc: New.
907 * testsuite/23_containers/set/modifiers/extract.cc: New.
908 * testsuite/23_containers/unordered_map/modifiers/extract.cc: New.
909 * testsuite/23_containers/unordered_set/modifiers/extract.cc: New.
911 2017-05-12 Jonathan Wakely <jwakely@redhat.com>
914 * include/std/utility (tuple_size<cv T>): Only define partial
915 specializations when tuple_size<T>::value is valid.
916 * testsuite/20_util/tuple/78939.cc: New.
917 * testsuite/20_util/tuple/cv_tuple_size_neg.cc: New.
919 2017-05-11 François Dumont <fdumont@gcc.gnu.org>
921 * include/bits/stl_tree.h [_GLIBCXX_INLINE_VERSION]
922 (_Rb_tree_impl<>): Remove _Is_pod_comparator
925 * include/debug/formatter.h [_GLIBCXX_INLINE_VERSION]
926 (__gnu_debug::_Error_formatter::_Parameter::_M_print_field): Remove.
927 (__gnu_debug::_Error_formatter::_Parameter::_M_print_description):
929 (__gnu_debug::_Error_formatter::_M_format_word): Remove.
930 (__gnu_debug::_Error_formatter::_M_print_word): Remove.
931 (__gnu_debug::_Error_formatter::_M_print_string): Remove.
932 (__gnu_debug::_Error_formatter::_M_get_max_length): Remove.
933 * src/c++11/debug.cc: Adapt.
934 * config/abi/pre/gnu-versioned-namespace.ver: Adapt.
936 2017-05-11 Jonathan Wakely <jwakely@redhat.com>
938 * doc/xml/manual/allocator.xml: Fix ViewCVS URLs.
939 * doc/xml/manual/mt_allocator.xml: Likewise.
940 * doc/html/*: Regenerate.
943 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Define
944 function to get unique fake std::type_info reference.
945 (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Compare to
946 _S_ti() fake reference.
947 (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Share
948 single implementation with or without RTTI enable.
949 [!__cpp_rtti]: Pass fake reference to _M_get_deleter.
950 * testsuite/20_util/shared_ptr/creation/alloc.cc: Change expected
951 allocation and deallocation counts.
952 * testsuite/20_util/shared_ptr/creation/single_allocation.cc: New.
953 * testsuite/20_util/shared_ptr/creation/single_allocation_no_rtti.cc:
956 2017-05-10 François Dumont <fdumont@gcc.gnu.org>
958 Bump version namespace.
959 * config/abi/pre/gnu-versioned-namespace.ver: Bump version namespace
960 from __7 to __8. Bump GLIBCXX_7.0 to GLIBCXX_8.0.
961 * acinclude.m4 (libtool_VERSION): Bump to 8:0:0.
962 * include/bits/c++config: Adapt.
963 * include/bits/regex.h: Adapt.
964 * include/experimental/bits/fs_fwd.h: Adapt.
965 * include/experimental/bits/lfts_config.h: Adapt.
966 * include/std/variant: Adapt.
967 * python/libstdcxx/v6/printers.py: Adapt.
968 * testsuite/libstdc++-prettyprinters/48362.cc: Adapt.
970 * include/bits/stl_algobase.h (std::__iter_swap<false>): Remove
973 2017-05-09 Jason Merrill <jason@redhat.com>
975 * testsuite/24_iterators/container_access.cc (test03): Make il3 static.
977 2017-05-08 Jonathan Wakely <jwakely@redhat.com>
979 * include/std/optional: Use a separate static_assert per condition.
980 * testsuite/20_util/optional/cons/value_neg.cc: Update dg-error line
983 * doc/xml/manual/mt_allocator.xml: Clarify deallocation behaviour.
984 * doc/html/*: Regenerate.
986 2017-05-02 Hugo Beauzée-Luyssen <hugo@beauzee.fr>
989 * config/os/mingw32-w64/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
991 2017-04-29 François Dumont <fdumont@gcc.gnu.org>
993 * testsuite/libstdc++-prettyprinters/48362.cc: Replace a regexp-test
996 2017-04-28 Jonathan Wakely <jwakely@redhat.com>
999 * include/bits/stl_construct.h (_Destroy, _Destroy_n): Add static
1000 assertions to ensure type is destructible.
1001 (destroy_at, destroy, destroy_n): Move from stl_uninitialized.h.
1002 * include/bits/stl_uninitialized.h (destroy_at, destroy, destroy_n):
1003 Move to stl_construct.h.
1004 * testsuite/20_util/specialized_algorithms/memory_management_tools/
1005 destroy_neg.cc: New test.
1006 * testsuite/23_containers/vector/cons/destructible_neg.cc: New test.
1008 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
1009 superfluous "" in dg-error.
1011 2017-04-28 Tom de Vries <tom@codesourcery.com>
1013 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
1014 superfluous '{ target *-*-* }' in dg-(error|warning|message|bogus).
1016 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
1018 * include/ext/pb_ds/detail/list_update_map_/iterators_fn_imps.hpp
1019 (PB_DS_CLASS_C_DEC::end()): Remove redundant const in cast type.
1020 * testsuite/util/testsuite_rng.h (twister_rand_gen::get_prob()):
1023 2017-04-26 Jonathan Wakely <jwakely@redhat.com>
1025 * testsuite/23_containers/deque/allocator/move_assign-2.cc: Improve
1026 comment. Ensure first test works because allocator type propagates and
1027 not because is_always_equal is true.
1028 * testsuite/23_containers/vector/52591.cc: Likewise. Restore original
1029 testcase that instantiates the move-assignment operator.
1031 2017-04-24 Jonathan Wakely <jwakely@redhat.com>
1034 * include/bits/random.tcc (gamma_distribution::operator()): Fix magic
1035 number used in loop condition.
1038 * include/bits/refwrap.h (ref, cref): Qualify calls.
1039 * testsuite/20_util/reference_wrapper/80504.cc: New test.
1042 * include/experimental/optional (optional::swap): Fix exception
1045 2017-04-21 Jonathan Wakely <jwakely@redhat.com>
1048 * include/std/future (_State_baseV2::_Setter::operator()): Remove
1049 _S_check calls that are done after the pointer to the shared state is
1050 already dereferenced.
1051 (_State_baseV2::_Setter<_Res, void>): Define specialization for void
1052 as partial specialization so it can be defined within the definition
1054 (_State_baseV2::__setter): Call _S_check.
1055 (_State_baseV2::__setter(promise<void>*)): Add overload for use by
1056 promise<void>::set_value and promise<void>::set_value_at_thread_exit.
1057 (promise<T>, promise<T&>, promise<void>): Make _State a friend.
1058 (_State_baseV2::_Setter<void, void>): Remove explicit specialization.
1059 (promise<void>::set_value, promise<void>::set_value_at_thread_exit):
1060 Use new __setter overload.
1061 * testsuite/30_threads/promise/members/at_thread_exit2.cc: New test.
1062 * testsuite/30_threads/promise/members/set_exception.cc: Test
1063 promise<T&> and promise<void> specializations.
1064 * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
1065 Test for no_state error condition.
1066 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
1068 * include/backward/auto_ptr.h: Ignore deprecated warnings from use
1070 * include/bits/shared_ptr.h: Likewise.
1071 * include/bits/shared_ptr_base.h: Likewise.
1072 * include/bits/unique_ptr.h: Likewise.
1073 * libstdc++-v3/testsuite/20_util/default_delete/48631_neg.cc: Adjust
1075 * libstdc++-v3/testsuite/20_util/default_delete/void_neg.cc: Likewise.
1076 * libstdc++-v3/testsuite/20_util/unique_ptr/assign/48635_neg.cc:
1078 * libstdc++-v3/testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc:
1081 2017-04-20 Edward Smith-Rowland <3dw4rd@verizon.net>
1083 PR libstdc++/68397 std::tr1::expint fails ... long double arguments.
1084 * include/tr1/exp_integral.tcc: Increase iteration limits.
1085 * testsuite/tr1/5_numerical_facilities/special_functions/15_expint/
1086 pr68397.cc: New test.
1087 * testsuite/special_functions/14_expint/pr68397.cc: New test.
1089 2017-04-20 Jonathan Wakely <jwakely@redhat.com>
1092 * include/std/atomic [!_GLIBCXX_USE_C99_STDINT_TR1] (atomic_int8_t)
1093 (atomic_uint8_t, atomic_int16_t, atomic_uint16_t, atomic_int32_t,
1094 (atomic_uint32_t, atomic_int64_t, atomic_uint64_t)
1095 (atomic_int_least8_t, atomic_uint_least8_t, atomic_int_least16_t)
1096 (atomic_uint_least16_t, atomic_int_least32_t, atomic_uint_least32_t)
1097 (atomic_int_least64_t, atomic_uint_least64_t, atomic_int_fast8_t)
1098 (atomic_uint_fast8_t, atomic_int_fast16_t, atomic_uint_fast16_t)
1099 (atomic_int_fast32_t, atomic_uint_fast32_t, atomic_int_fast64_t)
1100 (atomic_uint_fast64_t, atomic_intmax_t, atomic_uintmax_t): Don't
1103 2017-04-19 Jonathan Wakely <jwakely@redhat.com>
1105 * doc/xml/manual/abi.xml: Rephrase one of the references to the
1107 * doc/xml/manual/test.xml: Document DejaGnu 1.5.3 requirement.
1108 * doc/html/*: Regenerate.
1110 * libsupc++/new: Update comment on #endif directive.
1113 * include/experimental/bits/fs_dir.h (directory_iterator)
1114 (recursive_directory_iterator): Remove noexcept from defaulted
1118 * include/std/type_traits (is_aggregate): Change __has_builtin checks.
1119 * libsupc++/new (launder): Likewise.
1121 2017-04-18 Jonathan Wakely <jwakely@redhat.com>
1123 * include/std/functional (default_searcher, __boyer_moore_array_base)
1124 (__is_std_equal_to, __boyer_moore_base_t, boyer_moore_searcher)
1125 (boyer_moore_horspool_searcher): Remove redundant namespace
1127 (default_searcher::operator()): Construct return value early and
1128 advance second member in-place.
1129 (boyer_moore_horspool_searcher::operator()): Increment random access
1130 iterator directly instead of using std::next.
1131 (boyer_moore_searcher::operator()): Fix return value.
1132 * testsuite/20_util/function_objects/searchers.cc: Check both parts
1135 2017-04-12 Gerald Pfeifer <gerald@pfeifer.com>
1137 * doc/xml/faq.xml: Update reference link to C++ ABI for Itanium.
1138 * doc/xml/manual/abi.xml. Ditto (thrice).
1140 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
1142 * doc/xml/manual/status_cxx2017.xml: Remove duplicate table entry.
1143 * doc/html/*: Regenerate.
1145 * testsuite/20_util/reference_wrapper/invoke.cc: Uncomment tests
1146 that no longer fail.
1148 * include/bits/ios_base.h: Correct comment.
1149 * testsuite/util/testsuite_hooks.h: Likewise.
1151 * doc/xml/manual/status_cxx2017.xml: Update C++17 status table.
1152 * doc/xml/manual/appendix_contributing.xml (contrib.organization): Add
1153 directories for debug, parallel and profile headers.
1154 * doc/html/*: Regenerate.
1156 * include/bits/char_traits.h (__gnu_cxx::char_traits): Add
1157 _GLIBCXX14_CONSTEXPR on assign, compare, find, and length.
1158 (std::char_traits<char>, std::char_traits<wchar_t>): Add
1159 _GLIBCXX17_CONSTEXPR on assign.
1160 (std::char_traits<char16_t>, std::char_traits<char32_t>): Add
1161 _GLIBCXX17_CONSTEXPR on assign, compare, find, and length.
1162 * testsuite/21_strings/char_traits/requirements/
1163 constexpr_functions_c++17.cc: New test.
1165 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
1168 * include/bits/stl_pair.h (__nonesuch_no_braces): New.
1169 (operator=(typename conditional<
1170 __and_<is_copy_assignable<_T1>,
1171 is_copy_assignable<_T2>>::value,
1172 const pair&, const __nonesuch&>::type)): Change __nonesuch
1173 to __nonesuch_no_braces.
1174 (operator=(typename conditional<
1175 __not_<__and_<is_copy_assignable<_T1>,
1176 is_copy_assignable<_T2>>>::value,
1177 const pair&, const __nonesuch&>::type)): Likewise.
1178 (operator=(typename conditional<
1179 __and_<is_move_assignable<_T1>,
1180 is_move_assignable<_T2>>::value,
1181 pair&&, __nonesuch&&>::type)): Likewise.
1182 * testsuite/20_util/pair/79141.cc: New.
1184 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
1186 Implement std::is_aggregate.
1187 * include/std/type_traits (is_aggregate, is_aggregate_v): New.
1188 * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc:
1190 * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise.
1191 * testsuite/20_util/is_aggregate/value.cc: Likewise.
1193 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
1195 Adjust optional's pretty printer for LWG 2900.
1196 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter.__init__):
1197 Look at the nested payload in case of non-experimental optional.
1199 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
1201 Implement LWG 2900, The copy and move constructors
1202 of optional are not constexpr.
1203 * include/std/optional (_Optional_payload): New.
1204 (_Optional_base): Remove the bool parameter.
1205 (_Optional_base<_Tp, false>): Remove.
1206 (_Optional_base()): Adjust.
1207 (_Optional_base(nullopt_t)): Likewise.
1208 (_Optional_base(in_place_t, _Args&&...)): Likewise.
1209 (_Optional_base(in_place_t, initializer_list<_Up>, _Args&&...)):
1211 (_Optional_base(const _Optional_base&)): Likewise.
1212 (_Optional_base(_Optional_base&&)): Likewise.
1213 (operator=(const _Optional_base&)): Likewise.
1214 (operator=(_Optional_base&&)): Likewise.
1215 (~_Optional_base()): Remove.
1216 (_M_is_engaged()): Adjust.
1217 (_M_get()): Likewise.
1218 (_M_construct(_Args&&...)): Likewise.
1219 (_M_destruct()): Likewise.
1220 (_M_reset()): Likewise.
1221 (_Optional_base::_Empty_byte): Remove.
1222 (_Optional_base::_M_empty): Remove.
1223 (_Optional_base::_M_payload): Adjust.
1224 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
1225 * testsuite/20_util/optional/constexpr/cons/value.cc: Add tests.
1227 2017-03-28 Jonathan Wakely <jwakely@redhat.com>
1230 * include/bits/random.tcc (generate_canonical): Use std::nextafter
1231 or numeric_limits::epsilon() to reduce out-of-range values.
1232 * testsuite/26_numerics/random/uniform_real_distribution/operators/
1233 64351.cc: Verify complexity requirement is met.
1235 * doc/xml/manual/abi.xml: Add xml:id anchor.
1236 * doc/xml/manual/using.xml (manual.intro.using.macros): Document
1237 _GLIBCXX_RELEASE. Link to new anchor for __GLIBCXX__ notes.
1238 (concurrency.io.structure): Add markup.
1239 * doc/html/*: Regenerate.
1242 * include/bits/shared_ptr_base.h
1243 (__shared_ptr::_M_enable_shared_from_this_with): Change parameters to
1244 non-const and then use remove_cv to get unqualified type.
1245 * testsuite/20_util/enable_shared_from_this/members/const.cc: Don't
1246 cast away constness on object created const.
1247 * testsuite/20_util/shared_ptr/cons/80229.cc: New test.
1249 2017-03-26 Markus Trippelsdorf <markus@trippelsdorf.de>
1252 * include/bits/stl_tree.h:
1253 (_Rb_tree_header::_M_move_data(_Rb_tree_header&)): Also save _M_color.
1255 2017-03-23 Jonathan Wakely <jwakely@redhat.com>
1257 * testsuite/23_containers/array/tuple_interface/
1258 tuple_element_debug_neg.cc: Adjust dg-error.
1259 * testsuite/23_containers/list/operations/78389.cc: Fix less-than to
1260 define a valid strict weak ordering.
1261 * testsuite/23_containers/priority_queue/67085.cc: Disable test for
1262 Debug Mode, due to debug checks making extra copies of predicate.
1263 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
1266 * doc/xml/faq.xml: Add link.
1267 * doc/xml/manual/backwards_compatibility.xml: Remove outdated
1268 information on pre-ISO headers. Replace broken link to C++ FAQ Lite.
1269 * doc/xml/manual/io.xml: Update broken link.
1270 * doc/html/*: Regenerate.
1272 2017-03-23 Daniel Kruegler <daniel.kruegler@gmail.com>
1274 Implement LWG 2686, Why is std::hash specialized for error_code,
1275 but not error_condition?
1276 * include/std/system_error (hash<error_condition>): Define for C++17.
1277 * testsuite/20_util/hash/operators/size_t.cc (hash<error_condition>):
1278 Instantiate test for error_condition.
1279 * testsuite/20_util/hash/requirements/explicit_instantiation.cc
1280 (hash<error_condition>): Instantiate hash<error_condition>.
1282 * include/bits/c++config (_GLIBCXX17_INLINE): Define.
1283 * include/bits/regex_constants.h (All std::regex_constants constants):
1284 Add _GLIBCXX17_INLINE as per P0607R0.
1285 * include/bits/std_mutex.h (defer_lock, try_to_lock, adopt_lock):
1287 * include/bits/stl_pair.h (piecewise_construct): Likewise.
1288 * include/bits/uses_allocator.h (allocator_arg, uses_allocator_v)
1289 (__is_uses_allocator_constructible_v)
1290 (__is_nothrow_uses_allocator_constructible_v): Likewise.
1291 * include/std/chrono (treat_as_floating_point_v): Likewise.
1292 * include/std/functional (is_bind_expression_v, is_placeholder_v):
1294 * include/std/optional (nullopt): Likewise.
1295 * include/std/ratio (ratio_equal_v, ratio_not_equal_v, ratio_less_v)
1296 ratio_less_equal_v, ratio_greater_v, ratio_greater_equal_v): Likewise.
1297 * include/std/system_error (is_error_code_enum_v)
1298 (is_error_condition_enum_v): Likewise.
1299 * include/std/tuple (tuple_size_v, ignore): Likewise.
1300 (ignore): Declare ignore constexpr as per LWG 2773, declare assignment
1301 constexpr as per LWG 2933.
1302 * include/std/type_traits (All variable templates): Add
1303 _GLIBCXX17_INLINE as per P0607R0.
1304 * include/std/variant (variant_size_v, variant_npos, __index_of_v)
1305 (__tuple_count_v, __exactly_once): Likewise.
1306 * testsuite/18_support/headers/new/synopsis.cc
1307 (hardware_destructive_interference_size)
1308 (hardware_constructive_interference_size): Likewise for commented-out
1310 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Add new
1311 test function for constexpr std::ignore (LWG 2773).
1312 * testsuite/20_util/tuple/creation_functions/constexpr_cpp14.cc: New
1315 2017-03-22 Jonathan Wakely <jwakely@redhat.com>
1317 * include/bits/shared_ptr.h (shared_ptr, weak_ptr): Add deduction
1319 * include/bits/std_function.h (function): Likewise.
1320 * include/bits/stl_pair.h (pair): Likewise.
1321 * include/debug/array (__gnu_debug::array): Likewise.
1322 * include/std/array (array): Likewise.
1323 * include/std/functional (make_default_searcher)
1324 (make_boyer_moore_searcher, make_boyer_moore_horspool_searcher):
1325 Remove generator functions.
1326 * include/std/tuple (tuple): Add deduction guides.
1327 * include/std/valarray (valarray): Likewise.
1328 * testsuite/20_util/function_objects/searchers.cc: Adjust to use
1329 class template argument deduction instead of generator functions.
1330 * testsuite/20_util/function/cons/deduction.cc: New test.
1331 * testsuite/20_util/optional/cons/deduction_guide.cc: Rename to ...
1332 * testsuite/20_util/optional/cons/deduction.cc: ... here.
1333 * testsuite/20_util/pair/cons/deduction.cc: New test.
1334 * testsuite/20_util/shared_ptr/cons/deduction.cc: New test.
1335 * testsuite/20_util/tuple/cons/deduction.cc: New test.
1336 * testsuite/20_util/tuple/element_access/get_neg.cc: Adjust dg-error.
1337 * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: New test.
1338 * testsuite/20_util/weak_ptr/cons/deduction.cc: New test.
1339 * testsuite/23_containers/array/cons/deduction.cc: New test.
1340 * testsuite/23_containers/array/cons/deduction_neg.cc: New test.
1341 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
1343 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise.
1344 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
1346 * testsuite/26_numerics/valarray/deduction.cc: New test.
1347 * testsuite/30_threads/lock_guard/cons/deduction.cc: New test.
1348 * testsuite/30_threads/scoped_lock/cons/deduction.cc: New test.
1349 * testsuite/30_threads/unique_lock/cons/deduction.cc: New test.
1351 2017-03-20 François Dumont <fdumont@gcc.gnu.org>
1353 * include/bits/stl_deque.h (deque): Access allocator value_type only if
1354 concept checks are enabled.
1355 * include/bits/stl_stack.h (stack): Likewise.
1356 * include/bits/stl_vector.h (vector): Likewise.
1357 * include/bits/stl_list.h (list): Likewise and check
1358 _SGIAssignableConcept only in C++03.
1359 * include/bits/stl_map.h (map): Likewise.
1360 * include/bits/stl_set.h (set): Likewise.
1361 * include/bits/stl_multimap.h (multimap): Likewise.
1362 * include/bits/stl_multiset.h (multiset): Likewise.
1363 * include/bits/stl_queue.h (queue, priority_queue): Likewise.
1365 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
1367 * doc/xml/manual/appendix_contributing.xml: Convert link to
1369 Update link to the C++ standard at ansi.org.
1371 * doc/xml/faq.xml: Remove information redundant with the above;
1372 instead add a reference.
1374 2017-03-17 Jonathan Wakely <jwakely@redhat.com>
1376 * src/c++11/codecvt.cc (range): Add non-type template parameter and
1377 define oerloaded operators for reading and writing code units.
1378 (range<Elem, false>): Define partial specialization for accessing
1379 wide characters in potentially unaligned byte ranges.
1380 (ucs2_span(const char16_t*, const char16_t*, ...))
1381 (ucs4_span(const char16_t*, const char16_t*, ...)): Change parameters
1382 to range<const char16_t, false> in order to avoid unaligned reads.
1383 (__codecvt_utf16_base<char16_t>::do_out)
1384 (__codecvt_utf16_base<char32_t>::do_out)
1385 (__codecvt_utf16_base<wchar_t>::do_out): Use range specialization for
1386 unaligned data to avoid unaligned writes.
1387 (__codecvt_utf16_base<char16_t>::do_in)
1388 (__codecvt_utf16_base<char32_t>::do_in)
1389 (__codecvt_utf16_base<wchar_t>::do_in): Likewise for writes. Return
1390 error if there are unprocessable trailing bytes.
1391 (__codecvt_utf16_base<char16_t>::do_length)
1392 (__codecvt_utf16_base<char32_t>::do_length)
1393 (__codecvt_utf16_base<wchar_t>::do_length): Pass arguments of type
1394 range<const char16_t, false> to span functions.
1395 * testsuite/22_locale/codecvt/codecvt_utf16/misaligned.cc: New test.
1397 2017-03-16 Jonathan Wakely <jwakely@redhat.com>
1400 * src/c++11/codecvt.cc (to_integer(codecvt_mode)): Fix target type.
1403 * src/c++11/codecvt.cc (__codecvt_utf16_base<wchar_t>::do_out)
1404 (__codecvt_utf16_base<wchar_t>::do_in): Convert char arguments to
1405 char16_t to work with UTF-16 instead of UTF-8.
1406 * testsuite/22_locale/codecvt/codecvt_utf16/80041.cc: New test.
1408 * src/c++11/codecvt.cc (codecvt<char16_t, char, mbstate_t>)
1409 (codecvt<char32_t, char, mbstate_t>, __codecvt_utf8_base<char16_t>)
1410 (__codecvt_utf8_base<char32_t>, __codecvt_utf8_base<wchar_t>)
1411 (__codecvt_utf16_base<char16_t>, __codecvt_utf16_base<char32_t>)
1412 (__codecvt_utf16_base<wchar_t>, __codecvt_utf8_utf16_base<char16_t>)
1413 (__codecvt_utf8_utf16_base<char32_t>)
1414 (__codecvt_utf8_utf16_base<wchar_t>): Fix do_encoding() and
1415 do_max_length() return values.
1416 * testsuite/22_locale/codecvt/codecvt_utf16/members.cc: New test.
1417 * testsuite/22_locale/codecvt/codecvt_utf8/members.cc: New test.
1418 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/members.cc: New test.
1421 * include/bits/locale_conv.h (__do_str_codecvt): Set __count on
1423 * src/c++11/codecvt.cc (operator&=, operator|=, operator~): Overloads
1424 for manipulating codecvt_mode values.
1425 (read_utf16_bom): Compare input to BOM constants instead of integral
1426 constants that depend on endianness. Take mode parameter by
1427 reference and adjust it, to distinguish between no BOM present and
1428 UTF-16BE BOM present.
1429 (ucs4_in, ucs2_span, ucs4_span): Adjust calls to read_utf16_bom.
1430 (surrogates): New enumeration type.
1431 (utf16_in, utf16_out): Add surrogates parameter to choose between
1432 UTF-16 and UCS2 behaviour.
1433 (utf16_span, ucs2_span): Use std::min not std::max.
1434 (ucs2_out): Use std::min not std::max. Disallow surrogate pairs.
1435 (ucs2_in): Likewise. Adjust calls to read_utf16_bom.
1436 * testsuite/22_locale/codecvt/codecvt_utf16/79980.cc: New test.
1437 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: New test.
1440 * src/c++11/codecvt.cc (write_utf16_code_point): Don't write 0xffff
1441 as a surrogate pair.
1442 (__codecvt_utf8_utf16_base<char32_t>::do_in): Use native endianness
1443 for internal representation.
1444 (__codecvt_utf8_utf16_base<wchar_t>::do_in): Likewise.
1445 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/79511.cc: New test.
1448 * include/bits/stl_heap.h (__is_heap, push_heap, __adjust_heap)
1449 (pop_heap, make_heap, sort_heap, is_heap_until, is_heap): Cope with
1450 invalid instantiations using function types for _Compare argument.
1451 * testsuite/25_algorithms/make_heap/80064.cc: New test.
1454 * python/libstdcxx/v6/printers.py (find_type): Avoid gdb.Type.name
1455 for GDB 7.6 compatibility, use gdb.Type.unqualified instead.
1457 2017-03-15 Ville Voutilainen <ville.voutilainen@gmail.com>
1459 Implement LWG 2857, {variant,optional,any}::emplace should
1460 return the constructed value.
1461 * include/std/any (emplace(_Args&&...)): Change the return type and
1462 return a reference to the constructed value.
1463 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
1464 * include/std/optional (emplace(_Args&&...)): Likewise.
1465 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
1466 * include/std/variant (emplace<_Tp>(_Args&&...)): Likewise.
1467 (emplace<_Tp>(initializer_list<_Up>, _Args&&...)): Likewise.
1468 (emplace<_Np>(_Args&&...)): Likewise.
1469 (emplace<_Np>(initializer_list<_Up>, _Args&&...)): Likewise.
1470 * testsuite/20_util/any/assign/emplace.cc: Add tests for
1471 checking the return value of emplace.
1472 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust.
1473 * testsuite/20_util/optional/assignment/6.cc: Add tests for
1474 checking the return value of emplace.
1475 * testsuite/20_util/variant/run.cc: Likewise.
1477 2017-03-15 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
1480 * include/ext/pb_ds/qdetail/binary_heap_/binary_heap_.hpp
1482 (push_heap): Remove the wrong checking using is_heap.
1483 (make_heap): Remove the assertion using is_heap.
1484 * include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp
1486 (resize_for_insert_if_needed): Add PB_DS_ASSERT_VALID after
1489 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
1492 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
1494 * testsuite/ext/pb_ds/regression/priority_queues.cc: Fix copy&paste
1497 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
1499 * acinclude.m4 (GLIBCXX_CHECK_S_ISREG_OR_S_IFREG): Fix typo in
1501 * config.h.in: Regenerate.
1502 * configure: Regenerate.
1503 * doc/Makefile.in: Regenerate.
1505 2017-03-14 Jonathan Wakely <jwakely@redhat.com>
1508 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1509 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace
1510 with a constrained template.
1511 [!_GLIBCXX_USE_CXX11_ABI]
1512 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise.
1513 * testsuite/21_strings/basic_string/cons/char/79162.cc: New test.
1514 * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test.
1516 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1519 * include/bits/list.tcc (merge(list&&)): Use const for the size_t
1521 (merge(list&&, _StrictWeakOrdering)): Likewise.
1522 * testsuite/23_containers/list/operations/80034.cc: New.
1524 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1526 Implement LWG 2806, Base class of bad_optional_access.
1527 * include/std/optional (bad_optional_access):
1528 Derive from std::exception.
1529 (bad_optional_access::bad_optional_access): Adjust.
1530 (bad_optional_access::what): New.
1531 (__throw_bad_optional_access(const char*)):
1532 Remove the parameter and adjust calls.
1533 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
1534 * testsuite/20_util/optional/typedefs.cc: Likewise.
1536 2017-03-12 Ville Voutilainen <ville.voutilainen@gmail.com>
1538 Implement LWG 2934, optional<const T> doesn't compare with T.
1539 * include/std/optional
1540 (operator==(const optional<_Tp>&, const optional<_Tp>&)):
1541 Turn into operator==(const optional<_Tp>&, const optional<_Up>&).
1542 (operator!=(const optional<_Tp>&, const optional<_Tp>&)):
1543 Turn into operator!=(const optional<_Tp>&, const optional<_Up>&).
1544 (operator<(const optional<_Tp>&, const optional<_Tp>&)):
1545 Turn into operator<(const optional<_Tp>&, const optional<_Up>&.
1546 (operator>(const optional<_Tp>&, const optional<_Tp>&)):
1547 Turn into operator>(const optional<_Tp>&, const optional<_Up>&.
1548 (operator<=(const optional<_Tp>&, const optional<_Tp>&)):
1549 Turn into operator<=(const optional<_Tp>&, const optional<_Up>&).
1550 (operator>=(const optional<_Tp>&, const optional<_Tp>&)):
1551 Turn into operator>=(const optional<_Tp>&, const optional<_Up>&).
1552 (operator==(const optional<_Tp>&, const _Tp&)):
1553 Turn into operator==(const optional<_Tp>&, const _Up&).
1554 (operator==(const _Tp&, const optional<_Tp>&)):
1555 Turn into operator==(const _Up&, const optional<_Tp>&).
1556 (operator!=(const optional<_Tp>&, const _Tp&)):
1557 Turn into operator!=(const optional<_Tp>&, const _Up&).
1558 (operator!=(const _Tp&, const optional<_Tp>&)):
1559 Turn into operator!=(const _Up&, const optional<_Tp>&).
1560 (operator<(const optional<_Tp>&, const _Tp&)):
1561 Turn into operator<(const optional<_Tp>&, const _Up&).
1562 (operator<(const _Tp&, const optional<_Tp>&)):
1563 Turn into operator<(const _Up&, const optional<_Tp>&).
1564 (operator>(const optional<_Tp>&, const _Tp&)):
1565 Turn into operator>(const optional<_Tp>&, const _Up&).
1566 (operator>(const _Tp&, const optional<_Tp>&)):
1567 Turn into operator>(const _Up&, const optional<_Tp>&).
1568 (operator<=(const optional<_Tp>&, const _Tp&)):
1569 Turn into operator<=(const optional<_Tp>&, const _Up&).
1570 (operator<=(const _Tp&, const optional<_Tp>&)):
1571 Turn into operator<=(const _Up&, const optional<_Tp>&).
1572 (operator>=(const optional<_Tp>&, const _Tp&)):
1573 Turn into operator>=(const optional<_Tp>&, const _Up&).
1574 (operator>=(const _Tp&, const optional<_Tp>&)):
1575 Turn into operator>=(const _Up&, const optional<_Tp>&).
1576 * testsuite/20_util/optional/relops/7.cc: New.
1578 2017-03-10 Jonathan Wakely <jwakely@redhat.com>
1580 * testsuite/17_intro/names.cc: Undefine macros that clash with
1581 identifiers in AIX system headers.
1583 * include/bits/invoke.h (__invoke): Use __invoke_result instead of
1584 result_of, and __is_nothrow_invocable instead of
1585 __is_nothrow_callable.
1586 * include/bits/shared_ptr_base.h (__shared_ptr): Use __is_invocable
1587 instead of __is_callable.
1588 * include/std/functional (invoke): use invoke_result_t instead of
1589 result_of_t and is_nothrow_invocable instead of is_nothrow_callable.
1590 (_Not_fn): Use __invoke_result instead of result_of.
1591 * include/std/type_traits (__result_of_memobj, __result_of_memfun):
1592 Remove partial specializations for reference_wrapper types.
1593 (__result_of_impl): Use __inv_unwrap to strip reference_wrapper.
1594 (__invoke_result): Define replacement for result_of and then use it to
1596 (__is_callable_impl, __is_callable, __is_nothrow_callable): Replace
1597 with __is_invocable_impl, __is_invocable, and __is_nothrow_invocable
1599 (invoke_result, invoke_result_t): Define for C++17.
1600 (is_callable, is_nothrow_callable): Replace with is_invocable,
1601 is_invocable_r, is_nothrow_invocable, and is_nothrow_invocable_r.
1602 (is_callable_v, is_nothrow_callable_v): Replace with is_invocable_v,
1603 is_invocable_r_v, is_nothrow_invocable_v, and is_nothrow_invocable_r_v.
1604 * include/std/variant (hash<variant<T...>>): Use is_nothrow_invocable_v
1605 instead of is_nothrow_callable_v.
1606 * testsuite/20_util/function_objects/invoke/59768.cc: Remove unused
1608 * testsuite/20_util/function_objects/not_fn/1.cc: Use is_invocable
1609 instead of is_callable.
1610 * testsuite/20_util/is_callable/*: Rename directory and adjust tests
1612 * testsuite/20_util/is_nothrow_callable/*: Likewise.
1613 * testsuite/20_util/optional/hash.cc: Use is_invocable_v instead of
1615 * testsuite/20_util/variant/hash.cc: Likewise.
1617 2017-03-10 George Lander <george.lander@arm.com>
1619 * acinclude.m4 (glibcxx_cv_obsolete_isnan): Define
1620 _GLIBCXX_INCLUDE_NEXT_C_HEADERS before including math.h.
1621 * configure: Regenerate.
1623 2017-03-09 Jonathan Wakely <jwakely@redhat.com>
1625 * include/std/functional (_Not_fn): Define macro to simplify
1626 repetitive function definitions.
1628 * doc/xml/manual/status_cxx2017.xml: Document std::byte support.
1629 * include/c_global/cstddef (std::byte): Define for C++17.
1630 * testsuite/18_support/byte/global_neg.cc: New test.
1631 * testsuite/18_support/byte/ops.cc: New test.
1632 * testsuite/18_support/byte/requirements.cc: New test.
1634 2017-03-05 Jonathan Wakely <jwakely@redhat.com>
1636 * doc/xml/manual/status_cxx2017.xml: Document P0156R2 status.
1637 * doc/html/*: Regenerate.
1638 * include/std/mutex (scoped_lock): Implement new C++17 template.
1639 * testsuite/30_threads/scoped_lock/cons/1.cc: New test.
1640 * testsuite/30_threads/scoped_lock/requirements/
1641 explicit_instantiation.cc: New test.
1642 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: New test.
1644 2017-03-02 Gerald Pfeifer <gerald@pfeifer.com>
1645 François Dumont <frs.dumont@gmail.com>
1646 Jonathan Wakely <jwakely@redhat.com>
1648 * doc/xml/manual/debug_mode.xml: Update and simplify note
1649 on link- and run-time coexistence.
1651 2017-03-02 Jonathan Wakely <jwakely@redhat.com>
1653 * testsuite/17_intro/headers/names.cc: Rename to ...
1654 * testsuite/17_intro/names.cc: ... here.
1657 * include/bits/hashtable_policy.h (__clp2): Use reserved names for
1658 parameters and local variables.
1659 * include/bits/ios_base.h (make_error_code, make_error_condition):
1661 * include/bits/list.tcc (list::sort): Likewise.
1662 * include/bits/mask_array.h (mask_array): Likewise.
1663 * include/bits/regex.h (regex_token_iterator): Likewise.
1664 * include/bits/slice_array.h (slice_array): Likewise.
1665 * include/bits/stl_algo.h (__sample): Likewise.
1666 * include/std/memory (undeclare_no_pointers): Likewise.
1667 * include/std/type_traits (is_callable_v, is_nothrow_callable_v):
1669 * libsupc++/exception_ptr.h (__dest_thunk): Likewise.
1670 * testsuite/17_intro/headers/names.cc: New test.
1673 * include/std/functional (bind::_Res_type_impl): Fix incorrect use of
1674 result_of that loses top-level cv-qualifiers.
1675 * testsuite/20_util/bind/79798.cc: New test.
1677 2017-03-01 Gerald Pfeifer <gerald@pfeifer.com>
1679 * doc/xml/manual/documentation_hacking.xml: Tweak link to
1682 2017-02-23 Jonathan Wakely <jwakely@redhat.com>
1684 * include/experimental/iterator: Include <iterator>.
1685 * testsuite/experimental/iterator/requirements.cc: Check for contents
1688 2017-02-19 Dinka Ranns <dinka.ranns@googlemail.com>
1690 C++17 GB50 resolution
1691 * include/std/chrono (duration::operator++()): Add
1692 _GLIBCXX17_CONSTEXPR.
1693 (duration::operator++(int)): Likewise.
1694 (duration::operator--()): Likewise.
1695 (duration::operator--(int)): Likewise.
1696 (duration::operator+=(const duration&)): Likewise.
1697 (duration::operator-=(const duration&)): Likewise.
1698 (duration::operator*=(const rep&)): Likewise.
1699 (duration::operator/=(const rep&)): Likewise.
1700 (duration::operator%=(const rep&)): Likewise.
1701 (duration::operator%=(const duration&)): Likewise.
1702 (time_point::operator+=(const duration&)): Likewise.
1703 (time_point::operator-=(const duration&)): Likewise.
1704 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: New test.
1705 * testsuite/20_util/duration/literals/range.cc: Adjust dg-error.
1706 * testsuite/20_util/time_point/arithmetic/constexpr.cc: New test.
1708 2017-02-19 Gerald Pfeifer <gerald@pfeifer.com>
1710 * doc/xml/manual/debug.xml: Adjust link to ThreadSanitizer.
1712 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
1714 * doc/xml/manual/io.xml: Update link to groups.google.com.
1715 Tweak link description.
1717 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
1719 * doc/xml/manual/profile_mode.xml: Fix link.
1721 2017-02-16 Gerald Pfeifer <gerald@pfeifer.com>
1723 * doc/xml/manual/policy_data_structures.xml: Simplify and
1724 standardize references to boost.org.
1725 * doc/xml/manual/policy_data_structures_biblio.xml: Ditto.
1726 * doc/xml/manual/shared_ptr.xml: Ditto.
1728 2017-02-16 Jonathan Wakely <jwakely@redhat.com>
1731 * src/c++11/snprintf_lite.cc (__concat_size_t): Calculate length
1732 written to buffer, not length remaining in buffer.
1734 2017-02-15 Tim Shen <timshen@google.com>
1737 * include/std/variant (operator<(), operator>(), operator<=(),
1738 operator>=(), operator==(), operator!=()): Implement P0393R3.
1739 * testsuite/20_util/variant/compile.cc: Adjust tests.
1740 * testsuite/20_util/variant/run.cc: Adjust tests.
1742 2017-02-15 Tim Shen <timshen@google.com>
1745 * include/std/variant (visit()): Forward variant types to the return
1746 type detection code.
1747 * testsuite/20_util/variant/compile.cc: Add test cases.
1749 2017-02-13 H.J. Lu <hongjiu.lu@intel.com>
1752 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
1754 2017-02-13 Jakub Jelinek <jakub@redhat.com>
1757 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
1758 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
1759 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Likewise.
1760 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
1761 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Likewise.
1762 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
1763 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Likewise.
1764 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
1765 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
1767 2017-02-13 Jonathan Wakely <jwakely@redhat.com>
1770 * include/std/future (__future_base::_Task_state::_M_run)
1771 (__future_base::_Task_state::_M_run_delayed): Use lvalue types in
1772 result_of expressions.
1773 * testsuite/30_threads/packaged_task/79486.cc: New.
1775 2017-02-11 Jonathan Wakely <jwakely@redhat.com>
1778 * include/bits/shared_ptr_base.h (__shared_ptr(_Yp*, _Deleter))
1779 (__shared_ptr(_Yp*, _Deleter, _Alloc)): Use lvalue types in
1780 __is_callable check.
1781 * testsuite/20_util/shared_ptr/cons/79467.cc: New.
1783 * include/bits/atomic_base.h: Re-indent.
1785 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
1787 * doc/xml/manual/profile_mode.xml: Update a paper reference.
1789 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1791 * src/c++11/snprintf_lite.cc (__err): Use https for bug reporting.
1793 2017-02-08 Jonathan Wakely <jwakely@redhat.com>
1795 * doc/xml/manual/policy_data_structures.xml: Fix spelling of author's
1797 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise. Remove
1798 broken links to texts that are no longer online.
1799 * doc/xml/manual/profile_mode.xml: Update links to CGO 2009 paper and
1801 * doc/xml/manual/using.xml: Update links to memory model information.
1802 * doc/xml/manual/using_exceptions.xml: Update link to "Appendix E:
1803 Standard-Library Exception Safety".
1804 * doc/html/*: Regenerate.
1806 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1808 * doc/xml/manual/profile_mode.xml: Unbreak link to
1809 "Optimizing Sorting with Machine Learning Algorithms".
1811 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1813 * src/c++11/snprintf_lite.cc (__err): Update bug reporting URL.
1815 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1817 * doc/xml/manual/abi.xml: Update link to "Sun Studio 11: C++
1820 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
1822 * doc/html/ext/lwg-active.html: Remove.
1823 * doc/html/ext/lwg-closed.html: Ditto.
1824 * doc/html/ext/lwg-defects.html: Ditto.
1826 * doc/Makefile.am (xml_extradir): Remove.
1828 (stamp-html-docbook-lwg): Remove recipe...
1829 (stamp-html-docbook-data): ...and its use here.
1830 * doc/Makefile.in: Regenerate.
1832 * doc/xml/manual/intro.xml: Shorten two paragraphs explaining
1833 the relationship to the upstream working group.
1834 Replace a local link to ../ext/lwg-active.html by the upstream one.
1835 Replace all reference to ../ext/lwg-defects.html by a new entity
1836 &DR; which refers to the upstream address.
1838 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
1840 * doc/xml/manual/status_cxx2017.xml: Fix link to N4284.
1842 2017-02-06 Jonathan Wakely <jwakely@redhat.com>
1845 * testsuite/20_util/duration/literals/range.cc: Prune extra output
1848 2017-02-06 Gerald Pfeifer <gerald@pfeifer.com>
1850 * doc/xml/manual/documentation_hacking.xml: Update URL of the
1851 DocBook Element Reference. Use that term as link description
1852 instead of "online".
1853 epubcheck has moved to GitHub.
1854 Remove obsolete link to DocBook Publishing Tools.
1856 2017-02-03 Jonathan Wakely <jwakely@redhat.com>
1859 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Restore ABI override
1860 so new ios::failure can be caught even when old ABI is the default.
1861 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1862 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1863 exceptions_failbit.cc: Likewise.
1864 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1865 exceptions_failbit.cc: Likewise.
1866 * testsuite/27_io/basic_istream/extractors_other/char/
1867 exceptions_null.cc: Likewise.
1868 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1869 exceptions_null.cc: Likewise.
1870 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1871 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1872 * testsuite/27_io/basic_ostream/inserters_other/char/
1873 exceptions_null.cc: Likewise.
1874 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1875 exceptions_null.cc: Likewise.
1876 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1879 * src/c++11/Makefile.am: Add new files.
1880 * src/c++11/Makefile.in: Regenerate.
1881 * src/c++11/cow-string-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
1882 (operator<<, operator>>, getline): Move explicit instantiations to ...
1883 * src/c++11/cow-string-io-inst.cc: ... new file.
1884 * src/c++11/cow-wstring-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
1885 (operator<<, operator>>, getline): Move explicit instantiations to ...
1886 * src/c++11/cow-wstring-io-inst.cc: ... new file.
1887 * src/c++11/functexcept.cc (__throw_ios_failure, __throw_system_error)
1888 (__throw_future_error, __throw_bad_function_call):
1889 (__throw_regex_error): Move functions for C++11 exceptions to the
1890 files that define the exception types.
1891 * src/c++11/functional.cc (__throw_bad_function_call): Move here.
1892 * src/c++11/future.cc (__throw_future_error): Likewise.
1893 * src/c++11/ios.cc (__throw_ios_failure): Likewise.
1894 * src/c++11/regex.cc (__throw_regex_error): Likewise.
1895 * src/c++11/snprintf_lite.cc (__concat_size_t): Print decimal
1896 representation directly instead of calling __int_to_char.
1897 * src/c++11/sso_string.cc (__sso_string): New file for definition
1898 of __sso_string type.
1899 * src/c++11/string-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
1900 explicit instantiations of narrow string I/O functions.
1901 * src/c++11/system_error.cc (__throw_system_error): Move here.
1902 (__sso_string): Move to new file.
1903 * src/c++11/wstring-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
1904 explicit instantiations of wide string I/O functions.
1905 * src/c++98/misc-inst.cc [_GLIBCXX_USE_CXX11_ABI] (operator<<)
1906 (operator>>, getline): Remove explicit instantiations from here.
1908 2017-02-02 H.J. Lu <hongjiu.lu@intel.com>
1910 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
1912 2017-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1914 * configure.host: Separate Solaris/SPARC and x86 baselines.
1915 * config/abi/post/solaris2.10/baseline_symbols.txt: Move ...
1916 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: ... here.
1917 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Move ...
1918 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
1920 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Move ...
1921 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: ... here.
1922 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: New file.
1923 * config/abi/post/solaris2.11/baseline_symbols.txt: Move ...
1924 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: ... here.
1925 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Move ...
1926 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
1928 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Move ...
1929 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: ... here.
1930 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: New file.
1932 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
1933 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
1934 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
1935 * config/abi/post/solaris2.11/baseline_symbols.txt: Likewise.
1936 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Likewise.
1937 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Likewise.
1939 2017-02-01 Jonathan Wakely <jwakely@redhat.com>
1942 * include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
1944 (_Iter_comp_to_iter): Likewise.
1945 * testsuite/25_algorithms/search/78346.cc: New test.
1948 * config/abi/pre/gnu.ver: Remove recently added symbols.
1949 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1950 (basic_string::_M_copy_assign): Remove.
1951 (basic_string::operator=(const basic_string&)): Don't dispatch to
1952 _M_copy_assign. If source object is small just deallocate, otherwise
1953 perform new allocation before making any changes.
1954 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
1955 (basic_string::_M_copy_assign(const basic_string&, true_type)):
1957 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1958 Test cases where the allocators are equal or the string is small.
1959 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1962 2017-01-30 Ville Voutilainen <ville.voutilainen@gmail.com>
1964 Implement LWG 2825, LWG 2756 breaks class template argument
1965 deduction for optional.
1966 * include/std/optional: Add a deduction guide.
1967 * testsuite/20_util/optional/cons/deduction_guide.cc: New.
1969 2017-01-27 Jonathan Wakely <jwakely@redhat.com>
1972 * config/abi/pre/gnu.ver: Add new symbols.
1973 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1974 (basic_string::_M_copy_assign): New overloaded functions to perform
1976 (basic_string::operator=(const basic_string&)): Dispatch to
1978 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
1979 (basic_string::_M_copy_assign(const basic_string&, true_type)):
1980 Define, performing rollback on exception.
1981 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1982 Test exception-safety guarantee.
1983 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1985 * testsuite/util/testsuite_allocator.h (uneq_allocator::swap): Make
1988 2017-01-26 Jonathan Wakely <jwakely@redhat.com>
1991 * include/tr1/complex (conj): Remove using-declaration and restore
1992 overloads, reverting previous change.
1994 * testsuite/23_containers/list/operations/78389.cc: Fix for C++11
1996 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
1997 Mark as unsupported in C++98 mode.
1998 * testsuite/23_containers/queue/requirements/constructible.cc:
2000 * testsuite/23_containers/stack/requirements/constructible.cc:
2002 * testsuite/25_algorithms/make_heap/movable.cc: Fix for C++11 mode.
2005 * include/bits/c++config (literals::string_view_literals::__7): Add.
2006 Only declare versioned namespaces for the relevant C++ dialects.
2007 * include/experimental/bits/erase_if.h (fundamentals_v2::__detail):
2008 Add versioning macros.
2009 * include/experimental/bits/lfts_config.h:
2010 (fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add.
2011 * include/experimental/string_view (fundamentals_v2::__detail):
2012 Add versioning macros.
2013 (fundamentals_v2::__detail::__identity): Remove.
2014 (fundamentals_v2::__detail::__idt): Use common_type instead of
2015 __detail::__identity.
2016 * include/std/string_view (__detail::__identity, __detail::__idt):
2018 (literals::string_view_literals): Fix nesting of versioning macros.
2021 * libsupc++/del_opa.cc (operator delete(void*, std::align_val_t))
2022 [!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN
2023 && !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC]:
2024 Retrieve original pointer value allocated by malloc.
2025 * libsupc++/new_opa.cc [!_GLIBCXX_HAVE_ALIGNED_ALLOC
2026 && !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN
2027 && !_GLIBCXX_HAVE__ALIGNED_MALLOC] (aligned_alloc(size_t, size_t)):
2028 Define, adjusting pointer value allocated by malloc and storing for
2029 retrieval by operator delete.
2031 2017-01-26 Jakub Jelinek <jakub@redhat.com>
2033 * libsupc++/eh_atomics.h: Update copyright years.
2034 * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years.
2036 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
2040 * include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
2041 (proj(T), conj(T)): Change return types per DR 1522.
2042 * include/tr1/complex (conj): Remove overloads and use std::conj.
2043 * testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
2044 * testsuite/26_numerics/complex/dr781.cc: ... this, and update.
2045 * testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
2046 real(T) and imag(T). Allow testing for C++11 too.
2048 2017-01-24 Jonathan Wakely <jwakely@redhat.com>
2051 * include/experimental/string_view (operator==): Check sizes first.
2052 * include/std/string_view (operator==): Likewise.
2054 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
2056 * testsuite/experimental/array/make_array.cc: Restore <functional>
2059 2017-01-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
2061 * testsuite/29_atomics/atomic/69301.cc: Require atomic builtins.
2063 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
2066 * include/experimental/array (__make_array_elem): New class template
2067 and partial specialization.
2068 (__is_reference_wrapper): Move into __make_array_elem specialization.
2069 (make_array): Use __make_array_elem to determine element type and move
2070 static assertion into specialization. Qualify std::forward call.
2071 (to_array): Add exception specifiation.
2072 * testsuite/experimental/array/make_array.cc: Test argument types
2073 without a common type.
2074 * testsuite/experimental/array/neg.cc: Adjust expected error message.
2076 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
2078 * doc/xml/manual/debug.xml: code.google.com uses https now.
2080 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
2082 * doc/xml/manual/test.xml: Fix link into gccint online manual.
2084 2017-01-21 Ville Voutilainen <ville.voutilainen@gmail.com>
2086 Make poisoned hashes SFINAE away the call operator of the hash.
2087 * include/bits/functional_hash.h
2088 (__poison_hash::__enable_hash_call): New.
2089 * include/std/optional (__optional_hash_call_base): New.
2090 (hash<optional<_Tp>>): Derive from the new base,
2091 move the hash function into that base.
2092 * include/std/variant (__variant_hash_call_base_impl): New.
2093 (__variant_hash_call_base): Likewise.
2094 (hash<variant<_Types...>>): Derive from the new base,
2095 move the hash function into that base.
2096 * testsuite/20_util/optional/hash.cc: Add tests for is_callable.
2097 * testsuite/20_util/variant/hash.cc: Likewise.
2099 2017-01-20 Joe Seymour <joe.s@somniumtech.com>
2101 * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t.
2102 * configure: Regenerate.
2104 2017-01-20 Jonathan Wakely <jwakely@redhat.com>
2107 * include/bits/random.h (uniform_real_distribution::param_type)
2108 (normal_distribution::param_type, lognormal_distribution::param_type)
2109 (gamma_distribution::param_type, chi_squared_distribution::param_type)
2110 (cauchy_distribution::param_type, fisher_f_distribution::param_type)
2111 (student_t_distribution::param_type)
2112 (bernoulli_distribution::param_type, binomial_distribution::param_type)
2113 (geometric_distribution::param_type)
2114 (negative_binomial_distribution::param_type)
2115 (poisson_distribution::param_type)
2116 (exponential_distribution::param_type)
2117 (weibull_distribution::param_type)
2118 (extreme_value_distribution::param_type)
2119 (discrete_distribution::param_type)
2120 (piecewise_constant_distribution::param_type)
2121 (piecewise_linear_distribution::param_type): Define operator!=.
2122 * include/bits/uniform_int_dist.h
2123 (uniform_int_distribution::param_type): Likewise.
2124 * include/ext/random (beta_distribution::param_type)
2125 (rice_distribution::param_type, nakagami_distribution::param_type)
2126 (pareto_distribution::param_type, k_distribution::param_type)
2127 (arcsine_distribution::param_type, hoyt_distribution::param_type)
2128 (triangular_distribution::param_type)
2129 (von_mises_distribution::param_type)
2130 (hypergeometric_distribution::param_type)
2131 (logistic_distribution::param_type)
2132 (uniform_on_sphere_distribution::param_type)
2133 (uniform_inside_sphere_distribution::param_type): Likewise.
2134 * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc:
2135 Test construction with param_type.
2136 * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc:
2138 * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
2140 * testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc:
2142 * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
2144 * testsuite/26_numerics/random/extreme_value_distribution/cons/
2146 * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc:
2148 * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc:
2150 * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc:
2152 * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc:
2154 * testsuite/26_numerics/random/negative_binomial_distribution/cons/
2156 * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
2158 * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc:
2160 * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
2162 * testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc:
2164 * testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc:
2166 * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc:
2168 * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise.
2169 * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise.
2170 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
2171 * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc:
2173 * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise.
2174 * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise.
2175 * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise.
2176 * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
2177 * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise.
2178 * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise.
2179 * testsuite/ext/random/triangular_distribution/cons/parms.cc:
2181 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/
2183 * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise.
2186 * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
2187 (__allocator_traits_base::__size_type): Remove.
2188 (allocator_traits::_Ptr): New class template to detect const and void
2189 pointer types without instantiating pointer_traits::rebind
2191 (allocator_traits::_Diff): Likewise for detecting difference_type.
2192 (allocator_traits::_Size): New class template to detect size_type
2193 without instantiating make_unsigned unnecessarily.
2194 * include/bits/ptr_traits.h (pointer_traits::element_type): Use
2195 __detected_or_t instead of __detected_or_t_.
2196 * include/std/type_traits (__detected_or_t_): Remove.
2197 * testsuite/20_util/allocator_traits/members/pointers.cc: New test.
2201 * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
2202 Replace with class template using void_t.
2203 (__alloc_rebind): Define in terms of
2204 __allocator_traits_base::__rebind.
2205 (allocator_traits): Remove unconditional static_assert for
2207 * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
2208 (pointer_traits::__rebind): Replace with class template using void_t.
2209 (pointer_traits::rebind): Define in terms of __rebind.
2210 (pointer_traits): Remove unconditional static_assert for rebind.
2211 * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
2212 * testsuite/20_util/pointer_traits/rebind.cc: New test.
2215 * include/experimental/any (__any_caster): Avoid instantiating
2216 manager function for types that can't be stored in any.
2217 * include/std/any (__any_caster): Likewise.
2218 * testsuite/20_util/any/misc/any_cast.cc: Test non-copyable type.
2219 * testsuite/experimental/any/misc/any_cast.cc: Likewise.
2222 * include/bits/stl_algo.h (is_partitioned): Use increment instead of
2225 2017-01-19 Jonathan Wakely <jwakely@redhat.com>
2228 * include/bits/shared_ptr_base.h (__enable_shared_from_this_base):
2230 (__enable_shared_from_this): Declare __shared_ptr as a friend.
2231 * testsuite/ext/shared_ptr/1.cc: New test.
2234 * include/bits/stl_algo.h (is_partitioned): Don't retest the partition
2236 * testsuite/25_algorithms/is_partitioned/2.cc: New test.
2238 * doc/xml/manual/abi.xml: Fix typo.
2239 * doc/html/manual/abi.html: Likewise.
2242 * include/bits/predefined_ops.h (_Iter_less_val, _Val_less_iter): Add
2243 converting constructors from _Iter_less_iter.
2244 (_Iter_comp_val, _Val_comp_iter): Add converting constructors from
2246 (__iter_comp_val(_Iter_comp_iter<C>): Use converting constructor.
2247 (__val_comp_iter(_Iter_comp_iter<C>): Likewise.
2248 * include/bits/stl_heap.h (__is_heap_until, __push_heap, __pop_heap)
2249 (__make_heap, __sort_heap): Change _Compare parameters to references.
2250 (__is_heap, push_heap, __adjust_heap, __pop_heap, pop_heap)
2251 (__make_heap, make_heap, sort_heap, is_heap_until): Pass comparison
2252 functions as lvalues.
2253 (is_heap): Call __is_heap_until directly to avoid copying __comp.
2254 * testsuite/23_containers/priority_queue/67085.cc: Adjust test to
2255 count copies during construction with empty sequence.
2258 * include/bits/stl_heap.h (__is_heap): Use _GLIBCXX_MOVE.
2259 (__make_heap, __sort_heap): Don't use _GLIBCXX_MOVE inside loops.
2260 * testsuite/23_containers/priority_queue/67085.cc: Adjust expected
2262 * testsuite/25_algorithms/make_heap/movable.cc: New test.
2265 * include/bits/stl_heap.h (push_heap, __adjust_heap, __pop_heap)
2266 (pop_heap, __make_heap, make_heap, __sort_heap, sort_heap): Use
2267 _GLIBCXX_MOVE when passing comparison function to other functions.
2268 (is_heap_until, is_heap): Use std::move when passing comparison
2270 * testsuite/23_containers/priority_queue/67085.cc: New test.
2273 * doc/xml/manual/abi.xml (abi.versioning.history): Add markup to
2274 macro names, filenames, and literal values. Document _GLIBCXX_RELEASE.
2275 Document that the deprecated _GLIBCXX_VERSION macro was removed for
2277 * doc/html/*: Regenerate.
2278 * include/Makefile.am (_GLIBCXX_RELEASE): Set value.
2279 * include/Makefile.in: Regenerate.
2280 * include/bits/c++config (_GLIBCXX_RELEASE): Add #define.
2281 * testsuite/ext/profile/mutex_extensions_neg.cc: Use lineno of 0 in
2284 2017-01-18 Jonathan Wakely <jwakely@redhat.com>
2287 * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
2288 aligned buffer instead of default-initialized variable.
2289 * testsuite/29_atomics/atomic/69301.cc: New test.
2290 * include/experimental/memory (observer_ptr::release): Use reserved
2292 * include/ext/pointer.h (_Pointer_adapter::operator++(int))
2293 (_Pointer_adapter::operator--(int)): Likewise.
2296 * include/experimental/random (randint): Use temporary instead of
2297 thread_local static.
2299 2017-01-17 Joshua Conner <joshconner@google.com>
2301 * crossconfig.m4: Add fuchsia OS.
2302 * configure: Regenerate.
2304 2017-01-17 Jonathan Wakely <jwakely@redhat.com>
2307 * doc/xml/manual/abi.xml (abi.versioning.history): Explain why the
2308 __GLIBCXX__ macro is not useful. Remove redundant date information
2309 and link to the GCC release timeline.
2310 (abi.versioning.active): Move partial sentence into the previous
2312 * doc/html/*: Regenerate.
2315 * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
2316 of remove_reference.
2317 * testsuite/18_support/nested_exception/79114.cc: New test.
2319 2017-01-17 Jakub Jelinek <jakub@redhat.com>
2322 * configure.ac: Add GCC_BASE_VER.
2323 * fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
2324 get version from BASE-VER file.
2325 * po/Makefile.in: Regenerated.
2326 * libsupc++/Makefile.in: Regenerated.
2327 * testsuite/Makefile.in: Regenerated.
2328 * src/Makefile.in: Regenerated.
2329 * configure: Regenerated.
2330 * Makefile.in: Regenerated.
2331 * include/Makefile.in: Regenerated.
2332 * doc/Makefile.in: Regenerated.
2333 * python/Makefile.in: Regenerated.
2334 * src/c++11/Makefile.in: Regenerated.
2335 * src/c++98/Makefile.in: Regenerated.
2336 * src/filesystem/Makefile.in: Regenerated.
2338 2017-01-16 Jonathan Wakely <jwakely@redhat.com>
2341 * src/c++11/functexcept.cc: Use new ABI for std::ios_base::failure
2343 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Don't override ABI
2344 for test, so new ios::failure can be caught.
2345 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
2346 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
2347 exceptions_failbit.cc: Likewise.
2348 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
2349 exceptions_failbit.cc: Likewise.
2350 * testsuite/27_io/basic_istream/extractors_other/char/
2351 exceptions_null.cc: Likewise.
2352 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
2353 exceptions_null.cc: Likewise.
2354 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
2355 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
2356 * testsuite/27_io/basic_ostream/inserters_other/char/
2357 exceptions_null.cc: Likewise.
2358 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
2359 exceptions_null.cc: Likewise.
2360 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
2363 * include/bits/locale_classes.h (locale::facet::__shim): Change from
2364 private to protected.
2365 * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
2366 make locale::facet::__shim accessible.
2368 2017-01-16 Ville Voutilainen <ville.voutilainen@gmail.com>
2371 * include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
2372 (merge(list&&, _StrictWeakOrdering)): Likewise.
2373 * testsuite/23_containers/list/operations/78389.cc: Add
2374 better test for the sizes.
2376 2017-01-14 Jonathan Wakely <jwakely@redhat.com>
2378 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
2379 Skip test when -D_GLIBCXX_PROFILE mode is included in options.
2380 * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
2381 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
2383 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
2384 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
2385 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
2386 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
2387 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
2389 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
2391 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
2393 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
2395 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
2397 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
2398 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
2399 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
2400 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
2401 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
2402 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
2403 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
2404 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
2405 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
2406 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
2407 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
2408 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
2409 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
2411 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
2414 * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
2415 retry fclose on EINTR.
2417 * include/profile/base.h: Remove unused header that leads to header
2418 cycle in C++17 mode.
2421 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
2422 Make _If_sv private.
2423 [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
2424 basic_string_view arguments.
2427 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
2428 redundant option from cxxflags.
2429 (check_effective_target_cxx11-abi): Define.
2430 * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
2432 * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
2433 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
2435 * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
2437 * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
2438 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
2440 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
2442 * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
2443 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
2445 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
2447 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
2449 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
2451 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
2453 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
2455 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
2457 * testsuite/23_containers/list/61347.cc: Likewise.
2458 * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
2459 * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
2461 2017-01-13 Ville Voutilainen <ville.voutilainen@gmail.com>
2464 * include/bits/list.tcc (merge(list&&)):
2465 Adjust list sizes if the comparator throws.
2466 (merge(list&&, _StrictWeakOrdering)): Likewise.
2467 (sort()): Splice elements back from the scratch buffers
2468 if the comparator throws.
2469 (sort(_StrictWeakOrdering)): Likewise.
2470 * testsuite/23_containers/list/operations/78389.cc: New.
2472 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
2474 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
2475 XFAIL for C++17 until node reinsertion supports fancy pointers.
2478 * testsuite/20_util/add_pointer/value.cc: Test forming function
2481 2017-01-13 Michael Brune <lucdanton@free.fr>
2484 * include/std/type_traits (__is_referenceable): Handle noexcept
2487 2017-01-12 Jonathan Wakely <jwakely@redhat.com>
2490 * include/bits/stl_queue.h (queue, priority_queue): Remove default
2491 member-initializers and define default constructors as templates with
2493 * include/bits/stl_stack.h (stack): Likewise.
2494 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
2496 * testsuite/23_containers/priority_queue/requirements/
2497 explicit_instantiation/1.cc: Test more instantiations.
2498 * testsuite/23_containers/priority_queue/requirements/
2499 explicit_instantiation/1_c++98.cc: Likewise.
2500 * testsuite/23_containers/queue/requirements/constructible.cc: New.
2501 * testsuite/23_containers/stack/requirements/constructible.cc: New.
2504 * doc/xml/manual/intro.xml: Document LWG 2781 change.
2505 * doc/html/*: Regenerate.
2506 * include/std/functional (_Function_base::_Ref_manager): Remove.
2507 (_Function_handler): Remove partial specializations for
2509 (function::target): Remove special case for const qualification.
2510 * testsuite/20_util/function/6.cc: Adjust tests for target type.
2511 * testsuite/20_util/function/7.cc: Likewise.
2512 * testsuite/20_util/function/8.cc: Likewise.
2514 2017-01-11 Jonathan Wakely <jwakely@redhat.com>
2517 * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
2518 (map::equal_range): Fix return type of heterogeneous overloads.
2519 * include/bits/stl_multimap.h (multimap::lower_bound)
2520 (multimap::upper_bound, multimap::equal_range): Likewise.
2521 * include/bits/stl_multiset.h (multiset::lower_bound)
2522 (multiset::upper_bound, multiset::equal_range): Likewise.
2523 * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
2524 (set::equal_range): Likewise.
2525 * testsuite/23_containers/map/operations/2.cc
2526 * testsuite/23_containers/multimap/operations/2.cc
2527 * testsuite/23_containers/multiset/operations/2.cc
2528 * testsuite/23_containers/set/operations/2.cc
2531 * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
2532 the heterogeneous comparison can only find one match.
2533 * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
2534 * testsuite/23_containers/map/operations/2.cc: Test count works with
2535 comparison function that just partitions rather than sorting.
2536 * testsuite/23_containers/set/operations/2.cc: Likewise.
2538 2017-01-11 Ville Voutilainen <ville.voutilainen@gmail.com>
2540 Reduce the size of variant, it doesn't need an index of
2541 type size_t internally.
2542 * include/std/variant (parse_numbers.h): New include.
2543 (__select_index): New.
2544 (_Variant_storage<false, _Types...>::_M_reset_impl): Use
2545 _index_type for comparison with variant_npos.
2546 (_Variant_storage<false, _Types...>::__index_type): New.
2547 (_Variant_storage<false, _Types...>::_M_index): Change the
2548 type from size_t to __index_type.
2549 (_Variant_storage<true, _Types...>::__index_type): New.
2550 (_Variant_storage<true, _Types...>::_M_index): Change the
2551 type from size_t to __index_type.
2552 (_Variant_base::_M_valid): Use _Storage::__index_type
2553 for comparison with variant_npos.
2554 (variant::index): Use _Base::_Storage::__index_type
2555 for comparison with variant_npos.
2556 * testsuite/20_util/variant/index_type.cc: New.
2558 2017-01-10 Jonathan Wakely <jwakely@redhat.com>
2560 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
2561 effective target selector to prevent running in C++17 mode.
2564 * include/bits/stl_queue.h (queue::c): Add default member initializer.
2565 (queue::queue()): Add constructor and define as defaulted.
2566 (queue::queue(_Sequence&&)): Remove default argument.
2567 (priority_queue::c, priority_queue::comp): Add default member
2569 (priority_queue::priority_queue()): Add constructor and define as
2571 (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
2572 Remove default argument for first parameter.
2573 * include/bits/stl_stack.h (stack::c): Add default member initializer.
2574 (stack::stack()): Add constructor and define as defaulted.
2575 (stack::stack(const _Sequence&)): Remove default argument.
2576 * testsuite/23_containers/priority_queue/requirements/
2577 explicit_instantiation/1.cc: Test explicit instantiation with
2578 non-DefaultConstructible sequence.
2579 * testsuite/23_containers/priority_queue/77528.cc: New test.
2580 * testsuite/23_containers/priority_queue/requirements/
2581 explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
2582 * testsuite/23_containers/queue/77528.cc: New test.
2583 * testsuite/23_containers/queue/requirements/explicit_instantiation/
2584 1.cc: Test explicit instantiation with non-DefaultConstructible
2586 * testsuite/23_containers/queue/requirements/explicit_instantiation/
2587 1_c++0x.cc: Replace with 1_c++98.cc.
2588 * testsuite/23_containers/stack/77528.cc: New test.
2589 * testsuite/23_containers/stack/requirements/explicit_instantiation/
2590 1.cc: Test explicit instantiation with non-DefaultConstructible
2592 * testsuite/23_containers/stack/requirements/explicit_instantiation/
2593 1_c++0x.cc: Replace with 1_c++98.cc.
2595 2017-01-10 Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
2597 * include/bits/locale_facets_nonio.tcc
2598 (time_get::_M_extract_via_format): Avoid compilation errors with
2599 non-standard struct tm.
2601 2017-01-10 François Dumont <fdumont@gcc.gnu.org>
2602 Jonathan Wakely <jwakely@redhat.com>
2604 * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
2605 (is_specialization, strip_versioned_namespace): New helpers functions
2606 to work with symbols in the versioned namespace.
2607 (Printer.add_version): Add second name using versioned namespace.
2608 (add_one_template_type_printer, add_one_type_printer): Add second
2609 type printers using versioned namespace.
2610 (register_type_printers): Add template type printer for basic_string.
2611 (build_libstdcxx_dictionary): Remove dead code.
2612 * python/libstdcxx/v6/xmethods.py: Make all matchers look for
2613 versioned namespace.
2614 * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
2616 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
2618 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
2621 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
2622 functions separately on darwin and if they're missing define
2623 _GLIBCXX_NO_C99_ROUNDING_FUNCS.
2624 * config.h.in: Regenerate.
2625 * configure: Regenerate.
2626 * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
2627 (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
2629 * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
2630 to detect correct thread_local destructors.
2631 * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
2634 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
2635 Aditya Kumar <hiraditya@msn.com>
2638 * include/bits/basic_string.tcc
2639 (basic_string::find(const CharT*, size_type, size_type)): Optimize.
2641 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
2643 * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
2644 * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
2646 * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
2647 Include <cassert> header.
2650 * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
2651 * configure: Regenerate.
2653 2017-01-06 Barrett Adair <barrettellisadair@gmail.com>
2654 Jonathan Wakely <jwakely@redhat.com>
2656 * include/std/variant (variant, swap): Replace __and_ usage with fold
2659 2017-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2662 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
2663 * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
2664 GLIBCXX_CHECK_ASSEMBLER_HWCAP.
2665 * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
2667 * aclocal.m4: Regenerate.
2668 * configure: Regenerate.
2669 * Makefile.in, doc/Makefile.in, include/Makefile.in,
2670 libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
2671 src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
2672 src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
2674 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
2676 * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
2679 * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
2680 (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
2681 (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
2682 move function objects.
2683 (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
2684 (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
2685 * testsuite/25_algorithms/sort/78991.cc: New test.
2687 2017-01-05 Jonathan Wakely <jwakely@redhat.com>
2689 * include/bits/std_function.h (function::_Signature_type): Remove.
2690 (function::function(_Functor)): Adjust.
2692 2017-01-05 Tim Shen <timshen@google.com>
2695 * include/std/variant (__gen_vtable_impl): rename __unused to
2696 __dimensions to avoid naming conflict.
2698 2017-01-04 Jonathan Wakely <jwakely@redhat.com>
2701 * config.h.in: Regenerate.
2702 * configure: Likewise.
2703 * configure.ac: Check for __cxa_thread_atexit.
2704 * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
2705 Don't define __cxa_thread_atexit if libc provides it.
2707 2017-01-04 Ville Voutilainen <ville.voutilainen@gmail.com>
2709 Implement 2801, Default-constructibility of unique_ptr.
2710 * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
2711 (unique_ptr::_DeleterConstraint): Likewise.
2712 (unique_ptr()): Constrain.
2713 (unique_ptr(pointer)): Likewise.
2714 (unique_ptr(nullptr_t)): Likewise.
2715 (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
2716 (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
2717 (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
2718 (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
2719 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
2720 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
2721 * testsuite/20_util/unique_ptr/cons/default.cc: New.
2722 * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
2724 2017-01-04 Pauli Nieminen <suokkos@gmail.com>
2725 Jonathan Wakely <jwakely@redhat.com>
2728 * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
2729 * config.h.in: Regenerate.
2730 * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
2731 (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
2732 exports for exception_ptr, nested_exception, and future conditional.
2733 [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
2734 exports for exception_ptr, nested_exception, and future conditional.
2735 * configure: Regenerate.
2736 * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
2737 * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
2738 * libsupc++/eh_atomics.h: New file for internal use only.
2739 (__eh_atomic_inc, __eh_atomic_dec): New.
2740 * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
2741 (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
2742 (rethrow_exception): Use eh_atomics.h reference counting helpers.
2743 * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
2744 * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
2745 * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
2746 * libsupc++/exception_ptr.h: Likewise.
2747 * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
2748 * libsupc++/nested_exception.cc: Remove check for
2749 ATOMIC_INT_LOCK_FREE.
2750 * libsupc++/nested_exception.h: Likewise.
2751 * src/c++11/future.cc: Likewise.
2752 * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
2753 * testsuite/18_support/nested_exception/*: Likewise.
2754 * testsuite/30_threads/async/*: Likewise.
2755 * testsuite/30_threads/future/*: Likewise.
2756 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
2757 * testsuite/30_threads/packaged_task/*: Likewise.
2758 * testsuite/30_threads/promise/*: Likewise.
2759 * testsuite/30_threads/shared_future/*: Likewise.
2761 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
2763 * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
2764 defaults to https; adjust reference.
2766 2017-01-03 Jonathan Wakely <jwakely@redhat.com>
2769 * include/std/thread (thread(const thread&&)): Add deleted
2771 * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
2773 * doc/xml/manual/spine.xml: Update copyright years.
2774 * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
2775 * doc/xml/manual/test.xml: Likewise.
2776 * doc/html/*: Regenerate.
2778 2017-01-01 Gerald Pfeifer <gerald@pfeifer.com>
2780 * doc/xml/faq.xml: Update address of C++ ABI link.
2781 * doc/xml/manual/abi.xml: Ditto.
2783 2017-01-01 Jakub Jelinek <jakub@redhat.com>
2785 Update copyright years.
2787 Copyright (C) 2017 Free Software Foundation, Inc.
2789 Copying and distribution of this file, with or without modification,
2790 are permitted in any medium without royalty provided the copyright
2791 notice and this notice are preserved.