1 2017-12-04 Jonathan Wakely <jwakely@redhat.com>
3 * config/io/basic_file_stdio.h (__basic_file): Remove name of unused
5 * include/bits/boost_concept_check.h: Add pragmas to disable
6 -Wunused-local-typedef warnings.
7 * include/bits/codecvt.h (codecvt_byname<char16_t, char, mbstate_t>)
8 (codecvt_byname<char32_t, char, mbstate_t>): Remove name of unused
10 * include/bits/locale_facets_nonio.tcc (time_get::do_get_weekday)
11 (time_get::do_get_monthname, time_get::do_get_year): Remove unused
13 * include/std/bitset (_Base_bitset<0>::_M_getword): Remove name of
15 * include/std/streambuf (_IsUnused): Define.
16 (basic_streambuf::imbue, basic_streambuf::pbackfail)
17 (basic_streambuf::overflow): Add macro to unused parameters.
18 * testsuite/24_iterators/operations/prev_neg.cc: Adjust dg-error.
20 2017-12-01 Jonathan Wakely <jwakely@redhat.com>
22 * include/experimental/string_view (basic_string_view::_S_compare):
23 Use value-init so narrowing conversions are not ill-formed.
24 * include/std/string_view (basic_string_view::_S_compare): Likewise.
26 * include/bits/basic_string.h (operator""s): Add pragmas to disable
27 -Wliteral-suffix warnings.
28 * include/experimental/string_view (operator""sv): Likewise.
29 * include/std/chrono (operator""h, operator""min, operator""s)
30 (operator""ms, operator""us, operator""ns): Likewise.
31 * include/std/complex (operator""if, operator""i, operator""il):
33 * include/std/string_view (operator""sv): Likewise.
34 * testsuite/20_util/duration/literals/range.cc: Adjust dg-error.
36 * include/bits/locale_facets_nonio.tcc (money_get::_M_extract): Add
39 * include/bits/node_handle.h (_Node_handle_common::operator=)
40 (_Node_handle_common::_M_swap): Add braces around debug assertions.
42 * include/ext/ropeimpl.h (rope::_S_dump): Use const char*.
44 * libsupc++/nested_exception.h (__throw_with_nested_impl): Add
47 * include/bits/regex_executor.tcc (_Executor::_M_rep_once_more):
48 Remove semi-colon after function body.
49 * include/bits/uniform_int_dist.h (_Power_of_2): Likewise.
51 * include/tr1/modified_bessel_func.tcc (__airy): Use value-init not
54 * include/std/type_traits (integral_constant): Make member functions
56 * include/std/utility (integer_sequence): Likewise.
58 2017-11-30 Jonathan Wakely <jwakely@redhat.com>
61 * include/bits/locale_facets_nonio.h (__timepunct::_M_am_pm_format):
62 Remove statement with no effect.
64 2017-11-30 Glen Joseph Fernandes <glenjofe@gmail.com>
66 * include/bits/ptr_traits.h (__to_address, to_address): Move static
68 * testsuite/20_util/to_address/1_neg.cc: New test.
70 2017-11-30 Jonathan Wakely <jwakely@redhat.com>
73 * include/bits/node_handle.h (_Node_handle::__pointer): Avoid forming
74 pointer-to-reference types.
75 * testsuite/23_containers/map/modifiers/insert/83226.cc: New test.
77 2017-11-29 John David Anglin <danglin@gcc.gnu.org>
79 * config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update.
81 2017-11-29 David Malcolm <dmalcolm@redhat.com>
83 * testsuite/20_util/duration/literals/range.cc: Update expected
84 line of a static_assert failure.
86 2017-11-28 Glen Joseph Fernandes <glenjofe@gmail.com>
88 * include/bits/ptr_traits.h (to_address): Implement to_address.
89 * testsuite/20_util/to_address/1.cc: New test.
91 2017-11-27 Stephan Bergmann <sbergman@redhat.com>
93 * include/std/string_view (basic_string_view::find_first_of): Add
96 * include/bits/unordered_map.h (unordered_map): Fix deduction guide.
97 * include/debug/unordered_map (unordered_map): Likewise.
99 2017-11-23 Jonathan Wakely <jwakely@redhat.com>
101 * libsupc++/new (launder): Add nodiscard attribute.
102 * testsuite/18_support/launder/nodiscard.cc: New test.
104 * include/bits/fs_path.h (path::empty): Add nodiscard attribute.
105 * include/bits/range_access.h (empty): Likewise.
106 * include/std/string_view (basic_string_view::empty): Likewise.
107 * testsuite/21_strings/basic_string_view/capacity/empty_neg.cc: New
109 * testsuite/24_iterators/range_access_cpp17_neg.cc: New test.
110 * testsuite/27_io/filesystem/path/query/empty_neg.cc: New test.
113 * include/std/type_traits (__not_): Explicitly convert to bool.
114 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
115 * testsuite/20_util/logical_traits/83134.cc: New test.
116 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust
118 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
121 2017-11-22 Jonathan Wakely <jwakely@redhat.com>
124 * include/bits/stl_tree.h (_Rb_tree): Relax invocable checks for
125 comparison object pre-C++17.
127 2017-11-21 Jonathan Wakely <jwakely@redhat.com>
130 * include/bits/allocator.h (allocator<const _Tp>)
131 (allocator<volatile _Tp>, allocator<const volatile _Tp>): Add partial
133 * include/bits/forward_list.h (forward_list): Add static assertions.
134 * include/bits/hashtable.h (__cache_default): Use
135 __is_nothrow_invocable instead of __is_noexcept_hash.
136 (_Hashtable): Add static assertions.
137 * include/bits/hashtable_policy.h (__is_noexcept_hash): Remove.
138 * include/bits/stl_deque.h (deque): Add static assertions.
139 * include/bits/stl_function.h (_Identity<const _Tp>): Add partial
141 * include/bits/stl_list.h (list): Add static assertions.
142 * include/bits/stl_map.h (map): Likewise.
143 * include/bits/stl_multimap.h (multimap): Likewise.
144 * include/bits/stl_multiset.h (multiset): Likewise.
145 * include/bits/stl_set.h (set): Likewise.
146 * include/bits/stl_tree.h (_Rb_tree): Likewise.
147 * include/bits/stl_vector.h (vector): Likewise.
148 * include/bits/unordered_map.h (unordered_map, unordered_multimap):
149 Use typename instead of class in template-parameter-list and remove
151 * include/bits/unordered_set.h (unordered_set, unordered_multiset):
153 * testsuite/23_containers/deque/48101-2_neg.cc: New test.
154 * testsuite/23_containers/deque/48101_neg.cc: New test.
155 * testsuite/23_containers/forward_list/48101-2_neg.cc: New test.
156 * testsuite/23_containers/forward_list/48101_neg.cc: New test.
157 * testsuite/23_containers/list/48101-2_neg.cc: New test.
158 * testsuite/23_containers/list/48101_neg.cc: New test.
159 * testsuite/23_containers/map/48101-2_neg.cc: New test.
160 * testsuite/23_containers/map/48101_neg.cc: New test.
161 * testsuite/23_containers/map/operations/31440.cc: Fix comparison
162 object to have const-qualified call operator.
163 * testsuite/23_containers/multimap/48101-2_neg.cc: New test.
164 * testsuite/23_containers/multimap/48101_neg.cc: New test.
165 * testsuite/23_containers/multiset/48101-2_neg.cc: New test.
166 * testsuite/23_containers/multiset/48101_neg.cc: New test.
167 * testsuite/23_containers/set/48101-2_neg.cc: New test.
168 * testsuite/23_containers/set/48101_neg.cc: New test.
169 * testsuite/23_containers/unordered_map/48101-2_neg.cc: New test.
170 * testsuite/23_containers/unordered_map/48101_neg.cc: New test.
171 * testsuite/23_containers/unordered_multimap/48101-2_neg.cc: New test.
172 * testsuite/23_containers/unordered_multimap/48101_neg.cc: New test.
173 * testsuite/23_containers/unordered_multiset/48101-2_neg.cc: New test.
174 * testsuite/23_containers/unordered_multiset/48101_neg.cc: New test.
175 * testsuite/23_containers/unordered_set/48101-2_neg.cc: New test.
176 * testsuite/23_containers/unordered_set/48101_neg.cc: New test.
177 * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
178 dg-error line number.
179 * testsuite/23_containers/vector/48101-2_neg.cc: New test.
180 * testsuite/23_containers/vector/48101_neg.cc: New test.
182 2017-11-21 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
184 * doc/xml/manual/using.xml (manual.intro.using.macros): Move
185 variablelist element at the end of its list.
187 2017-11-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
189 * acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Add rtems*.
190 (GLIBCXX_ENABLE_FILESYSTEM_TS): Likewise.
191 * configure: Regenerate.
193 2017-11-20 François Dumont <fdumont@gcc.gnu.org>
195 * include/bits/streambuf_iterator.h (istreambuf_iterator<>): Declare
196 std::advance for istreambuf_iterator of char types to be friend.
197 (std::advance(istreambuf_iterator&, _Distance)): New overload.
198 * include/std/streambuf (basic_streambuf<>): Declare std::advance for
199 istreambuf_iterator of char types to be friend.
200 * testsuite/22_locale/money_get/get/char/9.cc: Have
201 istreambuf_iterator created on the fly when calling money_get<>::get.
202 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
203 * testsuite/24_iterators/istreambuf_iterator/debug/1_neg.cc: New.
204 * testsuite/24_iterators/istreambuf_iterator/debug/2_neg.cc: New.
205 * testsuite/25_algorithms/advance/istreambuf_iterators/char/1.cc: New.
206 * testsuite/25_algorithms/advance/istreambuf_iterators/char/1_neg.cc:
208 * testsuite/25_algorithms/advance/istreambuf_iterators/char/2.cc: New.
209 * testsuite/25_algorithms/advance/istreambuf_iterators/char/2_neg.cc:
211 * testsuite/25_algorithms/advance/istreambuf_iterators/char/3_neg.cc:
213 * testsuite/25_algorithms/advance/istreambuf_iterators/wchar_t/1.cc:
215 * testsuite/25_algorithms/advance/istreambuf_iterators/wchar_t/1_neg.cc:
217 * testsuite/25_algorithms/advance/istreambuf_iterators/wchar_t/2.cc:
219 * testsuite/25_algorithms/advance/istreambuf_iterators/wchar_t/2_neg.cc:
221 * testsuite/25_algorithms/advance/istreambuf_iterators/wchar_t/3_neg.cc:
223 * testsuite/25_algorithms/find/istreambuf_iterators/char/2.cc: Leverage
224 on std::advance overload.
225 * testsuite/25_algorithms/find/istreambuf_iterators/wchar_t/2.cc:
228 2017-11-20 Jonathan Wakely <jwakely@redhat.com>
230 * testsuite/special_functions/18_riemann_zeta/check_value.cc: Fix
231 duplicate dg-options directive.
232 * testsuite/tr1/5_numerical_facilities/special_functions/
233 20_riemann_zeta/check_value_neg.cc: Likewise.
235 2017-11-20 Ville Voutilainen <ville.voutilainen@gmail.com>
238 * include/bits/stl_iterator_base_funcs.h (next):
239 Use InputIterator instead of ForwardIterator.
240 * testsuite/24_iterators/operations/lwg2353.cc: New.
241 * testsuite/24_iterators/operations/next_neg.cc: Remove.
243 2017-11-18 Edward Smith-Rowland <3dw4rd@verizon.net>
245 PR libstdc++/pr66689 - comp_ellint_3 and ellint_3 return garbage values
246 * include/tr1/ell_integral.tcc: Correct the nu sign convention
247 in ellint_3 and comp_ellint_3.
248 * testsuite/tr1/5_numerical_facilities/special_functions/
249 06_comp_ellint_3/check_value.cc: Regen with correct values.
250 * testsuite/tr1/5_numerical_facilities/special_functions/
251 14_ellint_3/check_value.cc: Ditto.
252 * testsuite/special_functions/06_comp_ellint_3/check_value.cc: Ditto.
253 * testsuite/special_functions/13_ellint_3/check_value.cc: Ditto.
254 * testsuite/tr1/5_numerical_facilities/special_functions/
255 01_assoc_laguerre/check_value.cc: Regen.
256 * testsuite/tr1/5_numerical_facilities/special_functions/
257 02_assoc_legendre/check_value.cc: Regen.
258 * testsuite/tr1/5_numerical_facilities/special_functions/
259 03_beta/check_value.cc: Regen.
260 * testsuite/tr1/5_numerical_facilities/special_functions/
261 04_comp_ellint_1/check_value.cc: Regen.
262 * testsuite/tr1/5_numerical_facilities/special_functions/
263 05_comp_ellint_2/check_value.cc: Regen.
264 * testsuite/tr1/5_numerical_facilities/special_functions/
265 07_conf_hyperg/check_value.cc: Regen.
266 * testsuite/tr1/5_numerical_facilities/special_functions/
267 08_cyl_bessel_i/check_value.cc: Regen.
268 * testsuite/tr1/5_numerical_facilities/special_functions/
269 09_cyl_bessel_j/check_value.cc: Regen.
270 * testsuite/tr1/5_numerical_facilities/special_functions/
271 10_cyl_bessel_k/check_value.cc: Regen.
272 * testsuite/tr1/5_numerical_facilities/special_functions/
273 11_cyl_neumann/check_value.cc: Regen.
274 * testsuite/tr1/5_numerical_facilities/special_functions/
275 12_ellint_1/check_value.cc: Regen.
276 * testsuite/tr1/5_numerical_facilities/special_functions/
277 13_ellint_2/check_value.cc: Regen.
278 * testsuite/tr1/5_numerical_facilities/special_functions/
279 15_expint/check_value_neg.cc: Regen.
280 * testsuite/tr1/5_numerical_facilities/special_functions/
281 16_hermite/check_value.cc: Regen.
282 * testsuite/tr1/5_numerical_facilities/special_functions/
283 17_hyperg/check_value.cc: Regen.
284 * testsuite/tr1/5_numerical_facilities/special_functions/
285 18_laguerre/check_value.cc: Regen.
286 * testsuite/tr1/5_numerical_facilities/special_functions/
287 19_legendre/check_value.cc: Regen.
288 * testsuite/tr1/5_numerical_facilities/special_functions/
289 20_riemann_zeta/check_value_neg.cc: Regen.
290 * testsuite/tr1/5_numerical_facilities/special_functions/
291 21_sph_bessel/check_value.cc: Regen.
292 * testsuite/tr1/5_numerical_facilities/special_functions/
293 22_sph_legendre/check_value.cc: Regen.
294 * testsuite/tr1/5_numerical_facilities/special_functions/
295 23_sph_neumann/check_value.cc: Regen.
296 * testsuite/ext/special_functions/conf_hyperg/check_value.cc: Regen.
297 * testsuite/ext/special_functions/hyperg/check_value.cc: Regen.
298 * testsuite/special_functions/01_assoc_laguerre/check_value.cc: Regen.
299 * testsuite/special_functions/02_assoc_legendre/check_value.cc: Regen.
300 * testsuite/special_functions/03_beta/check_value.cc: Regen.
301 * testsuite/special_functions/04_comp_ellint_1/check_value.cc: Regen.
302 * testsuite/special_functions/05_comp_ellint_2/check_value.cc: Regen.
303 * testsuite/special_functions/07_cyl_bessel_i/check_value.cc: Regen.
304 * testsuite/special_functions/08_cyl_bessel_j/check_value.cc: Regen.
305 * testsuite/special_functions/09_cyl_bessel_k/check_value.cc: Regen.
306 * testsuite/special_functions/10_cyl_neumann/check_value.cc: Regen.
307 * testsuite/special_functions/11_ellint_1/check_value.cc: Regen.
308 * testsuite/special_functions/12_ellint_2/check_value.cc: Regen.
309 * testsuite/special_functions/14_expint/check_value.cc: Regen.
310 * testsuite/special_functions/15_hermite/check_value.cc: Regen.
311 * testsuite/special_functions/16_laguerre/check_value.cc: Regen.
312 * testsuite/special_functions/17_legendre/check_value.cc: Regen.
313 * testsuite/special_functions/18_riemann_zeta/check_value.cc: Regen.
314 * testsuite/special_functions/19_sph_bessel/check_value.cc: Regen.
315 * testsuite/special_functions/20_sph_legendre/check_value.cc: Regen.
316 * testsuite/special_functions/21_sph_neumann/check_value.cc: Regen.
317 * testsuite/tr1/5_numerical_facilities/special_functions/
318 06_comp_ellint_3/pr66689.cc: New.
319 * testsuite/tr1/5_numerical_facilities/special_functions/
320 14_ellint_3/pr66689.cc: New.
321 * testsuite/special_functions/06_comp_ellint_3/pr66689.cc: New.
322 * testsuite/special_functions/13_ellint_3/pr66689.cc: New.
324 2017-11-18 Edward Smith-Rowland <3dw4rd@verizon.net>
325 Expose Airy functions as an extenaion.
326 * include/bits/specfun.h: Expose airy_ai and airy_bi.
327 * include/tr1/modified_bessel_func.tcc: Treat NaN and inf arg, return.
328 * testsuite/ext/special_functions/airy_ai/check_nan.cc: New.
329 * testsuite/ext/special_functions/airy_ai/check_value.cc: New.
330 * testsuite/ext/special_functions/airy_ai/compile.cc: New.
331 * testsuite/ext/special_functions/airy_bi/check_nan.cc: New.
332 * testsuite/ext/special_functions/airy_bi/check_value.cc: New.
333 * testsuite/ext/special_functions/airy_bi/compile.cc: New.
335 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
337 * acinclude.m4: Add cet.m4.
338 * configure.ac: Set CET_FLAGS. Update EXTRA_CFLAGS,
340 * libsupc++/Makefile.am: Use Add EXTRA_CFLAGS.
341 * Makefile.in: Regenerate.
342 * configure: Likewise.
343 * doc/Makefile.in: Likewise.
344 * include/Makefile.in: Likewise.
345 * libsupc++/Makefile.in: Likewise.
346 * po/Makefile.in: Likewise.
347 * python/Makefile.in: Likewise.
348 * src/Makefile.in: Likewise.
349 * src/c++11/Makefile.in: Likewise.
350 * src/c++98/Makefile.in: Likewise.
351 * src/filesystem/Makefile.in: Likewise.
352 * testsuite/Makefile.in: Likewise.
354 2017-11-17 Jonathan Wakely <jwakely@redhat.com>
357 * include/std/fstream (basic_filebuf::_If_path): Move to
358 namespace-scope and rename to _If_fs_path.
359 (basic_filebuf::open): Use new name.
360 (basic_ifstream(_Path, ios::openmode))
361 (basic_ifstream::open(_Path, ios::openmode))
362 (basic_ofstream(_Path, ios::openmode))
363 (basic_ofstream::open(_Path, ios::openmode))
364 (basic_fstream(_Path, ios::openmode))
365 (basic_fstream::open(_Path, ios::openmode)): Use _If_fs_path.
366 * testsuite/27_io/basic_filebuf/open/char/path.cc: Test with filename
368 * testsuite/27_io/basic_fstream/cons/char/path.cc: Likewise.
369 * testsuite/27_io/basic_fstream/open/char/path.cc: Likewise.
370 * testsuite/27_io/basic_ifstream/cons/char/path.cc: Likewise.
371 * testsuite/27_io/basic_ifstream/open/char/path.cc: Likewise.
372 * testsuite/27_io/basic_ofstream/cons/char/path.cc: Likewise.
373 * testsuite/27_io/basic_ofstream/open/char/path.cc: Likewise.
376 2017-11-17 Marc Glisse <marc.glisse@inria.fr>
378 * include/bits/vector.tcc (vector::_M_realloc_insert): Cache old
379 values before the allocation.
381 2017-11-16 Jonathan Wakely <jwakely@redhat.com>
383 * include/std/future (shared_future): Add noexcept to copy constructor
384 and copy-assignment operator (LWG 2799).
386 2017-11-15 Ville Voutilainen <ville.voutilainen@gmail.com>
389 * include/std/numeric (gcd): Use remove_cv_t, not remove_cv.
391 2017-11-15 Jonathan Wakely <jwakely@redhat.com>
393 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Leave
395 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
396 Check for past-the-end before dereferencing.
397 * testsuite/experimental/filesystem/iterators/
398 recursive_directory_iterator.cc: Likewise.
400 * include/bits/range_access.h (size, empty, data): Add conditional
401 noexcept to generic overloads.
403 2017-11-14 Ville Voutilainen <ville.voutilainen@gmail.com>
405 Implement LWG 2733 and LWG 2759
406 * include/experimental/numeric (gcd): Reject cv-qualified bool.
408 * include/std/numeric (gcd): Likewise.
410 * testsuite/26_numerics/gcd/gcd_neg.cc: Add tests and adjust.
411 * testsuite/26_numerics/lcm/lcm_neg.cc: Likewise.
413 2017-11-14 Jonathan Wakely <jwakely@redhat.com>
415 * include/bits/locale_conv.h (wbuffer_convert::_M_conv_get): Fix typo.
416 * testsuite/22_locale/conversions/buffer/3.cc: New test.
418 2017-11-10 Jonathan Wakely <jwakely@redhat.com>
420 * testsuite/util/testsuite_tr1.h (ThrowMoveConsClass): Use noexcept.
423 * include/std/fstream (basic_ifstream::open, basic_ofstream::open)
424 (basic_fstream::open): Fix missing return.
426 2017-11-07 Jonathan Wakely <jwakely@redhat.com>
428 * src/filesystem/ops-common.h (make_file_type) [S_ISSOCK]: Only use
429 S_ISSOCK when defined.
431 2017-11-06 François Dumont <fdumont@gcc.gnu.org>
433 * testsuite/libstdc++-prettyprinters/tr1.cc: Compile with -O0.
435 2017-11-06 Martin Liska <mliska@suse.cz>
437 * testsuite/27_io/basic_fstream/cons/char/path.cc (main):
438 Return a value for functions with non-void return type,
439 or change type to void, or add -Wno-return-type for test.
440 * testsuite/27_io/basic_ifstream/cons/char/path.cc (main):
442 * testsuite/27_io/basic_ofstream/open/char/path.cc (main):
445 2017-11-06 Paolo Carlini <paolo.carlini@oracle.com>
447 * testsuite/20_util/optional/cons/deduction.cc: Avoid -Wreturn-type
449 * testsuite/20_util/pair/cons/deduction.cc: Likewise.
450 * testsuite/20_util/pair/traits.cc: Likewise.
451 * testsuite/20_util/tuple/cons/deduction.cc: Likewise.
452 * testsuite/20_util/variant/compile.cc: Likewise.
453 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
454 * testsuite/23_containers/unordered_map/modifiers/try_emplace.cc:
457 2017-11-05 Gerald Pfeifer <gerald@pfeifer.com>
459 * doc/xml/manual/abi.xml: Move docs.oracle.com references to https.
461 2017-11-03 Jonathan Wakely <jwakely@redhat.com>
463 * include/std/type_traits (endian): Define new enumeration type.
464 * testsuite/20_util/endian/1.cc: New test.
466 * include/bits/node_handle.h (_Node_insert_return::get): Remove, as
469 2017-11-01 François Dumont <fdumont@gcc.gnu.org>
471 * python/libstdcxx/v6/printers.py (StdExpAnyPrinter.__init__): Strip
472 typename versioned namespace before the substitution.
473 (StdExpOptionalPrinter.__init__): Likewise.
474 (StdVariantPrinter.__init__): Likewise.
475 (Printer.add_version): Inject versioned namespace after std or
477 (build_libstdcxx_dictionary): Adapt add_version usages, always pass
478 namespace first and symbol second.
480 2017-11-01 Jonathan Wakely <jwakely@redhat.com>
483 * src/filesystem/std-path.cc (path::lexically_normal): Remove dot-dot
485 * testsuite/27_io/filesystem/path/generation/normal.cc: Add testcase.
486 * testsuite/util/testsuite_fs.h (compare_paths): Improve exception
489 2017-10-30 Jonathan Wakely <jwakely@redhat.com>
491 * include/Makefile.am (stamp-bits-sup): Do not create broken symlink
493 * include/Makefile.in: Regenerate.
495 * include/std/fstream (basic_ifstream, basic_ofstream, basic_fstream):
496 Remove outdated comments about calling c_str() to create a file stream
498 (basic_ofstream::basic_ofstream, basic_ofstream::open): Remove
499 redundant ios_mode::trunc bits from default arguments and comments.
501 * doc/xml/faq.xml: Adjust "What is libstdc++?" answer slightly.
503 * include/bits/hashtable_policy.h: Include <tuple>.
504 * include/std/unordered_map: Only include <bits/stl_pair.h> instead
505 of <utility> and <tuple>.
506 * include/std/unordered_set: Likewise.
508 2017-10-30 Ville Voutilainen <ville.voutilainen@gmail.com>
511 * include/debug/array (get(const array<_Tp, _Nm>&&)): New.
512 * include/std/array (get(const array<_Tp, _Nm>&&)): Likewise.
513 * include/std/tuple (get(const tuple<_Elements...>&&)): Likewise.
514 (get(const tuple<_Types...>&&)): Likewise.
515 * include/std/utility
516 (__pair_get::__const_move_get(const std::pair<_Tp1, _Tp2>&&)):
518 (get(const std::pair<_Tp1, _Tp2>&&)): Likewise.
519 (get(const pair<_Tp, _Up>&&)): Likewise.
520 (get(const pair<_Up, _Tp>&&)): Likewise.
521 * testsuite/20_util/pair/astuple/get.cc: Add tests for
523 * testsuite/20_util/pair/astuple/get_by_type.cc: Likewise.
524 * testsuite/20_util/tuple/element_access/get2.cc: Likewise.
525 * testsuite/20_util/tuple/element_access/get2_by_type.cc: Likewise.
526 * testsuite/23_containers/array/tuple_interface/get.cc: Likewise.
527 * testsuite/23_containers/array/tuple_interface/tuple_element_debug_neg.cc:
529 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
532 2017-10-27 Jonathan Wakely <jwakely@redhat.com>
534 * include/bits/node_handle.h (_Node_insert_return::get): Avoid
535 use of std::tie and std::get.
537 * include/Makefile.am: Put headers in alphabetical order.
538 * include/Makefile.in: Regenerate.
540 * include/bits/fs_dir.h (directory_iterator): Remove noexcept from
541 constructors and increment member (LWG 3013).
542 (recursive_directory_iterator): Likewise.
543 * include/bits/fs_ops.h (copy, copy_file, create_directories)
544 (is_empty, remove_all): Remove noexcept (LWG 3013 and LWG 3014).
545 * src/filesystem/std-dir.cc (directory_iterator::increment)
546 (recursive_directory_iterator::increment): Remove noexcept.
547 * src/filesystem/std-ops.cc (copy, copy_file, create_directories)
548 (is_empty, remove_all): Remove noexcept
550 * include/bits/fs_dir.h (file_status): Make default constructor
551 non-explicit (LWG 2787).
552 * testsuite/27_io/filesystem/file_status/1.cc: New test.
553 * testsuite/experimental/filesystem/file_status/1.cc: New test.
555 * include/std/fstream (basic_filebuf::_If_path): New SFINAE helper.
556 (basic_filebuf::open<Path>(const Path&, const ios_base::openmode&))
557 (basic_ifstream<Path>(const Path&, const ios_base::openmode&))
558 (basic_ifstream::open<Path>(const Path&, const ios_base::openmode&))
559 (basic_ofstream<Path>(const Path&, const ios_base::openmode&))
560 (basic_ofstream::open<Path>(const Path&, const ios_base::openmode&))
561 (basic_fstream<Path>(const Path&, const ios_base::openmode&))
562 (basic_fstream::open<Path>(const Path&, const ios_base::openmode&)):
563 New constructors and member functions.
564 * testsuite/27_io/basic_filebuf/open/char/path.cc: New test.
565 * testsuite/27_io/basic_fstream/cons/char/path.cc: New test.
566 * testsuite/27_io/basic_fstream/open/char/path.cc: New test.
567 * testsuite/27_io/basic_ifstream/cons/char/path.cc: New test.
568 * testsuite/27_io/basic_ifstream/open/char/path.cc: New test.
569 * testsuite/27_io/basic_ofstream/cons/char/path.cc: New test.
570 * testsuite/27_io/basic_ofstream/open/char/path.cc: New test.
572 * include/bits/fs_path.h (path::format): Define new enumeration type.
573 (path(string_type&&), path<Source>(const Source&))
574 (path<InputIterator>(InputIterator, InputIterator))
575 (path<Source>(const Source&, const locale&))
576 (path<InputIterator>(InputIterator, InputIterator, const locale&)):
577 Add format parameter.
578 * testsuite/27_io/filesystem/path/construct/format.cc: New test.
580 * include/bits/stl_algo.h (__find_if_not_n, generate_n): Cast to void
581 to ensure overloaded comma not used.
582 * include/bits/stl_algobase.h (__fill_n_a, equal): Likewise.
583 * include/bits/stl_uninitialized.h (__uninitialized_fill_n)
584 (__uninitialized_fill_n_a, __uninitialized_default_n_1)
585 (__uninitialized_default_n_a, __uninitialized_copy_n)
586 (__uninitialized_copy_n_pair): Likewise
587 * testsuite/20_util/specialized_algorithms/memory_management_tools/1.cc:
588 Use test iterator wrappers with overloaded comma operator.
589 * testsuite/25_algorithms/fill_n/1.cc: Likewise.
590 * testsuite/25_algorithms/generate_n/1.cc: New test.
591 * testsuite/25_algorithms/stable_partition/1.cc: New test.
592 * testsuite/util/testsuite_iterators.h (operator,): Add deleted
593 non-member comma operator with iterator wrappers as right operand.
595 2017-10-26 Ville Voutilainen <ville.voutilainen@gmail.com>
597 Deduction guides for associative containers, debug mode deduction
599 * include/bits/stl_iterator.h (__iter_key_t)
600 (__iter_val_t, __iter_to_alloc_t): New.
601 * include/bits/stl_map.h: Add deduction guides.
602 * include/bits/stl_multimap.h: Likewise.
603 * include/bits/stl_multiset.h: Likewise.
604 * include/bits/stl_set.h: Likewise.
605 * include/bits/unordered_map.h: Likewise.
606 * include/bits/unordered_set.h: Likewise.
607 * include/debug/deque: Likewise.
608 * include/debug/forward_list: Likewise.
609 * include/debug/list: Likewise.
610 * include/debug/map.h: Likewise.
611 * include/debug/multimap.h: Likewise.
612 * include/debug/multiset.h: Likewise.
613 * include/debug/set.h: Likewise.
614 * include/debug/unordered_map: Likewise.
615 * include/debug/unordered_set: Likewise.
616 * include/debug/vector: Likewise.
617 * testsuite/23_containers/map/cons/deduction.cc: New.
618 * testsuite/23_containers/multimap/cons/deduction.cc: Likewise.
619 * testsuite/23_containers/multiset/cons/deduction.cc: Likewise.
620 * testsuite/23_containers/set/cons/deduction.cc: Likewise.
621 * testsuite/23_containers/unordered_map/cons/deduction.cc: Likewise.
622 * testsuite/23_containers/unordered_multimap/cons/deduction.cc:
624 * testsuite/23_containers/unordered_multiset/cons/deduction.cc:
626 * testsuite/23_containers/unordered_set/cons/deduction.cc: Likewise.
628 2017-10-25 Jonathan Wakely <jwakely@redhat.com>
630 * doc/xml/manual/status_cxx2017.xml: Update C++17 status, and
631 information on feature-test macros.
632 * doc/html/*: Regenerate.
635 * include/std/array (tuple_size, tuple_element): Change class-key
636 from class to struct, to avoid annoying Clang warnings.
639 * src/filesystem/ops.cc (read_symlink): Handle st_size being zero.
640 * src/filesystem/std-ops.cc (read_symlink): Likewise.
641 (do_copy_file) [!NEED_DO_COPY_FILE]: Avoid multiple definitions.
643 * src/filesystem/std-path.cc (path::lexically_normal): Add missing
644 step to algorithm, for removing dot-dot elements after root-directory.
645 * testsuite/27_io/filesystem/operations/canonical.cc: Use
646 compare_paths for more exhaustive checks.
647 * testsuite/27_io/filesystem/operations/proximate.cc: Likewise.
648 * testsuite/27_io/filesystem/path/append/path.cc: Likewise.
649 * testsuite/27_io/filesystem/path/concat/path.cc: Likewise.
650 * testsuite/27_io/filesystem/path/concat/strings.cc: Fix comment.
651 * testsuite/27_io/filesystem/path/construct/locale.cc: Likewise.
652 * testsuite/27_io/filesystem/path/decompose/root_directory.cc:
654 * testsuite/27_io/filesystem/path/generation/normal.cc: Use
655 compare_paths for more exhaustive checks. Add extra testcases.
656 * testsuite/27_io/filesystem/path/generation/proximate.cc: Use
657 compare_paths for more exhaustive checks.
658 * testsuite/27_io/filesystem/path/generation/relative.cc: Likewise.
659 * testsuite/27_io/filesystem/path/generic/generic_string.cc: Remove
661 * testsuite/27_io/filesystem/path/modifiers/make_preferred.cc: Fix
663 * testsuite/27_io/filesystem/path/modifiers/remove_filename.cc: Use
664 compare_paths for more exhaustive checks.
665 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
667 * testsuite/27_io/filesystem/path/modifiers/replace_filename.cc:
669 * testsuite/util/testsuite_fs.h (compare_paths): Also compare native
673 * testsuite/27_io/filesystem/operations/permissions.cc: Fix test.
675 2017-10-24 François Dumont <fdumont@gcc.gnu.org>
677 * testsuite/lib/libstdc++.exp (check_v3_target_normal_mode): Add
679 (check_v3_target_normal_namespace): New.
680 * testsuite/lib/dg-options.exp (dg-require-normal-namespace): New.
681 * testsuite/18_support/headers/limits/synopsis.cc: Add latter.
682 * testsuite/20_util/from_chars/requirements.cc: Likewise.
683 * testsuite/20_util/headers/functional/synopsis.cc: Likewise.
684 * testsuite/20_util/headers/memory/synopsis.cc: Likewise.
685 * testsuite/20_util/headers/utility/synopsis.cc: Likewise.
686 * testsuite/20_util/to_chars/requirements.cc: Likewise.
687 * testsuite/21_strings/headers/string/synopsis.cc: Likewise.
688 * testsuite/22_locale/headers/locale/synopsis.cc: Likewise.
689 * testsuite/23_containers/headers/bitset/synopsis.cc: Likewise.
690 * testsuite/23_containers/headers/deque/synopsis.cc: Likewise.
691 * testsuite/23_containers/headers/forward_list/synopsis.cc: Likewise.
692 * testsuite/23_containers/headers/list/synopsis.cc: Likewise.
693 * testsuite/23_containers/headers/map/synopsis.cc: Likewise.
694 * testsuite/23_containers/headers/queue/synopsis.cc: Likewise.
695 * testsuite/23_containers/headers/set/synopsis.cc: Likewise.
696 * testsuite/23_containers/headers/stack/synopsis.cc: Likewise.
697 * testsuite/23_containers/headers/vector/synopsis.cc: Likewise.
698 * testsuite/23_containers/map/modifiers/erase/abi_tag.cc: Likewise.
699 * testsuite/23_containers/multimap/modifiers/erase/abi_tag.cc: Likewise.
700 * testsuite/23_containers/multiset/modifiers/erase/abi_tag.cc: Likewise.
701 * testsuite/23_containers/set/modifiers/erase/abi_tag.cc: Likewise.
702 * testsuite/24_iterators/headers/iterator/synopsis.cc: Likewise.
703 * testsuite/24_iterators/headers/iterator/synopsis_c++11.cc: Likewise.
704 * testsuite/24_iterators/headers/iterator/synopsis_c++14.cc: Likewise.
705 * testsuite/24_iterators/headers/iterator/synopsis_c++17.cc: Likewise.
706 * testsuite/26_numerics/complex/abi_tag.cc: Likewise.
707 * testsuite/26_numerics/headers/complex/synopsis.cc: Likewise.
708 * testsuite/26_numerics/headers/valarray/synopsis.cc: Likewise.
709 * testsuite/27_io/headers/fstream/synopsis.cc: Likewise.
710 * testsuite/27_io/headers/ios/synopsis.cc: Likewise.
711 * testsuite/27_io/headers/istream/synopsis.cc: Likewise.
712 * testsuite/27_io/headers/ostream/synopsis.cc: Likewise.
713 * testsuite/27_io/headers/sstream/synopsis.cc: Likewise.
714 * testsuite/27_io/headers/streambuf/synopsis.cc: Likewise.
716 2017-10-24 Jonathan Wakely <jwakely@redhat.com>
718 * config/locale/gnu/c_locale.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Ignore
719 -Wattribute-alias warnings.
720 * src/c++11/istream-inst.cc: Likewise.
721 * src/c++11/locale-inst.cc: Likewise.
722 * src/c++11/ostream-inst.cc: Likewise.
723 * src/c++11/wlocale-inst.cc: Likewise.
724 * src/c++98/hash-long-double-tr1-aux.cc: Likewise.
726 * include/bits/string_view.tcc (find_first_of, find_last_of)
727 (find_first_not_of, find_last_not_of): Add noexcept.
728 * include/std/string_view (basic_string_view(const _CharT*))
729 (basic_string_view(const _CharT*, size_type))
730 (front, back, remove_prefix, remove_suffix, find, rfind)
731 (find_first_of, find_first_not_of): Add noexcept.
732 (at(size_type), _S_compare(size_type, size_type)): Replace conditional
733 expressions with if statements.
734 (copy(_CharT*, size_type, size_type), substr(size_type, size_type)):
735 Use _M_check for length checks.
736 (compare(basic_string_view)): Reformat.
737 (_M_check(size_type, const char)): Add noexcept(false).
738 (_M_limit(size_type, size_type)): Use noexcept not _GLIBCXX_NOEXCEPT.
741 * include/experimental/string_view (operator""sv): Add noexcept.
742 * include/std/string_view (operator""sv): Likewise.
744 2017-10-23 Jonathan Wakely <jwakely@redhat.com>
746 * include/Makefile.am: Add new headers for C++17 filesystem library.
747 * include/Makefile.in: Regenerate.
748 * include/bits/fs_dir.h: New header, based on Filesystem TS code in
749 include/experimental/bits directory.
750 * include/bits/fs_fwd.h: Likewise.
751 * include/bits/fs_ops.h: Likewise.
752 * include/bits/fs_path.h: Likewise.
753 * include/experimental/bits/fs_dir.h: Rename Doxygen group.
754 * include/experimental/bits/fs_fwd.h: Likewise.
755 * include/experimental/bits/fs_ops.h: Likewise.
756 * include/experimental/bits/fs_path.h: Likewise.
757 * include/experimental/filesystem (filesystem_error::_M_gen_what):
758 Remove inline definition.
759 * include/precompiled/stdc++.h: Add <filesystem> to precompiled
761 * include/std/filesystem: New header.
762 * python/libstdcxx/v6/printers.py: Enable printer for std::filesystem
764 * src/filesystem/Makefile.am: Add new files. Compile as C++17.
765 * src/filesystem/Makefile.in: Regenerate.
766 * src/filesystem/cow-dir.cc: Update comment.
767 * src/filesystem/cow-ops.cc: Likewise.
768 * src/filesystem/cow-path.cc: Likewise.
769 * src/filesystem/cow-std-dir.cc: New file.
770 * src/filesystem/cow-std-ops.cc: New file.
771 * src/filesystem/cow-std-path.cc: New file.
772 * src/filesystem/dir-common.h (_Dir_base, get_file_type): New header
774 * src/filesystem/dir.cc (_Dir): Derive from _Dir_base.
775 (open_dir): Move to _Dir_base constructor.
776 (get_file_type): Move to dir-common.h.
777 (recurse): Move to _Dir_base::should_recurse.
778 * src/filesystem/ops-common.h: New header for common code.
779 * src/filesystem/ops.cc (is_set, make_file_type, make_file_status)
780 (is_not_found_errno, file_time, do_copy_file): Move to ops-common.h.
781 * src/filesystem/path.cc (filesystem_error::_M_gen_what): Define.
782 * src/filesystem/std-dir.cc: New file, based on Filesystem TS code.
783 * src/filesystem/std-ops.cc: Likewise.
784 * src/filesystem/std-dir.cc: Likewise.
785 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: New
787 * testsuite/27_io/filesystem/iterators/pop.cc: New test.
788 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
790 * testsuite/27_io/filesystem/operations/absolute.cc: New test.
791 * testsuite/27_io/filesystem/operations/canonical.cc: New test.
792 * testsuite/27_io/filesystem/operations/copy.cc: New test.
793 * testsuite/27_io/filesystem/operations/copy_file.cc: New test.
794 * testsuite/27_io/filesystem/operations/create_directories.cc: New
796 * testsuite/27_io/filesystem/operations/create_directory.cc: New test.
797 * testsuite/27_io/filesystem/operations/create_symlink.cc: New test.
798 * testsuite/27_io/filesystem/operations/current_path.cc: New test.
799 * testsuite/27_io/filesystem/operations/equivalent.cc: New test.
800 * testsuite/27_io/filesystem/operations/exists.cc: New test.
801 * testsuite/27_io/filesystem/operations/file_size.cc: New test.
802 * testsuite/27_io/filesystem/operations/is_empty.cc: New test.
803 * testsuite/27_io/filesystem/operations/last_write_time.cc: New test.
804 * testsuite/27_io/filesystem/operations/permissions.cc: New test.
805 * testsuite/27_io/filesystem/operations/proximate.cc: New test.
806 * testsuite/27_io/filesystem/operations/read_symlink.cc: New test.
807 * testsuite/27_io/filesystem/operations/relative.cc: New test.
808 * testsuite/27_io/filesystem/operations/remove_all.cc: New test.
809 * testsuite/27_io/filesystem/operations/space.cc: New test.
810 * testsuite/27_io/filesystem/operations/status.cc: New test.
811 * testsuite/27_io/filesystem/operations/symlink_status.cc: New test.
812 * testsuite/27_io/filesystem/operations/temp_directory_path.cc: New
814 * testsuite/27_io/filesystem/operations/weakly_canonical.cc: New test.
815 * testsuite/27_io/filesystem/path/append/path.cc: New test.
816 * testsuite/27_io/filesystem/path/assign/assign.cc: New test.
817 * testsuite/27_io/filesystem/path/assign/copy.cc: New test.
818 * testsuite/27_io/filesystem/path/compare/compare.cc: New test.
819 * testsuite/27_io/filesystem/path/compare/path.cc: New test.
820 * testsuite/27_io/filesystem/path/compare/strings.cc: New test.
821 * testsuite/27_io/filesystem/path/concat/path.cc: New test.
822 * testsuite/27_io/filesystem/path/concat/strings.cc: New test.
823 * testsuite/27_io/filesystem/path/construct/copy.cc: New test.
824 * testsuite/27_io/filesystem/path/construct/default.cc: New test.
825 * testsuite/27_io/filesystem/path/construct/locale.cc: New test.
826 * testsuite/27_io/filesystem/path/construct/range.cc: New test.
827 * testsuite/27_io/filesystem/path/construct/string_view.cc: New test.
828 * testsuite/27_io/filesystem/path/decompose/extension.cc: New test.
829 * testsuite/27_io/filesystem/path/decompose/filename.cc: New test.
830 * testsuite/27_io/filesystem/path/decompose/parent_path.cc: New test.
831 * testsuite/27_io/filesystem/path/decompose/relative_path.cc: New
833 * testsuite/27_io/filesystem/path/decompose/root_directory.cc: New
835 * testsuite/27_io/filesystem/path/decompose/root_name.cc: New test.
836 * testsuite/27_io/filesystem/path/decompose/root_path.cc: New test.
837 * testsuite/27_io/filesystem/path/decompose/stem.cc: New test.
838 * testsuite/27_io/filesystem/path/generation/normal.cc: New test.
839 * testsuite/27_io/filesystem/path/generation/proximate.cc: New test.
840 * testsuite/27_io/filesystem/path/generation/relative.cc: New test.
841 * testsuite/27_io/filesystem/path/generic/generic_string.cc: New test.
842 * testsuite/27_io/filesystem/path/itr/traversal.cc: New test.
843 * testsuite/27_io/filesystem/path/modifiers/clear.cc: New test.
844 * testsuite/27_io/filesystem/path/modifiers/make_preferred.cc: New
846 * testsuite/27_io/filesystem/path/modifiers/remove_filename.cc: New
848 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc: New
850 * testsuite/27_io/filesystem/path/modifiers/replace_filename.cc: New
852 * testsuite/27_io/filesystem/path/modifiers/swap.cc: New test.
853 * testsuite/27_io/filesystem/path/native/string.cc: New test.
854 * testsuite/27_io/filesystem/path/nonmember/hash_value.cc: New test.
855 * testsuite/27_io/filesystem/path/query/empty.cc: New test.
856 * testsuite/27_io/filesystem/path/query/has_extension.cc: New test.
857 * testsuite/27_io/filesystem/path/query/has_filename.cc: New test.
858 * testsuite/27_io/filesystem/path/query/has_parent_path.cc: New test.
859 * testsuite/27_io/filesystem/path/query/has_relative_path.cc: New
861 * testsuite/27_io/filesystem/path/query/has_root_directory.cc: New
863 * testsuite/27_io/filesystem/path/query/has_root_name.cc: New test.
864 * testsuite/27_io/filesystem/path/query/has_root_path.cc: New test.
865 * testsuite/27_io/filesystem/path/query/has_stem.cc: New test.
866 * testsuite/27_io/filesystem/path/query/is_relative.cc: New test.
867 * testsuite/experimental/filesystem/path/construct/string_view.cc:
868 Define USE_FILESYSTEM_TS.
869 * testsuite/util/testsuite_fs.h: Allow use with C++17 paths as well
873 * doc/xml/manual/intro.xml: Include new section.
874 * doc/xml/manual/status_cxxis29124.xml: New section on IS 29124
876 * include/bits/specfun.h [__STRICT_ANSI__] (hyperg, hypergf, hypergl)
877 (conf_hyperg, conf_hypergf, conf_hypergl): Don't declare.
878 * include/c_compatibility/math.h: Import special functions into
879 global namespace for C++17.
880 * testsuite/26_numerics/headers/cmath/82644.cc: New test.
881 * testsuite/26_numerics/headers/cmath/functions_global_c++17.cc: New
884 2017-10-21 Jonathan Wakely <jwakely@redhat.com>
886 * testsuite/experimental/filesystem/path/itr/traversal.cc: Do not
887 increment past-the-end iterators.
889 2017-10-20 Jonathan Wakely <jwakely@redhat.com>
891 * include/std/chrono (__cpp_lib_chrono): Update macro value to
892 indicate support for P0505R0.
893 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: Check
896 * include/c_global/cstddef: Define __cpp_lib_byte feature-test macro.
897 * testsuite/18_support/byte/requirements.cc: Check macro.
899 2017-10-19 Jonathan Wakely <jwakely@redhat.com>
901 * testsuite/experimental/filesystem/iterators/
902 recursive_directory_iterator.cc: Ensure that error_code arguments are
903 cleared when required.
904 * testsuite/experimental/filesystem/operations/create_directory.cc:
905 Remove redundant check.
906 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
907 Ensure that error_code argument is cleared when required.
909 * include/experimental/bits/fs_path.h (path::iterator++(int))
910 (path::iterator--(int)): Fix for paths with only one component.
911 * testsuite/experimental/filesystem/path/itr/traversal.cc: Test
912 post-increment and post-decrement.
914 * doc/xml/manual/status_cxx2017.xml: Update references to C++17
917 * testsuite/decimal/conversion-to-integral.cc: Use predefined macro
918 instead of non-standard glibc one.
920 2017-10-16 François Dumont <fdumont@gcc.gnu.org>
923 * include/bits/stl_bvector.h (fill): Add iterator offset check.
924 * testsuite/23_containers/vector/bool/82558.cc: New.
926 2017-10-13 Jonathan Wakely <jwakely@redhat.com>
929 * doc/xml/manual/intro.xml: Document LWG 2354 changes.
930 * include/bits/stl_map.h (map::insert(value_type&&))
931 (map::insert(const_iterator, value_type&&)): Add overload for rvalues.
932 * include/bits/stl_multimap.h (multimap::insert(value_type&&))
933 (multimap::insert(const_iterator, value_type&&)): Likewise.
934 * include/bits/unordered_map.h (unordered_map::insert(value_type&&))
935 (unordered_map::insert(const_iterator, value_type&&))
936 (unordered_multimap::insert(value_type&&))
937 (unordered_multimap::insert(const_iterator, value_type&&)): Likewise.
938 * testsuite/23_containers/map/modifiers/insert/dr2354.cc: New test.
939 * testsuite/23_containers/multimap/modifiers/insert/dr2354.cc: New
941 * testsuite/23_containers/unordered_map/insert/dr2354.cc: New test.
942 * testsuite/23_containers/unordered_multimap/insert/dr2354.cc: New
946 * include/std/mutex (call_once): Suppress clang-tidy warnings about
949 2017-10-10 Jonathan Wakely <jwakely@redhat.com>
951 * include/bits/streambuf_iterator.h (istreambuf_iterator::equal):
952 Update comment about NAD issue.
956 * include/c_compatibility/complex.h [!C++98 && __STRICT_ANSI__]: Do
957 not include C library's <complex.h>.
958 * testsuite/26_numerics/complex/c99.cc: Depend on __STRICT_ANSI__.
959 * testsuite/26_numerics/headers/complex.h/std_c++11.h: New test.
960 * testsuite/26_numerics/headers/complex.h/std_gnu++11.h: New test.
961 * testsuite/26_numerics/headers/complex.h/std_c++98.h: New test.
963 2017-10-05 Jonathan Wakely <jwakely@redhat.com>
965 * testsuite/20_util/to_chars/1.cc: Add dg-require-string-conversions.
967 2017-10-04 Petr Ovtchenkov <ptr@void-ptr.info>
968 François Dumont <fdumont@gcc.gnu.org>
970 * include/bits/streambuf_iterator.h
971 (istreambuf_iterator<>::operator*()): Do not capture iterator state
973 (istreambuf_iterator<>::operator++()): Likewise and remove _M_sbuf check.
974 (istreambuf_iterator<>::operator++(int)): Likewise.
975 (istreambuf_iterator<>::_M_get()): Remove _M_c assignment.
976 (istreambuf_iterator<>::_S_is_eof()): New.
977 (istreambuf_iterator<>::_M_at_eof()): Adapt, use latter.
978 (find(istreambuf_iterator<>, istreambuf_iterator<>, _CharT)):
979 Return an iterator with _M_c set to eof to capture streambuf state
981 (testsuite/24_iterators/istreambuf_iterator/2.cc): Add checks.
983 2017-10-03 Jakub Jelinek <jakub@redhat.com>
985 * include/std/charconv (__unsigned_least_t): Fix number of closing >s for
986 !_GLIBCXX_USE_INT128.
988 2017-10-02 Jonathan Wakely <jwakely@redhat.com>
990 * include/Makefile.am: Add new <charconv> header.
991 * include/Makefile.in: Regenerate.
992 * include/precompiled/stdc++.h: Include <charconv>.
993 * include/std/charconv: New file.
994 (to_chars_result, to_chars, from_chars_result, from_chars): Define.
995 * testsuite/20_util/from_chars/1.cc: New test.
996 * testsuite/20_util/from_chars/1_neg.cc: New test.
997 * testsuite/20_util/from_chars/2.cc: New test.
998 * testsuite/20_util/from_chars/requirements.cc: New test.
999 * testsuite/20_util/to_chars/1.cc: New test.
1000 * testsuite/20_util/to_chars/1_neg.cc: New test.
1001 * testsuite/20_util/to_chars/2.cc: New test.
1002 * testsuite/20_util/to_chars/requirements.cc: New test.
1004 2017-09-27 François Dumont <fdumont@gcc.gnu.org>
1006 * testsuite/22_locale/money_get/get/char/22131.cc: Make test less
1007 istreambuf_iterator implementation dependent.
1008 * testsuite/22_locale/money_get/get/wchar_t/22131.cc: Likewise.
1010 2017-09-25 Uros Bizjak <ubizjak@gmail.com>
1013 * src/c++98/complex_io.cc (_GLIBCXX_LDBL_COMPAT): Declare alias
1014 target as a C++ function with no prototype.
1016 2017-09-21 Jonathan Wakely <jwakely@redhat.com>
1018 * testsuite/25_algorithms/clamp/1.cc: Fix order of arguments and
1019 expected results when using predicate defining reverse order.
1020 * testsuite/25_algorithms/clamp/constexpr.cc: Likewise.
1022 2017-09-20 Jonathan Wakely <jwakely@redhat.com>
1025 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
1026 (basic_string::_If_sv): Remove from the overload set when the
1027 argument is derived from basic_string.
1030 * include/bits/basic_string.h (basic_string::_If_sv): Remove from the
1031 overload set when the argument is derived from basic_string.
1032 * testsuite/21_strings/basic_string/cons/char/moveable2_c++17.cc: New
1034 * testsuite/21_strings/basic_string/cons/wchar_t/moveable2_c++17.cc:
1037 * testsuite/24_iterators/range_access_cpp17.cc: Fix order of dg-do
1038 and dg-options directives. Fix invalid test.
1041 * libsupc++/exception (uncaught_exception): Deprecate for C++17.
1042 * testsuite/18_support/exception_ptr/62258.cc: Add -Wno-deprecated.
1043 * testsuite/18_support/uncaught_exception/14026.cc: Likewise.
1045 * include/bits/c++config (_GLIBCXX17_DEPRECATED): Define.
1046 * include/bits/functional_hash.h (__hash_base::result_type)
1047 (__hash_base::argument_type): Add _GLIBCXX17_DEPRECATED.
1048 * include/std/optional (hash<optional<T>>::result_type)
1049 (hash<optional<T>>::argument_type): Add deprecated attribute.
1050 (__is_fast_hash<hash<optional<T>>>): Add partial specialization.
1051 * include/std/variant (hash<variant<Types...>>::result_type)
1052 (hash<variant<Types...>>::argument_type): Add deprecated attribute.
1053 (__is_fast_hash<hash<variant<Types...>>>): Add partial specialization.
1055 * libsupc++/exception_ptr.h (copy_exception): Remove deprecated
1056 non-standard function.
1059 * include/std/optional (__optional_hash_call_base): Add template
1060 parameter for remove_const_t<_Tp> and use it consistently.
1061 * testsuite/20_util/optional/hash.cc: Test optional<const T>.
1063 2017-09-19 Jonathan Wakely <jwakely@redhat.com>
1066 * include/bits/regex_executor.tcc
1067 (_Backref_matcher<BidIt, regex_traits<C>>::_M_apply): Use
1068 std::__equal4 instead of C++14 4-iterator overloads of std::equal.
1069 * include/bits/stl_algobase.h (__equal4): New functions implementing
1070 4-iterator overloads of std::equal for use in C++11.
1071 (equal(It1, It1, It2, It2), equal(It1, It1, It2, It2, BinaryPred)):
1072 Move function bodies to new __equal4 functions.
1073 * testsuite/28_regex/simple_c++11.cc: New.
1076 * include/std/type_traits (__is_invocable): Add partial specialization
1077 for INVOKE<void> case and remove is_void<R> check from partial
1078 specialization for INVOKE<R> case.
1079 (__is_nt_invocable_impl): New helper for is_nothrow_invocable_r.
1080 (is_nothrow_invocable_r): Use __is_nt_invocable_impl.
1081 * testsuite/20_util/is_nothrow_invocable/value.cc: Add tests for
1082 conversions that can throw or fail to convert. Use static assert
1083 strings to explain negative results.
1084 * testsuite/20_util/is_nothrow_invocable/value_ext.cc: Use
1085 is_nothrow_constructible in is_nt_invocable_conv.
1087 2017-09-18 Jonathan Wakely <jwakely@redhat.com>
1090 * testsuite/20_util/duration/cons/dr1177.cc: Fix incorrect test and
1091 improve static assertion messages.
1093 * include/std/utility (_Itup_cat, _Make_integer_sequence): Remove.
1094 (_Build_index_tuple, make_integer_sequence): Use built-in to generate
1098 * include/std/type_traits (__declval): New function to deduce return
1100 (__declval_protector::_delegate): Remove.
1101 (declval): Use __declval instead of add_rvalue_reference and
1102 __declval_protector::__delegate.
1103 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error
1105 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
1107 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
1110 2017-09-15 Jakub Jelinek <jakub@redhat.com>
1112 * testsuite/libstdc++-prettyprinters/cxx17.cc: Use -std=c++17 or
1113 -std=gnu++17 instead of -std=c++1z or -std=gnu++1z. Use c++17 instead
1114 of c++1z and c++17_only instead of c++1z_only. Adjust expected
1115 diagnostics and comments refering to 1z to 17.
1116 * testsuite/30_threads/lock_guard/cons/deduction.cc: Likewise.
1117 * testsuite/30_threads/scoped_lock/cons/deduction.cc: Likewise.
1118 * testsuite/30_threads/scoped_lock/cons/1.cc: Likewise.
1119 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: Likewise.
1120 * testsuite/30_threads/scoped_lock/requirements/explicit_instantiation.cc:
1122 * testsuite/30_threads/unique_lock/cons/deduction.cc: Likewise.
1123 * testsuite/18_support/launder/1.cc (test02): Likewise.
1124 * testsuite/18_support/launder/requirements_neg.cc: Likewise.
1125 * testsuite/18_support/launder/requirements.cc: Likewise.
1126 * testsuite/18_support/byte/requirements.cc: Likewise.
1127 * testsuite/18_support/byte/ops.cc: Likewise.
1128 * testsuite/18_support/byte/global_neg.cc: Likewise.
1129 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc:
1131 * testsuite/27_io/types/4.cc: Likewise.
1132 * testsuite/25_algorithms/sample/81221.cc: Likewise.
1133 * testsuite/25_algorithms/sample/1.cc: Likewise.
1134 * testsuite/25_algorithms/sample/2.cc: Likewise.
1135 * testsuite/25_algorithms/search/searcher.cc: Likewise.
1136 * testsuite/28_regex/basic_regex/ctors/deduction.cc: Likewise.
1137 * testsuite/experimental/filesystem/path/construct/string_view.cc:
1139 * testsuite/24_iterators/range_access_cpp17.cc: Likewise.
1140 * testsuite/24_iterators/container_access.cc: Likewise.
1141 * testsuite/ext/pb_ds/regression/hash_map_rand.cc: Likewise.
1142 * testsuite/ext/pb_ds/regression/trie_set_rand.cc: Likewise.
1143 * testsuite/ext/pb_ds/regression/hash_set_rand.cc: Likewise.
1144 * testsuite/ext/pb_ds/regression/list_update_set_rand.cc: Likewise.
1145 * testsuite/ext/pb_ds/regression/list_update_map_rand.cc: Likewise.
1146 * testsuite/ext/pb_ds/regression/priority_queue_rand.cc: Likewise.
1147 * testsuite/ext/pb_ds/regression/tree_set_rand.cc: Likewise.
1148 * testsuite/ext/pb_ds/regression/tree_map_rand.cc: Likewise.
1149 * testsuite/ext/pb_ds/regression/trie_map_rand.cc: Likewise.
1150 * testsuite/20_util/shared_ptr/casts/reinterpret.cc: Likewise.
1151 * testsuite/20_util/shared_ptr/cons/deduction.cc: Likewise.
1152 * testsuite/20_util/shared_ptr/cons/array.cc: Likewise.
1153 * testsuite/20_util/shared_ptr/observers/array.cc (struct A): Likewise.
1154 * testsuite/20_util/pair/cons/deduction.cc: Likewise.
1155 * testsuite/20_util/variant/deduction.cc: Likewise.
1156 * testsuite/20_util/tuple/78939.cc: Likewise.
1157 * testsuite/20_util/tuple/cons/deduction.cc: Likewise.
1158 * testsuite/20_util/void_t/1.cc: Likewise.
1159 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: Likewise.
1160 * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: Likewise.
1161 * testsuite/20_util/addressof/requirements/constexpr.cc: Likewise.
1162 * testsuite/20_util/weak_ptr/cons/deduction.cc: Likewise.
1163 * testsuite/20_util/has_unique_object_representations/requirements/typedefs.cc:
1165 * testsuite/20_util/has_unique_object_representations/requirements/explicit_instantiation.cc:
1167 * testsuite/20_util/has_unique_object_representations/value.cc:
1169 * testsuite/20_util/time_point/arithmetic/constexpr.cc: Likewise.
1170 * testsuite/20_util/function_objects/invoke/59768.cc: Likewise.
1171 * testsuite/20_util/function_objects/mem_fn/80478.cc: Likewise.
1172 * testsuite/20_util/function/cons/deduction.cc: Likewise.
1173 * testsuite/20_util/specialized_algorithms/memory_management_tools/destroy_neg.cc:
1175 * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise.
1176 * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc:
1178 * testsuite/20_util/is_aggregate/value.cc: Likewise.
1179 * testsuite/26_numerics/lcm/1.cc: Likewise.
1180 * testsuite/26_numerics/lcm/lcm_neg.cc: Likewise.
1181 * testsuite/26_numerics/gcd/1.cc: Likewise.
1182 * testsuite/26_numerics/gcd/gcd_neg.cc: Likewise.
1183 * testsuite/26_numerics/valarray/deduction.cc: Likewise.
1184 * testsuite/26_numerics/headers/cmath/types_std_c++0x_neg.cc: Likewise.
1185 * testsuite/26_numerics/headers/cmath/hypot.cc: Likewise.
1186 * testsuite/23_containers/queue/members/emplace_cxx17_return.cc:
1188 * testsuite/23_containers/array/cons/deduction.cc: Likewise.
1189 * testsuite/23_containers/array/cons/deduction_neg.cc: Likewise.
1190 * testsuite/23_containers/deque/modifiers/emplace/cxx17_return.cc:
1192 * testsuite/23_containers/deque/cons/deduction.cc: Likewise.
1193 * testsuite/23_containers/stack/members/emplace_cxx17_return.cc:
1195 * testsuite/23_containers/list/modifiers/emplace/cxx17_return.cc:
1197 * testsuite/23_containers/list/cons/deduction.cc: Likewise.
1198 * testsuite/23_containers/forward_list/modifiers/emplace_cxx17_return.cc:
1200 * testsuite/23_containers/forward_list/cons/deduction.cc: Likewise.
1201 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Likewise.
1202 * testsuite/23_containers/vector/modifiers/emplace/cxx17_return.cc:
1204 * testsuite/23_containers/vector/cons/deduction.cc: Likewise.
1205 * testsuite/23_containers/vector/bool/emplace_cxx17_return.cc:
1207 * testsuite/21_strings/basic_string/cons/char/9.cc: Likewise.
1208 * testsuite/21_strings/basic_string/cons/char/deduction.cc: Likewise.
1209 * testsuite/21_strings/basic_string/cons/char/79162.cc: Likewise.
1210 * testsuite/21_strings/basic_string/cons/wchar_t/9.cc: Likewise.
1211 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
1213 * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: Likewise.
1214 * testsuite/21_strings/basic_string_view/modifiers/swap/char/1.cc:
1216 * testsuite/21_strings/basic_string_view/modifiers/swap/wchar_t/1.cc:
1218 * testsuite/21_strings/basic_string_view/operations/compare/char/2.cc:
1220 * testsuite/21_strings/basic_string_view/operations/compare/char/70483.cc:
1222 * testsuite/21_strings/basic_string_view/operations/compare/wchar_t/2.cc:
1224 * testsuite/21_strings/char_traits/requirements/constexpr_functions_c++17.cc:
1227 2017-09-13 Jonathan Wakely <jwakely@redhat.com>
1230 * include/std/chrono (__enable_if_is_duration)
1231 (__disable_if_is_duration): New alias templates to simplify SFINAE.
1232 (duration_cast, floor, ceil): Use __enable_if_is_duration.
1233 (duration::__is_float, duration::__is_harmonic): New alias templates
1235 (duration::duration(const _Rep2&)): Use _Require, __is_float and
1237 (duration::duration(const duration<_Rep2, _Period2>&)): Likewise.
1238 (__common_rep_type): Remove, replace with ...
1239 (__common_rep_t): New alias template.
1240 (operator*, operator/, operator%): Use __common_rep_t and
1241 __disable_if_is_duration.
1242 (time_point::time_point(const time_point<clock, _Dur2>&)): Add missing
1243 constraint from LWG DR 1177.
1244 * testsuite/20_util/duration/cons/dr1177.cc: New.
1245 * testsuite/20_util/duration/literals/range.cc: Update dg-error line.
1246 * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise.
1247 * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
1248 * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
1249 * testsuite/20_util/time_point/cons/81468.cc: New.
1251 * doc/doxygen/mainpage.html: Fix broken URLs.
1254 * doc/xml/manual/extensions.xml: Replace unstable URL.
1255 * doc/html/manual/ext_demangling.html: Regenerate.
1256 * libsupc++/cxxabi.h (__cxa_demangle): Fix broken URL.
1258 * include/bits/allocated_ptr.h (__allocated_ptr::get): Use
1260 (__allocated_ptr::_S_raw_ptr): Remove.
1261 * include/bits/forward_list.h (_Fwd_list_base::_M_get_node): Use
1263 * include/bits/hashtable_policy.h (_Hashtable_alloc): Likewise.
1264 * include/bits/ptr_traits.h (__to_address): Define new function
1266 * include/bits/shared_ptr_base.h (__shared_ptr): Use __to_address.
1267 (__shared_ptr::_S_raw_ptr): Remove.
1268 * include/bits/stl_vector.h [__cplusplus >= 201103L]
1269 (vector::_M_data_ptr): Use __to_address.
1270 [__cplusplus < 201103L] (vector::_M_data_ptr): Don't dereference
1271 possibly invalid pointers.
1272 * include/ext/alloc_traits.h (__alloc_traits::construct)
1273 (__alloc_traits::destroy): Use __to_address.
1275 2017-09-12 Jonathan Wakely <jwakely@redhat.com>
1278 * include/Makefile.am: Remove <bits/c++14_warning.h>.
1279 * include/Makefile.in: Regenerate.
1280 * include/bits/c++14_warning.h: Remove.
1281 * include/experimental/algorithm: Do not include <c++14_warning.h>.
1282 * include/experimental/any: Likewise.
1283 * include/experimental/array: Likewise.
1284 * include/experimental/bits/erase_if.h: Likewise.
1285 * include/experimental/bits/lfts_config.h: Likewise.
1286 * include/experimental/bits/shared_ptr.h: Likewise.
1287 * include/experimental/bits/string_view.tcc: Likewise.
1288 * include/experimental/chrono: Likewise.
1289 * include/experimental/deque: Likewise.
1290 * include/experimental/filesystem: Do not include <c++0x_warning.h>.
1291 * include/experimental/forward_list: Do not include <c++14_warning.h>.
1292 * include/experimental/functional: Likewise.
1293 * include/experimental/iterator: Likewise.
1294 * include/experimental/list: Likewise.
1295 * include/experimental/map: Likewise.
1296 * include/experimental/memory: Likewise.
1297 * include/experimental/numeric: Likewise.
1298 * include/experimental/optional: Likewise.
1299 * include/experimental/propagate_const: Likewise.
1300 * include/experimental/ratio: Likewise.
1301 * include/experimental/regex: Likewise.
1302 * include/experimental/set: Likewise.
1303 * include/experimental/string: Likewise.
1304 * include/experimental/string_view: Likewise.
1305 * include/experimental/system_error: Likewise.
1306 * include/experimental/tuple: Likewise.
1307 * include/experimental/type_traits: Likewise.
1308 * include/experimental/unordered_map: Likewise.
1309 * include/experimental/unordered_set: Likewise.
1310 * include/experimental/vector: Likewise.
1311 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error
1313 * testsuite/experimental/array/neg.cc: Likewise.
1314 * testsuite/experimental/propagate_const/assignment/move_neg.cc:
1316 * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
1317 * testsuite/experimental/propagate_const/requirements2.cc: Likewise.
1318 * testsuite/experimental/propagate_const/requirements3.cc: Likewise.
1319 * testsuite/experimental/propagate_const/requirements4.cc: Likewise.
1320 * testsuite/experimental/propagate_const/requirements5.cc: Likewise.
1323 * doc/xml/manual/status_cxx2017.xml: Update feature-test macros.
1324 * doc/html/*: Regenerate.
1325 * include/Makefile.am: Remove <bits/c++17_warning.h>.
1326 * include/Makefile.in: Regenerate.
1327 * include/bits/c++17_warning.h: Remove.
1328 * include/bits/string_view.tcc: Do not include <bits/c++17_warning.h>
1329 for pre-C++17 modes.
1330 * include/std/any: Likewise.
1331 (__cpp_lib_any): Define.
1332 * include/std/mutex (__cpp_lib_scoped_lock): Adjust value as per new
1334 * include/std/numeric (__cpp_lib_gcd_lcm): Define as per new SD-6
1336 * include/std/optional: Do not include <bits/c++17_warning.h>.
1337 (__cpp_lib_optional): Define.
1338 * include/std/shared_mutex: Do not include <bits/c++14_warning.h>.
1339 * include/std/string_view: Do not include <bits/c++17_warning.h>.
1340 (__cpp_lib_string_view): Define.
1341 * include/std/variant: Do not include <bits/c++17_warning.h>.
1342 (__cpp_lib_variant): Define.
1343 * testsuite/20_util/optional/cons/value_neg.cc: Adjust dg-error line
1345 * testsuite/26_numerics/gcd/1.cc: Test for __cpp_lib_gcd_lcm.
1346 * testsuite/26_numerics/gcd/gcd_neg.cc: Adjust dg-error line
1348 * testsuite/26_numerics/lcm/1.cc: Test for __cpp_lib_gcd_lcm.
1349 * testsuite/26_numerics/lcm/lcm_neg.cc: Adjust dg-error line
1351 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: Adjust
1352 expected value of __cpp_lib_scoped_lock.
1355 * include/experimental/bits/string_view.tcc (basic_string_view::find)
1356 (basic_string_view::rfind, basic_string_view::find_first_of)
1357 (basic_string_view::find_last_of, basic_string_view::find_first_not_of)
1358 (basic_string_view::find_last_not_of): Add constexpr specifier.
1359 * include/experimental/string_view (basic_string_view::remove_prefix)
1360 (basic_string_view::remove_suffix, basic_string_view::swap)
1361 (basic_string_view::compare, basic_string_view::find)
1362 (basic_string_view::rfind, basic_string_view::find_first_of)
1363 (basic_string_view::find_last_of, basic_string_view::find_first_not_of)
1364 (basic_string_view::find_last_not_of, operator==, operator!=)
1365 (operator<, operator>, operator<=, operator>=): Likewise.
1366 * testsuite/experimental/string_view/operations/compare/char/70483.cc:
1369 2017-09-11 Jonathan Wakely <jwakely@redhat.com>
1372 * include/bits/string_view.tcc (basic_string_view::find)
1373 (basic_string_view::rfind, basic_string_view::find_first_of)
1374 (basic_string_view::find_last_of, basic_string_view::find_first_not_of)
1375 (basic_string_view::find_last_not_of): Add constexpr specifier.
1376 * include/std/string_view (basic_string_view::operator=)
1377 (basic_string_view::rbegin, basic_string_view::rend)
1378 (basic_string_view::crbegin, basic_string_view::crend)
1379 (basic_string_view::remove_prefix, basic_string_view::remove_suffix)
1380 (basic_string_view::swap, basic_string_view::compare)
1381 (basic_string_view::find, basic_string_view::rfind)
1382 (basic_string_view::find_first_of, basic_string_view::find_last_of)
1383 (basic_string_view::find_first_not_of)
1384 (basic_string_view::find_last_not_of, basic_string_view::_M_check)
1385 (basic_string_view::_M_limit, operator==, operator!=, operator<)
1386 (operator>, operator<=, operator>=): Likewise.
1387 * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
1388 char/1.cc: Repeat tests in constexpr context.
1389 * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
1390 wchar_t/1.cc: Likewise.
1391 * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
1392 char/1.cc: Likewise.
1393 * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
1394 wchar_t/1.cc: Likewise.
1395 * testsuite/21_strings/basic_string_view/operations/find/char/1.cc:
1397 * testsuite/21_strings/basic_string_view/operations/find/char/2.cc:
1399 * testsuite/21_strings/basic_string_view/operations/find/char/3.cc:
1401 * testsuite/21_strings/basic_string_view/operations/find/wchar_t/1.cc:
1403 * testsuite/21_strings/basic_string_view/operations/find/wchar_t/2.cc:
1405 * testsuite/21_strings/basic_string_view/operations/find/wchar_t/3.cc:
1407 * testsuite/21_strings/basic_string_view/operators/char/2.cc:
1409 * testsuite/21_strings/basic_string_view/operators/wchar_t/2.cc:
1411 * testsuite/21_strings/basic_string_view/range_access/char/1.cc: Test
1412 cbegin, cend, rbegin, rend, crbegin and crend.
1413 * testsuite/21_strings/basic_string_view/range_access/wchar_t/1.cc:
1415 * testsuite/21_strings/basic_string_view/operations/compare/char/1.cc:
1416 Remove trailing whitespace.
1417 * testsuite/21_strings/basic_string_view/operations/compare/wchar_t/
1419 * testsuite/21_strings/basic_string_view/modifiers/swap/char/1.cc:
1421 * testsuite/21_strings/basic_string_view/modifiers/swap/wchar_t/1.cc:
1423 * testsuite/21_strings/basic_string_view/operations/compare/char/2.cc:
1425 * testsuite/21_strings/basic_string_view/operations/compare/wchar_t/
1428 2017-09-11 Tim Shen <timshen@google.com>
1431 * include/bits/regex_executor.tcc: Support icase in regex_traits<...>
1432 for back reference matches.
1433 * testsuite/28_regex/regression.cc: Test case.
1435 2017-09-11 Jonathan Wakely <jwakely@redhat.com>
1437 * testsuite/21_strings/basic_string/lwg2946.cc: Adjust for
1438 compatibility with old COW std::string.
1440 2017-09-09 Gerald Pfeifer <gerald@pfeifer.com>
1442 * doc/xml/manual/allocator.xml: Adjust link for Hoard.
1443 * doc/html/manual/memory.html: Regenerate.
1445 2017-09-04 Daniel Kruegler <daniel.kruegler@gmail.com>
1448 Implement LWG 2946, LWG 2758's resolution missed further corrections
1449 * include/bits/basic_string.h (basic_string::compare): Add missing
1450 required noexcept specifications.
1451 (basic_string): Introduce internal _S_to_string_view and __sv_wrapper
1452 for implicit string_view conversion.
1453 (basic_string::basic_string): Fix explicit string_view conversion by
1454 implicit conversion using _S_to_string_view and __sv_wrapper.
1455 (basic_string): Introduce internal basic_string(__sv_wrapper, Alloc)
1457 (basic_string): Fix operator=(T) template by operator=(const T&)
1458 template for uncopyable types (PR 79162).
1459 (basic_string::operator+=, basic_string::append, basic_string::assign)
1460 (basic_string::insert, basic_string::replace, basic_string::find)
1461 (basic_string::rfind, basic_string::find_first_of)
1462 (basic_string::find_last_of, basic_string::find_first_not_of)
1463 (basic_string::find_last_not_of, basic_string::compare): Replace
1464 __sv_type argument by template const T& (LWG 2946) and correct
1465 documentation describing __sv_type argument.
1466 (basic_string::find, basic_string::rfind, basic_string::find_first_of)
1467 (basic_string::find_last_of, basic_string::find_first_not_of)
1468 (basic_string::find_last_not_of, basic_string::compare): Replace
1469 unconditional noexcept specification by conditional noexcept
1470 specification to partially balance the removal of noexcept by LWG 2946.
1471 * testsuite/21_strings/basic_string/79162.cc: New.
1472 * testsuite/21_strings/basic_string/lwg2946.cc: New.
1474 2017-08-31 Jonathan Wakely <jwakely@redhat.com>
1477 * include/ext/new_allocator.h (__gnu_cxx::new_allocator::allocate):
1478 Adjust null pointer constant to avoid warning.
1480 2017-08-24 François Dumont <fdumont@gcc.gnu.org>
1482 * include/bits/stl_list.h
1483 [!_GLIBCXX_INLINE_VERSION](_List_base<>::_S_distance): Remove.
1484 (_List_impl(_Node_alloc_type&&, _List_impl&&)): New.
1485 (_List_base(_Node_alloc_type&&, _List_base&&)): New, use latter.
1486 [!_GLIBCXX_INLINE_VERSION](_List_base(_Node_alloc_type&&,_List_base&&)):
1488 (_List_base(_Node_alloc_type&&)): New.
1489 [!_GLIBCXX_INLINE_VERSION](_List_base<>::_M_distance): Remove.
1490 [!_GLIBCXX_INLINE_VERSION](_List_base<>::_M_node_count): Remove.
1491 (list<>::_M_node_count): New.
1492 (list<>::size()): Adapt to call latter.
1493 (list<>::_S_distance(const_iterator, const_iterator)): New.
1494 (list<>::splice(iterator, list&, const_iterator, const_iterator)):
1495 Adapt to call latter.
1496 (list(list&&, const allocator_type&, true_type)): New.
1497 (list(list&&, const allocator_type&, false_type)): New.
1498 (list(list&&, const allocator_type&)): Adapt to call latters.
1500 2017-08-21 Jonathan Wakely <jwakely@redhat.com>
1503 * include/bits/stl_iterator_base_types.h (__iterator_category): Add
1504 constexpr for C++11 and later.
1505 * testsuite/24_iterators/container_access.cc: Add target selector.
1506 * testsuite/24_iterators/range_access.cc: Fix clause number in
1508 * testsuite/24_iterators/range_access_cpp14.cc: Likewise.
1509 * testsuite/24_iterators/range_access_cpp17.cc: New.
1511 2017-08-21 Richard Biener <rguenther@suse.de>
1513 * testsuite/libstdc++-prettyprinters/prettyprinters.exp: Run all
1514 tests with -flto as well if supported.
1516 2017-08-20 Martin Sebor <msebor@redhat.com>
1519 * src/c++98/compatibility.cc (_GLIBCXX_3_4_SYMVER): Declare alias
1520 target as a C++ function with no prototype.
1521 (_GLIBCXX_3_4_5_SYMVER): Ditto.
1523 2017-08-20 John David Anglin <danglin@gcc.gnu.org>
1526 * testsuite/17_intro/names.cc: Undef 'd' and 'r' on __hpux__.
1528 2017-08-18 Jonathan Wakely <jwakely@redhat.com>
1530 * include/bits/hashtable_policy.h (_ReuseOrAllocNode): Remove
1531 __value_alloc_type and __value_alloc_traits typedefs.
1532 (_ReuseOrAllocNode::operator()): Call construct and destroy on the
1534 (_Hashtable_alloc): Simplify __value_alloc_traits typedef.
1535 (_Hashtable_alloc<_NodeAlloc>::_M_allocate_node(_Args&&...)): Call
1536 construct on the node allocator.
1537 (_Hashtable_alloc<_NodeAlloc>::_M_deallocate_node(__node_type*)): Call
1538 destroy on the node allocator.
1541 * include/bits/hashtable.h (_Hashtable(_InputIterator, _InputIterator,
1542 size_type, const _H1&, const _H2&, const _Hash&, const _Equal&,
1543 const _ExtractKey&, const allocator_type&)): Let destructor do clean
1544 up if an exception is thrown.
1545 * testsuite/23_containers/unordered_map/cons/81891.cc: New.
1547 2017-08-11 Jonathan Wakely <jwakely@redhat.com>
1550 * testsuite/27_io/basic_fstream/53984.cc: Adjust test for targets
1551 that allow opening a directory as a FILE and reading from it.
1553 2017-08-09 Jonathan Wakely <jwakely@redhat.com>
1555 * include/std/type_traits (_GLIBCXX_NO_BUILTIN_HAS_UNIQ_OBJ_REP):
1556 Replace with _GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP and use
1557 __is_identifier to set it.
1559 2017-08-09 Katsuhiko Nishimra <ktns.87@gmail.com>
1561 * include/std/type_traits (_GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE): Use
1562 __is_identifier instead of __has_builtin.
1564 2017-08-09 Jonathan Wakely <jwakely@redhat.com>
1568 * config/io/basic_file_stdio.cc (sys_open(FILE*, ios_base::openmode)):
1569 Call fflush on the stream instead of calling sync() while _M_cfile is
1570 null. Restore original value of errno.
1571 * testsuite/ext/stdio_filebuf/char/79820.cc: New.
1572 * testsuite/ext/stdio_filebuf/char/81751.cc: New.
1574 2017-07-31 Marek Polacek <polacek@redhat.com>
1577 * include/bits/stl_stack.h: Fix typo.
1579 2017-07-26 Jonathan Wakely <jwakely@redhat.com>
1581 * testsuite/27_io/basic_fstream/53984.cc: Fix test.
1583 2017-07-26 Paolo Carlini <paolo.carlini@oracle.com>
1585 * testsuite/27_io/basic_fstream/53984.cc: Fix typo in dg-require
1588 2017-07-25 Jonathan Wakely <jwakely@redhat.com>
1591 * include/bits/basic_ios.h (basic_ios::_M_setstate): Adjust comment.
1592 * include/bits/istream.tcc (basic_istream::sentry): Handle exceptions
1593 during construction.
1594 * include/std/istream: Adjust comments for formatted input functions
1595 and unformatted input functions.
1596 * testsuite/27_io/basic_fstream/53984.cc: New.
1597 * testsuite/27_io/basic_istream/sentry/char/53984.cc: New.
1599 * include/bits/ios_base.h (ios_base::io_state, ios_base::open_mode)
1600 (ios_base::seek_dir): Remove for C++17.
1601 * include/std/streambuf (basic_streambuf::stossc): Remove for C++17.
1602 Add deprecated attribute for C++11 and C++14.
1603 * testsuite/27_io/types/1.cc: Don't run for C++17 and later.
1604 * testsuite/27_io/types/4.cc: New.
1606 2017-07-23 Michael Collison <michael.collison@arm.com>
1608 Add optimized implementation of mersenne twister for aarch64
1609 * config/cpu/aarch64/opt/ext/opt_random.h: New file.
1610 (__arch64_recursion): New function.
1611 (__aarch64_lsr_128): New function.
1612 (__aarch64_lsl_128): New function.
1613 (operator==): New function.
1614 (simd_fast_mersenne_twister_engine): Implement
1616 * config/cpu/aarch64/opt/bits/opt_random.h: New file.
1617 * include/ext/random: (simd_fast_mersenne_twister_engine):
1618 add _M_state private array.
1620 2017-07-23 François Dumont <fdumont@gcc.gnu.org>
1623 * include/bits/algorithmfwd.h: Reorganize versioned namespace.
1624 * include/bits/basic_string.h: Likewise.
1625 * include/bits/c++config: Likewise.
1626 * include/bits/deque.tcc: Likewise.
1627 * include/bits/forward_list.h: Likewise.
1628 * include/bits/forward_list.tcc: Likewise.
1629 * include/bits/hashtable_policy.h: Likewise.
1630 * include/bits/list.tcc: Likewise.
1631 * include/bits/move.h: Likewise.
1632 * include/bits/quoted_string.h: Likewise.
1633 * include/bits/random.h: Likewise.
1634 * include/bits/random.tcc: Likewise.
1635 * include/bits/regex.h: Likewise.
1636 * include/bits/regex.tcc: Likewise.
1637 * include/bits/regex_automaton.h: Likewise.
1638 * include/bits/regex_automaton.tcc: Likewise.
1639 * include/bits/regex_compiler.h: Likewise.
1640 * include/bits/regex_compiler.tcc: Likewise.
1641 * include/bits/regex_constants.h: Likewise.
1642 * include/bits/regex_error.h: Likewise.
1643 * include/bits/regex_executor.h: Likewise.
1644 * include/bits/regex_executor.tcc: Likewise.
1645 * include/bits/regex_scanner.h: Likewise.
1646 * include/bits/regex_scanner.tcc: Likewise.
1647 * include/bits/specfun.h: Likewise.
1648 * include/bits/stl_algo.h: Likewise.
1649 * include/bits/stl_algobase.h: Likewise.
1650 * include/bits/stl_bvector.h: Likewise.
1651 * include/bits/stl_deque.h: Likewise.
1652 * include/bits/stl_iterator.h: Likewise.
1653 * include/bits/stl_iterator_base_funcs.h: Likewise.
1654 * include/bits/stl_list.h: Likewise.
1655 * include/bits/stl_map.h: Likewise.
1656 * include/bits/stl_multimap.h: Likewise.
1657 * include/bits/stl_multiset.h: Likewise.
1658 * include/bits/stl_relops.h: Likewise.
1659 * include/bits/stl_set.h: Likewise.
1660 * include/bits/stl_vector.h: Likewise.
1661 * include/bits/uniform_int_dist.h: Likewise.
1662 * include/bits/unordered_map.h: Likewise.
1663 * include/bits/unordered_set.h: Likewise.
1664 * include/bits/vector.tcc: Likewise.
1665 * include/c_global/cmath: Likewise.
1666 * include/c_std/cmath: Likewise.
1667 * include/decimal/decimal: Likewise.
1668 * include/decimal/decimal.h: Likewise.
1669 * include/experimental/algorithm: Likewise.
1670 * include/experimental/any: Likewise.
1671 * include/experimental/array: Likewise.
1672 * include/experimental/bits/erase_if.h: Likewise.
1673 * include/experimental/bits/fs_dir.h: Likewise.
1674 * include/experimental/bits/fs_fwd.h: Likewise.
1675 * include/experimental/bits/fs_ops.h: Likewise.
1676 * include/experimental/bits/fs_path.h: Likewise.
1677 * include/experimental/bits/lfts_config.h: Likewise.
1678 * include/experimental/bits/shared_ptr.h: Likewise.
1679 * include/experimental/bits/string_view.tcc: Likewise.
1680 * include/experimental/chrono: Likewise.
1681 * include/experimental/deque: Likewise.
1682 * include/experimental/filesystem: Likewise.
1683 * include/experimental/forward_list: Likewise.
1684 * include/experimental/functional: Likewise.
1685 * include/experimental/iterator: Likewise.
1686 * include/experimental/list: Likewise.
1687 * include/experimental/map: Likewise.
1688 * include/experimental/memory: Likewise.
1689 * include/experimental/memory_resource: Likewise.
1690 * include/experimental/numeric: Likewise.
1691 * include/experimental/optional: Likewise.
1692 * include/experimental/propagate_const: Likewise.
1693 * include/experimental/random: Likewise.
1694 * include/experimental/ratio: Likewise.
1695 * include/experimental/regex: Likewise.
1696 * include/experimental/set: Likewise.
1697 * include/experimental/source_location: Likewise.
1698 * include/experimental/string: Likewise.
1699 * include/experimental/string_view: Likewise.
1700 * include/experimental/system_error: Likewise.
1701 * include/experimental/tuple: Likewise.
1702 * include/experimental/type_traits: Likewise.
1703 * include/experimental/unordered_map: Likewise.
1704 * include/experimental/unordered_set: Likewise.
1705 * include/experimental/utility: Likewise.
1706 * include/experimental/vector: Likewise.
1707 * include/ext/bitmap_allocator.h: Likewise.
1708 * include/ext/codecvt_specializations.h: Likewise.
1709 * include/ext/rope: Likewise.
1710 * include/ext/typelist.h: Likewise.
1711 * include/std/chrono: Likewise.
1712 * include/std/complex: Likewise.
1713 * include/std/functional: Likewise.
1714 * include/std/numeric: Likewise.
1715 * include/std/string_view: Likewise.
1716 * include/std/thread: Likewise.
1717 * include/std/variant: Likewise.
1718 * include/tr1/array: Likewise.
1719 * include/tr1/bessel_function.tcc: Likewise.
1720 * include/tr1/beta_function.tcc: Likewise.
1721 * include/tr1/cmath: Likewise.
1722 * include/tr1/complex: Likewise.
1723 * include/tr1/ell_integral.tcc: Likewise.
1724 * include/tr1/exp_integral.tcc: Likewise.
1725 * include/tr1/functional: Likewise.
1726 * include/tr1/functional_hash.h: Likewise.
1727 * include/tr1/gamma.tcc: Likewise.
1728 * include/tr1/hashtable.h: Likewise.
1729 * include/tr1/hashtable_policy.h: Likewise.
1730 * include/tr1/hypergeometric.tcc: Likewise.
1731 * include/tr1/legendre_function.tcc: Likewise.
1732 * include/tr1/modified_bessel_func.tcc: Likewise.
1733 * include/tr1/poly_hermite.tcc: Likewise.
1734 * include/tr1/poly_laguerre.tcc: Likewise.
1735 * include/tr1/random.h: Likewise.
1736 * include/tr1/random.tcc: Likewise.
1737 * include/tr1/regex: Likewise.
1738 * include/tr1/riemann_zeta.tcc: Likewise.
1739 * include/tr1/shared_ptr.h: Likewise.
1740 * include/tr1/special_function_util.h: Likewise.
1741 * include/tr1/tuple: Likewise.
1742 * include/tr1/type_traits: Likewise.
1743 * include/tr1/unordered_map.h: Likewise.
1744 * include/tr1/unordered_set.h: Likewise.
1745 * include/tr1/utility: Likewise.
1746 * include/tr2/bool_set: Likewise.
1747 * include/tr2/bool_set.tcc: Likewise.
1748 * include/tr2/dynamic_bitset: Likewise.
1749 * include/tr2/dynamic_bitset.tcc: Likewise.
1750 * include/tr2/ratio: Likewise.
1751 * include/tr2/type_traits: Likewise.
1752 * src/c++11/chrono.cc: Likewise.
1753 * src/c++11/compatibility-c++0x.cc: Likewise.
1754 * src/c++11/compatibility-chrono.cc: Likewise.
1755 * src/c++11/cxx11-shim_facets.cc: Likewise.
1756 * src/c++11/hashtable_c++0x.cc: Likewise.
1757 * src/c++11/placeholders.cc: Likewise.
1758 * src/c++11/thread.cc: Likewise.
1759 * src/c++98/bitmap_allocator.cc: Likewise.
1760 * src/c++98/hashtable_tr1.cc: Likewise.
1761 * src/c++98/list.cc: Likewise.
1762 * src/shared/hashtable-aux.cc: Likewise.
1763 * testsuite/20_util/duration/literals/range.cc: Adapt line number.
1764 * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise.
1765 * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
1766 * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
1767 * testsuite/20_util/forward/c_neg.cc: Likewise.
1768 * testsuite/20_util/forward/f_neg.cc: Likewise.
1769 * testsuite/26_numerics/gcd/gcd_neg.cc: Likewise.
1770 * testsuite/26_numerics/lcm/lcm_neg.cc: Likewise.
1771 * testsuite/26_numerics/random/pr60037-neg.cc: Likewise.
1772 * python/libstdcxx/v6/printers.py: Adapt.
1774 2017-07-20 Jonathan Wakely <jwakely@redhat.com>
1776 * config/allocator/malloc_allocator_base.h [__SANITIZE_ADDRESS__]
1777 (_GLIBCXX_SANITIZE_STD_ALLOCATOR): Define.
1778 * config/allocator/new_allocator_base.h [__SANITIZE_ADDRESS__]
1779 (_GLIBCXX_SANITIZE_STD_ALLOCATOR): Define.
1780 * doc/xml/manual/using.xml (_GLIBCXX_SANITIZE_VECTOR): Document macro.
1781 * include/bits/stl_vector.h [_GLIBCXX_SANITIZE_VECTOR]
1782 (_Vector_impl::_Asan, _Vector_impl::_Asan::_Reinit)
1783 (_Vector_impl::_Asan::_Grow, _GLIBCXX_ASAN_ANNOTATE_REINIT)
1784 (_GLIBCXX_ASAN_ANNOTATE_GROW, _GLIBCXX_ASAN_ANNOTATE_GREW)
1785 (_GLIBCXX_ASAN_ANNOTATE_SHRINK, _GLIBCXX_ASAN_ANNOTATE_BEFORE_DEALLOC):
1786 Define annotation helper types and macros.
1787 (vector::~vector, vector::push_back, vector::pop_back)
1788 (vector::_M_erase_at_end): Add annotations.
1789 * include/bits/vector.tcc (vector::reserve, vector::emplace_back)
1790 (vector::insert, vector::_M_erase, vector::operator=)
1791 (vector::_M_fill_assign, vector::_M_assign_aux)
1792 (vector::_M_insert_rval, vector::_M_emplace_aux)
1793 (vector::_M_insert_aux, vector::_M_realloc_insert)
1794 (vector::_M_fill_insert, vector::_M_default_append)
1795 (vector::_M_shrink_to_fit, vector::_M_range_insert): Annotate.
1797 2017-07-19 Jonathan Wakely <jwakely@redhat.com>
1800 * include/bits/vector.tcc (vector::_M_range_insert<_InputIterator>):
1801 Only insert elements one-by-one when inserting at the end.
1802 * testsuite/performance/23_containers/insert/81476.cc: New.
1804 2017-07-19 Volker Reichelt <v.reichelt@netcologne.de>
1806 * libsupc++/new (bad_array_new_length): Remove redundant
1807 semicolon after in-class member function definition.
1808 * include/bits/locale_facets.h (ctype_byname, num_put): Likewise.
1809 * include/bits/locale_facets_nonio.h (time_put_byname): Likewise.
1810 * include/bits/random.h (mersenne_twister_engine): Likewise.
1811 * include/tr1/random.h (mersenne_twister): Likewise
1812 * include/ext/random (simd_fast_mersenne_twister_engine): Likewise.
1813 * include/ext/rope (char_producer, _Rope_char_consumer,
1814 _Rope_self_destruct_ptr, _Rope_const_iterator, _Rope_iterator):
1816 * include/ext/ropeimpl.h (_Rope_flatten_char_consumer,
1817 _Rope_insert_char_consumer): Likewise.
1819 2017-07-19 Jonathan Wakely <jwakely@redhat.com>
1821 * include/bits/fstream.tcc (basic_filebuf::xsgetn)
1822 (basic_filebuf::xsputn, basic_filebuf::seekoff): Fix indentation.
1824 * testsuite/util/testsuite_iterators.h: Fix indentation.
1826 * testsuite/27_io/basic_filebuf/sgetn/char/81395.cc: Add dg-require.
1828 2017-07-18 Jonathan Wakely <jwakely@redhat.com>
1831 * include/bits/fstream.tcc (basic_filebuf::xsgetn): Don't set buffer
1832 pointers for write mode after reading.
1833 * testsuite/27_io/basic_filebuf/sgetn/char/81395.cc: New.
1835 2017-07-18 François Dumont <fdumont@gcc.gnu.org>
1837 * include/bits/stl_list.h
1838 (struct _List_node_header): New.
1839 (_List_impl()): Fix noexcept qualification.
1840 (_List_impl(_List_impl&&)): New, default.
1841 (_List_base()): Default.
1842 (_List_base(_List_base&&)): Default.
1843 (_List_base::_M_move_nodes): Adapt to use
1844 _List_node_header._M_move_nodes.
1845 (_List_base::_M_init): Likewise.
1846 (list<>()): Default.
1847 (list<>(list&&)): Default.
1848 (list<>::_M_move_assign(list&&, true_type)): Use _M_move_nodes.
1849 (__distance(_List_const_iterator<>, _List_const_iterator<>,
1850 input_iterator_tag)): Adapt.
1851 * testsuite/23_containers/list/allocator/default_init.cc: New.
1853 2017-07-15 Jonathan Wakely <jwakely@redhat.com>
1855 * include/std/mutex (scoped_lock): Reorder std::adopt_lock_t parameter
1857 * testsuite/30_threads/scoped_lock/cons/1.cc: Reorder arguments.
1858 * testsuite/30_threads/scoped_lock/cons/deduction.cc: Test deduction
1859 with std::adopt_lock_t.
1860 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: Check
1863 2017-07-14 Jason Merrill <jason@redhat.com>
1864 Jonathan Wakely <jwakely@redhat.com>
1866 * include/std/variant (variant::variant(_Tp&&)): Constrain to remove
1867 the constructor for empty variants from the candidate functions
1868 during class template argument deduction.
1869 * testsuite/20_util/variant/deduction.cc: New.
1871 2017-07-11 Jonathan Wakely <jwakely@redhat.com>
1873 * doc/xml/faq.xml: Update several old entries. Improve
1875 * doc/xml/manual/intro.xml: Add anchors to each DR.
1876 * doc/html/*: Regenerate.
1878 2017-07-10 Jonathan Wakely <jwakely@redhat.com>
1880 * testsuite/abi/pr42230.cc: Add header for std::free.
1883 * include/bits/sstream.tcc (basic_stringbuf::overflow)
1884 (basic_stringbuf::basic_stringbuf(const __string_type&, ios::mode))
1885 (basic_stringbuf::str()): Construct new strings with an allocator.
1886 * testsuite/27_io/basic_stringbuf/cons/81381.cc: New.
1889 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
1890 Declare basic_stringbuf to be a friend.
1891 * include/bits/sstream.tcc (basic_stringbuf::overflow)
1892 [_GLIBCXX_USE_CXX11_ABI]: Use unused capacity before reallocating.
1893 * include/std/sstream (basic_stringbuf::__xfer_bufptrs): Update string
1894 length to buffer length.
1895 * testsuite/27_io/basic_stringstream/assign/81338.cc: New.
1897 2017-07-06 Jonathan Wakely <jwakely@redhat.com>
1899 * testsuite/20_util/specialized_algorithms/memory_management_tools/
1901 * testsuite/22_locale/locale/cons/5.cc: Remove redundant restoration
1902 of original environment and free memory.
1904 * testsuite/abi/pr42230.cc: Free memory.
1905 * testsuite/util/testsuite_abi.cc (demangle): Return std::string
1906 instead of pointer that might need freeing.
1907 * testsuite/util/testsuite_abi.h (demangle): Likewise.
1908 * testsuite/util/testsuite_hooks.cc (verify_demangle): Free memory.
1910 * include/bits/uses_allocator.h (__use_alloc(const _Alloc&&)): Add
1911 deleted overload to prevent dangling references to rvalues.
1912 * include/experimental/memory_resource
1913 (polymorphic_allocator::construct): Do not call __use_alloc with
1916 2017-06-27 Tim Shen <timshen@google.com>
1919 * include/std/variant (variant::variant, variant::~variant,
1920 variant::operator=): Implement triviality forwarding for four
1921 special member functions.
1922 * testsuite/20_util/variant/compile.cc: Tests.
1924 2017-06-27 Jonathan Wakely <jwakely@redhat.com>
1927 * testsuite/25_algorithms/sample/81221.cc: Disable except for
1931 * include/bits/stl_algo.h (sample): Qualify with _GLIBCXX_STD_A not
1933 * testsuite/25_algorithms/sample/81221.cc: New.
1935 2017-06-22 Jonathan Wakely <jwakely@redhat.com>
1938 * include/bits/stl_bvector.h (vector<bool>::_M_initialize_value):
1939 Do not pass null pointer to memset.
1941 2017-06-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1945 * include/std/istream:
1946 (__is_convertible_to_basic_istream_test(basic_istream<_Ch, _Up>*)): New.
1947 (__do_is_convertible_to_basic_istream_impl): Likewise.
1948 (__is_convertible_to_basic_istream_impl): Likewise.
1949 (__is_convertible_to_basic_istream): Use the new base.
1950 (__rvalue_istream_type): New.
1951 (operator>>(_Istream&&, _Tp&&)): Use the new helper alias
1952 for the SFINAE check, convert to the helper alias type before
1953 doing the actual extraction.
1954 * include/std/ostream:
1955 (__is_convertible_to_basic_ostream_test(basic_ostream<_Ch, _Up>*)): New.
1956 (__do_is_convertible_to_basic_ostream_impl): Likewise.
1957 (__is_convertible_to_basic_ostream_impl): Likewise.
1958 (__is_convertible_to_basic_ostream): Use the new base.
1959 (__rvalue_ostream_type): New.
1960 (operator<<(_Ostream&&, const _Tp&)): Use the new helper alias
1961 for the SFINAE check, convert to the helper alias type before
1962 doing the actual insertion.
1963 * testsuite/27_io/rvalue_streams-2.cc: Add new tests.
1965 2017-06-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1967 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
1969 2017-06-21 Jonathan Wakely <jwakely@redhat.com>
1972 * configure: Regenerate.
1974 2017-06-20 Uros Bizjak <ubizjak@gmail.com>
1976 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
1978 2017-06-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1980 * testsuite/20_util/variant/index_type.cc: Allow for all ilp32 and
1983 2017-06-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1985 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: Regenerate.
1986 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: Likewise.
1987 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: Likewise.
1988 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: Likewise.
1989 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: Likewise.
1990 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
1992 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: Likewise.
1993 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
1996 2017-06-18 H.J. Lu <hongjiu.lu@intel.com>
1999 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
2001 2017-06-18 Andreas Schwab <schwab@linux-m68k.org>
2004 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
2006 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2008 * testsuite: Remove dg-skip-if, dg-xfail-if, dg-xfail-run-if
2011 2017-06-17 Jonathan Wakely <jwakely@redhat.com>
2014 * testsuite/23_containers/vector/bool/80893.cc: Add { target c++11 }.
2016 2017-06-16 Jonathan Wakely <jwakely@redhat.com>
2018 * include/bits/shared_ptr.h (get_deleter): Add overload matching
2020 * include/bits/shared_ptr_base.h (__shared_ptr): Declare new
2021 get_deleter overload as a friend.
2022 * testsuite/20_util/shared_ptr/misc/get_deleter.cc: New.
2024 2017-06-16 Jakub Jelinek <jakub@redhat.com>
2027 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
2028 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
2029 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
2031 2017-06-16 Jonathan Wakely <jwakely@redhat.com>
2033 * include/bits/locale_conv.h (wbuffer_convert::sync): Fix condition.
2034 * testsuite/22_locale/conversions/buffer/2.cc: New.
2037 * acinclude.m4: Bump libtool_VERSION.
2038 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
2039 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
2040 * config/abi/pre/gnu.ver: Add wstring constructor symbols to
2041 GLIBCXX_3.4.24 version and move random_device::_M_get_entropy() symbol
2042 to new GLIBCXX_3.4.25 version.
2043 * doc/xml/manual/abi.xml: Document new versions.
2044 * doc/html/*: Regenerate.
2045 * testsuite/21_strings/basic_string/cons/char/8.cc: Use base object
2046 constructors to ensure required symbols are exported.
2047 * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise.
2048 * testsuite/util/testsuite_abi.cc: Add new version.
2050 * include/bits/locale_conv.h (wbuffer_convert::_M_put): Add missing
2052 * testsuite/21_strings/basic_string_view/operations/copy/char/1.cc:
2054 * testsuite/21_strings/basic_string_view/operations/copy/wchar_t/1.cc:
2056 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc: Add
2057 missing return statements.
2058 * testsuite/23_containers/unordered_map/modifiers/insert_or_assign.cc:
2060 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
2062 * testsuite/special_functions/14_expint/pr68397.cc: Likewise.
2064 2017-06-16 François Dumont <fdumont@gcc.gnu.org>
2066 * include/bits/stl_bvector.h
2067 (__fill_bvector(_Bit_type*, unsigned int, unsigned int, bool)):
2069 (std::fill(_Bit_iterator, _Bit_iterator, bool)): Adapt.
2070 (_Bvector_impl_data): New.
2071 (_Bvector_impl): Inherits from latter.
2072 (_Bvector_impl(_Bit_alloc_type&&)): Delete.
2073 (_Bvector_impl(_Bvector_impl&&)): New, default.
2074 (_Bvector_base()): Default.
2075 (_Bvector_base(_Bvector_base&&)): Default.
2076 (_Bvector_base::_M_move_data(_Bvector_base&&)): New.
2077 (vector(vector&&, const allocator_type&)): Use latter.
2078 (vector<bool>::operator=(vector&&)): Likewise.
2079 (vector<bool>::vector()): Default.
2080 (vector<bool>::vector(vector&&)): Default.
2081 (vector<bool>::assign(_InputIterator, _InputIterator)): Use
2083 (vector<bool>::assign(initializer_list<bool>)): Likewise.
2084 (vector<bool>::_M_initialize_value(bool)): New.
2085 (vector<bool>(size_type, const bool&, const allocator_type&)): Use
2087 (vector<bool>::_M_initialize_dispatch(_Integer, _Integer, __true_type)):
2089 (vector<bool>::_M_fill_assign(size_t, bool)): Likewise.
2091 2017-06-15 François Dumont <fdumont@gcc.gnu.org>
2093 * src/c++98/tree.cc [!_GLIBCXX_INLINE_VERSION]
2094 (_Rb_tree_rotate_left, _Rb_tree_rotate_right): Delete.
2096 2017-06-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2098 * testsuite: Add dg-require-effective-target pthread to -pthread
2100 Remove explicit target lists from dg-do and dg-options.
2102 * testsuite/30_threads/async/forced_unwind.cc: Remove explit
2103 target list from dg-options.
2104 * testsuite/30_threads/packaged_task/forced_unwind.cc: Likewise.
2106 * 30_threads/shared_mutex/cons/1.cc: Likewise.
2107 Pass -pthread for all targets.
2108 * 30_threads/shared_mutex/try_lock/1.cc: Likewise.
2109 * 30_threads/shared_mutex/try_lock/2.cc: Likewise.
2110 * 30_threads/shared_mutex/unlock/1.cc: Likewise.
2112 * testsuite/30_threads/this_thread/57060.cc: Require c++11 via
2113 dg-require-effective-target.
2115 2017-06-14 Jonathan Wakely <jwakely@redhat.com>
2117 * doc/xml/manual/test.xml: Correct instructions on running tests.
2118 * testsuite/21_strings/basic_string/cons/char/deduction.cc: Adjust to
2119 pass when -D_GLIBCXX_USE_CXX11_ABI=0 added to RUNTESTFLAGS.
2120 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
2122 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Likewise.
2123 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
2124 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
2125 exceptions_failbit.cc: Likewise.
2126 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
2127 exceptions_failbit.cc: Likewise.
2128 * testsuite/27_io/basic_istream/extractors_other/char/
2129 exceptions_null.cc: Likewise.
2130 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
2131 exceptions_null.cc: Likewise.
2132 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
2133 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
2134 * testsuite/27_io/basic_ostream/inserters_other/char/
2135 exceptions_null.cc: Likewise.
2136 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
2137 exceptions_null.cc: Likewise.
2138 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
2140 2017-06-12 Pedro Alves <palves@redhat.com>
2142 * doc/xml/manual/status_cxx2017.xml: Update C++17 constexpr
2144 * doc/html/*: Regenerate.
2146 * include/bits/char_traits.h (_GLIBCXX_ALWAYS_INLINE): Define if
2147 not already defined.
2148 (__cpp_lib_constexpr_char_traits): Uncomment.
2149 (__constant_string_p, __constant_char_array_p): New.
2150 (std::char_traits<char>, std::char_traits<wchar_t>): Add
2151 _GLIBCXX17_CONSTEXPR on compare, length and find and use
2152 __constant_string_p, __constant_char_array_p and
2153 __builtin_constant_p to defer to __gnu_cxx::char_traits at compile
2156 * testsuite/21_strings/char_traits/requirements/
2157 constexpr_functions_c++17.cc: Uncomment
2158 __cpp_lib_constexpr_char_traits tests. Uncomment
2159 test_compare<char>, test_length<char>, test_find<char>,
2160 test_compare<wchar_t>, test_length<wchar_t> and test_find<wchar_t>
2161 static_assert tests.
2163 2017-06-12 François Dumont <fdumont@gcc.gnu.org>
2165 * include/bits/stl_tree.h (_Rb_tree_impl()): Restore _Node_allocator
2167 * testsuite/util/testsuite_allocator.h
2168 (__gnu_test::default_init_allocator<>) New.
2169 * testsuite/23_containers/set/allocator/default_init.cc: New.
2170 * testsuite/23_containers/map/allocator/default_init.cc: New.
2172 2017-06-12 Jonathan Wakely <jwakely@redhat.com>
2175 * src/c++11/thread.cc (execute_native_thread_routine): Remove
2176 try-block so that exceptions propagate out of the thread and terminate
2177 is called by the exception-handling runtime.
2178 (execute_native_thread_routine_compat): Likewise.
2179 * testsuite/30_threads/thread/cons/terminate.cc: New.
2181 2017-06-09 Jonathan Wakely <jwakely@redhat.com>
2183 * doc/xml/manual/intro.xml: Document LWG 2802, 2873 and 2942 changes.
2184 * include/bits/shared_ptr.h (shared_ptr): Use rvalues for deleters
2186 * include/bits/shared_ptr_base.h (_Sp_ebo_helper, _Sp_counted_deleter
2187 (_Sp_counted_deleter::_Impl, __shared_count, __shared_ptr): Likewise.
2188 * testsuite/20_util/shared_ptr/cons/lwg2802.cc: New.
2190 * include/bits/forward_list.h (forward_list): Add deduction guide.
2191 * include/bits/stl_deque.h (deque): Likewise.
2192 * include/bits/stl_list.h (list): Likewise.
2193 * include/bits/stl_vector.h (vector): Likewise.
2194 * testsuite/23_containers/deque/cons/deduction.cc: New.
2195 * testsuite/23_containers/forward_list/cons/deduction.cc: New.
2196 * testsuite/23_containers/list/cons/deduction.cc: New.
2197 * testsuite/23_containers/vector/cons/deduction.cc: New.
2199 2017-06-08 Jonathan Wakely <jwakely@redhat.com>
2202 * include/bits/std_function.h (function::function(function&&))
2203 (function::operator=(funtion&&)): Add noexcept.
2204 * testsuite/20_util/function/assign/move.cc: Check for noexcept.
2205 * testsuite/20_util/function/cons/move.cc: Likewise.
2207 2017-06-07 Jonathan Wakely <jwakely@redhat.com>
2209 * include/bits/regex.h (basic_regex): Add deduction guide from P0433.
2210 * testsuite/28_regex/basic_regex/ctors/deduction.cc: New.
2213 * include/bits/regex.h (basic_regex): Adjust call to __compile_nfa
2214 so iterator type is deduced.
2215 * include/bits/regex_compiler.h (__compile_nfa): Reorder template
2216 parameters to allow iterator type to be deduced.
2217 * testsuite/28_regex/basic_regex/ctors/basic/iter.cc: New.
2219 * include/bits/alloc_traits.h (__is_allocator, _RequireAllocator):
2220 New trait and alias for detecting Allocator-like types.
2221 * include/bits/basic_string.h (basic_string): Add deduction guide
2223 * include/ext/alloc_traits.h (__gnu_cxx::__alloc_traits): Add template
2224 parameter with default template argument that causes substitution
2225 failures for types that cannot be allocators.
2226 * testsuite/21_strings/basic_string/cons/char/deduction.cc: New.
2227 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc: New.
2229 2017-06-02 Jonathan Wakely <jwakely@redhat.com>
2232 * include/std/variant (__erased_ctor, __erased_assign, __erased_swap)
2233 (__erased_hash): Remove constexpr specifier and qualify calls to
2235 (__erased_dtor): Remove constexpr specifier and use _Destroy.
2237 2017-06-05 Jonathan Wakely <jwakely@redhat.com>
2239 * include/bits/stl_iterator_base_funcs.h
2240 (__advance<_RandomAccessIterator, _Distance>): Optimize for next/prev
2241 cases where incrementing or decrementing a single step.
2243 * include/bits/shared_ptr_base.h (__shared_ptr::owner_before)
2244 (__weak_ptr::owner_before, _Sp_owner_less::operator()): Add noexcept
2245 specifiers as per LWG 2873 and LWG 2942.
2246 * testsuite/20_util/owner_less/noexcept.cc: New.
2247 * testsuite/20_util/shared_ptr/observers/owner_before.cc: Test
2248 noexcept guarantees.
2249 * testsuite/20_util/weak_ptr/observers/owner_before.cc: Likewise.
2251 2017-06-03 Andreas Schwab <schwab@linux-m68k.org>
2253 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
2255 2017-06-03 Eric Botcazou <ebotcazou@adacore.com>
2257 * src/filesystem/dir.cc (fs::_Dir::advance): Use std::exchange.
2259 2017-06-02 Jonathan Wakely <jwakely@redhat.com>
2262 * doc/xml/manual/status_cxx2011.xml: Document to_int_type behaviour.
2263 * include/bits/char_traits.h (char_traits<char16_t>::to_int_type):
2264 Transform eof value to U+FFFD.
2265 * testsuite/21_strings/char_traits/requirements/char16_t/eof.cc: New.
2266 * testsuite/27_io/basic_streambuf/sgetc/char16_t/80624.cc: New.
2267 * testsuite/27_io/basic_streambuf/sputc/char16_t/80624.cc: New.
2269 * libsupc++/Makefile.am: Remove custom targets for files that need to
2270 be compiled as C++11 or C++14.
2271 * libsupc++/Makefile.in: Regenerate.
2272 * libsupc++/del_ops.cc: Use pragma to disable -Wsized-deallocation
2274 * libsupc++/del_opvs.cc: Likewise.
2276 2017-06-02 Richard Biener <rguenther@suse.de>
2277 Markus Eisenmann <meisenmann.lba@fh-salzburg.ac.at>
2280 * libsupc++/eh_alloc.cc (pool::free): Keep list properly
2281 sorted and add missing freelist item merging cases.
2283 2017-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2285 (GLIBCXX_CROSSCONFIG): Handle *-solaris* like *-linux* etc.
2286 Remove *-solaris* section.
2287 * configure: Regenerate.
2289 2017-05-31 Jonathan Wakely <jwakely@redhat.com>
2292 * include/bits/stl_bvector.h (vector<bool>::_M_initialize): Avoid
2293 null pointer dereference when size is zero.
2294 * testsuite/23_containers/vector/bool/80893.cc: New.
2295 * testsuite/util/testsuite_allocator.h (PointerBase::PointerBase):
2296 Add non-explicit constructor from nullptr.
2297 (PointerBase::derived() const): Add const-qualified overload.
2299 2017-05-20 Tim Shen <timshen@google.com>
2302 * include/std/variant(variant::variant): SFINAE on is_same first.
2303 * testsuite/20_util/variant/any.cc: test case.
2305 2017-05-24 Jonathan Wakely <jwakely@redhat.com>
2307 * src/c++11/random.cc (random_device::_M_getentropy): Use __CHAR_BIT__
2308 instead of fixed number of bits.
2310 2017-05-24 Andreas Schwab <schwab@suse.de>
2312 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
2313 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Likewise.
2315 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
2316 Jonathan Wakely <jwakely@redhat.com>
2319 * acinclude.m4: Bump libtool_VERSION.
2320 * config/abi/pre/gnu.ver: Create GLIBCXX_3.4.24 with new symbol.
2321 * config.h.in: Regenerate.
2322 * configure: Regenerate.
2323 * configure.ac: Add test for <linux/random.h>.
2324 * doc/xml/manual/abi.xml: Document new library version.
2325 * include/bits/random.h (random_device::entropy)
2326 [_GLIBCXX_USE_RANDOM_TR1]: Add call to new _M_getentropy member.
2327 (random_device::_M_getentropy): Declare.
2328 * src/c++11/random.cc (random_device::_M_getentropy): Define.
2329 * testsuite/util/testsuite_abi.cc: Add GLIBCXX_3.4.24 to known
2330 versions, and make it the latest version.
2332 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
2335 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Add
2336 explicit conversion to avoid signed overflow.
2338 2017-05-19 Jonathan Wakely <jwakely@redhat.com>
2341 * include/bits/stl_algo.h (search): Add new overload for C++17.
2342 * testsuite/25_algorithms/search/searcher.cc: New.
2344 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
2347 * include/std/functional (_Mem_fn_traits_base): Add specializations
2348 for noexcept member function types.
2349 * testsuite/20_util/function_objects/mem_fn/80478.cc: New test.
2351 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
2353 * doc/xml/manual/policy_data_structures.xml: Fix typo.
2354 * doc/xml/manual/test_policy_data_structures.xml: Likewise.
2355 * doc/html/*: Regenerate.
2357 * doc/xml/manual/abi.xml: Document latest library versions.
2358 * doc/xml/manual/build_hacking.xml: Document requirement to update
2359 abi.xml when bumping library versions.
2360 * doc/html/*: Regenerate.
2362 2017-05-17 Jonathan Wakely <jwakely@redhat.com>
2364 * include/bits/refwrap.h: Fix Doxygen warning.
2365 * include/bits/specfun.h: Likewise.
2366 * include/bits/std_function.h: Likewise.
2367 * include/bits/stl_algo.h (set_union, set_intersection)
2368 (set_difference, set_symmetric_difference): Add Doxygen @param tags
2369 for output iterator parameters.
2370 * include/bits/stl_iterator.h (inserter): Add Doxygen @param tag for
2372 * include/std/mutex (try_lock, lock): Change Mutex to Lockable in
2375 2017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
2377 Implement new C++ intrinsics __is_assignable and __is_constructible.
2378 * include/std/type_traits (__do_is_static_castable_impl): Remove.
2379 (__is_static_castable_impl, __is_static_castable_safe): Likewise.
2380 (__is_static_castable, __do_is_direct_constructible_impl): Likewise.
2381 (__is_direct_constructible_impl): Likewise.
2382 (__is_direct_constructible_new_safe): Likewise.
2383 (__is_base_to_derived_ref, __is_lvalue_to_rvalue_ref): Likewise.
2384 (__is_direct_constructible_ref_cast): Likewise.
2385 (__is_direct_constructible_new, __is_direct_constructible): Likewise.
2386 (__do_is_nary_constructible_impl): Likewise.
2387 (__is_nary_constructible_impl, __is_nary_constructible): Likewise.
2388 (__is_constructible_impl): Likewise.
2389 (is_constructible): Call the intrinsic.
2390 (__is_assignable_helper): Remove.
2391 (is_assignable): Call the intrinsic.
2392 (is_trivially_constructible): Likewise.
2393 (__is_trivially_copy_constructible_impl): New.
2394 (is_trivially_copy_constructible): Use it.
2395 (__is_trivially_move_constructible_impl): New.
2396 (is_trivially_move_constructible): Use it.
2397 (is_trivially_assignable): Call the intrinsic.
2398 (__is_trivially_copy_assignable_impl): New.
2399 (is_trivially_copy_assignable): Use it.
2400 (__is_trivially_move_assignable_impl): New.
2401 (is_trivially_move_assignable): Use it.
2402 (testsuite/20_util/declval/requirements/1_neg.cc): Adjust.
2403 (testsuite/20_util/is_trivially_copy_assignable/value.cc):
2405 (testsuite/20_util/is_trivially_copy_constructible/value.cc): Likewise.
2406 (testsuite/20_util/is_trivially_move_assignable/value.cc): Likewise.
2407 (testsuite/20_util/is_trivially_move_constructible/value.cc): Likewise.
2408 (testsuite/20_util/make_signed/requirements/typedefs_neg.cc): Adjust.
2409 (testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc):
2412 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
2414 * testsuite/experimental/source_location/1.cc: Change expected result
2415 for source_location::current() used in default member initializer.
2417 * doc/xml/manual/status_cxx2017.xml: Update status table.
2418 * doc/html/*: Regenerate.
2419 * include/Makefile.am: Add new header.
2420 * include/Makefile.in: Regenerate.
2421 * include/experimental/source_location: New header implementing N4519.
2422 * testsuite/experimental/source_location/1.cc: New test.
2425 * include/bits/shared_ptr_base.h [!__cpp_rtti] (type_info): Declare
2426 outside versioned namespace.
2428 * configure: Regenerate.
2430 2017-05-16 Marc Glisse <marc.glisse@inria.fr>
2432 * include/std/optional (_Optional_base::_M_get): Check precondition.
2433 * testsuite/20_util/optional/cons/value_neg.cc: Update line numbers.
2435 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
2437 * doc/xml/manual/appendix_contributing.xml: Link to test docs and
2438 note higher DejaGnu version requirement.
2439 * doc/html/*: Regenerate.
2441 * doc/xml/manual/appendix_contributing.xml: Link to the list of bad
2443 * doc/html/*: Regenerate.
2445 2017-05-15 Jonathan Wakely <jwakely@redhat.com>
2448 * include/bits/node_handle.h (_Node_insert_return): Reorder members.
2449 (tuple_size, tuple_element): Remove partial specializations.
2450 * include/bits/stl_tree.h (_Rb_tree::insert_return_type): Use
2451 const_iterator for std::set.
2452 * testsuite/23_containers/map/modifiers/extract.cc: New.
2453 * testsuite/23_containers/set/modifiers/extract.cc: New.
2454 * testsuite/23_containers/unordered_map/modifiers/extract.cc: New.
2455 * testsuite/23_containers/unordered_set/modifiers/extract.cc: New.
2457 2017-05-12 Jonathan Wakely <jwakely@redhat.com>
2460 * include/std/utility (tuple_size<cv T>): Only define partial
2461 specializations when tuple_size<T>::value is valid.
2462 * testsuite/20_util/tuple/78939.cc: New.
2463 * testsuite/20_util/tuple/cv_tuple_size_neg.cc: New.
2465 2017-05-11 François Dumont <fdumont@gcc.gnu.org>
2467 * include/bits/stl_tree.h [_GLIBCXX_INLINE_VERSION]
2468 (_Rb_tree_impl<>): Remove _Is_pod_comparator
2471 * include/debug/formatter.h [_GLIBCXX_INLINE_VERSION]
2472 (__gnu_debug::_Error_formatter::_Parameter::_M_print_field): Remove.
2473 (__gnu_debug::_Error_formatter::_Parameter::_M_print_description):
2475 (__gnu_debug::_Error_formatter::_M_format_word): Remove.
2476 (__gnu_debug::_Error_formatter::_M_print_word): Remove.
2477 (__gnu_debug::_Error_formatter::_M_print_string): Remove.
2478 (__gnu_debug::_Error_formatter::_M_get_max_length): Remove.
2479 * src/c++11/debug.cc: Adapt.
2480 * config/abi/pre/gnu-versioned-namespace.ver: Adapt.
2482 2017-05-11 Jonathan Wakely <jwakely@redhat.com>
2484 * doc/xml/manual/allocator.xml: Fix ViewCVS URLs.
2485 * doc/xml/manual/mt_allocator.xml: Likewise.
2486 * doc/html/*: Regenerate.
2489 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Define
2490 function to get unique fake std::type_info reference.
2491 (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Compare to
2492 _S_ti() fake reference.
2493 (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Share
2494 single implementation with or without RTTI enable.
2495 [!__cpp_rtti]: Pass fake reference to _M_get_deleter.
2496 * testsuite/20_util/shared_ptr/creation/alloc.cc: Change expected
2497 allocation and deallocation counts.
2498 * testsuite/20_util/shared_ptr/creation/single_allocation.cc: New.
2499 * testsuite/20_util/shared_ptr/creation/single_allocation_no_rtti.cc:
2502 2017-05-10 François Dumont <fdumont@gcc.gnu.org>
2504 Bump version namespace.
2505 * config/abi/pre/gnu-versioned-namespace.ver: Bump version namespace
2506 from __7 to __8. Bump GLIBCXX_7.0 to GLIBCXX_8.0.
2507 * acinclude.m4 (libtool_VERSION): Bump to 8:0:0.
2508 * include/bits/c++config: Adapt.
2509 * include/bits/regex.h: Adapt.
2510 * include/experimental/bits/fs_fwd.h: Adapt.
2511 * include/experimental/bits/lfts_config.h: Adapt.
2512 * include/std/variant: Adapt.
2513 * python/libstdcxx/v6/printers.py: Adapt.
2514 * testsuite/libstdc++-prettyprinters/48362.cc: Adapt.
2516 * include/bits/stl_algobase.h (std::__iter_swap<false>): Remove
2517 _GLIBCXX_MOVE usage.
2519 2017-05-09 Jason Merrill <jason@redhat.com>
2521 * testsuite/24_iterators/container_access.cc (test03): Make il3 static.
2523 2017-05-08 Jonathan Wakely <jwakely@redhat.com>
2525 * include/std/optional: Use a separate static_assert per condition.
2526 * testsuite/20_util/optional/cons/value_neg.cc: Update dg-error line
2529 * doc/xml/manual/mt_allocator.xml: Clarify deallocation behaviour.
2530 * doc/html/*: Regenerate.
2532 2017-05-02 Hugo Beauzée-Luyssen <hugo@beauzee.fr>
2535 * config/os/mingw32-w64/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
2537 2017-04-29 François Dumont <fdumont@gcc.gnu.org>
2539 * testsuite/libstdc++-prettyprinters/48362.cc: Replace a regexp-test
2542 2017-04-28 Jonathan Wakely <jwakely@redhat.com>
2545 * include/bits/stl_construct.h (_Destroy, _Destroy_n): Add static
2546 assertions to ensure type is destructible.
2547 (destroy_at, destroy, destroy_n): Move from stl_uninitialized.h.
2548 * include/bits/stl_uninitialized.h (destroy_at, destroy, destroy_n):
2549 Move to stl_construct.h.
2550 * testsuite/20_util/specialized_algorithms/memory_management_tools/
2551 destroy_neg.cc: New test.
2552 * testsuite/23_containers/vector/cons/destructible_neg.cc: New test.
2554 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
2555 superfluous "" in dg-error.
2557 2017-04-28 Tom de Vries <tom@codesourcery.com>
2559 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
2560 superfluous '{ target *-*-* }' in dg-(error|warning|message|bogus).
2562 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
2564 * include/ext/pb_ds/detail/list_update_map_/iterators_fn_imps.hpp
2565 (PB_DS_CLASS_C_DEC::end()): Remove redundant const in cast type.
2566 * testsuite/util/testsuite_rng.h (twister_rand_gen::get_prob()):
2569 2017-04-26 Jonathan Wakely <jwakely@redhat.com>
2571 * testsuite/23_containers/deque/allocator/move_assign-2.cc: Improve
2572 comment. Ensure first test works because allocator type propagates and
2573 not because is_always_equal is true.
2574 * testsuite/23_containers/vector/52591.cc: Likewise. Restore original
2575 testcase that instantiates the move-assignment operator.
2577 2017-04-24 Jonathan Wakely <jwakely@redhat.com>
2580 * include/bits/random.tcc (gamma_distribution::operator()): Fix magic
2581 number used in loop condition.
2584 * include/bits/refwrap.h (ref, cref): Qualify calls.
2585 * testsuite/20_util/reference_wrapper/80504.cc: New test.
2588 * include/experimental/optional (optional::swap): Fix exception
2591 2017-04-21 Jonathan Wakely <jwakely@redhat.com>
2594 * include/std/future (_State_baseV2::_Setter::operator()): Remove
2595 _S_check calls that are done after the pointer to the shared state is
2596 already dereferenced.
2597 (_State_baseV2::_Setter<_Res, void>): Define specialization for void
2598 as partial specialization so it can be defined within the definition
2600 (_State_baseV2::__setter): Call _S_check.
2601 (_State_baseV2::__setter(promise<void>*)): Add overload for use by
2602 promise<void>::set_value and promise<void>::set_value_at_thread_exit.
2603 (promise<T>, promise<T&>, promise<void>): Make _State a friend.
2604 (_State_baseV2::_Setter<void, void>): Remove explicit specialization.
2605 (promise<void>::set_value, promise<void>::set_value_at_thread_exit):
2606 Use new __setter overload.
2607 * testsuite/30_threads/promise/members/at_thread_exit2.cc: New test.
2608 * testsuite/30_threads/promise/members/set_exception.cc: Test
2609 promise<T&> and promise<void> specializations.
2610 * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
2611 Test for no_state error condition.
2612 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
2614 * include/backward/auto_ptr.h: Ignore deprecated warnings from use
2616 * include/bits/shared_ptr.h: Likewise.
2617 * include/bits/shared_ptr_base.h: Likewise.
2618 * include/bits/unique_ptr.h: Likewise.
2619 * libstdc++-v3/testsuite/20_util/default_delete/48631_neg.cc: Adjust
2621 * libstdc++-v3/testsuite/20_util/default_delete/void_neg.cc: Likewise.
2622 * libstdc++-v3/testsuite/20_util/unique_ptr/assign/48635_neg.cc:
2624 * libstdc++-v3/testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc:
2627 2017-04-20 Edward Smith-Rowland <3dw4rd@verizon.net>
2629 PR libstdc++/68397 std::tr1::expint fails ... long double arguments.
2630 * include/tr1/exp_integral.tcc: Increase iteration limits.
2631 * testsuite/tr1/5_numerical_facilities/special_functions/15_expint/
2632 pr68397.cc: New test.
2633 * testsuite/special_functions/14_expint/pr68397.cc: New test.
2635 2017-04-20 Jonathan Wakely <jwakely@redhat.com>
2638 * include/std/atomic [!_GLIBCXX_USE_C99_STDINT_TR1] (atomic_int8_t)
2639 (atomic_uint8_t, atomic_int16_t, atomic_uint16_t, atomic_int32_t,
2640 (atomic_uint32_t, atomic_int64_t, atomic_uint64_t)
2641 (atomic_int_least8_t, atomic_uint_least8_t, atomic_int_least16_t)
2642 (atomic_uint_least16_t, atomic_int_least32_t, atomic_uint_least32_t)
2643 (atomic_int_least64_t, atomic_uint_least64_t, atomic_int_fast8_t)
2644 (atomic_uint_fast8_t, atomic_int_fast16_t, atomic_uint_fast16_t)
2645 (atomic_int_fast32_t, atomic_uint_fast32_t, atomic_int_fast64_t)
2646 (atomic_uint_fast64_t, atomic_intmax_t, atomic_uintmax_t): Don't
2649 2017-04-19 Jonathan Wakely <jwakely@redhat.com>
2651 * doc/xml/manual/abi.xml: Rephrase one of the references to the
2653 * doc/xml/manual/test.xml: Document DejaGnu 1.5.3 requirement.
2654 * doc/html/*: Regenerate.
2656 * libsupc++/new: Update comment on #endif directive.
2659 * include/experimental/bits/fs_dir.h (directory_iterator)
2660 (recursive_directory_iterator): Remove noexcept from defaulted
2664 * include/std/type_traits (is_aggregate): Change __has_builtin checks.
2665 * libsupc++/new (launder): Likewise.
2667 2017-04-18 Jonathan Wakely <jwakely@redhat.com>
2669 * include/std/functional (default_searcher, __boyer_moore_array_base)
2670 (__is_std_equal_to, __boyer_moore_base_t, boyer_moore_searcher)
2671 (boyer_moore_horspool_searcher): Remove redundant namespace
2673 (default_searcher::operator()): Construct return value early and
2674 advance second member in-place.
2675 (boyer_moore_horspool_searcher::operator()): Increment random access
2676 iterator directly instead of using std::next.
2677 (boyer_moore_searcher::operator()): Fix return value.
2678 * testsuite/20_util/function_objects/searchers.cc: Check both parts
2681 2017-04-12 Gerald Pfeifer <gerald@pfeifer.com>
2683 * doc/xml/faq.xml: Update reference link to C++ ABI for Itanium.
2684 * doc/xml/manual/abi.xml. Ditto (thrice).
2686 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
2688 * doc/xml/manual/status_cxx2017.xml: Remove duplicate table entry.
2689 * doc/html/*: Regenerate.
2691 * testsuite/20_util/reference_wrapper/invoke.cc: Uncomment tests
2692 that no longer fail.
2694 * include/bits/ios_base.h: Correct comment.
2695 * testsuite/util/testsuite_hooks.h: Likewise.
2697 * doc/xml/manual/status_cxx2017.xml: Update C++17 status table.
2698 * doc/xml/manual/appendix_contributing.xml (contrib.organization): Add
2699 directories for debug, parallel and profile headers.
2700 * doc/html/*: Regenerate.
2702 * include/bits/char_traits.h (__gnu_cxx::char_traits): Add
2703 _GLIBCXX14_CONSTEXPR on assign, compare, find, and length.
2704 (std::char_traits<char>, std::char_traits<wchar_t>): Add
2705 _GLIBCXX17_CONSTEXPR on assign.
2706 (std::char_traits<char16_t>, std::char_traits<char32_t>): Add
2707 _GLIBCXX17_CONSTEXPR on assign, compare, find, and length.
2708 * testsuite/21_strings/char_traits/requirements/
2709 constexpr_functions_c++17.cc: New test.
2711 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
2714 * include/bits/stl_pair.h (__nonesuch_no_braces): New.
2715 (operator=(typename conditional<
2716 __and_<is_copy_assignable<_T1>,
2717 is_copy_assignable<_T2>>::value,
2718 const pair&, const __nonesuch&>::type)): Change __nonesuch
2719 to __nonesuch_no_braces.
2720 (operator=(typename conditional<
2721 __not_<__and_<is_copy_assignable<_T1>,
2722 is_copy_assignable<_T2>>>::value,
2723 const pair&, const __nonesuch&>::type)): Likewise.
2724 (operator=(typename conditional<
2725 __and_<is_move_assignable<_T1>,
2726 is_move_assignable<_T2>>::value,
2727 pair&&, __nonesuch&&>::type)): Likewise.
2728 * testsuite/20_util/pair/79141.cc: New.
2730 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
2732 Implement std::is_aggregate.
2733 * include/std/type_traits (is_aggregate, is_aggregate_v): New.
2734 * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc:
2736 * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise.
2737 * testsuite/20_util/is_aggregate/value.cc: Likewise.
2739 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
2741 Adjust optional's pretty printer for LWG 2900.
2742 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter.__init__):
2743 Look at the nested payload in case of non-experimental optional.
2745 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
2747 Implement LWG 2900, The copy and move constructors
2748 of optional are not constexpr.
2749 * include/std/optional (_Optional_payload): New.
2750 (_Optional_base): Remove the bool parameter.
2751 (_Optional_base<_Tp, false>): Remove.
2752 (_Optional_base()): Adjust.
2753 (_Optional_base(nullopt_t)): Likewise.
2754 (_Optional_base(in_place_t, _Args&&...)): Likewise.
2755 (_Optional_base(in_place_t, initializer_list<_Up>, _Args&&...)):
2757 (_Optional_base(const _Optional_base&)): Likewise.
2758 (_Optional_base(_Optional_base&&)): Likewise.
2759 (operator=(const _Optional_base&)): Likewise.
2760 (operator=(_Optional_base&&)): Likewise.
2761 (~_Optional_base()): Remove.
2762 (_M_is_engaged()): Adjust.
2763 (_M_get()): Likewise.
2764 (_M_construct(_Args&&...)): Likewise.
2765 (_M_destruct()): Likewise.
2766 (_M_reset()): Likewise.
2767 (_Optional_base::_Empty_byte): Remove.
2768 (_Optional_base::_M_empty): Remove.
2769 (_Optional_base::_M_payload): Adjust.
2770 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
2771 * testsuite/20_util/optional/constexpr/cons/value.cc: Add tests.
2773 2017-03-28 Jonathan Wakely <jwakely@redhat.com>
2776 * include/bits/random.tcc (generate_canonical): Use std::nextafter
2777 or numeric_limits::epsilon() to reduce out-of-range values.
2778 * testsuite/26_numerics/random/uniform_real_distribution/operators/
2779 64351.cc: Verify complexity requirement is met.
2781 * doc/xml/manual/abi.xml: Add xml:id anchor.
2782 * doc/xml/manual/using.xml (manual.intro.using.macros): Document
2783 _GLIBCXX_RELEASE. Link to new anchor for __GLIBCXX__ notes.
2784 (concurrency.io.structure): Add markup.
2785 * doc/html/*: Regenerate.
2788 * include/bits/shared_ptr_base.h
2789 (__shared_ptr::_M_enable_shared_from_this_with): Change parameters to
2790 non-const and then use remove_cv to get unqualified type.
2791 * testsuite/20_util/enable_shared_from_this/members/const.cc: Don't
2792 cast away constness on object created const.
2793 * testsuite/20_util/shared_ptr/cons/80229.cc: New test.
2795 2017-03-26 Markus Trippelsdorf <markus@trippelsdorf.de>
2798 * include/bits/stl_tree.h:
2799 (_Rb_tree_header::_M_move_data(_Rb_tree_header&)): Also save _M_color.
2801 2017-03-23 Jonathan Wakely <jwakely@redhat.com>
2803 * testsuite/23_containers/array/tuple_interface/
2804 tuple_element_debug_neg.cc: Adjust dg-error.
2805 * testsuite/23_containers/list/operations/78389.cc: Fix less-than to
2806 define a valid strict weak ordering.
2807 * testsuite/23_containers/priority_queue/67085.cc: Disable test for
2808 Debug Mode, due to debug checks making extra copies of predicate.
2809 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
2812 * doc/xml/faq.xml: Add link.
2813 * doc/xml/manual/backwards_compatibility.xml: Remove outdated
2814 information on pre-ISO headers. Replace broken link to C++ FAQ Lite.
2815 * doc/xml/manual/io.xml: Update broken link.
2816 * doc/html/*: Regenerate.
2818 2017-03-23 Daniel Kruegler <daniel.kruegler@gmail.com>
2820 Implement LWG 2686, Why is std::hash specialized for error_code,
2821 but not error_condition?
2822 * include/std/system_error (hash<error_condition>): Define for C++17.
2823 * testsuite/20_util/hash/operators/size_t.cc (hash<error_condition>):
2824 Instantiate test for error_condition.
2825 * testsuite/20_util/hash/requirements/explicit_instantiation.cc
2826 (hash<error_condition>): Instantiate hash<error_condition>.
2828 * include/bits/c++config (_GLIBCXX17_INLINE): Define.
2829 * include/bits/regex_constants.h (All std::regex_constants constants):
2830 Add _GLIBCXX17_INLINE as per P0607R0.
2831 * include/bits/std_mutex.h (defer_lock, try_to_lock, adopt_lock):
2833 * include/bits/stl_pair.h (piecewise_construct): Likewise.
2834 * include/bits/uses_allocator.h (allocator_arg, uses_allocator_v)
2835 (__is_uses_allocator_constructible_v)
2836 (__is_nothrow_uses_allocator_constructible_v): Likewise.
2837 * include/std/chrono (treat_as_floating_point_v): Likewise.
2838 * include/std/functional (is_bind_expression_v, is_placeholder_v):
2840 * include/std/optional (nullopt): Likewise.
2841 * include/std/ratio (ratio_equal_v, ratio_not_equal_v, ratio_less_v)
2842 ratio_less_equal_v, ratio_greater_v, ratio_greater_equal_v): Likewise.
2843 * include/std/system_error (is_error_code_enum_v)
2844 (is_error_condition_enum_v): Likewise.
2845 * include/std/tuple (tuple_size_v, ignore): Likewise.
2846 (ignore): Declare ignore constexpr as per LWG 2773, declare assignment
2847 constexpr as per LWG 2933.
2848 * include/std/type_traits (All variable templates): Add
2849 _GLIBCXX17_INLINE as per P0607R0.
2850 * include/std/variant (variant_size_v, variant_npos, __index_of_v)
2851 (__tuple_count_v, __exactly_once): Likewise.
2852 * testsuite/18_support/headers/new/synopsis.cc
2853 (hardware_destructive_interference_size)
2854 (hardware_constructive_interference_size): Likewise for commented-out
2856 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Add new
2857 test function for constexpr std::ignore (LWG 2773).
2858 * testsuite/20_util/tuple/creation_functions/constexpr_cpp14.cc: New
2861 2017-03-22 Jonathan Wakely <jwakely@redhat.com>
2863 * include/bits/shared_ptr.h (shared_ptr, weak_ptr): Add deduction
2865 * include/bits/std_function.h (function): Likewise.
2866 * include/bits/stl_pair.h (pair): Likewise.
2867 * include/debug/array (__gnu_debug::array): Likewise.
2868 * include/std/array (array): Likewise.
2869 * include/std/functional (make_default_searcher)
2870 (make_boyer_moore_searcher, make_boyer_moore_horspool_searcher):
2871 Remove generator functions.
2872 * include/std/tuple (tuple): Add deduction guides.
2873 * include/std/valarray (valarray): Likewise.
2874 * testsuite/20_util/function_objects/searchers.cc: Adjust to use
2875 class template argument deduction instead of generator functions.
2876 * testsuite/20_util/function/cons/deduction.cc: New test.
2877 * testsuite/20_util/optional/cons/deduction_guide.cc: Rename to ...
2878 * testsuite/20_util/optional/cons/deduction.cc: ... here.
2879 * testsuite/20_util/pair/cons/deduction.cc: New test.
2880 * testsuite/20_util/shared_ptr/cons/deduction.cc: New test.
2881 * testsuite/20_util/tuple/cons/deduction.cc: New test.
2882 * testsuite/20_util/tuple/element_access/get_neg.cc: Adjust dg-error.
2883 * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: New test.
2884 * testsuite/20_util/weak_ptr/cons/deduction.cc: New test.
2885 * testsuite/23_containers/array/cons/deduction.cc: New test.
2886 * testsuite/23_containers/array/cons/deduction_neg.cc: New test.
2887 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
2889 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise.
2890 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
2892 * testsuite/26_numerics/valarray/deduction.cc: New test.
2893 * testsuite/30_threads/lock_guard/cons/deduction.cc: New test.
2894 * testsuite/30_threads/scoped_lock/cons/deduction.cc: New test.
2895 * testsuite/30_threads/unique_lock/cons/deduction.cc: New test.
2897 2017-03-20 François Dumont <fdumont@gcc.gnu.org>
2899 * include/bits/stl_deque.h (deque): Access allocator value_type only if
2900 concept checks are enabled.
2901 * include/bits/stl_stack.h (stack): Likewise.
2902 * include/bits/stl_vector.h (vector): Likewise.
2903 * include/bits/stl_list.h (list): Likewise and check
2904 _SGIAssignableConcept only in C++03.
2905 * include/bits/stl_map.h (map): Likewise.
2906 * include/bits/stl_set.h (set): Likewise.
2907 * include/bits/stl_multimap.h (multimap): Likewise.
2908 * include/bits/stl_multiset.h (multiset): Likewise.
2909 * include/bits/stl_queue.h (queue, priority_queue): Likewise.
2911 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
2913 * doc/xml/manual/appendix_contributing.xml: Convert link to
2915 Update link to the C++ standard at ansi.org.
2917 * doc/xml/faq.xml: Remove information redundant with the above;
2918 instead add a reference.
2920 2017-03-17 Jonathan Wakely <jwakely@redhat.com>
2922 * src/c++11/codecvt.cc (range): Add non-type template parameter and
2923 define oerloaded operators for reading and writing code units.
2924 (range<Elem, false>): Define partial specialization for accessing
2925 wide characters in potentially unaligned byte ranges.
2926 (ucs2_span(const char16_t*, const char16_t*, ...))
2927 (ucs4_span(const char16_t*, const char16_t*, ...)): Change parameters
2928 to range<const char16_t, false> in order to avoid unaligned reads.
2929 (__codecvt_utf16_base<char16_t>::do_out)
2930 (__codecvt_utf16_base<char32_t>::do_out)
2931 (__codecvt_utf16_base<wchar_t>::do_out): Use range specialization for
2932 unaligned data to avoid unaligned writes.
2933 (__codecvt_utf16_base<char16_t>::do_in)
2934 (__codecvt_utf16_base<char32_t>::do_in)
2935 (__codecvt_utf16_base<wchar_t>::do_in): Likewise for writes. Return
2936 error if there are unprocessable trailing bytes.
2937 (__codecvt_utf16_base<char16_t>::do_length)
2938 (__codecvt_utf16_base<char32_t>::do_length)
2939 (__codecvt_utf16_base<wchar_t>::do_length): Pass arguments of type
2940 range<const char16_t, false> to span functions.
2941 * testsuite/22_locale/codecvt/codecvt_utf16/misaligned.cc: New test.
2943 2017-03-16 Jonathan Wakely <jwakely@redhat.com>
2946 * src/c++11/codecvt.cc (to_integer(codecvt_mode)): Fix target type.
2949 * src/c++11/codecvt.cc (__codecvt_utf16_base<wchar_t>::do_out)
2950 (__codecvt_utf16_base<wchar_t>::do_in): Convert char arguments to
2951 char16_t to work with UTF-16 instead of UTF-8.
2952 * testsuite/22_locale/codecvt/codecvt_utf16/80041.cc: New test.
2954 * src/c++11/codecvt.cc (codecvt<char16_t, char, mbstate_t>)
2955 (codecvt<char32_t, char, mbstate_t>, __codecvt_utf8_base<char16_t>)
2956 (__codecvt_utf8_base<char32_t>, __codecvt_utf8_base<wchar_t>)
2957 (__codecvt_utf16_base<char16_t>, __codecvt_utf16_base<char32_t>)
2958 (__codecvt_utf16_base<wchar_t>, __codecvt_utf8_utf16_base<char16_t>)
2959 (__codecvt_utf8_utf16_base<char32_t>)
2960 (__codecvt_utf8_utf16_base<wchar_t>): Fix do_encoding() and
2961 do_max_length() return values.
2962 * testsuite/22_locale/codecvt/codecvt_utf16/members.cc: New test.
2963 * testsuite/22_locale/codecvt/codecvt_utf8/members.cc: New test.
2964 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/members.cc: New test.
2967 * include/bits/locale_conv.h (__do_str_codecvt): Set __count on
2969 * src/c++11/codecvt.cc (operator&=, operator|=, operator~): Overloads
2970 for manipulating codecvt_mode values.
2971 (read_utf16_bom): Compare input to BOM constants instead of integral
2972 constants that depend on endianness. Take mode parameter by
2973 reference and adjust it, to distinguish between no BOM present and
2974 UTF-16BE BOM present.
2975 (ucs4_in, ucs2_span, ucs4_span): Adjust calls to read_utf16_bom.
2976 (surrogates): New enumeration type.
2977 (utf16_in, utf16_out): Add surrogates parameter to choose between
2978 UTF-16 and UCS2 behaviour.
2979 (utf16_span, ucs2_span): Use std::min not std::max.
2980 (ucs2_out): Use std::min not std::max. Disallow surrogate pairs.
2981 (ucs2_in): Likewise. Adjust calls to read_utf16_bom.
2982 * testsuite/22_locale/codecvt/codecvt_utf16/79980.cc: New test.
2983 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: New test.
2986 * src/c++11/codecvt.cc (write_utf16_code_point): Don't write 0xffff
2987 as a surrogate pair.
2988 (__codecvt_utf8_utf16_base<char32_t>::do_in): Use native endianness
2989 for internal representation.
2990 (__codecvt_utf8_utf16_base<wchar_t>::do_in): Likewise.
2991 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/79511.cc: New test.
2994 * include/bits/stl_heap.h (__is_heap, push_heap, __adjust_heap)
2995 (pop_heap, make_heap, sort_heap, is_heap_until, is_heap): Cope with
2996 invalid instantiations using function types for _Compare argument.
2997 * testsuite/25_algorithms/make_heap/80064.cc: New test.
3000 * python/libstdcxx/v6/printers.py (find_type): Avoid gdb.Type.name
3001 for GDB 7.6 compatibility, use gdb.Type.unqualified instead.
3003 2017-03-15 Ville Voutilainen <ville.voutilainen@gmail.com>
3005 Implement LWG 2857, {variant,optional,any}::emplace should
3006 return the constructed value.
3007 * include/std/any (emplace(_Args&&...)): Change the return type and
3008 return a reference to the constructed value.
3009 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
3010 * include/std/optional (emplace(_Args&&...)): Likewise.
3011 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
3012 * include/std/variant (emplace<_Tp>(_Args&&...)): Likewise.
3013 (emplace<_Tp>(initializer_list<_Up>, _Args&&...)): Likewise.
3014 (emplace<_Np>(_Args&&...)): Likewise.
3015 (emplace<_Np>(initializer_list<_Up>, _Args&&...)): Likewise.
3016 * testsuite/20_util/any/assign/emplace.cc: Add tests for
3017 checking the return value of emplace.
3018 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust.
3019 * testsuite/20_util/optional/assignment/6.cc: Add tests for
3020 checking the return value of emplace.
3021 * testsuite/20_util/variant/run.cc: Likewise.
3023 2017-03-15 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
3026 * include/ext/pb_ds/qdetail/binary_heap_/binary_heap_.hpp
3028 (push_heap): Remove the wrong checking using is_heap.
3029 (make_heap): Remove the assertion using is_heap.
3030 * include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp
3032 (resize_for_insert_if_needed): Add PB_DS_ASSERT_VALID after
3035 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
3038 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
3040 * testsuite/ext/pb_ds/regression/priority_queues.cc: Fix copy&paste
3043 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
3045 * acinclude.m4 (GLIBCXX_CHECK_S_ISREG_OR_S_IFREG): Fix typo in
3047 * config.h.in: Regenerate.
3048 * configure: Regenerate.
3049 * doc/Makefile.in: Regenerate.
3051 2017-03-14 Jonathan Wakely <jwakely@redhat.com>
3054 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
3055 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace
3056 with a constrained template.
3057 [!_GLIBCXX_USE_CXX11_ABI]
3058 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise.
3059 * testsuite/21_strings/basic_string/cons/char/79162.cc: New test.
3060 * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test.
3062 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
3065 * include/bits/list.tcc (merge(list&&)): Use const for the size_t
3067 (merge(list&&, _StrictWeakOrdering)): Likewise.
3068 * testsuite/23_containers/list/operations/80034.cc: New.
3070 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
3072 Implement LWG 2806, Base class of bad_optional_access.
3073 * include/std/optional (bad_optional_access):
3074 Derive from std::exception.
3075 (bad_optional_access::bad_optional_access): Adjust.
3076 (bad_optional_access::what): New.
3077 (__throw_bad_optional_access(const char*)):
3078 Remove the parameter and adjust calls.
3079 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
3080 * testsuite/20_util/optional/typedefs.cc: Likewise.
3082 2017-03-12 Ville Voutilainen <ville.voutilainen@gmail.com>
3084 Implement LWG 2934, optional<const T> doesn't compare with T.
3085 * include/std/optional
3086 (operator==(const optional<_Tp>&, const optional<_Tp>&)):
3087 Turn into operator==(const optional<_Tp>&, const optional<_Up>&).
3088 (operator!=(const optional<_Tp>&, const optional<_Tp>&)):
3089 Turn into operator!=(const optional<_Tp>&, const optional<_Up>&).
3090 (operator<(const optional<_Tp>&, const optional<_Tp>&)):
3091 Turn into operator<(const optional<_Tp>&, const optional<_Up>&.
3092 (operator>(const optional<_Tp>&, const optional<_Tp>&)):
3093 Turn into operator>(const optional<_Tp>&, const optional<_Up>&.
3094 (operator<=(const optional<_Tp>&, const optional<_Tp>&)):
3095 Turn into operator<=(const optional<_Tp>&, const optional<_Up>&).
3096 (operator>=(const optional<_Tp>&, const optional<_Tp>&)):
3097 Turn into operator>=(const optional<_Tp>&, const optional<_Up>&).
3098 (operator==(const optional<_Tp>&, const _Tp&)):
3099 Turn into operator==(const optional<_Tp>&, const _Up&).
3100 (operator==(const _Tp&, const optional<_Tp>&)):
3101 Turn into operator==(const _Up&, const optional<_Tp>&).
3102 (operator!=(const optional<_Tp>&, const _Tp&)):
3103 Turn into operator!=(const optional<_Tp>&, const _Up&).
3104 (operator!=(const _Tp&, const optional<_Tp>&)):
3105 Turn into operator!=(const _Up&, const optional<_Tp>&).
3106 (operator<(const optional<_Tp>&, const _Tp&)):
3107 Turn into operator<(const optional<_Tp>&, const _Up&).
3108 (operator<(const _Tp&, const optional<_Tp>&)):
3109 Turn into operator<(const _Up&, const optional<_Tp>&).
3110 (operator>(const optional<_Tp>&, const _Tp&)):
3111 Turn into operator>(const optional<_Tp>&, const _Up&).
3112 (operator>(const _Tp&, const optional<_Tp>&)):
3113 Turn into operator>(const _Up&, const optional<_Tp>&).
3114 (operator<=(const optional<_Tp>&, const _Tp&)):
3115 Turn into operator<=(const optional<_Tp>&, const _Up&).
3116 (operator<=(const _Tp&, const optional<_Tp>&)):
3117 Turn into operator<=(const _Up&, const optional<_Tp>&).
3118 (operator>=(const optional<_Tp>&, const _Tp&)):
3119 Turn into operator>=(const optional<_Tp>&, const _Up&).
3120 (operator>=(const _Tp&, const optional<_Tp>&)):
3121 Turn into operator>=(const _Up&, const optional<_Tp>&).
3122 * testsuite/20_util/optional/relops/7.cc: New.
3124 2017-03-10 Jonathan Wakely <jwakely@redhat.com>
3126 * testsuite/17_intro/names.cc: Undefine macros that clash with
3127 identifiers in AIX system headers.
3129 * include/bits/invoke.h (__invoke): Use __invoke_result instead of
3130 result_of, and __is_nothrow_invocable instead of
3131 __is_nothrow_callable.
3132 * include/bits/shared_ptr_base.h (__shared_ptr): Use __is_invocable
3133 instead of __is_callable.
3134 * include/std/functional (invoke): use invoke_result_t instead of
3135 result_of_t and is_nothrow_invocable instead of is_nothrow_callable.
3136 (_Not_fn): Use __invoke_result instead of result_of.
3137 * include/std/type_traits (__result_of_memobj, __result_of_memfun):
3138 Remove partial specializations for reference_wrapper types.
3139 (__result_of_impl): Use __inv_unwrap to strip reference_wrapper.
3140 (__invoke_result): Define replacement for result_of and then use it to
3142 (__is_callable_impl, __is_callable, __is_nothrow_callable): Replace
3143 with __is_invocable_impl, __is_invocable, and __is_nothrow_invocable
3145 (invoke_result, invoke_result_t): Define for C++17.
3146 (is_callable, is_nothrow_callable): Replace with is_invocable,
3147 is_invocable_r, is_nothrow_invocable, and is_nothrow_invocable_r.
3148 (is_callable_v, is_nothrow_callable_v): Replace with is_invocable_v,
3149 is_invocable_r_v, is_nothrow_invocable_v, and is_nothrow_invocable_r_v.
3150 * include/std/variant (hash<variant<T...>>): Use is_nothrow_invocable_v
3151 instead of is_nothrow_callable_v.
3152 * testsuite/20_util/function_objects/invoke/59768.cc: Remove unused
3154 * testsuite/20_util/function_objects/not_fn/1.cc: Use is_invocable
3155 instead of is_callable.
3156 * testsuite/20_util/is_callable/*: Rename directory and adjust tests
3158 * testsuite/20_util/is_nothrow_callable/*: Likewise.
3159 * testsuite/20_util/optional/hash.cc: Use is_invocable_v instead of
3161 * testsuite/20_util/variant/hash.cc: Likewise.
3163 2017-03-10 George Lander <george.lander@arm.com>
3165 * acinclude.m4 (glibcxx_cv_obsolete_isnan): Define
3166 _GLIBCXX_INCLUDE_NEXT_C_HEADERS before including math.h.
3167 * configure: Regenerate.
3169 2017-03-09 Jonathan Wakely <jwakely@redhat.com>
3171 * include/std/functional (_Not_fn): Define macro to simplify
3172 repetitive function definitions.
3174 * doc/xml/manual/status_cxx2017.xml: Document std::byte support.
3175 * include/c_global/cstddef (std::byte): Define for C++17.
3176 * testsuite/18_support/byte/global_neg.cc: New test.
3177 * testsuite/18_support/byte/ops.cc: New test.
3178 * testsuite/18_support/byte/requirements.cc: New test.
3180 2017-03-05 Jonathan Wakely <jwakely@redhat.com>
3182 * doc/xml/manual/status_cxx2017.xml: Document P0156R2 status.
3183 * doc/html/*: Regenerate.
3184 * include/std/mutex (scoped_lock): Implement new C++17 template.
3185 * testsuite/30_threads/scoped_lock/cons/1.cc: New test.
3186 * testsuite/30_threads/scoped_lock/requirements/
3187 explicit_instantiation.cc: New test.
3188 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: New test.
3190 2017-03-02 Gerald Pfeifer <gerald@pfeifer.com>
3191 François Dumont <frs.dumont@gmail.com>
3192 Jonathan Wakely <jwakely@redhat.com>
3194 * doc/xml/manual/debug_mode.xml: Update and simplify note
3195 on link- and run-time coexistence.
3197 2017-03-02 Jonathan Wakely <jwakely@redhat.com>
3199 * testsuite/17_intro/headers/names.cc: Rename to ...
3200 * testsuite/17_intro/names.cc: ... here.
3203 * include/bits/hashtable_policy.h (__clp2): Use reserved names for
3204 parameters and local variables.
3205 * include/bits/ios_base.h (make_error_code, make_error_condition):
3207 * include/bits/list.tcc (list::sort): Likewise.
3208 * include/bits/mask_array.h (mask_array): Likewise.
3209 * include/bits/regex.h (regex_token_iterator): Likewise.
3210 * include/bits/slice_array.h (slice_array): Likewise.
3211 * include/bits/stl_algo.h (__sample): Likewise.
3212 * include/std/memory (undeclare_no_pointers): Likewise.
3213 * include/std/type_traits (is_callable_v, is_nothrow_callable_v):
3215 * libsupc++/exception_ptr.h (__dest_thunk): Likewise.
3216 * testsuite/17_intro/headers/names.cc: New test.
3219 * include/std/functional (bind::_Res_type_impl): Fix incorrect use of
3220 result_of that loses top-level cv-qualifiers.
3221 * testsuite/20_util/bind/79798.cc: New test.
3223 2017-03-01 Gerald Pfeifer <gerald@pfeifer.com>
3225 * doc/xml/manual/documentation_hacking.xml: Tweak link to
3228 2017-02-23 Jonathan Wakely <jwakely@redhat.com>
3230 * include/experimental/iterator: Include <iterator>.
3231 * testsuite/experimental/iterator/requirements.cc: Check for contents
3234 2017-02-19 Dinka Ranns <dinka.ranns@googlemail.com>
3236 C++17 GB50 resolution
3237 * include/std/chrono (duration::operator++()): Add
3238 _GLIBCXX17_CONSTEXPR.
3239 (duration::operator++(int)): Likewise.
3240 (duration::operator--()): Likewise.
3241 (duration::operator--(int)): Likewise.
3242 (duration::operator+=(const duration&)): Likewise.
3243 (duration::operator-=(const duration&)): Likewise.
3244 (duration::operator*=(const rep&)): Likewise.
3245 (duration::operator/=(const rep&)): Likewise.
3246 (duration::operator%=(const rep&)): Likewise.
3247 (duration::operator%=(const duration&)): Likewise.
3248 (time_point::operator+=(const duration&)): Likewise.
3249 (time_point::operator-=(const duration&)): Likewise.
3250 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: New test.
3251 * testsuite/20_util/duration/literals/range.cc: Adjust dg-error.
3252 * testsuite/20_util/time_point/arithmetic/constexpr.cc: New test.
3254 2017-02-19 Gerald Pfeifer <gerald@pfeifer.com>
3256 * doc/xml/manual/debug.xml: Adjust link to ThreadSanitizer.
3258 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
3260 * doc/xml/manual/io.xml: Update link to groups.google.com.
3261 Tweak link description.
3263 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
3265 * doc/xml/manual/profile_mode.xml: Fix link.
3267 2017-02-16 Gerald Pfeifer <gerald@pfeifer.com>
3269 * doc/xml/manual/policy_data_structures.xml: Simplify and
3270 standardize references to boost.org.
3271 * doc/xml/manual/policy_data_structures_biblio.xml: Ditto.
3272 * doc/xml/manual/shared_ptr.xml: Ditto.
3274 2017-02-16 Jonathan Wakely <jwakely@redhat.com>
3277 * src/c++11/snprintf_lite.cc (__concat_size_t): Calculate length
3278 written to buffer, not length remaining in buffer.
3280 2017-02-15 Tim Shen <timshen@google.com>
3283 * include/std/variant (operator<(), operator>(), operator<=(),
3284 operator>=(), operator==(), operator!=()): Implement P0393R3.
3285 * testsuite/20_util/variant/compile.cc: Adjust tests.
3286 * testsuite/20_util/variant/run.cc: Adjust tests.
3288 2017-02-15 Tim Shen <timshen@google.com>
3291 * include/std/variant (visit()): Forward variant types to the return
3292 type detection code.
3293 * testsuite/20_util/variant/compile.cc: Add test cases.
3295 2017-02-13 H.J. Lu <hongjiu.lu@intel.com>
3298 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
3300 2017-02-13 Jakub Jelinek <jakub@redhat.com>
3303 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
3304 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
3305 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Likewise.
3306 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
3307 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Likewise.
3308 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
3309 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Likewise.
3310 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
3311 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
3313 2017-02-13 Jonathan Wakely <jwakely@redhat.com>
3316 * include/std/future (__future_base::_Task_state::_M_run)
3317 (__future_base::_Task_state::_M_run_delayed): Use lvalue types in
3318 result_of expressions.
3319 * testsuite/30_threads/packaged_task/79486.cc: New.
3321 2017-02-11 Jonathan Wakely <jwakely@redhat.com>
3324 * include/bits/shared_ptr_base.h (__shared_ptr(_Yp*, _Deleter))
3325 (__shared_ptr(_Yp*, _Deleter, _Alloc)): Use lvalue types in
3326 __is_callable check.
3327 * testsuite/20_util/shared_ptr/cons/79467.cc: New.
3329 * include/bits/atomic_base.h: Re-indent.
3331 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
3333 * doc/xml/manual/profile_mode.xml: Update a paper reference.
3335 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
3337 * src/c++11/snprintf_lite.cc (__err): Use https for bug reporting.
3339 2017-02-08 Jonathan Wakely <jwakely@redhat.com>
3341 * doc/xml/manual/policy_data_structures.xml: Fix spelling of author's
3343 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise. Remove
3344 broken links to texts that are no longer online.
3345 * doc/xml/manual/profile_mode.xml: Update links to CGO 2009 paper and
3347 * doc/xml/manual/using.xml: Update links to memory model information.
3348 * doc/xml/manual/using_exceptions.xml: Update link to "Appendix E:
3349 Standard-Library Exception Safety".
3350 * doc/html/*: Regenerate.
3352 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
3354 * doc/xml/manual/profile_mode.xml: Unbreak link to
3355 "Optimizing Sorting with Machine Learning Algorithms".
3357 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
3359 * src/c++11/snprintf_lite.cc (__err): Update bug reporting URL.
3361 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
3363 * doc/xml/manual/abi.xml: Update link to "Sun Studio 11: C++
3366 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
3368 * doc/html/ext/lwg-active.html: Remove.
3369 * doc/html/ext/lwg-closed.html: Ditto.
3370 * doc/html/ext/lwg-defects.html: Ditto.
3372 * doc/Makefile.am (xml_extradir): Remove.
3374 (stamp-html-docbook-lwg): Remove recipe...
3375 (stamp-html-docbook-data): ...and its use here.
3376 * doc/Makefile.in: Regenerate.
3378 * doc/xml/manual/intro.xml: Shorten two paragraphs explaining
3379 the relationship to the upstream working group.
3380 Replace a local link to ../ext/lwg-active.html by the upstream one.
3381 Replace all reference to ../ext/lwg-defects.html by a new entity
3382 &DR; which refers to the upstream address.
3384 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
3386 * doc/xml/manual/status_cxx2017.xml: Fix link to N4284.
3388 2017-02-06 Jonathan Wakely <jwakely@redhat.com>
3391 * testsuite/20_util/duration/literals/range.cc: Prune extra output
3394 2017-02-06 Gerald Pfeifer <gerald@pfeifer.com>
3396 * doc/xml/manual/documentation_hacking.xml: Update URL of the
3397 DocBook Element Reference. Use that term as link description
3398 instead of "online".
3399 epubcheck has moved to GitHub.
3400 Remove obsolete link to DocBook Publishing Tools.
3402 2017-02-03 Jonathan Wakely <jwakely@redhat.com>
3405 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Restore ABI override
3406 so new ios::failure can be caught even when old ABI is the default.
3407 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
3408 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
3409 exceptions_failbit.cc: Likewise.
3410 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
3411 exceptions_failbit.cc: Likewise.
3412 * testsuite/27_io/basic_istream/extractors_other/char/
3413 exceptions_null.cc: Likewise.
3414 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
3415 exceptions_null.cc: Likewise.
3416 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
3417 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
3418 * testsuite/27_io/basic_ostream/inserters_other/char/
3419 exceptions_null.cc: Likewise.
3420 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
3421 exceptions_null.cc: Likewise.
3422 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3425 * src/c++11/Makefile.am: Add new files.
3426 * src/c++11/Makefile.in: Regenerate.
3427 * src/c++11/cow-string-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
3428 (operator<<, operator>>, getline): Move explicit instantiations to ...
3429 * src/c++11/cow-string-io-inst.cc: ... new file.
3430 * src/c++11/cow-wstring-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
3431 (operator<<, operator>>, getline): Move explicit instantiations to ...
3432 * src/c++11/cow-wstring-io-inst.cc: ... new file.
3433 * src/c++11/functexcept.cc (__throw_ios_failure, __throw_system_error)
3434 (__throw_future_error, __throw_bad_function_call):
3435 (__throw_regex_error): Move functions for C++11 exceptions to the
3436 files that define the exception types.
3437 * src/c++11/functional.cc (__throw_bad_function_call): Move here.
3438 * src/c++11/future.cc (__throw_future_error): Likewise.
3439 * src/c++11/ios.cc (__throw_ios_failure): Likewise.
3440 * src/c++11/regex.cc (__throw_regex_error): Likewise.
3441 * src/c++11/snprintf_lite.cc (__concat_size_t): Print decimal
3442 representation directly instead of calling __int_to_char.
3443 * src/c++11/sso_string.cc (__sso_string): New file for definition
3444 of __sso_string type.
3445 * src/c++11/string-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
3446 explicit instantiations of narrow string I/O functions.
3447 * src/c++11/system_error.cc (__throw_system_error): Move here.
3448 (__sso_string): Move to new file.
3449 * src/c++11/wstring-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
3450 explicit instantiations of wide string I/O functions.
3451 * src/c++98/misc-inst.cc [_GLIBCXX_USE_CXX11_ABI] (operator<<)
3452 (operator>>, getline): Remove explicit instantiations from here.
3454 2017-02-02 H.J. Lu <hongjiu.lu@intel.com>
3456 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
3458 2017-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3460 * configure.host: Separate Solaris/SPARC and x86 baselines.
3461 * config/abi/post/solaris2.10/baseline_symbols.txt: Move ...
3462 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: ... here.
3463 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Move ...
3464 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
3466 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Move ...
3467 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: ... here.
3468 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: New file.
3469 * config/abi/post/solaris2.11/baseline_symbols.txt: Move ...
3470 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: ... here.
3471 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Move ...
3472 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
3474 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Move ...
3475 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: ... here.
3476 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: New file.
3478 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
3479 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
3480 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
3481 * config/abi/post/solaris2.11/baseline_symbols.txt: Likewise.
3482 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Likewise.
3483 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Likewise.
3485 2017-02-01 Jonathan Wakely <jwakely@redhat.com>
3488 * include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
3490 (_Iter_comp_to_iter): Likewise.
3491 * testsuite/25_algorithms/search/78346.cc: New test.
3494 * config/abi/pre/gnu.ver: Remove recently added symbols.
3495 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
3496 (basic_string::_M_copy_assign): Remove.
3497 (basic_string::operator=(const basic_string&)): Don't dispatch to
3498 _M_copy_assign. If source object is small just deallocate, otherwise
3499 perform new allocation before making any changes.
3500 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
3501 (basic_string::_M_copy_assign(const basic_string&, true_type)):
3503 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
3504 Test cases where the allocators are equal or the string is small.
3505 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
3508 2017-01-30 Ville Voutilainen <ville.voutilainen@gmail.com>
3510 Implement LWG 2825, LWG 2756 breaks class template argument
3511 deduction for optional.
3512 * include/std/optional: Add a deduction guide.
3513 * testsuite/20_util/optional/cons/deduction_guide.cc: New.
3515 2017-01-27 Jonathan Wakely <jwakely@redhat.com>
3518 * config/abi/pre/gnu.ver: Add new symbols.
3519 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
3520 (basic_string::_M_copy_assign): New overloaded functions to perform
3522 (basic_string::operator=(const basic_string&)): Dispatch to
3524 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
3525 (basic_string::_M_copy_assign(const basic_string&, true_type)):
3526 Define, performing rollback on exception.
3527 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
3528 Test exception-safety guarantee.
3529 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
3531 * testsuite/util/testsuite_allocator.h (uneq_allocator::swap): Make
3534 2017-01-26 Jonathan Wakely <jwakely@redhat.com>
3537 * include/tr1/complex (conj): Remove using-declaration and restore
3538 overloads, reverting previous change.
3540 * testsuite/23_containers/list/operations/78389.cc: Fix for C++11
3542 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
3543 Mark as unsupported in C++98 mode.
3544 * testsuite/23_containers/queue/requirements/constructible.cc:
3546 * testsuite/23_containers/stack/requirements/constructible.cc:
3548 * testsuite/25_algorithms/make_heap/movable.cc: Fix for C++11 mode.
3551 * include/bits/c++config (literals::string_view_literals::__7): Add.
3552 Only declare versioned namespaces for the relevant C++ dialects.
3553 * include/experimental/bits/erase_if.h (fundamentals_v2::__detail):
3554 Add versioning macros.
3555 * include/experimental/bits/lfts_config.h:
3556 (fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add.
3557 * include/experimental/string_view (fundamentals_v2::__detail):
3558 Add versioning macros.
3559 (fundamentals_v2::__detail::__identity): Remove.
3560 (fundamentals_v2::__detail::__idt): Use common_type instead of
3561 __detail::__identity.
3562 * include/std/string_view (__detail::__identity, __detail::__idt):
3564 (literals::string_view_literals): Fix nesting of versioning macros.
3567 * libsupc++/del_opa.cc (operator delete(void*, std::align_val_t))
3568 [!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN
3569 && !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC]:
3570 Retrieve original pointer value allocated by malloc.
3571 * libsupc++/new_opa.cc [!_GLIBCXX_HAVE_ALIGNED_ALLOC
3572 && !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN
3573 && !_GLIBCXX_HAVE__ALIGNED_MALLOC] (aligned_alloc(size_t, size_t)):
3574 Define, adjusting pointer value allocated by malloc and storing for
3575 retrieval by operator delete.
3577 2017-01-26 Jakub Jelinek <jakub@redhat.com>
3579 * libsupc++/eh_atomics.h: Update copyright years.
3580 * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years.
3582 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
3586 * include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
3587 (proj(T), conj(T)): Change return types per DR 1522.
3588 * include/tr1/complex (conj): Remove overloads and use std::conj.
3589 * testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
3590 * testsuite/26_numerics/complex/dr781.cc: ... this, and update.
3591 * testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
3592 real(T) and imag(T). Allow testing for C++11 too.
3594 2017-01-24 Jonathan Wakely <jwakely@redhat.com>
3597 * include/experimental/string_view (operator==): Check sizes first.
3598 * include/std/string_view (operator==): Likewise.
3600 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
3602 * testsuite/experimental/array/make_array.cc: Restore <functional>
3605 2017-01-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
3607 * testsuite/29_atomics/atomic/69301.cc: Require atomic builtins.
3609 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
3612 * include/experimental/array (__make_array_elem): New class template
3613 and partial specialization.
3614 (__is_reference_wrapper): Move into __make_array_elem specialization.
3615 (make_array): Use __make_array_elem to determine element type and move
3616 static assertion into specialization. Qualify std::forward call.
3617 (to_array): Add exception specifiation.
3618 * testsuite/experimental/array/make_array.cc: Test argument types
3619 without a common type.
3620 * testsuite/experimental/array/neg.cc: Adjust expected error message.
3622 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
3624 * doc/xml/manual/debug.xml: code.google.com uses https now.
3626 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
3628 * doc/xml/manual/test.xml: Fix link into gccint online manual.
3630 2017-01-21 Ville Voutilainen <ville.voutilainen@gmail.com>
3632 Make poisoned hashes SFINAE away the call operator of the hash.
3633 * include/bits/functional_hash.h
3634 (__poison_hash::__enable_hash_call): New.
3635 * include/std/optional (__optional_hash_call_base): New.
3636 (hash<optional<_Tp>>): Derive from the new base,
3637 move the hash function into that base.
3638 * include/std/variant (__variant_hash_call_base_impl): New.
3639 (__variant_hash_call_base): Likewise.
3640 (hash<variant<_Types...>>): Derive from the new base,
3641 move the hash function into that base.
3642 * testsuite/20_util/optional/hash.cc: Add tests for is_callable.
3643 * testsuite/20_util/variant/hash.cc: Likewise.
3645 2017-01-20 Joe Seymour <joe.s@somniumtech.com>
3647 * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t.
3648 * configure: Regenerate.
3650 2017-01-20 Jonathan Wakely <jwakely@redhat.com>
3653 * include/bits/random.h (uniform_real_distribution::param_type)
3654 (normal_distribution::param_type, lognormal_distribution::param_type)
3655 (gamma_distribution::param_type, chi_squared_distribution::param_type)
3656 (cauchy_distribution::param_type, fisher_f_distribution::param_type)
3657 (student_t_distribution::param_type)
3658 (bernoulli_distribution::param_type, binomial_distribution::param_type)
3659 (geometric_distribution::param_type)
3660 (negative_binomial_distribution::param_type)
3661 (poisson_distribution::param_type)
3662 (exponential_distribution::param_type)
3663 (weibull_distribution::param_type)
3664 (extreme_value_distribution::param_type)
3665 (discrete_distribution::param_type)
3666 (piecewise_constant_distribution::param_type)
3667 (piecewise_linear_distribution::param_type): Define operator!=.
3668 * include/bits/uniform_int_dist.h
3669 (uniform_int_distribution::param_type): Likewise.
3670 * include/ext/random (beta_distribution::param_type)
3671 (rice_distribution::param_type, nakagami_distribution::param_type)
3672 (pareto_distribution::param_type, k_distribution::param_type)
3673 (arcsine_distribution::param_type, hoyt_distribution::param_type)
3674 (triangular_distribution::param_type)
3675 (von_mises_distribution::param_type)
3676 (hypergeometric_distribution::param_type)
3677 (logistic_distribution::param_type)
3678 (uniform_on_sphere_distribution::param_type)
3679 (uniform_inside_sphere_distribution::param_type): Likewise.
3680 * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc:
3681 Test construction with param_type.
3682 * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc:
3684 * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
3686 * testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc:
3688 * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
3690 * testsuite/26_numerics/random/extreme_value_distribution/cons/
3692 * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc:
3694 * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc:
3696 * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc:
3698 * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc:
3700 * testsuite/26_numerics/random/negative_binomial_distribution/cons/
3702 * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
3704 * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc:
3706 * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
3708 * testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc:
3710 * testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc:
3712 * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc:
3714 * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise.
3715 * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise.
3716 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
3717 * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc:
3719 * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise.
3720 * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise.
3721 * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise.
3722 * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
3723 * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise.
3724 * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise.
3725 * testsuite/ext/random/triangular_distribution/cons/parms.cc:
3727 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/
3729 * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise.
3732 * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
3733 (__allocator_traits_base::__size_type): Remove.
3734 (allocator_traits::_Ptr): New class template to detect const and void
3735 pointer types without instantiating pointer_traits::rebind
3737 (allocator_traits::_Diff): Likewise for detecting difference_type.
3738 (allocator_traits::_Size): New class template to detect size_type
3739 without instantiating make_unsigned unnecessarily.
3740 * include/bits/ptr_traits.h (pointer_traits::element_type): Use
3741 __detected_or_t instead of __detected_or_t_.
3742 * include/std/type_traits (__detected_or_t_): Remove.
3743 * testsuite/20_util/allocator_traits/members/pointers.cc: New test.
3747 * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
3748 Replace with class template using void_t.
3749 (__alloc_rebind): Define in terms of
3750 __allocator_traits_base::__rebind.
3751 (allocator_traits): Remove unconditional static_assert for
3753 * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
3754 (pointer_traits::__rebind): Replace with class template using void_t.
3755 (pointer_traits::rebind): Define in terms of __rebind.
3756 (pointer_traits): Remove unconditional static_assert for rebind.
3757 * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
3758 * testsuite/20_util/pointer_traits/rebind.cc: New test.
3761 * include/experimental/any (__any_caster): Avoid instantiating
3762 manager function for types that can't be stored in any.
3763 * include/std/any (__any_caster): Likewise.
3764 * testsuite/20_util/any/misc/any_cast.cc: Test non-copyable type.
3765 * testsuite/experimental/any/misc/any_cast.cc: Likewise.
3768 * include/bits/stl_algo.h (is_partitioned): Use increment instead of
3771 2017-01-19 Jonathan Wakely <jwakely@redhat.com>
3774 * include/bits/shared_ptr_base.h (__enable_shared_from_this_base):
3776 (__enable_shared_from_this): Declare __shared_ptr as a friend.
3777 * testsuite/ext/shared_ptr/1.cc: New test.
3780 * include/bits/stl_algo.h (is_partitioned): Don't retest the partition
3782 * testsuite/25_algorithms/is_partitioned/2.cc: New test.
3784 * doc/xml/manual/abi.xml: Fix typo.
3785 * doc/html/manual/abi.html: Likewise.
3788 * include/bits/predefined_ops.h (_Iter_less_val, _Val_less_iter): Add
3789 converting constructors from _Iter_less_iter.
3790 (_Iter_comp_val, _Val_comp_iter): Add converting constructors from
3792 (__iter_comp_val(_Iter_comp_iter<C>): Use converting constructor.
3793 (__val_comp_iter(_Iter_comp_iter<C>): Likewise.
3794 * include/bits/stl_heap.h (__is_heap_until, __push_heap, __pop_heap)
3795 (__make_heap, __sort_heap): Change _Compare parameters to references.
3796 (__is_heap, push_heap, __adjust_heap, __pop_heap, pop_heap)
3797 (__make_heap, make_heap, sort_heap, is_heap_until): Pass comparison
3798 functions as lvalues.
3799 (is_heap): Call __is_heap_until directly to avoid copying __comp.
3800 * testsuite/23_containers/priority_queue/67085.cc: Adjust test to
3801 count copies during construction with empty sequence.
3804 * include/bits/stl_heap.h (__is_heap): Use _GLIBCXX_MOVE.
3805 (__make_heap, __sort_heap): Don't use _GLIBCXX_MOVE inside loops.
3806 * testsuite/23_containers/priority_queue/67085.cc: Adjust expected
3808 * testsuite/25_algorithms/make_heap/movable.cc: New test.
3811 * include/bits/stl_heap.h (push_heap, __adjust_heap, __pop_heap)
3812 (pop_heap, __make_heap, make_heap, __sort_heap, sort_heap): Use
3813 _GLIBCXX_MOVE when passing comparison function to other functions.
3814 (is_heap_until, is_heap): Use std::move when passing comparison
3816 * testsuite/23_containers/priority_queue/67085.cc: New test.
3819 * doc/xml/manual/abi.xml (abi.versioning.history): Add markup to
3820 macro names, filenames, and literal values. Document _GLIBCXX_RELEASE.
3821 Document that the deprecated _GLIBCXX_VERSION macro was removed for
3823 * doc/html/*: Regenerate.
3824 * include/Makefile.am (_GLIBCXX_RELEASE): Set value.
3825 * include/Makefile.in: Regenerate.
3826 * include/bits/c++config (_GLIBCXX_RELEASE): Add #define.
3827 * testsuite/ext/profile/mutex_extensions_neg.cc: Use lineno of 0 in
3830 2017-01-18 Jonathan Wakely <jwakely@redhat.com>
3833 * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
3834 aligned buffer instead of default-initialized variable.
3835 * testsuite/29_atomics/atomic/69301.cc: New test.
3836 * include/experimental/memory (observer_ptr::release): Use reserved
3838 * include/ext/pointer.h (_Pointer_adapter::operator++(int))
3839 (_Pointer_adapter::operator--(int)): Likewise.
3842 * include/experimental/random (randint): Use temporary instead of
3843 thread_local static.
3845 2017-01-17 Joshua Conner <joshconner@google.com>
3847 * crossconfig.m4: Add fuchsia OS.
3848 * configure: Regenerate.
3850 2017-01-17 Jonathan Wakely <jwakely@redhat.com>
3853 * doc/xml/manual/abi.xml (abi.versioning.history): Explain why the
3854 __GLIBCXX__ macro is not useful. Remove redundant date information
3855 and link to the GCC release timeline.
3856 (abi.versioning.active): Move partial sentence into the previous
3858 * doc/html/*: Regenerate.
3861 * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
3862 of remove_reference.
3863 * testsuite/18_support/nested_exception/79114.cc: New test.
3865 2017-01-17 Jakub Jelinek <jakub@redhat.com>
3868 * configure.ac: Add GCC_BASE_VER.
3869 * fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
3870 get version from BASE-VER file.
3871 * po/Makefile.in: Regenerated.
3872 * libsupc++/Makefile.in: Regenerated.
3873 * testsuite/Makefile.in: Regenerated.
3874 * src/Makefile.in: Regenerated.
3875 * configure: Regenerated.
3876 * Makefile.in: Regenerated.
3877 * include/Makefile.in: Regenerated.
3878 * doc/Makefile.in: Regenerated.
3879 * python/Makefile.in: Regenerated.
3880 * src/c++11/Makefile.in: Regenerated.
3881 * src/c++98/Makefile.in: Regenerated.
3882 * src/filesystem/Makefile.in: Regenerated.
3884 2017-01-16 Jonathan Wakely <jwakely@redhat.com>
3887 * src/c++11/functexcept.cc: Use new ABI for std::ios_base::failure
3889 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Don't override ABI
3890 for test, so new ios::failure can be caught.
3891 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
3892 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
3893 exceptions_failbit.cc: Likewise.
3894 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
3895 exceptions_failbit.cc: Likewise.
3896 * testsuite/27_io/basic_istream/extractors_other/char/
3897 exceptions_null.cc: Likewise.
3898 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
3899 exceptions_null.cc: Likewise.
3900 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
3901 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
3902 * testsuite/27_io/basic_ostream/inserters_other/char/
3903 exceptions_null.cc: Likewise.
3904 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
3905 exceptions_null.cc: Likewise.
3906 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3909 * include/bits/locale_classes.h (locale::facet::__shim): Change from
3910 private to protected.
3911 * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
3912 make locale::facet::__shim accessible.
3914 2017-01-16 Ville Voutilainen <ville.voutilainen@gmail.com>
3917 * include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
3918 (merge(list&&, _StrictWeakOrdering)): Likewise.
3919 * testsuite/23_containers/list/operations/78389.cc: Add
3920 better test for the sizes.
3922 2017-01-14 Jonathan Wakely <jwakely@redhat.com>
3924 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
3925 Skip test when -D_GLIBCXX_PROFILE mode is included in options.
3926 * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
3927 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
3929 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
3930 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
3931 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
3932 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
3933 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
3935 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
3937 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
3939 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
3941 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
3943 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
3944 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
3945 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
3946 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
3947 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
3948 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
3949 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
3950 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
3951 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
3952 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
3953 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
3954 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
3955 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
3957 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
3960 * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
3961 retry fclose on EINTR.
3963 * include/profile/base.h: Remove unused header that leads to header
3964 cycle in C++17 mode.
3967 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
3968 Make _If_sv private.
3969 [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
3970 basic_string_view arguments.
3973 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
3974 redundant option from cxxflags.
3975 (check_effective_target_cxx11-abi): Define.
3976 * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
3978 * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
3979 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
3981 * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
3983 * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
3984 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
3986 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
3988 * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
3989 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
3991 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
3993 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
3995 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
3997 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
3999 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
4001 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
4003 * testsuite/23_containers/list/61347.cc: Likewise.
4004 * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
4005 * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
4007 2017-01-13 Ville Voutilainen <ville.voutilainen@gmail.com>
4010 * include/bits/list.tcc (merge(list&&)):
4011 Adjust list sizes if the comparator throws.
4012 (merge(list&&, _StrictWeakOrdering)): Likewise.
4013 (sort()): Splice elements back from the scratch buffers
4014 if the comparator throws.
4015 (sort(_StrictWeakOrdering)): Likewise.
4016 * testsuite/23_containers/list/operations/78389.cc: New.
4018 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
4020 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
4021 XFAIL for C++17 until node reinsertion supports fancy pointers.
4024 * testsuite/20_util/add_pointer/value.cc: Test forming function
4027 2017-01-13 Michael Brune <lucdanton@free.fr>
4030 * include/std/type_traits (__is_referenceable): Handle noexcept
4033 2017-01-12 Jonathan Wakely <jwakely@redhat.com>
4036 * include/bits/stl_queue.h (queue, priority_queue): Remove default
4037 member-initializers and define default constructors as templates with
4039 * include/bits/stl_stack.h (stack): Likewise.
4040 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
4042 * testsuite/23_containers/priority_queue/requirements/
4043 explicit_instantiation/1.cc: Test more instantiations.
4044 * testsuite/23_containers/priority_queue/requirements/
4045 explicit_instantiation/1_c++98.cc: Likewise.
4046 * testsuite/23_containers/queue/requirements/constructible.cc: New.
4047 * testsuite/23_containers/stack/requirements/constructible.cc: New.
4050 * doc/xml/manual/intro.xml: Document LWG 2781 change.
4051 * doc/html/*: Regenerate.
4052 * include/std/functional (_Function_base::_Ref_manager): Remove.
4053 (_Function_handler): Remove partial specializations for
4055 (function::target): Remove special case for const qualification.
4056 * testsuite/20_util/function/6.cc: Adjust tests for target type.
4057 * testsuite/20_util/function/7.cc: Likewise.
4058 * testsuite/20_util/function/8.cc: Likewise.
4060 2017-01-11 Jonathan Wakely <jwakely@redhat.com>
4063 * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
4064 (map::equal_range): Fix return type of heterogeneous overloads.
4065 * include/bits/stl_multimap.h (multimap::lower_bound)
4066 (multimap::upper_bound, multimap::equal_range): Likewise.
4067 * include/bits/stl_multiset.h (multiset::lower_bound)
4068 (multiset::upper_bound, multiset::equal_range): Likewise.
4069 * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
4070 (set::equal_range): Likewise.
4071 * testsuite/23_containers/map/operations/2.cc
4072 * testsuite/23_containers/multimap/operations/2.cc
4073 * testsuite/23_containers/multiset/operations/2.cc
4074 * testsuite/23_containers/set/operations/2.cc
4077 * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
4078 the heterogeneous comparison can only find one match.
4079 * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
4080 * testsuite/23_containers/map/operations/2.cc: Test count works with
4081 comparison function that just partitions rather than sorting.
4082 * testsuite/23_containers/set/operations/2.cc: Likewise.
4084 2017-01-11 Ville Voutilainen <ville.voutilainen@gmail.com>
4086 Reduce the size of variant, it doesn't need an index of
4087 type size_t internally.
4088 * include/std/variant (parse_numbers.h): New include.
4089 (__select_index): New.
4090 (_Variant_storage<false, _Types...>::_M_reset_impl): Use
4091 _index_type for comparison with variant_npos.
4092 (_Variant_storage<false, _Types...>::__index_type): New.
4093 (_Variant_storage<false, _Types...>::_M_index): Change the
4094 type from size_t to __index_type.
4095 (_Variant_storage<true, _Types...>::__index_type): New.
4096 (_Variant_storage<true, _Types...>::_M_index): Change the
4097 type from size_t to __index_type.
4098 (_Variant_base::_M_valid): Use _Storage::__index_type
4099 for comparison with variant_npos.
4100 (variant::index): Use _Base::_Storage::__index_type
4101 for comparison with variant_npos.
4102 * testsuite/20_util/variant/index_type.cc: New.
4104 2017-01-10 Jonathan Wakely <jwakely@redhat.com>
4106 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
4107 effective target selector to prevent running in C++17 mode.
4110 * include/bits/stl_queue.h (queue::c): Add default member initializer.
4111 (queue::queue()): Add constructor and define as defaulted.
4112 (queue::queue(_Sequence&&)): Remove default argument.
4113 (priority_queue::c, priority_queue::comp): Add default member
4115 (priority_queue::priority_queue()): Add constructor and define as
4117 (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
4118 Remove default argument for first parameter.
4119 * include/bits/stl_stack.h (stack::c): Add default member initializer.
4120 (stack::stack()): Add constructor and define as defaulted.
4121 (stack::stack(const _Sequence&)): Remove default argument.
4122 * testsuite/23_containers/priority_queue/requirements/
4123 explicit_instantiation/1.cc: Test explicit instantiation with
4124 non-DefaultConstructible sequence.
4125 * testsuite/23_containers/priority_queue/77528.cc: New test.
4126 * testsuite/23_containers/priority_queue/requirements/
4127 explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
4128 * testsuite/23_containers/queue/77528.cc: New test.
4129 * testsuite/23_containers/queue/requirements/explicit_instantiation/
4130 1.cc: Test explicit instantiation with non-DefaultConstructible
4132 * testsuite/23_containers/queue/requirements/explicit_instantiation/
4133 1_c++0x.cc: Replace with 1_c++98.cc.
4134 * testsuite/23_containers/stack/77528.cc: New test.
4135 * testsuite/23_containers/stack/requirements/explicit_instantiation/
4136 1.cc: Test explicit instantiation with non-DefaultConstructible
4138 * testsuite/23_containers/stack/requirements/explicit_instantiation/
4139 1_c++0x.cc: Replace with 1_c++98.cc.
4141 2017-01-10 Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
4143 * include/bits/locale_facets_nonio.tcc
4144 (time_get::_M_extract_via_format): Avoid compilation errors with
4145 non-standard struct tm.
4147 2017-01-10 François Dumont <fdumont@gcc.gnu.org>
4148 Jonathan Wakely <jwakely@redhat.com>
4150 * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
4151 (is_specialization, strip_versioned_namespace): New helpers functions
4152 to work with symbols in the versioned namespace.
4153 (Printer.add_version): Add second name using versioned namespace.
4154 (add_one_template_type_printer, add_one_type_printer): Add second
4155 type printers using versioned namespace.
4156 (register_type_printers): Add template type printer for basic_string.
4157 (build_libstdcxx_dictionary): Remove dead code.
4158 * python/libstdcxx/v6/xmethods.py: Make all matchers look for
4159 versioned namespace.
4160 * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
4162 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
4164 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
4167 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
4168 functions separately on darwin and if they're missing define
4169 _GLIBCXX_NO_C99_ROUNDING_FUNCS.
4170 * config.h.in: Regenerate.
4171 * configure: Regenerate.
4172 * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
4173 (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
4175 * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
4176 to detect correct thread_local destructors.
4177 * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
4180 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
4181 Aditya Kumar <hiraditya@msn.com>
4184 * include/bits/basic_string.tcc
4185 (basic_string::find(const CharT*, size_type, size_type)): Optimize.
4187 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
4189 * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
4190 * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
4192 * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
4193 Include <cassert> header.
4196 * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
4197 * configure: Regenerate.
4199 2017-01-06 Barrett Adair <barrettellisadair@gmail.com>
4200 Jonathan Wakely <jwakely@redhat.com>
4202 * include/std/variant (variant, swap): Replace __and_ usage with fold
4205 2017-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4208 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
4209 * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
4210 GLIBCXX_CHECK_ASSEMBLER_HWCAP.
4211 * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
4213 * aclocal.m4: Regenerate.
4214 * configure: Regenerate.
4215 * Makefile.in, doc/Makefile.in, include/Makefile.in,
4216 libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
4217 src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
4218 src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
4220 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
4222 * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
4225 * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
4226 (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
4227 (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
4228 move function objects.
4229 (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
4230 (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
4231 * testsuite/25_algorithms/sort/78991.cc: New test.
4233 2017-01-05 Jonathan Wakely <jwakely@redhat.com>
4235 * include/bits/std_function.h (function::_Signature_type): Remove.
4236 (function::function(_Functor)): Adjust.
4238 2017-01-05 Tim Shen <timshen@google.com>
4241 * include/std/variant (__gen_vtable_impl): rename __unused to
4242 __dimensions to avoid naming conflict.
4244 2017-01-04 Jonathan Wakely <jwakely@redhat.com>
4247 * config.h.in: Regenerate.
4248 * configure: Likewise.
4249 * configure.ac: Check for __cxa_thread_atexit.
4250 * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
4251 Don't define __cxa_thread_atexit if libc provides it.
4253 2017-01-04 Ville Voutilainen <ville.voutilainen@gmail.com>
4255 Implement 2801, Default-constructibility of unique_ptr.
4256 * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
4257 (unique_ptr::_DeleterConstraint): Likewise.
4258 (unique_ptr()): Constrain.
4259 (unique_ptr(pointer)): Likewise.
4260 (unique_ptr(nullptr_t)): Likewise.
4261 (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
4262 (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
4263 (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
4264 (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
4265 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
4266 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
4267 * testsuite/20_util/unique_ptr/cons/default.cc: New.
4268 * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
4270 2017-01-04 Pauli Nieminen <suokkos@gmail.com>
4271 Jonathan Wakely <jwakely@redhat.com>
4274 * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
4275 * config.h.in: Regenerate.
4276 * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
4277 (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
4278 exports for exception_ptr, nested_exception, and future conditional.
4279 [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
4280 exports for exception_ptr, nested_exception, and future conditional.
4281 * configure: Regenerate.
4282 * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
4283 * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
4284 * libsupc++/eh_atomics.h: New file for internal use only.
4285 (__eh_atomic_inc, __eh_atomic_dec): New.
4286 * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
4287 (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
4288 (rethrow_exception): Use eh_atomics.h reference counting helpers.
4289 * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
4290 * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
4291 * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
4292 * libsupc++/exception_ptr.h: Likewise.
4293 * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
4294 * libsupc++/nested_exception.cc: Remove check for
4295 ATOMIC_INT_LOCK_FREE.
4296 * libsupc++/nested_exception.h: Likewise.
4297 * src/c++11/future.cc: Likewise.
4298 * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
4299 * testsuite/18_support/nested_exception/*: Likewise.
4300 * testsuite/30_threads/async/*: Likewise.
4301 * testsuite/30_threads/future/*: Likewise.
4302 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
4303 * testsuite/30_threads/packaged_task/*: Likewise.
4304 * testsuite/30_threads/promise/*: Likewise.
4305 * testsuite/30_threads/shared_future/*: Likewise.
4307 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
4309 * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
4310 defaults to https; adjust reference.
4312 2017-01-03 Jonathan Wakely <jwakely@redhat.com>
4315 * include/std/thread (thread(const thread&&)): Add deleted
4317 * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
4319 * doc/xml/manual/spine.xml: Update copyright years.
4320 * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
4321 * doc/xml/manual/test.xml: Likewise.
4322 * doc/html/*: Regenerate.
4324 2017-01-01 Gerald Pfeifer <gerald@pfeifer.com>
4326 * doc/xml/faq.xml: Update address of C++ ABI link.
4327 * doc/xml/manual/abi.xml: Ditto.
4329 2017-01-01 Jakub Jelinek <jakub@redhat.com>
4331 Update copyright years.
4333 Copyright (C) 2017 Free Software Foundation, Inc.
4335 Copying and distribution of this file, with or without modification,
4336 are permitted in any medium without royalty provided the copyright
4337 notice and this notice are preserved.