1 2017-12-01 Jonathan Wakely <jwakely@redhat.com>
3 * include/bits/regex_executor.tcc (_Executor::_M_rep_once_more):
4 Remove semi-colon after function body.
5 * include/bits/uniform_int_dist.h (_Power_of_2): Likewise.
7 * include/tr1/modified_bessel_func.tcc (__airy): Use value-init not
10 * include/std/type_traits (integral_constant): Make member functions
12 * include/std/utility (integer_sequence): Likewise.
14 2017-11-30 Jonathan Wakely <jwakely@redhat.com>
17 * include/bits/locale_facets_nonio.h (__timepunct::_M_am_pm_format):
18 Remove statement with no effect.
20 2017-11-30 Glen Joseph Fernandes <glenjofe@gmail.com>
22 * include/bits/ptr_traits.h (__to_address, to_address): Move static
24 * testsuite/20_util/to_address/1_neg.cc: New test.
26 2017-11-30 Jonathan Wakely <jwakely@redhat.com>
29 * include/bits/node_handle.h (_Node_handle::__pointer): Avoid forming
30 pointer-to-reference types.
31 * testsuite/23_containers/map/modifiers/insert/83226.cc: New test.
33 2017-11-29 John David Anglin <danglin@gcc.gnu.org>
35 * config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update.
37 2017-11-29 David Malcolm <dmalcolm@redhat.com>
39 * testsuite/20_util/duration/literals/range.cc: Update expected
40 line of a static_assert failure.
42 2017-11-28 Glen Joseph Fernandes <glenjofe@gmail.com>
44 * include/bits/ptr_traits.h (to_address): Implement to_address.
45 * testsuite/20_util/to_address/1.cc: New test.
47 2017-11-27 Stephan Bergmann <sbergman@redhat.com>
49 * include/std/string_view (basic_string_view::find_first_of): Add
52 * include/bits/unordered_map.h (unordered_map): Fix deduction guide.
53 * include/debug/unordered_map (unordered_map): Likewise.
55 2017-11-23 Jonathan Wakely <jwakely@redhat.com>
57 * libsupc++/new (launder): Add nodiscard attribute.
58 * testsuite/18_support/launder/nodiscard.cc: New test.
60 * include/bits/fs_path.h (path::empty): Add nodiscard attribute.
61 * include/bits/range_access.h (empty): Likewise.
62 * include/std/string_view (basic_string_view::empty): Likewise.
63 * testsuite/21_strings/basic_string_view/capacity/empty_neg.cc: New
65 * testsuite/24_iterators/range_access_cpp17_neg.cc: New test.
66 * testsuite/27_io/filesystem/path/query/empty_neg.cc: New test.
69 * include/std/type_traits (__not_): Explicitly convert to bool.
70 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
71 * testsuite/20_util/logical_traits/83134.cc: New test.
72 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust
74 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
77 2017-11-22 Jonathan Wakely <jwakely@redhat.com>
80 * include/bits/stl_tree.h (_Rb_tree): Relax invocable checks for
81 comparison object pre-C++17.
83 2017-11-21 Jonathan Wakely <jwakely@redhat.com>
86 * include/bits/allocator.h (allocator<const _Tp>)
87 (allocator<volatile _Tp>, allocator<const volatile _Tp>): Add partial
89 * include/bits/forward_list.h (forward_list): Add static assertions.
90 * include/bits/hashtable.h (__cache_default): Use
91 __is_nothrow_invocable instead of __is_noexcept_hash.
92 (_Hashtable): Add static assertions.
93 * include/bits/hashtable_policy.h (__is_noexcept_hash): Remove.
94 * include/bits/stl_deque.h (deque): Add static assertions.
95 * include/bits/stl_function.h (_Identity<const _Tp>): Add partial
97 * include/bits/stl_list.h (list): Add static assertions.
98 * include/bits/stl_map.h (map): Likewise.
99 * include/bits/stl_multimap.h (multimap): Likewise.
100 * include/bits/stl_multiset.h (multiset): Likewise.
101 * include/bits/stl_set.h (set): Likewise.
102 * include/bits/stl_tree.h (_Rb_tree): Likewise.
103 * include/bits/stl_vector.h (vector): Likewise.
104 * include/bits/unordered_map.h (unordered_map, unordered_multimap):
105 Use typename instead of class in template-parameter-list and remove
107 * include/bits/unordered_set.h (unordered_set, unordered_multiset):
109 * testsuite/23_containers/deque/48101-2_neg.cc: New test.
110 * testsuite/23_containers/deque/48101_neg.cc: New test.
111 * testsuite/23_containers/forward_list/48101-2_neg.cc: New test.
112 * testsuite/23_containers/forward_list/48101_neg.cc: New test.
113 * testsuite/23_containers/list/48101-2_neg.cc: New test.
114 * testsuite/23_containers/list/48101_neg.cc: New test.
115 * testsuite/23_containers/map/48101-2_neg.cc: New test.
116 * testsuite/23_containers/map/48101_neg.cc: New test.
117 * testsuite/23_containers/map/operations/31440.cc: Fix comparison
118 object to have const-qualified call operator.
119 * testsuite/23_containers/multimap/48101-2_neg.cc: New test.
120 * testsuite/23_containers/multimap/48101_neg.cc: New test.
121 * testsuite/23_containers/multiset/48101-2_neg.cc: New test.
122 * testsuite/23_containers/multiset/48101_neg.cc: New test.
123 * testsuite/23_containers/set/48101-2_neg.cc: New test.
124 * testsuite/23_containers/set/48101_neg.cc: New test.
125 * testsuite/23_containers/unordered_map/48101-2_neg.cc: New test.
126 * testsuite/23_containers/unordered_map/48101_neg.cc: New test.
127 * testsuite/23_containers/unordered_multimap/48101-2_neg.cc: New test.
128 * testsuite/23_containers/unordered_multimap/48101_neg.cc: New test.
129 * testsuite/23_containers/unordered_multiset/48101-2_neg.cc: New test.
130 * testsuite/23_containers/unordered_multiset/48101_neg.cc: New test.
131 * testsuite/23_containers/unordered_set/48101-2_neg.cc: New test.
132 * testsuite/23_containers/unordered_set/48101_neg.cc: New test.
133 * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
134 dg-error line number.
135 * testsuite/23_containers/vector/48101-2_neg.cc: New test.
136 * testsuite/23_containers/vector/48101_neg.cc: New test.
138 2017-11-21 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
140 * doc/xml/manual/using.xml (manual.intro.using.macros): Move
141 variablelist element at the end of its list.
143 2017-11-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
145 * acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Add rtems*.
146 (GLIBCXX_ENABLE_FILESYSTEM_TS): Likewise.
147 * configure: Regenerate.
149 2017-11-20 François Dumont <fdumont@gcc.gnu.org>
151 * include/bits/streambuf_iterator.h (istreambuf_iterator<>): Declare
152 std::advance for istreambuf_iterator of char types to be friend.
153 (std::advance(istreambuf_iterator&, _Distance)): New overload.
154 * include/std/streambuf (basic_streambuf<>): Declare std::advance for
155 istreambuf_iterator of char types to be friend.
156 * testsuite/22_locale/money_get/get/char/9.cc: Have
157 istreambuf_iterator created on the fly when calling money_get<>::get.
158 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
159 * testsuite/24_iterators/istreambuf_iterator/debug/1_neg.cc: New.
160 * testsuite/24_iterators/istreambuf_iterator/debug/2_neg.cc: New.
161 * testsuite/25_algorithms/advance/istreambuf_iterators/char/1.cc: New.
162 * testsuite/25_algorithms/advance/istreambuf_iterators/char/1_neg.cc:
164 * testsuite/25_algorithms/advance/istreambuf_iterators/char/2.cc: New.
165 * testsuite/25_algorithms/advance/istreambuf_iterators/char/2_neg.cc:
167 * testsuite/25_algorithms/advance/istreambuf_iterators/char/3_neg.cc:
169 * testsuite/25_algorithms/advance/istreambuf_iterators/wchar_t/1.cc:
171 * testsuite/25_algorithms/advance/istreambuf_iterators/wchar_t/1_neg.cc:
173 * testsuite/25_algorithms/advance/istreambuf_iterators/wchar_t/2.cc:
175 * testsuite/25_algorithms/advance/istreambuf_iterators/wchar_t/2_neg.cc:
177 * testsuite/25_algorithms/advance/istreambuf_iterators/wchar_t/3_neg.cc:
179 * testsuite/25_algorithms/find/istreambuf_iterators/char/2.cc: Leverage
180 on std::advance overload.
181 * testsuite/25_algorithms/find/istreambuf_iterators/wchar_t/2.cc:
184 2017-11-20 Jonathan Wakely <jwakely@redhat.com>
186 * testsuite/special_functions/18_riemann_zeta/check_value.cc: Fix
187 duplicate dg-options directive.
188 * testsuite/tr1/5_numerical_facilities/special_functions/
189 20_riemann_zeta/check_value_neg.cc: Likewise.
191 2017-11-20 Ville Voutilainen <ville.voutilainen@gmail.com>
194 * include/bits/stl_iterator_base_funcs.h (next):
195 Use InputIterator instead of ForwardIterator.
196 * testsuite/24_iterators/operations/lwg2353.cc: New.
197 * testsuite/24_iterators/operations/next_neg.cc: Remove.
199 2017-11-18 Edward Smith-Rowland <3dw4rd@verizon.net>
201 PR libstdc++/pr66689 - comp_ellint_3 and ellint_3 return garbage values
202 * include/tr1/ell_integral.tcc: Correct the nu sign convention
203 in ellint_3 and comp_ellint_3.
204 * testsuite/tr1/5_numerical_facilities/special_functions/
205 06_comp_ellint_3/check_value.cc: Regen with correct values.
206 * testsuite/tr1/5_numerical_facilities/special_functions/
207 14_ellint_3/check_value.cc: Ditto.
208 * testsuite/special_functions/06_comp_ellint_3/check_value.cc: Ditto.
209 * testsuite/special_functions/13_ellint_3/check_value.cc: Ditto.
210 * testsuite/tr1/5_numerical_facilities/special_functions/
211 01_assoc_laguerre/check_value.cc: Regen.
212 * testsuite/tr1/5_numerical_facilities/special_functions/
213 02_assoc_legendre/check_value.cc: Regen.
214 * testsuite/tr1/5_numerical_facilities/special_functions/
215 03_beta/check_value.cc: Regen.
216 * testsuite/tr1/5_numerical_facilities/special_functions/
217 04_comp_ellint_1/check_value.cc: Regen.
218 * testsuite/tr1/5_numerical_facilities/special_functions/
219 05_comp_ellint_2/check_value.cc: Regen.
220 * testsuite/tr1/5_numerical_facilities/special_functions/
221 07_conf_hyperg/check_value.cc: Regen.
222 * testsuite/tr1/5_numerical_facilities/special_functions/
223 08_cyl_bessel_i/check_value.cc: Regen.
224 * testsuite/tr1/5_numerical_facilities/special_functions/
225 09_cyl_bessel_j/check_value.cc: Regen.
226 * testsuite/tr1/5_numerical_facilities/special_functions/
227 10_cyl_bessel_k/check_value.cc: Regen.
228 * testsuite/tr1/5_numerical_facilities/special_functions/
229 11_cyl_neumann/check_value.cc: Regen.
230 * testsuite/tr1/5_numerical_facilities/special_functions/
231 12_ellint_1/check_value.cc: Regen.
232 * testsuite/tr1/5_numerical_facilities/special_functions/
233 13_ellint_2/check_value.cc: Regen.
234 * testsuite/tr1/5_numerical_facilities/special_functions/
235 15_expint/check_value_neg.cc: Regen.
236 * testsuite/tr1/5_numerical_facilities/special_functions/
237 16_hermite/check_value.cc: Regen.
238 * testsuite/tr1/5_numerical_facilities/special_functions/
239 17_hyperg/check_value.cc: Regen.
240 * testsuite/tr1/5_numerical_facilities/special_functions/
241 18_laguerre/check_value.cc: Regen.
242 * testsuite/tr1/5_numerical_facilities/special_functions/
243 19_legendre/check_value.cc: Regen.
244 * testsuite/tr1/5_numerical_facilities/special_functions/
245 20_riemann_zeta/check_value_neg.cc: Regen.
246 * testsuite/tr1/5_numerical_facilities/special_functions/
247 21_sph_bessel/check_value.cc: Regen.
248 * testsuite/tr1/5_numerical_facilities/special_functions/
249 22_sph_legendre/check_value.cc: Regen.
250 * testsuite/tr1/5_numerical_facilities/special_functions/
251 23_sph_neumann/check_value.cc: Regen.
252 * testsuite/ext/special_functions/conf_hyperg/check_value.cc: Regen.
253 * testsuite/ext/special_functions/hyperg/check_value.cc: Regen.
254 * testsuite/special_functions/01_assoc_laguerre/check_value.cc: Regen.
255 * testsuite/special_functions/02_assoc_legendre/check_value.cc: Regen.
256 * testsuite/special_functions/03_beta/check_value.cc: Regen.
257 * testsuite/special_functions/04_comp_ellint_1/check_value.cc: Regen.
258 * testsuite/special_functions/05_comp_ellint_2/check_value.cc: Regen.
259 * testsuite/special_functions/07_cyl_bessel_i/check_value.cc: Regen.
260 * testsuite/special_functions/08_cyl_bessel_j/check_value.cc: Regen.
261 * testsuite/special_functions/09_cyl_bessel_k/check_value.cc: Regen.
262 * testsuite/special_functions/10_cyl_neumann/check_value.cc: Regen.
263 * testsuite/special_functions/11_ellint_1/check_value.cc: Regen.
264 * testsuite/special_functions/12_ellint_2/check_value.cc: Regen.
265 * testsuite/special_functions/14_expint/check_value.cc: Regen.
266 * testsuite/special_functions/15_hermite/check_value.cc: Regen.
267 * testsuite/special_functions/16_laguerre/check_value.cc: Regen.
268 * testsuite/special_functions/17_legendre/check_value.cc: Regen.
269 * testsuite/special_functions/18_riemann_zeta/check_value.cc: Regen.
270 * testsuite/special_functions/19_sph_bessel/check_value.cc: Regen.
271 * testsuite/special_functions/20_sph_legendre/check_value.cc: Regen.
272 * testsuite/special_functions/21_sph_neumann/check_value.cc: Regen.
273 * testsuite/tr1/5_numerical_facilities/special_functions/
274 06_comp_ellint_3/pr66689.cc: New.
275 * testsuite/tr1/5_numerical_facilities/special_functions/
276 14_ellint_3/pr66689.cc: New.
277 * testsuite/special_functions/06_comp_ellint_3/pr66689.cc: New.
278 * testsuite/special_functions/13_ellint_3/pr66689.cc: New.
280 2017-11-18 Edward Smith-Rowland <3dw4rd@verizon.net>
281 Expose Airy functions as an extenaion.
282 * include/bits/specfun.h: Expose airy_ai and airy_bi.
283 * include/tr1/modified_bessel_func.tcc: Treat NaN and inf arg, return.
284 * testsuite/ext/special_functions/airy_ai/check_nan.cc: New.
285 * testsuite/ext/special_functions/airy_ai/check_value.cc: New.
286 * testsuite/ext/special_functions/airy_ai/compile.cc: New.
287 * testsuite/ext/special_functions/airy_bi/check_nan.cc: New.
288 * testsuite/ext/special_functions/airy_bi/check_value.cc: New.
289 * testsuite/ext/special_functions/airy_bi/compile.cc: New.
291 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
293 * acinclude.m4: Add cet.m4.
294 * configure.ac: Set CET_FLAGS. Update EXTRA_CFLAGS,
296 * libsupc++/Makefile.am: Use Add EXTRA_CFLAGS.
297 * Makefile.in: Regenerate.
298 * configure: Likewise.
299 * doc/Makefile.in: Likewise.
300 * include/Makefile.in: Likewise.
301 * libsupc++/Makefile.in: Likewise.
302 * po/Makefile.in: Likewise.
303 * python/Makefile.in: Likewise.
304 * src/Makefile.in: Likewise.
305 * src/c++11/Makefile.in: Likewise.
306 * src/c++98/Makefile.in: Likewise.
307 * src/filesystem/Makefile.in: Likewise.
308 * testsuite/Makefile.in: Likewise.
310 2017-11-17 Jonathan Wakely <jwakely@redhat.com>
313 * include/std/fstream (basic_filebuf::_If_path): Move to
314 namespace-scope and rename to _If_fs_path.
315 (basic_filebuf::open): Use new name.
316 (basic_ifstream(_Path, ios::openmode))
317 (basic_ifstream::open(_Path, ios::openmode))
318 (basic_ofstream(_Path, ios::openmode))
319 (basic_ofstream::open(_Path, ios::openmode))
320 (basic_fstream(_Path, ios::openmode))
321 (basic_fstream::open(_Path, ios::openmode)): Use _If_fs_path.
322 * testsuite/27_io/basic_filebuf/open/char/path.cc: Test with filename
324 * testsuite/27_io/basic_fstream/cons/char/path.cc: Likewise.
325 * testsuite/27_io/basic_fstream/open/char/path.cc: Likewise.
326 * testsuite/27_io/basic_ifstream/cons/char/path.cc: Likewise.
327 * testsuite/27_io/basic_ifstream/open/char/path.cc: Likewise.
328 * testsuite/27_io/basic_ofstream/cons/char/path.cc: Likewise.
329 * testsuite/27_io/basic_ofstream/open/char/path.cc: Likewise.
332 2017-11-17 Marc Glisse <marc.glisse@inria.fr>
334 * include/bits/vector.tcc (vector::_M_realloc_insert): Cache old
335 values before the allocation.
337 2017-11-16 Jonathan Wakely <jwakely@redhat.com>
339 * include/std/future (shared_future): Add noexcept to copy constructor
340 and copy-assignment operator (LWG 2799).
342 2017-11-15 Ville Voutilainen <ville.voutilainen@gmail.com>
345 * include/std/numeric (gcd): Use remove_cv_t, not remove_cv.
347 2017-11-15 Jonathan Wakely <jwakely@redhat.com>
349 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Leave
351 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
352 Check for past-the-end before dereferencing.
353 * testsuite/experimental/filesystem/iterators/
354 recursive_directory_iterator.cc: Likewise.
356 * include/bits/range_access.h (size, empty, data): Add conditional
357 noexcept to generic overloads.
359 2017-11-14 Ville Voutilainen <ville.voutilainen@gmail.com>
361 Implement LWG 2733 and LWG 2759
362 * include/experimental/numeric (gcd): Reject cv-qualified bool.
364 * include/std/numeric (gcd): Likewise.
366 * testsuite/26_numerics/gcd/gcd_neg.cc: Add tests and adjust.
367 * testsuite/26_numerics/lcm/lcm_neg.cc: Likewise.
369 2017-11-14 Jonathan Wakely <jwakely@redhat.com>
371 * include/bits/locale_conv.h (wbuffer_convert::_M_conv_get): Fix typo.
372 * testsuite/22_locale/conversions/buffer/3.cc: New test.
374 2017-11-10 Jonathan Wakely <jwakely@redhat.com>
376 * testsuite/util/testsuite_tr1.h (ThrowMoveConsClass): Use noexcept.
379 * include/std/fstream (basic_ifstream::open, basic_ofstream::open)
380 (basic_fstream::open): Fix missing return.
382 2017-11-07 Jonathan Wakely <jwakely@redhat.com>
384 * src/filesystem/ops-common.h (make_file_type) [S_ISSOCK]: Only use
385 S_ISSOCK when defined.
387 2017-11-06 François Dumont <fdumont@gcc.gnu.org>
389 * testsuite/libstdc++-prettyprinters/tr1.cc: Compile with -O0.
391 2017-11-06 Martin Liska <mliska@suse.cz>
393 * testsuite/27_io/basic_fstream/cons/char/path.cc (main):
394 Return a value for functions with non-void return type,
395 or change type to void, or add -Wno-return-type for test.
396 * testsuite/27_io/basic_ifstream/cons/char/path.cc (main):
398 * testsuite/27_io/basic_ofstream/open/char/path.cc (main):
401 2017-11-06 Paolo Carlini <paolo.carlini@oracle.com>
403 * testsuite/20_util/optional/cons/deduction.cc: Avoid -Wreturn-type
405 * testsuite/20_util/pair/cons/deduction.cc: Likewise.
406 * testsuite/20_util/pair/traits.cc: Likewise.
407 * testsuite/20_util/tuple/cons/deduction.cc: Likewise.
408 * testsuite/20_util/variant/compile.cc: Likewise.
409 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
410 * testsuite/23_containers/unordered_map/modifiers/try_emplace.cc:
413 2017-11-05 Gerald Pfeifer <gerald@pfeifer.com>
415 * doc/xml/manual/abi.xml: Move docs.oracle.com references to https.
417 2017-11-03 Jonathan Wakely <jwakely@redhat.com>
419 * include/std/type_traits (endian): Define new enumeration type.
420 * testsuite/20_util/endian/1.cc: New test.
422 * include/bits/node_handle.h (_Node_insert_return::get): Remove, as
425 2017-11-01 François Dumont <fdumont@gcc.gnu.org>
427 * python/libstdcxx/v6/printers.py (StdExpAnyPrinter.__init__): Strip
428 typename versioned namespace before the substitution.
429 (StdExpOptionalPrinter.__init__): Likewise.
430 (StdVariantPrinter.__init__): Likewise.
431 (Printer.add_version): Inject versioned namespace after std or
433 (build_libstdcxx_dictionary): Adapt add_version usages, always pass
434 namespace first and symbol second.
436 2017-11-01 Jonathan Wakely <jwakely@redhat.com>
439 * src/filesystem/std-path.cc (path::lexically_normal): Remove dot-dot
441 * testsuite/27_io/filesystem/path/generation/normal.cc: Add testcase.
442 * testsuite/util/testsuite_fs.h (compare_paths): Improve exception
445 2017-10-30 Jonathan Wakely <jwakely@redhat.com>
447 * include/Makefile.am (stamp-bits-sup): Do not create broken symlink
449 * include/Makefile.in: Regenerate.
451 * include/std/fstream (basic_ifstream, basic_ofstream, basic_fstream):
452 Remove outdated comments about calling c_str() to create a file stream
454 (basic_ofstream::basic_ofstream, basic_ofstream::open): Remove
455 redundant ios_mode::trunc bits from default arguments and comments.
457 * doc/xml/faq.xml: Adjust "What is libstdc++?" answer slightly.
459 * include/bits/hashtable_policy.h: Include <tuple>.
460 * include/std/unordered_map: Only include <bits/stl_pair.h> instead
461 of <utility> and <tuple>.
462 * include/std/unordered_set: Likewise.
464 2017-10-30 Ville Voutilainen <ville.voutilainen@gmail.com>
467 * include/debug/array (get(const array<_Tp, _Nm>&&)): New.
468 * include/std/array (get(const array<_Tp, _Nm>&&)): Likewise.
469 * include/std/tuple (get(const tuple<_Elements...>&&)): Likewise.
470 (get(const tuple<_Types...>&&)): Likewise.
471 * include/std/utility
472 (__pair_get::__const_move_get(const std::pair<_Tp1, _Tp2>&&)):
474 (get(const std::pair<_Tp1, _Tp2>&&)): Likewise.
475 (get(const pair<_Tp, _Up>&&)): Likewise.
476 (get(const pair<_Up, _Tp>&&)): Likewise.
477 * testsuite/20_util/pair/astuple/get.cc: Add tests for
479 * testsuite/20_util/pair/astuple/get_by_type.cc: Likewise.
480 * testsuite/20_util/tuple/element_access/get2.cc: Likewise.
481 * testsuite/20_util/tuple/element_access/get2_by_type.cc: Likewise.
482 * testsuite/23_containers/array/tuple_interface/get.cc: Likewise.
483 * testsuite/23_containers/array/tuple_interface/tuple_element_debug_neg.cc:
485 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
488 2017-10-27 Jonathan Wakely <jwakely@redhat.com>
490 * include/bits/node_handle.h (_Node_insert_return::get): Avoid
491 use of std::tie and std::get.
493 * include/Makefile.am: Put headers in alphabetical order.
494 * include/Makefile.in: Regenerate.
496 * include/bits/fs_dir.h (directory_iterator): Remove noexcept from
497 constructors and increment member (LWG 3013).
498 (recursive_directory_iterator): Likewise.
499 * include/bits/fs_ops.h (copy, copy_file, create_directories)
500 (is_empty, remove_all): Remove noexcept (LWG 3013 and LWG 3014).
501 * src/filesystem/std-dir.cc (directory_iterator::increment)
502 (recursive_directory_iterator::increment): Remove noexcept.
503 * src/filesystem/std-ops.cc (copy, copy_file, create_directories)
504 (is_empty, remove_all): Remove noexcept
506 * include/bits/fs_dir.h (file_status): Make default constructor
507 non-explicit (LWG 2787).
508 * testsuite/27_io/filesystem/file_status/1.cc: New test.
509 * testsuite/experimental/filesystem/file_status/1.cc: New test.
511 * include/std/fstream (basic_filebuf::_If_path): New SFINAE helper.
512 (basic_filebuf::open<Path>(const Path&, const ios_base::openmode&))
513 (basic_ifstream<Path>(const Path&, const ios_base::openmode&))
514 (basic_ifstream::open<Path>(const Path&, const ios_base::openmode&))
515 (basic_ofstream<Path>(const Path&, const ios_base::openmode&))
516 (basic_ofstream::open<Path>(const Path&, const ios_base::openmode&))
517 (basic_fstream<Path>(const Path&, const ios_base::openmode&))
518 (basic_fstream::open<Path>(const Path&, const ios_base::openmode&)):
519 New constructors and member functions.
520 * testsuite/27_io/basic_filebuf/open/char/path.cc: New test.
521 * testsuite/27_io/basic_fstream/cons/char/path.cc: New test.
522 * testsuite/27_io/basic_fstream/open/char/path.cc: New test.
523 * testsuite/27_io/basic_ifstream/cons/char/path.cc: New test.
524 * testsuite/27_io/basic_ifstream/open/char/path.cc: New test.
525 * testsuite/27_io/basic_ofstream/cons/char/path.cc: New test.
526 * testsuite/27_io/basic_ofstream/open/char/path.cc: New test.
528 * include/bits/fs_path.h (path::format): Define new enumeration type.
529 (path(string_type&&), path<Source>(const Source&))
530 (path<InputIterator>(InputIterator, InputIterator))
531 (path<Source>(const Source&, const locale&))
532 (path<InputIterator>(InputIterator, InputIterator, const locale&)):
533 Add format parameter.
534 * testsuite/27_io/filesystem/path/construct/format.cc: New test.
536 * include/bits/stl_algo.h (__find_if_not_n, generate_n): Cast to void
537 to ensure overloaded comma not used.
538 * include/bits/stl_algobase.h (__fill_n_a, equal): Likewise.
539 * include/bits/stl_uninitialized.h (__uninitialized_fill_n)
540 (__uninitialized_fill_n_a, __uninitialized_default_n_1)
541 (__uninitialized_default_n_a, __uninitialized_copy_n)
542 (__uninitialized_copy_n_pair): Likewise
543 * testsuite/20_util/specialized_algorithms/memory_management_tools/1.cc:
544 Use test iterator wrappers with overloaded comma operator.
545 * testsuite/25_algorithms/fill_n/1.cc: Likewise.
546 * testsuite/25_algorithms/generate_n/1.cc: New test.
547 * testsuite/25_algorithms/stable_partition/1.cc: New test.
548 * testsuite/util/testsuite_iterators.h (operator,): Add deleted
549 non-member comma operator with iterator wrappers as right operand.
551 2017-10-26 Ville Voutilainen <ville.voutilainen@gmail.com>
553 Deduction guides for associative containers, debug mode deduction
555 * include/bits/stl_iterator.h (__iter_key_t)
556 (__iter_val_t, __iter_to_alloc_t): New.
557 * include/bits/stl_map.h: Add deduction guides.
558 * include/bits/stl_multimap.h: Likewise.
559 * include/bits/stl_multiset.h: Likewise.
560 * include/bits/stl_set.h: Likewise.
561 * include/bits/unordered_map.h: Likewise.
562 * include/bits/unordered_set.h: Likewise.
563 * include/debug/deque: Likewise.
564 * include/debug/forward_list: Likewise.
565 * include/debug/list: Likewise.
566 * include/debug/map.h: Likewise.
567 * include/debug/multimap.h: Likewise.
568 * include/debug/multiset.h: Likewise.
569 * include/debug/set.h: Likewise.
570 * include/debug/unordered_map: Likewise.
571 * include/debug/unordered_set: Likewise.
572 * include/debug/vector: Likewise.
573 * testsuite/23_containers/map/cons/deduction.cc: New.
574 * testsuite/23_containers/multimap/cons/deduction.cc: Likewise.
575 * testsuite/23_containers/multiset/cons/deduction.cc: Likewise.
576 * testsuite/23_containers/set/cons/deduction.cc: Likewise.
577 * testsuite/23_containers/unordered_map/cons/deduction.cc: Likewise.
578 * testsuite/23_containers/unordered_multimap/cons/deduction.cc:
580 * testsuite/23_containers/unordered_multiset/cons/deduction.cc:
582 * testsuite/23_containers/unordered_set/cons/deduction.cc: Likewise.
584 2017-10-25 Jonathan Wakely <jwakely@redhat.com>
586 * doc/xml/manual/status_cxx2017.xml: Update C++17 status, and
587 information on feature-test macros.
588 * doc/html/*: Regenerate.
591 * include/std/array (tuple_size, tuple_element): Change class-key
592 from class to struct, to avoid annoying Clang warnings.
595 * src/filesystem/ops.cc (read_symlink): Handle st_size being zero.
596 * src/filesystem/std-ops.cc (read_symlink): Likewise.
597 (do_copy_file) [!NEED_DO_COPY_FILE]: Avoid multiple definitions.
599 * src/filesystem/std-path.cc (path::lexically_normal): Add missing
600 step to algorithm, for removing dot-dot elements after root-directory.
601 * testsuite/27_io/filesystem/operations/canonical.cc: Use
602 compare_paths for more exhaustive checks.
603 * testsuite/27_io/filesystem/operations/proximate.cc: Likewise.
604 * testsuite/27_io/filesystem/path/append/path.cc: Likewise.
605 * testsuite/27_io/filesystem/path/concat/path.cc: Likewise.
606 * testsuite/27_io/filesystem/path/concat/strings.cc: Fix comment.
607 * testsuite/27_io/filesystem/path/construct/locale.cc: Likewise.
608 * testsuite/27_io/filesystem/path/decompose/root_directory.cc:
610 * testsuite/27_io/filesystem/path/generation/normal.cc: Use
611 compare_paths for more exhaustive checks. Add extra testcases.
612 * testsuite/27_io/filesystem/path/generation/proximate.cc: Use
613 compare_paths for more exhaustive checks.
614 * testsuite/27_io/filesystem/path/generation/relative.cc: Likewise.
615 * testsuite/27_io/filesystem/path/generic/generic_string.cc: Remove
617 * testsuite/27_io/filesystem/path/modifiers/make_preferred.cc: Fix
619 * testsuite/27_io/filesystem/path/modifiers/remove_filename.cc: Use
620 compare_paths for more exhaustive checks.
621 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
623 * testsuite/27_io/filesystem/path/modifiers/replace_filename.cc:
625 * testsuite/util/testsuite_fs.h (compare_paths): Also compare native
629 * testsuite/27_io/filesystem/operations/permissions.cc: Fix test.
631 2017-10-24 François Dumont <fdumont@gcc.gnu.org>
633 * testsuite/lib/libstdc++.exp (check_v3_target_normal_mode): Add
635 (check_v3_target_normal_namespace): New.
636 * testsuite/lib/dg-options.exp (dg-require-normal-namespace): New.
637 * testsuite/18_support/headers/limits/synopsis.cc: Add latter.
638 * testsuite/20_util/from_chars/requirements.cc: Likewise.
639 * testsuite/20_util/headers/functional/synopsis.cc: Likewise.
640 * testsuite/20_util/headers/memory/synopsis.cc: Likewise.
641 * testsuite/20_util/headers/utility/synopsis.cc: Likewise.
642 * testsuite/20_util/to_chars/requirements.cc: Likewise.
643 * testsuite/21_strings/headers/string/synopsis.cc: Likewise.
644 * testsuite/22_locale/headers/locale/synopsis.cc: Likewise.
645 * testsuite/23_containers/headers/bitset/synopsis.cc: Likewise.
646 * testsuite/23_containers/headers/deque/synopsis.cc: Likewise.
647 * testsuite/23_containers/headers/forward_list/synopsis.cc: Likewise.
648 * testsuite/23_containers/headers/list/synopsis.cc: Likewise.
649 * testsuite/23_containers/headers/map/synopsis.cc: Likewise.
650 * testsuite/23_containers/headers/queue/synopsis.cc: Likewise.
651 * testsuite/23_containers/headers/set/synopsis.cc: Likewise.
652 * testsuite/23_containers/headers/stack/synopsis.cc: Likewise.
653 * testsuite/23_containers/headers/vector/synopsis.cc: Likewise.
654 * testsuite/23_containers/map/modifiers/erase/abi_tag.cc: Likewise.
655 * testsuite/23_containers/multimap/modifiers/erase/abi_tag.cc: Likewise.
656 * testsuite/23_containers/multiset/modifiers/erase/abi_tag.cc: Likewise.
657 * testsuite/23_containers/set/modifiers/erase/abi_tag.cc: Likewise.
658 * testsuite/24_iterators/headers/iterator/synopsis.cc: Likewise.
659 * testsuite/24_iterators/headers/iterator/synopsis_c++11.cc: Likewise.
660 * testsuite/24_iterators/headers/iterator/synopsis_c++14.cc: Likewise.
661 * testsuite/24_iterators/headers/iterator/synopsis_c++17.cc: Likewise.
662 * testsuite/26_numerics/complex/abi_tag.cc: Likewise.
663 * testsuite/26_numerics/headers/complex/synopsis.cc: Likewise.
664 * testsuite/26_numerics/headers/valarray/synopsis.cc: Likewise.
665 * testsuite/27_io/headers/fstream/synopsis.cc: Likewise.
666 * testsuite/27_io/headers/ios/synopsis.cc: Likewise.
667 * testsuite/27_io/headers/istream/synopsis.cc: Likewise.
668 * testsuite/27_io/headers/ostream/synopsis.cc: Likewise.
669 * testsuite/27_io/headers/sstream/synopsis.cc: Likewise.
670 * testsuite/27_io/headers/streambuf/synopsis.cc: Likewise.
672 2017-10-24 Jonathan Wakely <jwakely@redhat.com>
674 * config/locale/gnu/c_locale.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Ignore
675 -Wattribute-alias warnings.
676 * src/c++11/istream-inst.cc: Likewise.
677 * src/c++11/locale-inst.cc: Likewise.
678 * src/c++11/ostream-inst.cc: Likewise.
679 * src/c++11/wlocale-inst.cc: Likewise.
680 * src/c++98/hash-long-double-tr1-aux.cc: Likewise.
682 * include/bits/string_view.tcc (find_first_of, find_last_of)
683 (find_first_not_of, find_last_not_of): Add noexcept.
684 * include/std/string_view (basic_string_view(const _CharT*))
685 (basic_string_view(const _CharT*, size_type))
686 (front, back, remove_prefix, remove_suffix, find, rfind)
687 (find_first_of, find_first_not_of): Add noexcept.
688 (at(size_type), _S_compare(size_type, size_type)): Replace conditional
689 expressions with if statements.
690 (copy(_CharT*, size_type, size_type), substr(size_type, size_type)):
691 Use _M_check for length checks.
692 (compare(basic_string_view)): Reformat.
693 (_M_check(size_type, const char)): Add noexcept(false).
694 (_M_limit(size_type, size_type)): Use noexcept not _GLIBCXX_NOEXCEPT.
697 * include/experimental/string_view (operator""sv): Add noexcept.
698 * include/std/string_view (operator""sv): Likewise.
700 2017-10-23 Jonathan Wakely <jwakely@redhat.com>
702 * include/Makefile.am: Add new headers for C++17 filesystem library.
703 * include/Makefile.in: Regenerate.
704 * include/bits/fs_dir.h: New header, based on Filesystem TS code in
705 include/experimental/bits directory.
706 * include/bits/fs_fwd.h: Likewise.
707 * include/bits/fs_ops.h: Likewise.
708 * include/bits/fs_path.h: Likewise.
709 * include/experimental/bits/fs_dir.h: Rename Doxygen group.
710 * include/experimental/bits/fs_fwd.h: Likewise.
711 * include/experimental/bits/fs_ops.h: Likewise.
712 * include/experimental/bits/fs_path.h: Likewise.
713 * include/experimental/filesystem (filesystem_error::_M_gen_what):
714 Remove inline definition.
715 * include/precompiled/stdc++.h: Add <filesystem> to precompiled
717 * include/std/filesystem: New header.
718 * python/libstdcxx/v6/printers.py: Enable printer for std::filesystem
720 * src/filesystem/Makefile.am: Add new files. Compile as C++17.
721 * src/filesystem/Makefile.in: Regenerate.
722 * src/filesystem/cow-dir.cc: Update comment.
723 * src/filesystem/cow-ops.cc: Likewise.
724 * src/filesystem/cow-path.cc: Likewise.
725 * src/filesystem/cow-std-dir.cc: New file.
726 * src/filesystem/cow-std-ops.cc: New file.
727 * src/filesystem/cow-std-path.cc: New file.
728 * src/filesystem/dir-common.h (_Dir_base, get_file_type): New header
730 * src/filesystem/dir.cc (_Dir): Derive from _Dir_base.
731 (open_dir): Move to _Dir_base constructor.
732 (get_file_type): Move to dir-common.h.
733 (recurse): Move to _Dir_base::should_recurse.
734 * src/filesystem/ops-common.h: New header for common code.
735 * src/filesystem/ops.cc (is_set, make_file_type, make_file_status)
736 (is_not_found_errno, file_time, do_copy_file): Move to ops-common.h.
737 * src/filesystem/path.cc (filesystem_error::_M_gen_what): Define.
738 * src/filesystem/std-dir.cc: New file, based on Filesystem TS code.
739 * src/filesystem/std-ops.cc: Likewise.
740 * src/filesystem/std-dir.cc: Likewise.
741 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: New
743 * testsuite/27_io/filesystem/iterators/pop.cc: New test.
744 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
746 * testsuite/27_io/filesystem/operations/absolute.cc: New test.
747 * testsuite/27_io/filesystem/operations/canonical.cc: New test.
748 * testsuite/27_io/filesystem/operations/copy.cc: New test.
749 * testsuite/27_io/filesystem/operations/copy_file.cc: New test.
750 * testsuite/27_io/filesystem/operations/create_directories.cc: New
752 * testsuite/27_io/filesystem/operations/create_directory.cc: New test.
753 * testsuite/27_io/filesystem/operations/create_symlink.cc: New test.
754 * testsuite/27_io/filesystem/operations/current_path.cc: New test.
755 * testsuite/27_io/filesystem/operations/equivalent.cc: New test.
756 * testsuite/27_io/filesystem/operations/exists.cc: New test.
757 * testsuite/27_io/filesystem/operations/file_size.cc: New test.
758 * testsuite/27_io/filesystem/operations/is_empty.cc: New test.
759 * testsuite/27_io/filesystem/operations/last_write_time.cc: New test.
760 * testsuite/27_io/filesystem/operations/permissions.cc: New test.
761 * testsuite/27_io/filesystem/operations/proximate.cc: New test.
762 * testsuite/27_io/filesystem/operations/read_symlink.cc: New test.
763 * testsuite/27_io/filesystem/operations/relative.cc: New test.
764 * testsuite/27_io/filesystem/operations/remove_all.cc: New test.
765 * testsuite/27_io/filesystem/operations/space.cc: New test.
766 * testsuite/27_io/filesystem/operations/status.cc: New test.
767 * testsuite/27_io/filesystem/operations/symlink_status.cc: New test.
768 * testsuite/27_io/filesystem/operations/temp_directory_path.cc: New
770 * testsuite/27_io/filesystem/operations/weakly_canonical.cc: New test.
771 * testsuite/27_io/filesystem/path/append/path.cc: New test.
772 * testsuite/27_io/filesystem/path/assign/assign.cc: New test.
773 * testsuite/27_io/filesystem/path/assign/copy.cc: New test.
774 * testsuite/27_io/filesystem/path/compare/compare.cc: New test.
775 * testsuite/27_io/filesystem/path/compare/path.cc: New test.
776 * testsuite/27_io/filesystem/path/compare/strings.cc: New test.
777 * testsuite/27_io/filesystem/path/concat/path.cc: New test.
778 * testsuite/27_io/filesystem/path/concat/strings.cc: New test.
779 * testsuite/27_io/filesystem/path/construct/copy.cc: New test.
780 * testsuite/27_io/filesystem/path/construct/default.cc: New test.
781 * testsuite/27_io/filesystem/path/construct/locale.cc: New test.
782 * testsuite/27_io/filesystem/path/construct/range.cc: New test.
783 * testsuite/27_io/filesystem/path/construct/string_view.cc: New test.
784 * testsuite/27_io/filesystem/path/decompose/extension.cc: New test.
785 * testsuite/27_io/filesystem/path/decompose/filename.cc: New test.
786 * testsuite/27_io/filesystem/path/decompose/parent_path.cc: New test.
787 * testsuite/27_io/filesystem/path/decompose/relative_path.cc: New
789 * testsuite/27_io/filesystem/path/decompose/root_directory.cc: New
791 * testsuite/27_io/filesystem/path/decompose/root_name.cc: New test.
792 * testsuite/27_io/filesystem/path/decompose/root_path.cc: New test.
793 * testsuite/27_io/filesystem/path/decompose/stem.cc: New test.
794 * testsuite/27_io/filesystem/path/generation/normal.cc: New test.
795 * testsuite/27_io/filesystem/path/generation/proximate.cc: New test.
796 * testsuite/27_io/filesystem/path/generation/relative.cc: New test.
797 * testsuite/27_io/filesystem/path/generic/generic_string.cc: New test.
798 * testsuite/27_io/filesystem/path/itr/traversal.cc: New test.
799 * testsuite/27_io/filesystem/path/modifiers/clear.cc: New test.
800 * testsuite/27_io/filesystem/path/modifiers/make_preferred.cc: New
802 * testsuite/27_io/filesystem/path/modifiers/remove_filename.cc: New
804 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc: New
806 * testsuite/27_io/filesystem/path/modifiers/replace_filename.cc: New
808 * testsuite/27_io/filesystem/path/modifiers/swap.cc: New test.
809 * testsuite/27_io/filesystem/path/native/string.cc: New test.
810 * testsuite/27_io/filesystem/path/nonmember/hash_value.cc: New test.
811 * testsuite/27_io/filesystem/path/query/empty.cc: New test.
812 * testsuite/27_io/filesystem/path/query/has_extension.cc: New test.
813 * testsuite/27_io/filesystem/path/query/has_filename.cc: New test.
814 * testsuite/27_io/filesystem/path/query/has_parent_path.cc: New test.
815 * testsuite/27_io/filesystem/path/query/has_relative_path.cc: New
817 * testsuite/27_io/filesystem/path/query/has_root_directory.cc: New
819 * testsuite/27_io/filesystem/path/query/has_root_name.cc: New test.
820 * testsuite/27_io/filesystem/path/query/has_root_path.cc: New test.
821 * testsuite/27_io/filesystem/path/query/has_stem.cc: New test.
822 * testsuite/27_io/filesystem/path/query/is_relative.cc: New test.
823 * testsuite/experimental/filesystem/path/construct/string_view.cc:
824 Define USE_FILESYSTEM_TS.
825 * testsuite/util/testsuite_fs.h: Allow use with C++17 paths as well
829 * doc/xml/manual/intro.xml: Include new section.
830 * doc/xml/manual/status_cxxis29124.xml: New section on IS 29124
832 * include/bits/specfun.h [__STRICT_ANSI__] (hyperg, hypergf, hypergl)
833 (conf_hyperg, conf_hypergf, conf_hypergl): Don't declare.
834 * include/c_compatibility/math.h: Import special functions into
835 global namespace for C++17.
836 * testsuite/26_numerics/headers/cmath/82644.cc: New test.
837 * testsuite/26_numerics/headers/cmath/functions_global_c++17.cc: New
840 2017-10-21 Jonathan Wakely <jwakely@redhat.com>
842 * testsuite/experimental/filesystem/path/itr/traversal.cc: Do not
843 increment past-the-end iterators.
845 2017-10-20 Jonathan Wakely <jwakely@redhat.com>
847 * include/std/chrono (__cpp_lib_chrono): Update macro value to
848 indicate support for P0505R0.
849 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: Check
852 * include/c_global/cstddef: Define __cpp_lib_byte feature-test macro.
853 * testsuite/18_support/byte/requirements.cc: Check macro.
855 2017-10-19 Jonathan Wakely <jwakely@redhat.com>
857 * testsuite/experimental/filesystem/iterators/
858 recursive_directory_iterator.cc: Ensure that error_code arguments are
859 cleared when required.
860 * testsuite/experimental/filesystem/operations/create_directory.cc:
861 Remove redundant check.
862 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
863 Ensure that error_code argument is cleared when required.
865 * include/experimental/bits/fs_path.h (path::iterator++(int))
866 (path::iterator--(int)): Fix for paths with only one component.
867 * testsuite/experimental/filesystem/path/itr/traversal.cc: Test
868 post-increment and post-decrement.
870 * doc/xml/manual/status_cxx2017.xml: Update references to C++17
873 * testsuite/decimal/conversion-to-integral.cc: Use predefined macro
874 instead of non-standard glibc one.
876 2017-10-16 François Dumont <fdumont@gcc.gnu.org>
879 * include/bits/stl_bvector.h (fill): Add iterator offset check.
880 * testsuite/23_containers/vector/bool/82558.cc: New.
882 2017-10-13 Jonathan Wakely <jwakely@redhat.com>
885 * doc/xml/manual/intro.xml: Document LWG 2354 changes.
886 * include/bits/stl_map.h (map::insert(value_type&&))
887 (map::insert(const_iterator, value_type&&)): Add overload for rvalues.
888 * include/bits/stl_multimap.h (multimap::insert(value_type&&))
889 (multimap::insert(const_iterator, value_type&&)): Likewise.
890 * include/bits/unordered_map.h (unordered_map::insert(value_type&&))
891 (unordered_map::insert(const_iterator, value_type&&))
892 (unordered_multimap::insert(value_type&&))
893 (unordered_multimap::insert(const_iterator, value_type&&)): Likewise.
894 * testsuite/23_containers/map/modifiers/insert/dr2354.cc: New test.
895 * testsuite/23_containers/multimap/modifiers/insert/dr2354.cc: New
897 * testsuite/23_containers/unordered_map/insert/dr2354.cc: New test.
898 * testsuite/23_containers/unordered_multimap/insert/dr2354.cc: New
902 * include/std/mutex (call_once): Suppress clang-tidy warnings about
905 2017-10-10 Jonathan Wakely <jwakely@redhat.com>
907 * include/bits/streambuf_iterator.h (istreambuf_iterator::equal):
908 Update comment about NAD issue.
912 * include/c_compatibility/complex.h [!C++98 && __STRICT_ANSI__]: Do
913 not include C library's <complex.h>.
914 * testsuite/26_numerics/complex/c99.cc: Depend on __STRICT_ANSI__.
915 * testsuite/26_numerics/headers/complex.h/std_c++11.h: New test.
916 * testsuite/26_numerics/headers/complex.h/std_gnu++11.h: New test.
917 * testsuite/26_numerics/headers/complex.h/std_c++98.h: New test.
919 2017-10-05 Jonathan Wakely <jwakely@redhat.com>
921 * testsuite/20_util/to_chars/1.cc: Add dg-require-string-conversions.
923 2017-10-04 Petr Ovtchenkov <ptr@void-ptr.info>
924 François Dumont <fdumont@gcc.gnu.org>
926 * include/bits/streambuf_iterator.h
927 (istreambuf_iterator<>::operator*()): Do not capture iterator state
929 (istreambuf_iterator<>::operator++()): Likewise and remove _M_sbuf check.
930 (istreambuf_iterator<>::operator++(int)): Likewise.
931 (istreambuf_iterator<>::_M_get()): Remove _M_c assignment.
932 (istreambuf_iterator<>::_S_is_eof()): New.
933 (istreambuf_iterator<>::_M_at_eof()): Adapt, use latter.
934 (find(istreambuf_iterator<>, istreambuf_iterator<>, _CharT)):
935 Return an iterator with _M_c set to eof to capture streambuf state
937 (testsuite/24_iterators/istreambuf_iterator/2.cc): Add checks.
939 2017-10-03 Jakub Jelinek <jakub@redhat.com>
941 * include/std/charconv (__unsigned_least_t): Fix number of closing >s for
942 !_GLIBCXX_USE_INT128.
944 2017-10-02 Jonathan Wakely <jwakely@redhat.com>
946 * include/Makefile.am: Add new <charconv> header.
947 * include/Makefile.in: Regenerate.
948 * include/precompiled/stdc++.h: Include <charconv>.
949 * include/std/charconv: New file.
950 (to_chars_result, to_chars, from_chars_result, from_chars): Define.
951 * testsuite/20_util/from_chars/1.cc: New test.
952 * testsuite/20_util/from_chars/1_neg.cc: New test.
953 * testsuite/20_util/from_chars/2.cc: New test.
954 * testsuite/20_util/from_chars/requirements.cc: New test.
955 * testsuite/20_util/to_chars/1.cc: New test.
956 * testsuite/20_util/to_chars/1_neg.cc: New test.
957 * testsuite/20_util/to_chars/2.cc: New test.
958 * testsuite/20_util/to_chars/requirements.cc: New test.
960 2017-09-27 François Dumont <fdumont@gcc.gnu.org>
962 * testsuite/22_locale/money_get/get/char/22131.cc: Make test less
963 istreambuf_iterator implementation dependent.
964 * testsuite/22_locale/money_get/get/wchar_t/22131.cc: Likewise.
966 2017-09-25 Uros Bizjak <ubizjak@gmail.com>
969 * src/c++98/complex_io.cc (_GLIBCXX_LDBL_COMPAT): Declare alias
970 target as a C++ function with no prototype.
972 2017-09-21 Jonathan Wakely <jwakely@redhat.com>
974 * testsuite/25_algorithms/clamp/1.cc: Fix order of arguments and
975 expected results when using predicate defining reverse order.
976 * testsuite/25_algorithms/clamp/constexpr.cc: Likewise.
978 2017-09-20 Jonathan Wakely <jwakely@redhat.com>
981 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
982 (basic_string::_If_sv): Remove from the overload set when the
983 argument is derived from basic_string.
986 * include/bits/basic_string.h (basic_string::_If_sv): Remove from the
987 overload set when the argument is derived from basic_string.
988 * testsuite/21_strings/basic_string/cons/char/moveable2_c++17.cc: New
990 * testsuite/21_strings/basic_string/cons/wchar_t/moveable2_c++17.cc:
993 * testsuite/24_iterators/range_access_cpp17.cc: Fix order of dg-do
994 and dg-options directives. Fix invalid test.
997 * libsupc++/exception (uncaught_exception): Deprecate for C++17.
998 * testsuite/18_support/exception_ptr/62258.cc: Add -Wno-deprecated.
999 * testsuite/18_support/uncaught_exception/14026.cc: Likewise.
1001 * include/bits/c++config (_GLIBCXX17_DEPRECATED): Define.
1002 * include/bits/functional_hash.h (__hash_base::result_type)
1003 (__hash_base::argument_type): Add _GLIBCXX17_DEPRECATED.
1004 * include/std/optional (hash<optional<T>>::result_type)
1005 (hash<optional<T>>::argument_type): Add deprecated attribute.
1006 (__is_fast_hash<hash<optional<T>>>): Add partial specialization.
1007 * include/std/variant (hash<variant<Types...>>::result_type)
1008 (hash<variant<Types...>>::argument_type): Add deprecated attribute.
1009 (__is_fast_hash<hash<variant<Types...>>>): Add partial specialization.
1011 * libsupc++/exception_ptr.h (copy_exception): Remove deprecated
1012 non-standard function.
1015 * include/std/optional (__optional_hash_call_base): Add template
1016 parameter for remove_const_t<_Tp> and use it consistently.
1017 * testsuite/20_util/optional/hash.cc: Test optional<const T>.
1019 2017-09-19 Jonathan Wakely <jwakely@redhat.com>
1022 * include/bits/regex_executor.tcc
1023 (_Backref_matcher<BidIt, regex_traits<C>>::_M_apply): Use
1024 std::__equal4 instead of C++14 4-iterator overloads of std::equal.
1025 * include/bits/stl_algobase.h (__equal4): New functions implementing
1026 4-iterator overloads of std::equal for use in C++11.
1027 (equal(It1, It1, It2, It2), equal(It1, It1, It2, It2, BinaryPred)):
1028 Move function bodies to new __equal4 functions.
1029 * testsuite/28_regex/simple_c++11.cc: New.
1032 * include/std/type_traits (__is_invocable): Add partial specialization
1033 for INVOKE<void> case and remove is_void<R> check from partial
1034 specialization for INVOKE<R> case.
1035 (__is_nt_invocable_impl): New helper for is_nothrow_invocable_r.
1036 (is_nothrow_invocable_r): Use __is_nt_invocable_impl.
1037 * testsuite/20_util/is_nothrow_invocable/value.cc: Add tests for
1038 conversions that can throw or fail to convert. Use static assert
1039 strings to explain negative results.
1040 * testsuite/20_util/is_nothrow_invocable/value_ext.cc: Use
1041 is_nothrow_constructible in is_nt_invocable_conv.
1043 2017-09-18 Jonathan Wakely <jwakely@redhat.com>
1046 * testsuite/20_util/duration/cons/dr1177.cc: Fix incorrect test and
1047 improve static assertion messages.
1049 * include/std/utility (_Itup_cat, _Make_integer_sequence): Remove.
1050 (_Build_index_tuple, make_integer_sequence): Use built-in to generate
1054 * include/std/type_traits (__declval): New function to deduce return
1056 (__declval_protector::_delegate): Remove.
1057 (declval): Use __declval instead of add_rvalue_reference and
1058 __declval_protector::__delegate.
1059 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error
1061 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
1063 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
1066 2017-09-15 Jakub Jelinek <jakub@redhat.com>
1068 * testsuite/libstdc++-prettyprinters/cxx17.cc: Use -std=c++17 or
1069 -std=gnu++17 instead of -std=c++1z or -std=gnu++1z. Use c++17 instead
1070 of c++1z and c++17_only instead of c++1z_only. Adjust expected
1071 diagnostics and comments refering to 1z to 17.
1072 * testsuite/30_threads/lock_guard/cons/deduction.cc: Likewise.
1073 * testsuite/30_threads/scoped_lock/cons/deduction.cc: Likewise.
1074 * testsuite/30_threads/scoped_lock/cons/1.cc: Likewise.
1075 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: Likewise.
1076 * testsuite/30_threads/scoped_lock/requirements/explicit_instantiation.cc:
1078 * testsuite/30_threads/unique_lock/cons/deduction.cc: Likewise.
1079 * testsuite/18_support/launder/1.cc (test02): Likewise.
1080 * testsuite/18_support/launder/requirements_neg.cc: Likewise.
1081 * testsuite/18_support/launder/requirements.cc: Likewise.
1082 * testsuite/18_support/byte/requirements.cc: Likewise.
1083 * testsuite/18_support/byte/ops.cc: Likewise.
1084 * testsuite/18_support/byte/global_neg.cc: Likewise.
1085 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc:
1087 * testsuite/27_io/types/4.cc: Likewise.
1088 * testsuite/25_algorithms/sample/81221.cc: Likewise.
1089 * testsuite/25_algorithms/sample/1.cc: Likewise.
1090 * testsuite/25_algorithms/sample/2.cc: Likewise.
1091 * testsuite/25_algorithms/search/searcher.cc: Likewise.
1092 * testsuite/28_regex/basic_regex/ctors/deduction.cc: Likewise.
1093 * testsuite/experimental/filesystem/path/construct/string_view.cc:
1095 * testsuite/24_iterators/range_access_cpp17.cc: Likewise.
1096 * testsuite/24_iterators/container_access.cc: Likewise.
1097 * testsuite/ext/pb_ds/regression/hash_map_rand.cc: Likewise.
1098 * testsuite/ext/pb_ds/regression/trie_set_rand.cc: Likewise.
1099 * testsuite/ext/pb_ds/regression/hash_set_rand.cc: Likewise.
1100 * testsuite/ext/pb_ds/regression/list_update_set_rand.cc: Likewise.
1101 * testsuite/ext/pb_ds/regression/list_update_map_rand.cc: Likewise.
1102 * testsuite/ext/pb_ds/regression/priority_queue_rand.cc: Likewise.
1103 * testsuite/ext/pb_ds/regression/tree_set_rand.cc: Likewise.
1104 * testsuite/ext/pb_ds/regression/tree_map_rand.cc: Likewise.
1105 * testsuite/ext/pb_ds/regression/trie_map_rand.cc: Likewise.
1106 * testsuite/20_util/shared_ptr/casts/reinterpret.cc: Likewise.
1107 * testsuite/20_util/shared_ptr/cons/deduction.cc: Likewise.
1108 * testsuite/20_util/shared_ptr/cons/array.cc: Likewise.
1109 * testsuite/20_util/shared_ptr/observers/array.cc (struct A): Likewise.
1110 * testsuite/20_util/pair/cons/deduction.cc: Likewise.
1111 * testsuite/20_util/variant/deduction.cc: Likewise.
1112 * testsuite/20_util/tuple/78939.cc: Likewise.
1113 * testsuite/20_util/tuple/cons/deduction.cc: Likewise.
1114 * testsuite/20_util/void_t/1.cc: Likewise.
1115 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: Likewise.
1116 * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: Likewise.
1117 * testsuite/20_util/addressof/requirements/constexpr.cc: Likewise.
1118 * testsuite/20_util/weak_ptr/cons/deduction.cc: Likewise.
1119 * testsuite/20_util/has_unique_object_representations/requirements/typedefs.cc:
1121 * testsuite/20_util/has_unique_object_representations/requirements/explicit_instantiation.cc:
1123 * testsuite/20_util/has_unique_object_representations/value.cc:
1125 * testsuite/20_util/time_point/arithmetic/constexpr.cc: Likewise.
1126 * testsuite/20_util/function_objects/invoke/59768.cc: Likewise.
1127 * testsuite/20_util/function_objects/mem_fn/80478.cc: Likewise.
1128 * testsuite/20_util/function/cons/deduction.cc: Likewise.
1129 * testsuite/20_util/specialized_algorithms/memory_management_tools/destroy_neg.cc:
1131 * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise.
1132 * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc:
1134 * testsuite/20_util/is_aggregate/value.cc: Likewise.
1135 * testsuite/26_numerics/lcm/1.cc: Likewise.
1136 * testsuite/26_numerics/lcm/lcm_neg.cc: Likewise.
1137 * testsuite/26_numerics/gcd/1.cc: Likewise.
1138 * testsuite/26_numerics/gcd/gcd_neg.cc: Likewise.
1139 * testsuite/26_numerics/valarray/deduction.cc: Likewise.
1140 * testsuite/26_numerics/headers/cmath/types_std_c++0x_neg.cc: Likewise.
1141 * testsuite/26_numerics/headers/cmath/hypot.cc: Likewise.
1142 * testsuite/23_containers/queue/members/emplace_cxx17_return.cc:
1144 * testsuite/23_containers/array/cons/deduction.cc: Likewise.
1145 * testsuite/23_containers/array/cons/deduction_neg.cc: Likewise.
1146 * testsuite/23_containers/deque/modifiers/emplace/cxx17_return.cc:
1148 * testsuite/23_containers/deque/cons/deduction.cc: Likewise.
1149 * testsuite/23_containers/stack/members/emplace_cxx17_return.cc:
1151 * testsuite/23_containers/list/modifiers/emplace/cxx17_return.cc:
1153 * testsuite/23_containers/list/cons/deduction.cc: Likewise.
1154 * testsuite/23_containers/forward_list/modifiers/emplace_cxx17_return.cc:
1156 * testsuite/23_containers/forward_list/cons/deduction.cc: Likewise.
1157 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Likewise.
1158 * testsuite/23_containers/vector/modifiers/emplace/cxx17_return.cc:
1160 * testsuite/23_containers/vector/cons/deduction.cc: Likewise.
1161 * testsuite/23_containers/vector/bool/emplace_cxx17_return.cc:
1163 * testsuite/21_strings/basic_string/cons/char/9.cc: Likewise.
1164 * testsuite/21_strings/basic_string/cons/char/deduction.cc: Likewise.
1165 * testsuite/21_strings/basic_string/cons/char/79162.cc: Likewise.
1166 * testsuite/21_strings/basic_string/cons/wchar_t/9.cc: Likewise.
1167 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
1169 * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: Likewise.
1170 * testsuite/21_strings/basic_string_view/modifiers/swap/char/1.cc:
1172 * testsuite/21_strings/basic_string_view/modifiers/swap/wchar_t/1.cc:
1174 * testsuite/21_strings/basic_string_view/operations/compare/char/2.cc:
1176 * testsuite/21_strings/basic_string_view/operations/compare/char/70483.cc:
1178 * testsuite/21_strings/basic_string_view/operations/compare/wchar_t/2.cc:
1180 * testsuite/21_strings/char_traits/requirements/constexpr_functions_c++17.cc:
1183 2017-09-13 Jonathan Wakely <jwakely@redhat.com>
1186 * include/std/chrono (__enable_if_is_duration)
1187 (__disable_if_is_duration): New alias templates to simplify SFINAE.
1188 (duration_cast, floor, ceil): Use __enable_if_is_duration.
1189 (duration::__is_float, duration::__is_harmonic): New alias templates
1191 (duration::duration(const _Rep2&)): Use _Require, __is_float and
1193 (duration::duration(const duration<_Rep2, _Period2>&)): Likewise.
1194 (__common_rep_type): Remove, replace with ...
1195 (__common_rep_t): New alias template.
1196 (operator*, operator/, operator%): Use __common_rep_t and
1197 __disable_if_is_duration.
1198 (time_point::time_point(const time_point<clock, _Dur2>&)): Add missing
1199 constraint from LWG DR 1177.
1200 * testsuite/20_util/duration/cons/dr1177.cc: New.
1201 * testsuite/20_util/duration/literals/range.cc: Update dg-error line.
1202 * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise.
1203 * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
1204 * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
1205 * testsuite/20_util/time_point/cons/81468.cc: New.
1207 * doc/doxygen/mainpage.html: Fix broken URLs.
1210 * doc/xml/manual/extensions.xml: Replace unstable URL.
1211 * doc/html/manual/ext_demangling.html: Regenerate.
1212 * libsupc++/cxxabi.h (__cxa_demangle): Fix broken URL.
1214 * include/bits/allocated_ptr.h (__allocated_ptr::get): Use
1216 (__allocated_ptr::_S_raw_ptr): Remove.
1217 * include/bits/forward_list.h (_Fwd_list_base::_M_get_node): Use
1219 * include/bits/hashtable_policy.h (_Hashtable_alloc): Likewise.
1220 * include/bits/ptr_traits.h (__to_address): Define new function
1222 * include/bits/shared_ptr_base.h (__shared_ptr): Use __to_address.
1223 (__shared_ptr::_S_raw_ptr): Remove.
1224 * include/bits/stl_vector.h [__cplusplus >= 201103L]
1225 (vector::_M_data_ptr): Use __to_address.
1226 [__cplusplus < 201103L] (vector::_M_data_ptr): Don't dereference
1227 possibly invalid pointers.
1228 * include/ext/alloc_traits.h (__alloc_traits::construct)
1229 (__alloc_traits::destroy): Use __to_address.
1231 2017-09-12 Jonathan Wakely <jwakely@redhat.com>
1234 * include/Makefile.am: Remove <bits/c++14_warning.h>.
1235 * include/Makefile.in: Regenerate.
1236 * include/bits/c++14_warning.h: Remove.
1237 * include/experimental/algorithm: Do not include <c++14_warning.h>.
1238 * include/experimental/any: Likewise.
1239 * include/experimental/array: Likewise.
1240 * include/experimental/bits/erase_if.h: Likewise.
1241 * include/experimental/bits/lfts_config.h: Likewise.
1242 * include/experimental/bits/shared_ptr.h: Likewise.
1243 * include/experimental/bits/string_view.tcc: Likewise.
1244 * include/experimental/chrono: Likewise.
1245 * include/experimental/deque: Likewise.
1246 * include/experimental/filesystem: Do not include <c++0x_warning.h>.
1247 * include/experimental/forward_list: Do not include <c++14_warning.h>.
1248 * include/experimental/functional: Likewise.
1249 * include/experimental/iterator: Likewise.
1250 * include/experimental/list: Likewise.
1251 * include/experimental/map: Likewise.
1252 * include/experimental/memory: Likewise.
1253 * include/experimental/numeric: Likewise.
1254 * include/experimental/optional: Likewise.
1255 * include/experimental/propagate_const: Likewise.
1256 * include/experimental/ratio: Likewise.
1257 * include/experimental/regex: Likewise.
1258 * include/experimental/set: Likewise.
1259 * include/experimental/string: Likewise.
1260 * include/experimental/string_view: Likewise.
1261 * include/experimental/system_error: Likewise.
1262 * include/experimental/tuple: Likewise.
1263 * include/experimental/type_traits: Likewise.
1264 * include/experimental/unordered_map: Likewise.
1265 * include/experimental/unordered_set: Likewise.
1266 * include/experimental/vector: Likewise.
1267 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error
1269 * testsuite/experimental/array/neg.cc: Likewise.
1270 * testsuite/experimental/propagate_const/assignment/move_neg.cc:
1272 * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
1273 * testsuite/experimental/propagate_const/requirements2.cc: Likewise.
1274 * testsuite/experimental/propagate_const/requirements3.cc: Likewise.
1275 * testsuite/experimental/propagate_const/requirements4.cc: Likewise.
1276 * testsuite/experimental/propagate_const/requirements5.cc: Likewise.
1279 * doc/xml/manual/status_cxx2017.xml: Update feature-test macros.
1280 * doc/html/*: Regenerate.
1281 * include/Makefile.am: Remove <bits/c++17_warning.h>.
1282 * include/Makefile.in: Regenerate.
1283 * include/bits/c++17_warning.h: Remove.
1284 * include/bits/string_view.tcc: Do not include <bits/c++17_warning.h>
1285 for pre-C++17 modes.
1286 * include/std/any: Likewise.
1287 (__cpp_lib_any): Define.
1288 * include/std/mutex (__cpp_lib_scoped_lock): Adjust value as per new
1290 * include/std/numeric (__cpp_lib_gcd_lcm): Define as per new SD-6
1292 * include/std/optional: Do not include <bits/c++17_warning.h>.
1293 (__cpp_lib_optional): Define.
1294 * include/std/shared_mutex: Do not include <bits/c++14_warning.h>.
1295 * include/std/string_view: Do not include <bits/c++17_warning.h>.
1296 (__cpp_lib_string_view): Define.
1297 * include/std/variant: Do not include <bits/c++17_warning.h>.
1298 (__cpp_lib_variant): Define.
1299 * testsuite/20_util/optional/cons/value_neg.cc: Adjust dg-error line
1301 * testsuite/26_numerics/gcd/1.cc: Test for __cpp_lib_gcd_lcm.
1302 * testsuite/26_numerics/gcd/gcd_neg.cc: Adjust dg-error line
1304 * testsuite/26_numerics/lcm/1.cc: Test for __cpp_lib_gcd_lcm.
1305 * testsuite/26_numerics/lcm/lcm_neg.cc: Adjust dg-error line
1307 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: Adjust
1308 expected value of __cpp_lib_scoped_lock.
1311 * include/experimental/bits/string_view.tcc (basic_string_view::find)
1312 (basic_string_view::rfind, basic_string_view::find_first_of)
1313 (basic_string_view::find_last_of, basic_string_view::find_first_not_of)
1314 (basic_string_view::find_last_not_of): Add constexpr specifier.
1315 * include/experimental/string_view (basic_string_view::remove_prefix)
1316 (basic_string_view::remove_suffix, basic_string_view::swap)
1317 (basic_string_view::compare, basic_string_view::find)
1318 (basic_string_view::rfind, basic_string_view::find_first_of)
1319 (basic_string_view::find_last_of, basic_string_view::find_first_not_of)
1320 (basic_string_view::find_last_not_of, operator==, operator!=)
1321 (operator<, operator>, operator<=, operator>=): Likewise.
1322 * testsuite/experimental/string_view/operations/compare/char/70483.cc:
1325 2017-09-11 Jonathan Wakely <jwakely@redhat.com>
1328 * include/bits/string_view.tcc (basic_string_view::find)
1329 (basic_string_view::rfind, basic_string_view::find_first_of)
1330 (basic_string_view::find_last_of, basic_string_view::find_first_not_of)
1331 (basic_string_view::find_last_not_of): Add constexpr specifier.
1332 * include/std/string_view (basic_string_view::operator=)
1333 (basic_string_view::rbegin, basic_string_view::rend)
1334 (basic_string_view::crbegin, basic_string_view::crend)
1335 (basic_string_view::remove_prefix, basic_string_view::remove_suffix)
1336 (basic_string_view::swap, basic_string_view::compare)
1337 (basic_string_view::find, basic_string_view::rfind)
1338 (basic_string_view::find_first_of, basic_string_view::find_last_of)
1339 (basic_string_view::find_first_not_of)
1340 (basic_string_view::find_last_not_of, basic_string_view::_M_check)
1341 (basic_string_view::_M_limit, operator==, operator!=, operator<)
1342 (operator>, operator<=, operator>=): Likewise.
1343 * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
1344 char/1.cc: Repeat tests in constexpr context.
1345 * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
1346 wchar_t/1.cc: Likewise.
1347 * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
1348 char/1.cc: Likewise.
1349 * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
1350 wchar_t/1.cc: Likewise.
1351 * testsuite/21_strings/basic_string_view/operations/find/char/1.cc:
1353 * testsuite/21_strings/basic_string_view/operations/find/char/2.cc:
1355 * testsuite/21_strings/basic_string_view/operations/find/char/3.cc:
1357 * testsuite/21_strings/basic_string_view/operations/find/wchar_t/1.cc:
1359 * testsuite/21_strings/basic_string_view/operations/find/wchar_t/2.cc:
1361 * testsuite/21_strings/basic_string_view/operations/find/wchar_t/3.cc:
1363 * testsuite/21_strings/basic_string_view/operators/char/2.cc:
1365 * testsuite/21_strings/basic_string_view/operators/wchar_t/2.cc:
1367 * testsuite/21_strings/basic_string_view/range_access/char/1.cc: Test
1368 cbegin, cend, rbegin, rend, crbegin and crend.
1369 * testsuite/21_strings/basic_string_view/range_access/wchar_t/1.cc:
1371 * testsuite/21_strings/basic_string_view/operations/compare/char/1.cc:
1372 Remove trailing whitespace.
1373 * testsuite/21_strings/basic_string_view/operations/compare/wchar_t/
1375 * testsuite/21_strings/basic_string_view/modifiers/swap/char/1.cc:
1377 * testsuite/21_strings/basic_string_view/modifiers/swap/wchar_t/1.cc:
1379 * testsuite/21_strings/basic_string_view/operations/compare/char/2.cc:
1381 * testsuite/21_strings/basic_string_view/operations/compare/wchar_t/
1384 2017-09-11 Tim Shen <timshen@google.com>
1387 * include/bits/regex_executor.tcc: Support icase in regex_traits<...>
1388 for back reference matches.
1389 * testsuite/28_regex/regression.cc: Test case.
1391 2017-09-11 Jonathan Wakely <jwakely@redhat.com>
1393 * testsuite/21_strings/basic_string/lwg2946.cc: Adjust for
1394 compatibility with old COW std::string.
1396 2017-09-09 Gerald Pfeifer <gerald@pfeifer.com>
1398 * doc/xml/manual/allocator.xml: Adjust link for Hoard.
1399 * doc/html/manual/memory.html: Regenerate.
1401 2017-09-04 Daniel Kruegler <daniel.kruegler@gmail.com>
1404 Implement LWG 2946, LWG 2758's resolution missed further corrections
1405 * include/bits/basic_string.h (basic_string::compare): Add missing
1406 required noexcept specifications.
1407 (basic_string): Introduce internal _S_to_string_view and __sv_wrapper
1408 for implicit string_view conversion.
1409 (basic_string::basic_string): Fix explicit string_view conversion by
1410 implicit conversion using _S_to_string_view and __sv_wrapper.
1411 (basic_string): Introduce internal basic_string(__sv_wrapper, Alloc)
1413 (basic_string): Fix operator=(T) template by operator=(const T&)
1414 template for uncopyable types (PR 79162).
1415 (basic_string::operator+=, basic_string::append, basic_string::assign)
1416 (basic_string::insert, basic_string::replace, basic_string::find)
1417 (basic_string::rfind, basic_string::find_first_of)
1418 (basic_string::find_last_of, basic_string::find_first_not_of)
1419 (basic_string::find_last_not_of, basic_string::compare): Replace
1420 __sv_type argument by template const T& (LWG 2946) and correct
1421 documentation describing __sv_type argument.
1422 (basic_string::find, basic_string::rfind, basic_string::find_first_of)
1423 (basic_string::find_last_of, basic_string::find_first_not_of)
1424 (basic_string::find_last_not_of, basic_string::compare): Replace
1425 unconditional noexcept specification by conditional noexcept
1426 specification to partially balance the removal of noexcept by LWG 2946.
1427 * testsuite/21_strings/basic_string/79162.cc: New.
1428 * testsuite/21_strings/basic_string/lwg2946.cc: New.
1430 2017-08-31 Jonathan Wakely <jwakely@redhat.com>
1433 * include/ext/new_allocator.h (__gnu_cxx::new_allocator::allocate):
1434 Adjust null pointer constant to avoid warning.
1436 2017-08-24 François Dumont <fdumont@gcc.gnu.org>
1438 * include/bits/stl_list.h
1439 [!_GLIBCXX_INLINE_VERSION](_List_base<>::_S_distance): Remove.
1440 (_List_impl(_Node_alloc_type&&, _List_impl&&)): New.
1441 (_List_base(_Node_alloc_type&&, _List_base&&)): New, use latter.
1442 [!_GLIBCXX_INLINE_VERSION](_List_base(_Node_alloc_type&&,_List_base&&)):
1444 (_List_base(_Node_alloc_type&&)): New.
1445 [!_GLIBCXX_INLINE_VERSION](_List_base<>::_M_distance): Remove.
1446 [!_GLIBCXX_INLINE_VERSION](_List_base<>::_M_node_count): Remove.
1447 (list<>::_M_node_count): New.
1448 (list<>::size()): Adapt to call latter.
1449 (list<>::_S_distance(const_iterator, const_iterator)): New.
1450 (list<>::splice(iterator, list&, const_iterator, const_iterator)):
1451 Adapt to call latter.
1452 (list(list&&, const allocator_type&, true_type)): New.
1453 (list(list&&, const allocator_type&, false_type)): New.
1454 (list(list&&, const allocator_type&)): Adapt to call latters.
1456 2017-08-21 Jonathan Wakely <jwakely@redhat.com>
1459 * include/bits/stl_iterator_base_types.h (__iterator_category): Add
1460 constexpr for C++11 and later.
1461 * testsuite/24_iterators/container_access.cc: Add target selector.
1462 * testsuite/24_iterators/range_access.cc: Fix clause number in
1464 * testsuite/24_iterators/range_access_cpp14.cc: Likewise.
1465 * testsuite/24_iterators/range_access_cpp17.cc: New.
1467 2017-08-21 Richard Biener <rguenther@suse.de>
1469 * testsuite/libstdc++-prettyprinters/prettyprinters.exp: Run all
1470 tests with -flto as well if supported.
1472 2017-08-20 Martin Sebor <msebor@redhat.com>
1475 * src/c++98/compatibility.cc (_GLIBCXX_3_4_SYMVER): Declare alias
1476 target as a C++ function with no prototype.
1477 (_GLIBCXX_3_4_5_SYMVER): Ditto.
1479 2017-08-20 John David Anglin <danglin@gcc.gnu.org>
1482 * testsuite/17_intro/names.cc: Undef 'd' and 'r' on __hpux__.
1484 2017-08-18 Jonathan Wakely <jwakely@redhat.com>
1486 * include/bits/hashtable_policy.h (_ReuseOrAllocNode): Remove
1487 __value_alloc_type and __value_alloc_traits typedefs.
1488 (_ReuseOrAllocNode::operator()): Call construct and destroy on the
1490 (_Hashtable_alloc): Simplify __value_alloc_traits typedef.
1491 (_Hashtable_alloc<_NodeAlloc>::_M_allocate_node(_Args&&...)): Call
1492 construct on the node allocator.
1493 (_Hashtable_alloc<_NodeAlloc>::_M_deallocate_node(__node_type*)): Call
1494 destroy on the node allocator.
1497 * include/bits/hashtable.h (_Hashtable(_InputIterator, _InputIterator,
1498 size_type, const _H1&, const _H2&, const _Hash&, const _Equal&,
1499 const _ExtractKey&, const allocator_type&)): Let destructor do clean
1500 up if an exception is thrown.
1501 * testsuite/23_containers/unordered_map/cons/81891.cc: New.
1503 2017-08-11 Jonathan Wakely <jwakely@redhat.com>
1506 * testsuite/27_io/basic_fstream/53984.cc: Adjust test for targets
1507 that allow opening a directory as a FILE and reading from it.
1509 2017-08-09 Jonathan Wakely <jwakely@redhat.com>
1511 * include/std/type_traits (_GLIBCXX_NO_BUILTIN_HAS_UNIQ_OBJ_REP):
1512 Replace with _GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP and use
1513 __is_identifier to set it.
1515 2017-08-09 Katsuhiko Nishimra <ktns.87@gmail.com>
1517 * include/std/type_traits (_GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE): Use
1518 __is_identifier instead of __has_builtin.
1520 2017-08-09 Jonathan Wakely <jwakely@redhat.com>
1524 * config/io/basic_file_stdio.cc (sys_open(FILE*, ios_base::openmode)):
1525 Call fflush on the stream instead of calling sync() while _M_cfile is
1526 null. Restore original value of errno.
1527 * testsuite/ext/stdio_filebuf/char/79820.cc: New.
1528 * testsuite/ext/stdio_filebuf/char/81751.cc: New.
1530 2017-07-31 Marek Polacek <polacek@redhat.com>
1533 * include/bits/stl_stack.h: Fix typo.
1535 2017-07-26 Jonathan Wakely <jwakely@redhat.com>
1537 * testsuite/27_io/basic_fstream/53984.cc: Fix test.
1539 2017-07-26 Paolo Carlini <paolo.carlini@oracle.com>
1541 * testsuite/27_io/basic_fstream/53984.cc: Fix typo in dg-require
1544 2017-07-25 Jonathan Wakely <jwakely@redhat.com>
1547 * include/bits/basic_ios.h (basic_ios::_M_setstate): Adjust comment.
1548 * include/bits/istream.tcc (basic_istream::sentry): Handle exceptions
1549 during construction.
1550 * include/std/istream: Adjust comments for formatted input functions
1551 and unformatted input functions.
1552 * testsuite/27_io/basic_fstream/53984.cc: New.
1553 * testsuite/27_io/basic_istream/sentry/char/53984.cc: New.
1555 * include/bits/ios_base.h (ios_base::io_state, ios_base::open_mode)
1556 (ios_base::seek_dir): Remove for C++17.
1557 * include/std/streambuf (basic_streambuf::stossc): Remove for C++17.
1558 Add deprecated attribute for C++11 and C++14.
1559 * testsuite/27_io/types/1.cc: Don't run for C++17 and later.
1560 * testsuite/27_io/types/4.cc: New.
1562 2017-07-23 Michael Collison <michael.collison@arm.com>
1564 Add optimized implementation of mersenne twister for aarch64
1565 * config/cpu/aarch64/opt/ext/opt_random.h: New file.
1566 (__arch64_recursion): New function.
1567 (__aarch64_lsr_128): New function.
1568 (__aarch64_lsl_128): New function.
1569 (operator==): New function.
1570 (simd_fast_mersenne_twister_engine): Implement
1572 * config/cpu/aarch64/opt/bits/opt_random.h: New file.
1573 * include/ext/random: (simd_fast_mersenne_twister_engine):
1574 add _M_state private array.
1576 2017-07-23 François Dumont <fdumont@gcc.gnu.org>
1579 * include/bits/algorithmfwd.h: Reorganize versioned namespace.
1580 * include/bits/basic_string.h: Likewise.
1581 * include/bits/c++config: Likewise.
1582 * include/bits/deque.tcc: Likewise.
1583 * include/bits/forward_list.h: Likewise.
1584 * include/bits/forward_list.tcc: Likewise.
1585 * include/bits/hashtable_policy.h: Likewise.
1586 * include/bits/list.tcc: Likewise.
1587 * include/bits/move.h: Likewise.
1588 * include/bits/quoted_string.h: Likewise.
1589 * include/bits/random.h: Likewise.
1590 * include/bits/random.tcc: Likewise.
1591 * include/bits/regex.h: Likewise.
1592 * include/bits/regex.tcc: Likewise.
1593 * include/bits/regex_automaton.h: Likewise.
1594 * include/bits/regex_automaton.tcc: Likewise.
1595 * include/bits/regex_compiler.h: Likewise.
1596 * include/bits/regex_compiler.tcc: Likewise.
1597 * include/bits/regex_constants.h: Likewise.
1598 * include/bits/regex_error.h: Likewise.
1599 * include/bits/regex_executor.h: Likewise.
1600 * include/bits/regex_executor.tcc: Likewise.
1601 * include/bits/regex_scanner.h: Likewise.
1602 * include/bits/regex_scanner.tcc: Likewise.
1603 * include/bits/specfun.h: Likewise.
1604 * include/bits/stl_algo.h: Likewise.
1605 * include/bits/stl_algobase.h: Likewise.
1606 * include/bits/stl_bvector.h: Likewise.
1607 * include/bits/stl_deque.h: Likewise.
1608 * include/bits/stl_iterator.h: Likewise.
1609 * include/bits/stl_iterator_base_funcs.h: Likewise.
1610 * include/bits/stl_list.h: Likewise.
1611 * include/bits/stl_map.h: Likewise.
1612 * include/bits/stl_multimap.h: Likewise.
1613 * include/bits/stl_multiset.h: Likewise.
1614 * include/bits/stl_relops.h: Likewise.
1615 * include/bits/stl_set.h: Likewise.
1616 * include/bits/stl_vector.h: Likewise.
1617 * include/bits/uniform_int_dist.h: Likewise.
1618 * include/bits/unordered_map.h: Likewise.
1619 * include/bits/unordered_set.h: Likewise.
1620 * include/bits/vector.tcc: Likewise.
1621 * include/c_global/cmath: Likewise.
1622 * include/c_std/cmath: Likewise.
1623 * include/decimal/decimal: Likewise.
1624 * include/decimal/decimal.h: Likewise.
1625 * include/experimental/algorithm: Likewise.
1626 * include/experimental/any: Likewise.
1627 * include/experimental/array: Likewise.
1628 * include/experimental/bits/erase_if.h: Likewise.
1629 * include/experimental/bits/fs_dir.h: Likewise.
1630 * include/experimental/bits/fs_fwd.h: Likewise.
1631 * include/experimental/bits/fs_ops.h: Likewise.
1632 * include/experimental/bits/fs_path.h: Likewise.
1633 * include/experimental/bits/lfts_config.h: Likewise.
1634 * include/experimental/bits/shared_ptr.h: Likewise.
1635 * include/experimental/bits/string_view.tcc: Likewise.
1636 * include/experimental/chrono: Likewise.
1637 * include/experimental/deque: Likewise.
1638 * include/experimental/filesystem: Likewise.
1639 * include/experimental/forward_list: Likewise.
1640 * include/experimental/functional: Likewise.
1641 * include/experimental/iterator: Likewise.
1642 * include/experimental/list: Likewise.
1643 * include/experimental/map: Likewise.
1644 * include/experimental/memory: Likewise.
1645 * include/experimental/memory_resource: Likewise.
1646 * include/experimental/numeric: Likewise.
1647 * include/experimental/optional: Likewise.
1648 * include/experimental/propagate_const: Likewise.
1649 * include/experimental/random: Likewise.
1650 * include/experimental/ratio: Likewise.
1651 * include/experimental/regex: Likewise.
1652 * include/experimental/set: Likewise.
1653 * include/experimental/source_location: Likewise.
1654 * include/experimental/string: Likewise.
1655 * include/experimental/string_view: Likewise.
1656 * include/experimental/system_error: Likewise.
1657 * include/experimental/tuple: Likewise.
1658 * include/experimental/type_traits: Likewise.
1659 * include/experimental/unordered_map: Likewise.
1660 * include/experimental/unordered_set: Likewise.
1661 * include/experimental/utility: Likewise.
1662 * include/experimental/vector: Likewise.
1663 * include/ext/bitmap_allocator.h: Likewise.
1664 * include/ext/codecvt_specializations.h: Likewise.
1665 * include/ext/rope: Likewise.
1666 * include/ext/typelist.h: Likewise.
1667 * include/std/chrono: Likewise.
1668 * include/std/complex: Likewise.
1669 * include/std/functional: Likewise.
1670 * include/std/numeric: Likewise.
1671 * include/std/string_view: Likewise.
1672 * include/std/thread: Likewise.
1673 * include/std/variant: Likewise.
1674 * include/tr1/array: Likewise.
1675 * include/tr1/bessel_function.tcc: Likewise.
1676 * include/tr1/beta_function.tcc: Likewise.
1677 * include/tr1/cmath: Likewise.
1678 * include/tr1/complex: Likewise.
1679 * include/tr1/ell_integral.tcc: Likewise.
1680 * include/tr1/exp_integral.tcc: Likewise.
1681 * include/tr1/functional: Likewise.
1682 * include/tr1/functional_hash.h: Likewise.
1683 * include/tr1/gamma.tcc: Likewise.
1684 * include/tr1/hashtable.h: Likewise.
1685 * include/tr1/hashtable_policy.h: Likewise.
1686 * include/tr1/hypergeometric.tcc: Likewise.
1687 * include/tr1/legendre_function.tcc: Likewise.
1688 * include/tr1/modified_bessel_func.tcc: Likewise.
1689 * include/tr1/poly_hermite.tcc: Likewise.
1690 * include/tr1/poly_laguerre.tcc: Likewise.
1691 * include/tr1/random.h: Likewise.
1692 * include/tr1/random.tcc: Likewise.
1693 * include/tr1/regex: Likewise.
1694 * include/tr1/riemann_zeta.tcc: Likewise.
1695 * include/tr1/shared_ptr.h: Likewise.
1696 * include/tr1/special_function_util.h: Likewise.
1697 * include/tr1/tuple: Likewise.
1698 * include/tr1/type_traits: Likewise.
1699 * include/tr1/unordered_map.h: Likewise.
1700 * include/tr1/unordered_set.h: Likewise.
1701 * include/tr1/utility: Likewise.
1702 * include/tr2/bool_set: Likewise.
1703 * include/tr2/bool_set.tcc: Likewise.
1704 * include/tr2/dynamic_bitset: Likewise.
1705 * include/tr2/dynamic_bitset.tcc: Likewise.
1706 * include/tr2/ratio: Likewise.
1707 * include/tr2/type_traits: Likewise.
1708 * src/c++11/chrono.cc: Likewise.
1709 * src/c++11/compatibility-c++0x.cc: Likewise.
1710 * src/c++11/compatibility-chrono.cc: Likewise.
1711 * src/c++11/cxx11-shim_facets.cc: Likewise.
1712 * src/c++11/hashtable_c++0x.cc: Likewise.
1713 * src/c++11/placeholders.cc: Likewise.
1714 * src/c++11/thread.cc: Likewise.
1715 * src/c++98/bitmap_allocator.cc: Likewise.
1716 * src/c++98/hashtable_tr1.cc: Likewise.
1717 * src/c++98/list.cc: Likewise.
1718 * src/shared/hashtable-aux.cc: Likewise.
1719 * testsuite/20_util/duration/literals/range.cc: Adapt line number.
1720 * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise.
1721 * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
1722 * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
1723 * testsuite/20_util/forward/c_neg.cc: Likewise.
1724 * testsuite/20_util/forward/f_neg.cc: Likewise.
1725 * testsuite/26_numerics/gcd/gcd_neg.cc: Likewise.
1726 * testsuite/26_numerics/lcm/lcm_neg.cc: Likewise.
1727 * testsuite/26_numerics/random/pr60037-neg.cc: Likewise.
1728 * python/libstdcxx/v6/printers.py: Adapt.
1730 2017-07-20 Jonathan Wakely <jwakely@redhat.com>
1732 * config/allocator/malloc_allocator_base.h [__SANITIZE_ADDRESS__]
1733 (_GLIBCXX_SANITIZE_STD_ALLOCATOR): Define.
1734 * config/allocator/new_allocator_base.h [__SANITIZE_ADDRESS__]
1735 (_GLIBCXX_SANITIZE_STD_ALLOCATOR): Define.
1736 * doc/xml/manual/using.xml (_GLIBCXX_SANITIZE_VECTOR): Document macro.
1737 * include/bits/stl_vector.h [_GLIBCXX_SANITIZE_VECTOR]
1738 (_Vector_impl::_Asan, _Vector_impl::_Asan::_Reinit)
1739 (_Vector_impl::_Asan::_Grow, _GLIBCXX_ASAN_ANNOTATE_REINIT)
1740 (_GLIBCXX_ASAN_ANNOTATE_GROW, _GLIBCXX_ASAN_ANNOTATE_GREW)
1741 (_GLIBCXX_ASAN_ANNOTATE_SHRINK, _GLIBCXX_ASAN_ANNOTATE_BEFORE_DEALLOC):
1742 Define annotation helper types and macros.
1743 (vector::~vector, vector::push_back, vector::pop_back)
1744 (vector::_M_erase_at_end): Add annotations.
1745 * include/bits/vector.tcc (vector::reserve, vector::emplace_back)
1746 (vector::insert, vector::_M_erase, vector::operator=)
1747 (vector::_M_fill_assign, vector::_M_assign_aux)
1748 (vector::_M_insert_rval, vector::_M_emplace_aux)
1749 (vector::_M_insert_aux, vector::_M_realloc_insert)
1750 (vector::_M_fill_insert, vector::_M_default_append)
1751 (vector::_M_shrink_to_fit, vector::_M_range_insert): Annotate.
1753 2017-07-19 Jonathan Wakely <jwakely@redhat.com>
1756 * include/bits/vector.tcc (vector::_M_range_insert<_InputIterator>):
1757 Only insert elements one-by-one when inserting at the end.
1758 * testsuite/performance/23_containers/insert/81476.cc: New.
1760 2017-07-19 Volker Reichelt <v.reichelt@netcologne.de>
1762 * libsupc++/new (bad_array_new_length): Remove redundant
1763 semicolon after in-class member function definition.
1764 * include/bits/locale_facets.h (ctype_byname, num_put): Likewise.
1765 * include/bits/locale_facets_nonio.h (time_put_byname): Likewise.
1766 * include/bits/random.h (mersenne_twister_engine): Likewise.
1767 * include/tr1/random.h (mersenne_twister): Likewise
1768 * include/ext/random (simd_fast_mersenne_twister_engine): Likewise.
1769 * include/ext/rope (char_producer, _Rope_char_consumer,
1770 _Rope_self_destruct_ptr, _Rope_const_iterator, _Rope_iterator):
1772 * include/ext/ropeimpl.h (_Rope_flatten_char_consumer,
1773 _Rope_insert_char_consumer): Likewise.
1775 2017-07-19 Jonathan Wakely <jwakely@redhat.com>
1777 * include/bits/fstream.tcc (basic_filebuf::xsgetn)
1778 (basic_filebuf::xsputn, basic_filebuf::seekoff): Fix indentation.
1780 * testsuite/util/testsuite_iterators.h: Fix indentation.
1782 * testsuite/27_io/basic_filebuf/sgetn/char/81395.cc: Add dg-require.
1784 2017-07-18 Jonathan Wakely <jwakely@redhat.com>
1787 * include/bits/fstream.tcc (basic_filebuf::xsgetn): Don't set buffer
1788 pointers for write mode after reading.
1789 * testsuite/27_io/basic_filebuf/sgetn/char/81395.cc: New.
1791 2017-07-18 François Dumont <fdumont@gcc.gnu.org>
1793 * include/bits/stl_list.h
1794 (struct _List_node_header): New.
1795 (_List_impl()): Fix noexcept qualification.
1796 (_List_impl(_List_impl&&)): New, default.
1797 (_List_base()): Default.
1798 (_List_base(_List_base&&)): Default.
1799 (_List_base::_M_move_nodes): Adapt to use
1800 _List_node_header._M_move_nodes.
1801 (_List_base::_M_init): Likewise.
1802 (list<>()): Default.
1803 (list<>(list&&)): Default.
1804 (list<>::_M_move_assign(list&&, true_type)): Use _M_move_nodes.
1805 (__distance(_List_const_iterator<>, _List_const_iterator<>,
1806 input_iterator_tag)): Adapt.
1807 * testsuite/23_containers/list/allocator/default_init.cc: New.
1809 2017-07-15 Jonathan Wakely <jwakely@redhat.com>
1811 * include/std/mutex (scoped_lock): Reorder std::adopt_lock_t parameter
1813 * testsuite/30_threads/scoped_lock/cons/1.cc: Reorder arguments.
1814 * testsuite/30_threads/scoped_lock/cons/deduction.cc: Test deduction
1815 with std::adopt_lock_t.
1816 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: Check
1819 2017-07-14 Jason Merrill <jason@redhat.com>
1820 Jonathan Wakely <jwakely@redhat.com>
1822 * include/std/variant (variant::variant(_Tp&&)): Constrain to remove
1823 the constructor for empty variants from the candidate functions
1824 during class template argument deduction.
1825 * testsuite/20_util/variant/deduction.cc: New.
1827 2017-07-11 Jonathan Wakely <jwakely@redhat.com>
1829 * doc/xml/faq.xml: Update several old entries. Improve
1831 * doc/xml/manual/intro.xml: Add anchors to each DR.
1832 * doc/html/*: Regenerate.
1834 2017-07-10 Jonathan Wakely <jwakely@redhat.com>
1836 * testsuite/abi/pr42230.cc: Add header for std::free.
1839 * include/bits/sstream.tcc (basic_stringbuf::overflow)
1840 (basic_stringbuf::basic_stringbuf(const __string_type&, ios::mode))
1841 (basic_stringbuf::str()): Construct new strings with an allocator.
1842 * testsuite/27_io/basic_stringbuf/cons/81381.cc: New.
1845 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
1846 Declare basic_stringbuf to be a friend.
1847 * include/bits/sstream.tcc (basic_stringbuf::overflow)
1848 [_GLIBCXX_USE_CXX11_ABI]: Use unused capacity before reallocating.
1849 * include/std/sstream (basic_stringbuf::__xfer_bufptrs): Update string
1850 length to buffer length.
1851 * testsuite/27_io/basic_stringstream/assign/81338.cc: New.
1853 2017-07-06 Jonathan Wakely <jwakely@redhat.com>
1855 * testsuite/20_util/specialized_algorithms/memory_management_tools/
1857 * testsuite/22_locale/locale/cons/5.cc: Remove redundant restoration
1858 of original environment and free memory.
1860 * testsuite/abi/pr42230.cc: Free memory.
1861 * testsuite/util/testsuite_abi.cc (demangle): Return std::string
1862 instead of pointer that might need freeing.
1863 * testsuite/util/testsuite_abi.h (demangle): Likewise.
1864 * testsuite/util/testsuite_hooks.cc (verify_demangle): Free memory.
1866 * include/bits/uses_allocator.h (__use_alloc(const _Alloc&&)): Add
1867 deleted overload to prevent dangling references to rvalues.
1868 * include/experimental/memory_resource
1869 (polymorphic_allocator::construct): Do not call __use_alloc with
1872 2017-06-27 Tim Shen <timshen@google.com>
1875 * include/std/variant (variant::variant, variant::~variant,
1876 variant::operator=): Implement triviality forwarding for four
1877 special member functions.
1878 * testsuite/20_util/variant/compile.cc: Tests.
1880 2017-06-27 Jonathan Wakely <jwakely@redhat.com>
1883 * testsuite/25_algorithms/sample/81221.cc: Disable except for
1887 * include/bits/stl_algo.h (sample): Qualify with _GLIBCXX_STD_A not
1889 * testsuite/25_algorithms/sample/81221.cc: New.
1891 2017-06-22 Jonathan Wakely <jwakely@redhat.com>
1894 * include/bits/stl_bvector.h (vector<bool>::_M_initialize_value):
1895 Do not pass null pointer to memset.
1897 2017-06-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1901 * include/std/istream:
1902 (__is_convertible_to_basic_istream_test(basic_istream<_Ch, _Up>*)): New.
1903 (__do_is_convertible_to_basic_istream_impl): Likewise.
1904 (__is_convertible_to_basic_istream_impl): Likewise.
1905 (__is_convertible_to_basic_istream): Use the new base.
1906 (__rvalue_istream_type): New.
1907 (operator>>(_Istream&&, _Tp&&)): Use the new helper alias
1908 for the SFINAE check, convert to the helper alias type before
1909 doing the actual extraction.
1910 * include/std/ostream:
1911 (__is_convertible_to_basic_ostream_test(basic_ostream<_Ch, _Up>*)): New.
1912 (__do_is_convertible_to_basic_ostream_impl): Likewise.
1913 (__is_convertible_to_basic_ostream_impl): Likewise.
1914 (__is_convertible_to_basic_ostream): Use the new base.
1915 (__rvalue_ostream_type): New.
1916 (operator<<(_Ostream&&, const _Tp&)): Use the new helper alias
1917 for the SFINAE check, convert to the helper alias type before
1918 doing the actual insertion.
1919 * testsuite/27_io/rvalue_streams-2.cc: Add new tests.
1921 2017-06-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1923 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
1925 2017-06-21 Jonathan Wakely <jwakely@redhat.com>
1928 * configure: Regenerate.
1930 2017-06-20 Uros Bizjak <ubizjak@gmail.com>
1932 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
1934 2017-06-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1936 * testsuite/20_util/variant/index_type.cc: Allow for all ilp32 and
1939 2017-06-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1941 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: Regenerate.
1942 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: Likewise.
1943 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: Likewise.
1944 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: Likewise.
1945 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: Likewise.
1946 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
1948 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: Likewise.
1949 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
1952 2017-06-18 H.J. Lu <hongjiu.lu@intel.com>
1955 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
1957 2017-06-18 Andreas Schwab <schwab@linux-m68k.org>
1960 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
1962 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1964 * testsuite: Remove dg-skip-if, dg-xfail-if, dg-xfail-run-if
1967 2017-06-17 Jonathan Wakely <jwakely@redhat.com>
1970 * testsuite/23_containers/vector/bool/80893.cc: Add { target c++11 }.
1972 2017-06-16 Jonathan Wakely <jwakely@redhat.com>
1974 * include/bits/shared_ptr.h (get_deleter): Add overload matching
1976 * include/bits/shared_ptr_base.h (__shared_ptr): Declare new
1977 get_deleter overload as a friend.
1978 * testsuite/20_util/shared_ptr/misc/get_deleter.cc: New.
1980 2017-06-16 Jakub Jelinek <jakub@redhat.com>
1983 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
1984 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
1985 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
1987 2017-06-16 Jonathan Wakely <jwakely@redhat.com>
1989 * include/bits/locale_conv.h (wbuffer_convert::sync): Fix condition.
1990 * testsuite/22_locale/conversions/buffer/2.cc: New.
1993 * acinclude.m4: Bump libtool_VERSION.
1994 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
1995 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
1996 * config/abi/pre/gnu.ver: Add wstring constructor symbols to
1997 GLIBCXX_3.4.24 version and move random_device::_M_get_entropy() symbol
1998 to new GLIBCXX_3.4.25 version.
1999 * doc/xml/manual/abi.xml: Document new versions.
2000 * doc/html/*: Regenerate.
2001 * testsuite/21_strings/basic_string/cons/char/8.cc: Use base object
2002 constructors to ensure required symbols are exported.
2003 * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise.
2004 * testsuite/util/testsuite_abi.cc: Add new version.
2006 * include/bits/locale_conv.h (wbuffer_convert::_M_put): Add missing
2008 * testsuite/21_strings/basic_string_view/operations/copy/char/1.cc:
2010 * testsuite/21_strings/basic_string_view/operations/copy/wchar_t/1.cc:
2012 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc: Add
2013 missing return statements.
2014 * testsuite/23_containers/unordered_map/modifiers/insert_or_assign.cc:
2016 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
2018 * testsuite/special_functions/14_expint/pr68397.cc: Likewise.
2020 2017-06-16 François Dumont <fdumont@gcc.gnu.org>
2022 * include/bits/stl_bvector.h
2023 (__fill_bvector(_Bit_type*, unsigned int, unsigned int, bool)):
2025 (std::fill(_Bit_iterator, _Bit_iterator, bool)): Adapt.
2026 (_Bvector_impl_data): New.
2027 (_Bvector_impl): Inherits from latter.
2028 (_Bvector_impl(_Bit_alloc_type&&)): Delete.
2029 (_Bvector_impl(_Bvector_impl&&)): New, default.
2030 (_Bvector_base()): Default.
2031 (_Bvector_base(_Bvector_base&&)): Default.
2032 (_Bvector_base::_M_move_data(_Bvector_base&&)): New.
2033 (vector(vector&&, const allocator_type&)): Use latter.
2034 (vector<bool>::operator=(vector&&)): Likewise.
2035 (vector<bool>::vector()): Default.
2036 (vector<bool>::vector(vector&&)): Default.
2037 (vector<bool>::assign(_InputIterator, _InputIterator)): Use
2039 (vector<bool>::assign(initializer_list<bool>)): Likewise.
2040 (vector<bool>::_M_initialize_value(bool)): New.
2041 (vector<bool>(size_type, const bool&, const allocator_type&)): Use
2043 (vector<bool>::_M_initialize_dispatch(_Integer, _Integer, __true_type)):
2045 (vector<bool>::_M_fill_assign(size_t, bool)): Likewise.
2047 2017-06-15 François Dumont <fdumont@gcc.gnu.org>
2049 * src/c++98/tree.cc [!_GLIBCXX_INLINE_VERSION]
2050 (_Rb_tree_rotate_left, _Rb_tree_rotate_right): Delete.
2052 2017-06-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2054 * testsuite: Add dg-require-effective-target pthread to -pthread
2056 Remove explicit target lists from dg-do and dg-options.
2058 * testsuite/30_threads/async/forced_unwind.cc: Remove explit
2059 target list from dg-options.
2060 * testsuite/30_threads/packaged_task/forced_unwind.cc: Likewise.
2062 * 30_threads/shared_mutex/cons/1.cc: Likewise.
2063 Pass -pthread for all targets.
2064 * 30_threads/shared_mutex/try_lock/1.cc: Likewise.
2065 * 30_threads/shared_mutex/try_lock/2.cc: Likewise.
2066 * 30_threads/shared_mutex/unlock/1.cc: Likewise.
2068 * testsuite/30_threads/this_thread/57060.cc: Require c++11 via
2069 dg-require-effective-target.
2071 2017-06-14 Jonathan Wakely <jwakely@redhat.com>
2073 * doc/xml/manual/test.xml: Correct instructions on running tests.
2074 * testsuite/21_strings/basic_string/cons/char/deduction.cc: Adjust to
2075 pass when -D_GLIBCXX_USE_CXX11_ABI=0 added to RUNTESTFLAGS.
2076 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
2078 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Likewise.
2079 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
2080 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
2081 exceptions_failbit.cc: Likewise.
2082 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
2083 exceptions_failbit.cc: Likewise.
2084 * testsuite/27_io/basic_istream/extractors_other/char/
2085 exceptions_null.cc: Likewise.
2086 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
2087 exceptions_null.cc: Likewise.
2088 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
2089 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
2090 * testsuite/27_io/basic_ostream/inserters_other/char/
2091 exceptions_null.cc: Likewise.
2092 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
2093 exceptions_null.cc: Likewise.
2094 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
2096 2017-06-12 Pedro Alves <palves@redhat.com>
2098 * doc/xml/manual/status_cxx2017.xml: Update C++17 constexpr
2100 * doc/html/*: Regenerate.
2102 * include/bits/char_traits.h (_GLIBCXX_ALWAYS_INLINE): Define if
2103 not already defined.
2104 (__cpp_lib_constexpr_char_traits): Uncomment.
2105 (__constant_string_p, __constant_char_array_p): New.
2106 (std::char_traits<char>, std::char_traits<wchar_t>): Add
2107 _GLIBCXX17_CONSTEXPR on compare, length and find and use
2108 __constant_string_p, __constant_char_array_p and
2109 __builtin_constant_p to defer to __gnu_cxx::char_traits at compile
2112 * testsuite/21_strings/char_traits/requirements/
2113 constexpr_functions_c++17.cc: Uncomment
2114 __cpp_lib_constexpr_char_traits tests. Uncomment
2115 test_compare<char>, test_length<char>, test_find<char>,
2116 test_compare<wchar_t>, test_length<wchar_t> and test_find<wchar_t>
2117 static_assert tests.
2119 2017-06-12 François Dumont <fdumont@gcc.gnu.org>
2121 * include/bits/stl_tree.h (_Rb_tree_impl()): Restore _Node_allocator
2123 * testsuite/util/testsuite_allocator.h
2124 (__gnu_test::default_init_allocator<>) New.
2125 * testsuite/23_containers/set/allocator/default_init.cc: New.
2126 * testsuite/23_containers/map/allocator/default_init.cc: New.
2128 2017-06-12 Jonathan Wakely <jwakely@redhat.com>
2131 * src/c++11/thread.cc (execute_native_thread_routine): Remove
2132 try-block so that exceptions propagate out of the thread and terminate
2133 is called by the exception-handling runtime.
2134 (execute_native_thread_routine_compat): Likewise.
2135 * testsuite/30_threads/thread/cons/terminate.cc: New.
2137 2017-06-09 Jonathan Wakely <jwakely@redhat.com>
2139 * doc/xml/manual/intro.xml: Document LWG 2802, 2873 and 2942 changes.
2140 * include/bits/shared_ptr.h (shared_ptr): Use rvalues for deleters
2142 * include/bits/shared_ptr_base.h (_Sp_ebo_helper, _Sp_counted_deleter
2143 (_Sp_counted_deleter::_Impl, __shared_count, __shared_ptr): Likewise.
2144 * testsuite/20_util/shared_ptr/cons/lwg2802.cc: New.
2146 * include/bits/forward_list.h (forward_list): Add deduction guide.
2147 * include/bits/stl_deque.h (deque): Likewise.
2148 * include/bits/stl_list.h (list): Likewise.
2149 * include/bits/stl_vector.h (vector): Likewise.
2150 * testsuite/23_containers/deque/cons/deduction.cc: New.
2151 * testsuite/23_containers/forward_list/cons/deduction.cc: New.
2152 * testsuite/23_containers/list/cons/deduction.cc: New.
2153 * testsuite/23_containers/vector/cons/deduction.cc: New.
2155 2017-06-08 Jonathan Wakely <jwakely@redhat.com>
2158 * include/bits/std_function.h (function::function(function&&))
2159 (function::operator=(funtion&&)): Add noexcept.
2160 * testsuite/20_util/function/assign/move.cc: Check for noexcept.
2161 * testsuite/20_util/function/cons/move.cc: Likewise.
2163 2017-06-07 Jonathan Wakely <jwakely@redhat.com>
2165 * include/bits/regex.h (basic_regex): Add deduction guide from P0433.
2166 * testsuite/28_regex/basic_regex/ctors/deduction.cc: New.
2169 * include/bits/regex.h (basic_regex): Adjust call to __compile_nfa
2170 so iterator type is deduced.
2171 * include/bits/regex_compiler.h (__compile_nfa): Reorder template
2172 parameters to allow iterator type to be deduced.
2173 * testsuite/28_regex/basic_regex/ctors/basic/iter.cc: New.
2175 * include/bits/alloc_traits.h (__is_allocator, _RequireAllocator):
2176 New trait and alias for detecting Allocator-like types.
2177 * include/bits/basic_string.h (basic_string): Add deduction guide
2179 * include/ext/alloc_traits.h (__gnu_cxx::__alloc_traits): Add template
2180 parameter with default template argument that causes substitution
2181 failures for types that cannot be allocators.
2182 * testsuite/21_strings/basic_string/cons/char/deduction.cc: New.
2183 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc: New.
2185 2017-06-02 Jonathan Wakely <jwakely@redhat.com>
2188 * include/std/variant (__erased_ctor, __erased_assign, __erased_swap)
2189 (__erased_hash): Remove constexpr specifier and qualify calls to
2191 (__erased_dtor): Remove constexpr specifier and use _Destroy.
2193 2017-06-05 Jonathan Wakely <jwakely@redhat.com>
2195 * include/bits/stl_iterator_base_funcs.h
2196 (__advance<_RandomAccessIterator, _Distance>): Optimize for next/prev
2197 cases where incrementing or decrementing a single step.
2199 * include/bits/shared_ptr_base.h (__shared_ptr::owner_before)
2200 (__weak_ptr::owner_before, _Sp_owner_less::operator()): Add noexcept
2201 specifiers as per LWG 2873 and LWG 2942.
2202 * testsuite/20_util/owner_less/noexcept.cc: New.
2203 * testsuite/20_util/shared_ptr/observers/owner_before.cc: Test
2204 noexcept guarantees.
2205 * testsuite/20_util/weak_ptr/observers/owner_before.cc: Likewise.
2207 2017-06-03 Andreas Schwab <schwab@linux-m68k.org>
2209 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
2211 2017-06-03 Eric Botcazou <ebotcazou@adacore.com>
2213 * src/filesystem/dir.cc (fs::_Dir::advance): Use std::exchange.
2215 2017-06-02 Jonathan Wakely <jwakely@redhat.com>
2218 * doc/xml/manual/status_cxx2011.xml: Document to_int_type behaviour.
2219 * include/bits/char_traits.h (char_traits<char16_t>::to_int_type):
2220 Transform eof value to U+FFFD.
2221 * testsuite/21_strings/char_traits/requirements/char16_t/eof.cc: New.
2222 * testsuite/27_io/basic_streambuf/sgetc/char16_t/80624.cc: New.
2223 * testsuite/27_io/basic_streambuf/sputc/char16_t/80624.cc: New.
2225 * libsupc++/Makefile.am: Remove custom targets for files that need to
2226 be compiled as C++11 or C++14.
2227 * libsupc++/Makefile.in: Regenerate.
2228 * libsupc++/del_ops.cc: Use pragma to disable -Wsized-deallocation
2230 * libsupc++/del_opvs.cc: Likewise.
2232 2017-06-02 Richard Biener <rguenther@suse.de>
2233 Markus Eisenmann <meisenmann.lba@fh-salzburg.ac.at>
2236 * libsupc++/eh_alloc.cc (pool::free): Keep list properly
2237 sorted and add missing freelist item merging cases.
2239 2017-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2241 (GLIBCXX_CROSSCONFIG): Handle *-solaris* like *-linux* etc.
2242 Remove *-solaris* section.
2243 * configure: Regenerate.
2245 2017-05-31 Jonathan Wakely <jwakely@redhat.com>
2248 * include/bits/stl_bvector.h (vector<bool>::_M_initialize): Avoid
2249 null pointer dereference when size is zero.
2250 * testsuite/23_containers/vector/bool/80893.cc: New.
2251 * testsuite/util/testsuite_allocator.h (PointerBase::PointerBase):
2252 Add non-explicit constructor from nullptr.
2253 (PointerBase::derived() const): Add const-qualified overload.
2255 2017-05-20 Tim Shen <timshen@google.com>
2258 * include/std/variant(variant::variant): SFINAE on is_same first.
2259 * testsuite/20_util/variant/any.cc: test case.
2261 2017-05-24 Jonathan Wakely <jwakely@redhat.com>
2263 * src/c++11/random.cc (random_device::_M_getentropy): Use __CHAR_BIT__
2264 instead of fixed number of bits.
2266 2017-05-24 Andreas Schwab <schwab@suse.de>
2268 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
2269 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Likewise.
2271 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
2272 Jonathan Wakely <jwakely@redhat.com>
2275 * acinclude.m4: Bump libtool_VERSION.
2276 * config/abi/pre/gnu.ver: Create GLIBCXX_3.4.24 with new symbol.
2277 * config.h.in: Regenerate.
2278 * configure: Regenerate.
2279 * configure.ac: Add test for <linux/random.h>.
2280 * doc/xml/manual/abi.xml: Document new library version.
2281 * include/bits/random.h (random_device::entropy)
2282 [_GLIBCXX_USE_RANDOM_TR1]: Add call to new _M_getentropy member.
2283 (random_device::_M_getentropy): Declare.
2284 * src/c++11/random.cc (random_device::_M_getentropy): Define.
2285 * testsuite/util/testsuite_abi.cc: Add GLIBCXX_3.4.24 to known
2286 versions, and make it the latest version.
2288 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
2291 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Add
2292 explicit conversion to avoid signed overflow.
2294 2017-05-19 Jonathan Wakely <jwakely@redhat.com>
2297 * include/bits/stl_algo.h (search): Add new overload for C++17.
2298 * testsuite/25_algorithms/search/searcher.cc: New.
2300 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
2303 * include/std/functional (_Mem_fn_traits_base): Add specializations
2304 for noexcept member function types.
2305 * testsuite/20_util/function_objects/mem_fn/80478.cc: New test.
2307 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
2309 * doc/xml/manual/policy_data_structures.xml: Fix typo.
2310 * doc/xml/manual/test_policy_data_structures.xml: Likewise.
2311 * doc/html/*: Regenerate.
2313 * doc/xml/manual/abi.xml: Document latest library versions.
2314 * doc/xml/manual/build_hacking.xml: Document requirement to update
2315 abi.xml when bumping library versions.
2316 * doc/html/*: Regenerate.
2318 2017-05-17 Jonathan Wakely <jwakely@redhat.com>
2320 * include/bits/refwrap.h: Fix Doxygen warning.
2321 * include/bits/specfun.h: Likewise.
2322 * include/bits/std_function.h: Likewise.
2323 * include/bits/stl_algo.h (set_union, set_intersection)
2324 (set_difference, set_symmetric_difference): Add Doxygen @param tags
2325 for output iterator parameters.
2326 * include/bits/stl_iterator.h (inserter): Add Doxygen @param tag for
2328 * include/std/mutex (try_lock, lock): Change Mutex to Lockable in
2331 2017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
2333 Implement new C++ intrinsics __is_assignable and __is_constructible.
2334 * include/std/type_traits (__do_is_static_castable_impl): Remove.
2335 (__is_static_castable_impl, __is_static_castable_safe): Likewise.
2336 (__is_static_castable, __do_is_direct_constructible_impl): Likewise.
2337 (__is_direct_constructible_impl): Likewise.
2338 (__is_direct_constructible_new_safe): Likewise.
2339 (__is_base_to_derived_ref, __is_lvalue_to_rvalue_ref): Likewise.
2340 (__is_direct_constructible_ref_cast): Likewise.
2341 (__is_direct_constructible_new, __is_direct_constructible): Likewise.
2342 (__do_is_nary_constructible_impl): Likewise.
2343 (__is_nary_constructible_impl, __is_nary_constructible): Likewise.
2344 (__is_constructible_impl): Likewise.
2345 (is_constructible): Call the intrinsic.
2346 (__is_assignable_helper): Remove.
2347 (is_assignable): Call the intrinsic.
2348 (is_trivially_constructible): Likewise.
2349 (__is_trivially_copy_constructible_impl): New.
2350 (is_trivially_copy_constructible): Use it.
2351 (__is_trivially_move_constructible_impl): New.
2352 (is_trivially_move_constructible): Use it.
2353 (is_trivially_assignable): Call the intrinsic.
2354 (__is_trivially_copy_assignable_impl): New.
2355 (is_trivially_copy_assignable): Use it.
2356 (__is_trivially_move_assignable_impl): New.
2357 (is_trivially_move_assignable): Use it.
2358 (testsuite/20_util/declval/requirements/1_neg.cc): Adjust.
2359 (testsuite/20_util/is_trivially_copy_assignable/value.cc):
2361 (testsuite/20_util/is_trivially_copy_constructible/value.cc): Likewise.
2362 (testsuite/20_util/is_trivially_move_assignable/value.cc): Likewise.
2363 (testsuite/20_util/is_trivially_move_constructible/value.cc): Likewise.
2364 (testsuite/20_util/make_signed/requirements/typedefs_neg.cc): Adjust.
2365 (testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc):
2368 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
2370 * testsuite/experimental/source_location/1.cc: Change expected result
2371 for source_location::current() used in default member initializer.
2373 * doc/xml/manual/status_cxx2017.xml: Update status table.
2374 * doc/html/*: Regenerate.
2375 * include/Makefile.am: Add new header.
2376 * include/Makefile.in: Regenerate.
2377 * include/experimental/source_location: New header implementing N4519.
2378 * testsuite/experimental/source_location/1.cc: New test.
2381 * include/bits/shared_ptr_base.h [!__cpp_rtti] (type_info): Declare
2382 outside versioned namespace.
2384 * configure: Regenerate.
2386 2017-05-16 Marc Glisse <marc.glisse@inria.fr>
2388 * include/std/optional (_Optional_base::_M_get): Check precondition.
2389 * testsuite/20_util/optional/cons/value_neg.cc: Update line numbers.
2391 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
2393 * doc/xml/manual/appendix_contributing.xml: Link to test docs and
2394 note higher DejaGnu version requirement.
2395 * doc/html/*: Regenerate.
2397 * doc/xml/manual/appendix_contributing.xml: Link to the list of bad
2399 * doc/html/*: Regenerate.
2401 2017-05-15 Jonathan Wakely <jwakely@redhat.com>
2404 * include/bits/node_handle.h (_Node_insert_return): Reorder members.
2405 (tuple_size, tuple_element): Remove partial specializations.
2406 * include/bits/stl_tree.h (_Rb_tree::insert_return_type): Use
2407 const_iterator for std::set.
2408 * testsuite/23_containers/map/modifiers/extract.cc: New.
2409 * testsuite/23_containers/set/modifiers/extract.cc: New.
2410 * testsuite/23_containers/unordered_map/modifiers/extract.cc: New.
2411 * testsuite/23_containers/unordered_set/modifiers/extract.cc: New.
2413 2017-05-12 Jonathan Wakely <jwakely@redhat.com>
2416 * include/std/utility (tuple_size<cv T>): Only define partial
2417 specializations when tuple_size<T>::value is valid.
2418 * testsuite/20_util/tuple/78939.cc: New.
2419 * testsuite/20_util/tuple/cv_tuple_size_neg.cc: New.
2421 2017-05-11 François Dumont <fdumont@gcc.gnu.org>
2423 * include/bits/stl_tree.h [_GLIBCXX_INLINE_VERSION]
2424 (_Rb_tree_impl<>): Remove _Is_pod_comparator
2427 * include/debug/formatter.h [_GLIBCXX_INLINE_VERSION]
2428 (__gnu_debug::_Error_formatter::_Parameter::_M_print_field): Remove.
2429 (__gnu_debug::_Error_formatter::_Parameter::_M_print_description):
2431 (__gnu_debug::_Error_formatter::_M_format_word): Remove.
2432 (__gnu_debug::_Error_formatter::_M_print_word): Remove.
2433 (__gnu_debug::_Error_formatter::_M_print_string): Remove.
2434 (__gnu_debug::_Error_formatter::_M_get_max_length): Remove.
2435 * src/c++11/debug.cc: Adapt.
2436 * config/abi/pre/gnu-versioned-namespace.ver: Adapt.
2438 2017-05-11 Jonathan Wakely <jwakely@redhat.com>
2440 * doc/xml/manual/allocator.xml: Fix ViewCVS URLs.
2441 * doc/xml/manual/mt_allocator.xml: Likewise.
2442 * doc/html/*: Regenerate.
2445 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Define
2446 function to get unique fake std::type_info reference.
2447 (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Compare to
2448 _S_ti() fake reference.
2449 (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Share
2450 single implementation with or without RTTI enable.
2451 [!__cpp_rtti]: Pass fake reference to _M_get_deleter.
2452 * testsuite/20_util/shared_ptr/creation/alloc.cc: Change expected
2453 allocation and deallocation counts.
2454 * testsuite/20_util/shared_ptr/creation/single_allocation.cc: New.
2455 * testsuite/20_util/shared_ptr/creation/single_allocation_no_rtti.cc:
2458 2017-05-10 François Dumont <fdumont@gcc.gnu.org>
2460 Bump version namespace.
2461 * config/abi/pre/gnu-versioned-namespace.ver: Bump version namespace
2462 from __7 to __8. Bump GLIBCXX_7.0 to GLIBCXX_8.0.
2463 * acinclude.m4 (libtool_VERSION): Bump to 8:0:0.
2464 * include/bits/c++config: Adapt.
2465 * include/bits/regex.h: Adapt.
2466 * include/experimental/bits/fs_fwd.h: Adapt.
2467 * include/experimental/bits/lfts_config.h: Adapt.
2468 * include/std/variant: Adapt.
2469 * python/libstdcxx/v6/printers.py: Adapt.
2470 * testsuite/libstdc++-prettyprinters/48362.cc: Adapt.
2472 * include/bits/stl_algobase.h (std::__iter_swap<false>): Remove
2473 _GLIBCXX_MOVE usage.
2475 2017-05-09 Jason Merrill <jason@redhat.com>
2477 * testsuite/24_iterators/container_access.cc (test03): Make il3 static.
2479 2017-05-08 Jonathan Wakely <jwakely@redhat.com>
2481 * include/std/optional: Use a separate static_assert per condition.
2482 * testsuite/20_util/optional/cons/value_neg.cc: Update dg-error line
2485 * doc/xml/manual/mt_allocator.xml: Clarify deallocation behaviour.
2486 * doc/html/*: Regenerate.
2488 2017-05-02 Hugo Beauzée-Luyssen <hugo@beauzee.fr>
2491 * config/os/mingw32-w64/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
2493 2017-04-29 François Dumont <fdumont@gcc.gnu.org>
2495 * testsuite/libstdc++-prettyprinters/48362.cc: Replace a regexp-test
2498 2017-04-28 Jonathan Wakely <jwakely@redhat.com>
2501 * include/bits/stl_construct.h (_Destroy, _Destroy_n): Add static
2502 assertions to ensure type is destructible.
2503 (destroy_at, destroy, destroy_n): Move from stl_uninitialized.h.
2504 * include/bits/stl_uninitialized.h (destroy_at, destroy, destroy_n):
2505 Move to stl_construct.h.
2506 * testsuite/20_util/specialized_algorithms/memory_management_tools/
2507 destroy_neg.cc: New test.
2508 * testsuite/23_containers/vector/cons/destructible_neg.cc: New test.
2510 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
2511 superfluous "" in dg-error.
2513 2017-04-28 Tom de Vries <tom@codesourcery.com>
2515 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
2516 superfluous '{ target *-*-* }' in dg-(error|warning|message|bogus).
2518 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
2520 * include/ext/pb_ds/detail/list_update_map_/iterators_fn_imps.hpp
2521 (PB_DS_CLASS_C_DEC::end()): Remove redundant const in cast type.
2522 * testsuite/util/testsuite_rng.h (twister_rand_gen::get_prob()):
2525 2017-04-26 Jonathan Wakely <jwakely@redhat.com>
2527 * testsuite/23_containers/deque/allocator/move_assign-2.cc: Improve
2528 comment. Ensure first test works because allocator type propagates and
2529 not because is_always_equal is true.
2530 * testsuite/23_containers/vector/52591.cc: Likewise. Restore original
2531 testcase that instantiates the move-assignment operator.
2533 2017-04-24 Jonathan Wakely <jwakely@redhat.com>
2536 * include/bits/random.tcc (gamma_distribution::operator()): Fix magic
2537 number used in loop condition.
2540 * include/bits/refwrap.h (ref, cref): Qualify calls.
2541 * testsuite/20_util/reference_wrapper/80504.cc: New test.
2544 * include/experimental/optional (optional::swap): Fix exception
2547 2017-04-21 Jonathan Wakely <jwakely@redhat.com>
2550 * include/std/future (_State_baseV2::_Setter::operator()): Remove
2551 _S_check calls that are done after the pointer to the shared state is
2552 already dereferenced.
2553 (_State_baseV2::_Setter<_Res, void>): Define specialization for void
2554 as partial specialization so it can be defined within the definition
2556 (_State_baseV2::__setter): Call _S_check.
2557 (_State_baseV2::__setter(promise<void>*)): Add overload for use by
2558 promise<void>::set_value and promise<void>::set_value_at_thread_exit.
2559 (promise<T>, promise<T&>, promise<void>): Make _State a friend.
2560 (_State_baseV2::_Setter<void, void>): Remove explicit specialization.
2561 (promise<void>::set_value, promise<void>::set_value_at_thread_exit):
2562 Use new __setter overload.
2563 * testsuite/30_threads/promise/members/at_thread_exit2.cc: New test.
2564 * testsuite/30_threads/promise/members/set_exception.cc: Test
2565 promise<T&> and promise<void> specializations.
2566 * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
2567 Test for no_state error condition.
2568 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
2570 * include/backward/auto_ptr.h: Ignore deprecated warnings from use
2572 * include/bits/shared_ptr.h: Likewise.
2573 * include/bits/shared_ptr_base.h: Likewise.
2574 * include/bits/unique_ptr.h: Likewise.
2575 * libstdc++-v3/testsuite/20_util/default_delete/48631_neg.cc: Adjust
2577 * libstdc++-v3/testsuite/20_util/default_delete/void_neg.cc: Likewise.
2578 * libstdc++-v3/testsuite/20_util/unique_ptr/assign/48635_neg.cc:
2580 * libstdc++-v3/testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc:
2583 2017-04-20 Edward Smith-Rowland <3dw4rd@verizon.net>
2585 PR libstdc++/68397 std::tr1::expint fails ... long double arguments.
2586 * include/tr1/exp_integral.tcc: Increase iteration limits.
2587 * testsuite/tr1/5_numerical_facilities/special_functions/15_expint/
2588 pr68397.cc: New test.
2589 * testsuite/special_functions/14_expint/pr68397.cc: New test.
2591 2017-04-20 Jonathan Wakely <jwakely@redhat.com>
2594 * include/std/atomic [!_GLIBCXX_USE_C99_STDINT_TR1] (atomic_int8_t)
2595 (atomic_uint8_t, atomic_int16_t, atomic_uint16_t, atomic_int32_t,
2596 (atomic_uint32_t, atomic_int64_t, atomic_uint64_t)
2597 (atomic_int_least8_t, atomic_uint_least8_t, atomic_int_least16_t)
2598 (atomic_uint_least16_t, atomic_int_least32_t, atomic_uint_least32_t)
2599 (atomic_int_least64_t, atomic_uint_least64_t, atomic_int_fast8_t)
2600 (atomic_uint_fast8_t, atomic_int_fast16_t, atomic_uint_fast16_t)
2601 (atomic_int_fast32_t, atomic_uint_fast32_t, atomic_int_fast64_t)
2602 (atomic_uint_fast64_t, atomic_intmax_t, atomic_uintmax_t): Don't
2605 2017-04-19 Jonathan Wakely <jwakely@redhat.com>
2607 * doc/xml/manual/abi.xml: Rephrase one of the references to the
2609 * doc/xml/manual/test.xml: Document DejaGnu 1.5.3 requirement.
2610 * doc/html/*: Regenerate.
2612 * libsupc++/new: Update comment on #endif directive.
2615 * include/experimental/bits/fs_dir.h (directory_iterator)
2616 (recursive_directory_iterator): Remove noexcept from defaulted
2620 * include/std/type_traits (is_aggregate): Change __has_builtin checks.
2621 * libsupc++/new (launder): Likewise.
2623 2017-04-18 Jonathan Wakely <jwakely@redhat.com>
2625 * include/std/functional (default_searcher, __boyer_moore_array_base)
2626 (__is_std_equal_to, __boyer_moore_base_t, boyer_moore_searcher)
2627 (boyer_moore_horspool_searcher): Remove redundant namespace
2629 (default_searcher::operator()): Construct return value early and
2630 advance second member in-place.
2631 (boyer_moore_horspool_searcher::operator()): Increment random access
2632 iterator directly instead of using std::next.
2633 (boyer_moore_searcher::operator()): Fix return value.
2634 * testsuite/20_util/function_objects/searchers.cc: Check both parts
2637 2017-04-12 Gerald Pfeifer <gerald@pfeifer.com>
2639 * doc/xml/faq.xml: Update reference link to C++ ABI for Itanium.
2640 * doc/xml/manual/abi.xml. Ditto (thrice).
2642 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
2644 * doc/xml/manual/status_cxx2017.xml: Remove duplicate table entry.
2645 * doc/html/*: Regenerate.
2647 * testsuite/20_util/reference_wrapper/invoke.cc: Uncomment tests
2648 that no longer fail.
2650 * include/bits/ios_base.h: Correct comment.
2651 * testsuite/util/testsuite_hooks.h: Likewise.
2653 * doc/xml/manual/status_cxx2017.xml: Update C++17 status table.
2654 * doc/xml/manual/appendix_contributing.xml (contrib.organization): Add
2655 directories for debug, parallel and profile headers.
2656 * doc/html/*: Regenerate.
2658 * include/bits/char_traits.h (__gnu_cxx::char_traits): Add
2659 _GLIBCXX14_CONSTEXPR on assign, compare, find, and length.
2660 (std::char_traits<char>, std::char_traits<wchar_t>): Add
2661 _GLIBCXX17_CONSTEXPR on assign.
2662 (std::char_traits<char16_t>, std::char_traits<char32_t>): Add
2663 _GLIBCXX17_CONSTEXPR on assign, compare, find, and length.
2664 * testsuite/21_strings/char_traits/requirements/
2665 constexpr_functions_c++17.cc: New test.
2667 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
2670 * include/bits/stl_pair.h (__nonesuch_no_braces): New.
2671 (operator=(typename conditional<
2672 __and_<is_copy_assignable<_T1>,
2673 is_copy_assignable<_T2>>::value,
2674 const pair&, const __nonesuch&>::type)): Change __nonesuch
2675 to __nonesuch_no_braces.
2676 (operator=(typename conditional<
2677 __not_<__and_<is_copy_assignable<_T1>,
2678 is_copy_assignable<_T2>>>::value,
2679 const pair&, const __nonesuch&>::type)): Likewise.
2680 (operator=(typename conditional<
2681 __and_<is_move_assignable<_T1>,
2682 is_move_assignable<_T2>>::value,
2683 pair&&, __nonesuch&&>::type)): Likewise.
2684 * testsuite/20_util/pair/79141.cc: New.
2686 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
2688 Implement std::is_aggregate.
2689 * include/std/type_traits (is_aggregate, is_aggregate_v): New.
2690 * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc:
2692 * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise.
2693 * testsuite/20_util/is_aggregate/value.cc: Likewise.
2695 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
2697 Adjust optional's pretty printer for LWG 2900.
2698 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter.__init__):
2699 Look at the nested payload in case of non-experimental optional.
2701 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
2703 Implement LWG 2900, The copy and move constructors
2704 of optional are not constexpr.
2705 * include/std/optional (_Optional_payload): New.
2706 (_Optional_base): Remove the bool parameter.
2707 (_Optional_base<_Tp, false>): Remove.
2708 (_Optional_base()): Adjust.
2709 (_Optional_base(nullopt_t)): Likewise.
2710 (_Optional_base(in_place_t, _Args&&...)): Likewise.
2711 (_Optional_base(in_place_t, initializer_list<_Up>, _Args&&...)):
2713 (_Optional_base(const _Optional_base&)): Likewise.
2714 (_Optional_base(_Optional_base&&)): Likewise.
2715 (operator=(const _Optional_base&)): Likewise.
2716 (operator=(_Optional_base&&)): Likewise.
2717 (~_Optional_base()): Remove.
2718 (_M_is_engaged()): Adjust.
2719 (_M_get()): Likewise.
2720 (_M_construct(_Args&&...)): Likewise.
2721 (_M_destruct()): Likewise.
2722 (_M_reset()): Likewise.
2723 (_Optional_base::_Empty_byte): Remove.
2724 (_Optional_base::_M_empty): Remove.
2725 (_Optional_base::_M_payload): Adjust.
2726 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
2727 * testsuite/20_util/optional/constexpr/cons/value.cc: Add tests.
2729 2017-03-28 Jonathan Wakely <jwakely@redhat.com>
2732 * include/bits/random.tcc (generate_canonical): Use std::nextafter
2733 or numeric_limits::epsilon() to reduce out-of-range values.
2734 * testsuite/26_numerics/random/uniform_real_distribution/operators/
2735 64351.cc: Verify complexity requirement is met.
2737 * doc/xml/manual/abi.xml: Add xml:id anchor.
2738 * doc/xml/manual/using.xml (manual.intro.using.macros): Document
2739 _GLIBCXX_RELEASE. Link to new anchor for __GLIBCXX__ notes.
2740 (concurrency.io.structure): Add markup.
2741 * doc/html/*: Regenerate.
2744 * include/bits/shared_ptr_base.h
2745 (__shared_ptr::_M_enable_shared_from_this_with): Change parameters to
2746 non-const and then use remove_cv to get unqualified type.
2747 * testsuite/20_util/enable_shared_from_this/members/const.cc: Don't
2748 cast away constness on object created const.
2749 * testsuite/20_util/shared_ptr/cons/80229.cc: New test.
2751 2017-03-26 Markus Trippelsdorf <markus@trippelsdorf.de>
2754 * include/bits/stl_tree.h:
2755 (_Rb_tree_header::_M_move_data(_Rb_tree_header&)): Also save _M_color.
2757 2017-03-23 Jonathan Wakely <jwakely@redhat.com>
2759 * testsuite/23_containers/array/tuple_interface/
2760 tuple_element_debug_neg.cc: Adjust dg-error.
2761 * testsuite/23_containers/list/operations/78389.cc: Fix less-than to
2762 define a valid strict weak ordering.
2763 * testsuite/23_containers/priority_queue/67085.cc: Disable test for
2764 Debug Mode, due to debug checks making extra copies of predicate.
2765 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
2768 * doc/xml/faq.xml: Add link.
2769 * doc/xml/manual/backwards_compatibility.xml: Remove outdated
2770 information on pre-ISO headers. Replace broken link to C++ FAQ Lite.
2771 * doc/xml/manual/io.xml: Update broken link.
2772 * doc/html/*: Regenerate.
2774 2017-03-23 Daniel Kruegler <daniel.kruegler@gmail.com>
2776 Implement LWG 2686, Why is std::hash specialized for error_code,
2777 but not error_condition?
2778 * include/std/system_error (hash<error_condition>): Define for C++17.
2779 * testsuite/20_util/hash/operators/size_t.cc (hash<error_condition>):
2780 Instantiate test for error_condition.
2781 * testsuite/20_util/hash/requirements/explicit_instantiation.cc
2782 (hash<error_condition>): Instantiate hash<error_condition>.
2784 * include/bits/c++config (_GLIBCXX17_INLINE): Define.
2785 * include/bits/regex_constants.h (All std::regex_constants constants):
2786 Add _GLIBCXX17_INLINE as per P0607R0.
2787 * include/bits/std_mutex.h (defer_lock, try_to_lock, adopt_lock):
2789 * include/bits/stl_pair.h (piecewise_construct): Likewise.
2790 * include/bits/uses_allocator.h (allocator_arg, uses_allocator_v)
2791 (__is_uses_allocator_constructible_v)
2792 (__is_nothrow_uses_allocator_constructible_v): Likewise.
2793 * include/std/chrono (treat_as_floating_point_v): Likewise.
2794 * include/std/functional (is_bind_expression_v, is_placeholder_v):
2796 * include/std/optional (nullopt): Likewise.
2797 * include/std/ratio (ratio_equal_v, ratio_not_equal_v, ratio_less_v)
2798 ratio_less_equal_v, ratio_greater_v, ratio_greater_equal_v): Likewise.
2799 * include/std/system_error (is_error_code_enum_v)
2800 (is_error_condition_enum_v): Likewise.
2801 * include/std/tuple (tuple_size_v, ignore): Likewise.
2802 (ignore): Declare ignore constexpr as per LWG 2773, declare assignment
2803 constexpr as per LWG 2933.
2804 * include/std/type_traits (All variable templates): Add
2805 _GLIBCXX17_INLINE as per P0607R0.
2806 * include/std/variant (variant_size_v, variant_npos, __index_of_v)
2807 (__tuple_count_v, __exactly_once): Likewise.
2808 * testsuite/18_support/headers/new/synopsis.cc
2809 (hardware_destructive_interference_size)
2810 (hardware_constructive_interference_size): Likewise for commented-out
2812 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Add new
2813 test function for constexpr std::ignore (LWG 2773).
2814 * testsuite/20_util/tuple/creation_functions/constexpr_cpp14.cc: New
2817 2017-03-22 Jonathan Wakely <jwakely@redhat.com>
2819 * include/bits/shared_ptr.h (shared_ptr, weak_ptr): Add deduction
2821 * include/bits/std_function.h (function): Likewise.
2822 * include/bits/stl_pair.h (pair): Likewise.
2823 * include/debug/array (__gnu_debug::array): Likewise.
2824 * include/std/array (array): Likewise.
2825 * include/std/functional (make_default_searcher)
2826 (make_boyer_moore_searcher, make_boyer_moore_horspool_searcher):
2827 Remove generator functions.
2828 * include/std/tuple (tuple): Add deduction guides.
2829 * include/std/valarray (valarray): Likewise.
2830 * testsuite/20_util/function_objects/searchers.cc: Adjust to use
2831 class template argument deduction instead of generator functions.
2832 * testsuite/20_util/function/cons/deduction.cc: New test.
2833 * testsuite/20_util/optional/cons/deduction_guide.cc: Rename to ...
2834 * testsuite/20_util/optional/cons/deduction.cc: ... here.
2835 * testsuite/20_util/pair/cons/deduction.cc: New test.
2836 * testsuite/20_util/shared_ptr/cons/deduction.cc: New test.
2837 * testsuite/20_util/tuple/cons/deduction.cc: New test.
2838 * testsuite/20_util/tuple/element_access/get_neg.cc: Adjust dg-error.
2839 * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: New test.
2840 * testsuite/20_util/weak_ptr/cons/deduction.cc: New test.
2841 * testsuite/23_containers/array/cons/deduction.cc: New test.
2842 * testsuite/23_containers/array/cons/deduction_neg.cc: New test.
2843 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
2845 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise.
2846 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
2848 * testsuite/26_numerics/valarray/deduction.cc: New test.
2849 * testsuite/30_threads/lock_guard/cons/deduction.cc: New test.
2850 * testsuite/30_threads/scoped_lock/cons/deduction.cc: New test.
2851 * testsuite/30_threads/unique_lock/cons/deduction.cc: New test.
2853 2017-03-20 François Dumont <fdumont@gcc.gnu.org>
2855 * include/bits/stl_deque.h (deque): Access allocator value_type only if
2856 concept checks are enabled.
2857 * include/bits/stl_stack.h (stack): Likewise.
2858 * include/bits/stl_vector.h (vector): Likewise.
2859 * include/bits/stl_list.h (list): Likewise and check
2860 _SGIAssignableConcept only in C++03.
2861 * include/bits/stl_map.h (map): Likewise.
2862 * include/bits/stl_set.h (set): Likewise.
2863 * include/bits/stl_multimap.h (multimap): Likewise.
2864 * include/bits/stl_multiset.h (multiset): Likewise.
2865 * include/bits/stl_queue.h (queue, priority_queue): Likewise.
2867 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
2869 * doc/xml/manual/appendix_contributing.xml: Convert link to
2871 Update link to the C++ standard at ansi.org.
2873 * doc/xml/faq.xml: Remove information redundant with the above;
2874 instead add a reference.
2876 2017-03-17 Jonathan Wakely <jwakely@redhat.com>
2878 * src/c++11/codecvt.cc (range): Add non-type template parameter and
2879 define oerloaded operators for reading and writing code units.
2880 (range<Elem, false>): Define partial specialization for accessing
2881 wide characters in potentially unaligned byte ranges.
2882 (ucs2_span(const char16_t*, const char16_t*, ...))
2883 (ucs4_span(const char16_t*, const char16_t*, ...)): Change parameters
2884 to range<const char16_t, false> in order to avoid unaligned reads.
2885 (__codecvt_utf16_base<char16_t>::do_out)
2886 (__codecvt_utf16_base<char32_t>::do_out)
2887 (__codecvt_utf16_base<wchar_t>::do_out): Use range specialization for
2888 unaligned data to avoid unaligned writes.
2889 (__codecvt_utf16_base<char16_t>::do_in)
2890 (__codecvt_utf16_base<char32_t>::do_in)
2891 (__codecvt_utf16_base<wchar_t>::do_in): Likewise for writes. Return
2892 error if there are unprocessable trailing bytes.
2893 (__codecvt_utf16_base<char16_t>::do_length)
2894 (__codecvt_utf16_base<char32_t>::do_length)
2895 (__codecvt_utf16_base<wchar_t>::do_length): Pass arguments of type
2896 range<const char16_t, false> to span functions.
2897 * testsuite/22_locale/codecvt/codecvt_utf16/misaligned.cc: New test.
2899 2017-03-16 Jonathan Wakely <jwakely@redhat.com>
2902 * src/c++11/codecvt.cc (to_integer(codecvt_mode)): Fix target type.
2905 * src/c++11/codecvt.cc (__codecvt_utf16_base<wchar_t>::do_out)
2906 (__codecvt_utf16_base<wchar_t>::do_in): Convert char arguments to
2907 char16_t to work with UTF-16 instead of UTF-8.
2908 * testsuite/22_locale/codecvt/codecvt_utf16/80041.cc: New test.
2910 * src/c++11/codecvt.cc (codecvt<char16_t, char, mbstate_t>)
2911 (codecvt<char32_t, char, mbstate_t>, __codecvt_utf8_base<char16_t>)
2912 (__codecvt_utf8_base<char32_t>, __codecvt_utf8_base<wchar_t>)
2913 (__codecvt_utf16_base<char16_t>, __codecvt_utf16_base<char32_t>)
2914 (__codecvt_utf16_base<wchar_t>, __codecvt_utf8_utf16_base<char16_t>)
2915 (__codecvt_utf8_utf16_base<char32_t>)
2916 (__codecvt_utf8_utf16_base<wchar_t>): Fix do_encoding() and
2917 do_max_length() return values.
2918 * testsuite/22_locale/codecvt/codecvt_utf16/members.cc: New test.
2919 * testsuite/22_locale/codecvt/codecvt_utf8/members.cc: New test.
2920 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/members.cc: New test.
2923 * include/bits/locale_conv.h (__do_str_codecvt): Set __count on
2925 * src/c++11/codecvt.cc (operator&=, operator|=, operator~): Overloads
2926 for manipulating codecvt_mode values.
2927 (read_utf16_bom): Compare input to BOM constants instead of integral
2928 constants that depend on endianness. Take mode parameter by
2929 reference and adjust it, to distinguish between no BOM present and
2930 UTF-16BE BOM present.
2931 (ucs4_in, ucs2_span, ucs4_span): Adjust calls to read_utf16_bom.
2932 (surrogates): New enumeration type.
2933 (utf16_in, utf16_out): Add surrogates parameter to choose between
2934 UTF-16 and UCS2 behaviour.
2935 (utf16_span, ucs2_span): Use std::min not std::max.
2936 (ucs2_out): Use std::min not std::max. Disallow surrogate pairs.
2937 (ucs2_in): Likewise. Adjust calls to read_utf16_bom.
2938 * testsuite/22_locale/codecvt/codecvt_utf16/79980.cc: New test.
2939 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: New test.
2942 * src/c++11/codecvt.cc (write_utf16_code_point): Don't write 0xffff
2943 as a surrogate pair.
2944 (__codecvt_utf8_utf16_base<char32_t>::do_in): Use native endianness
2945 for internal representation.
2946 (__codecvt_utf8_utf16_base<wchar_t>::do_in): Likewise.
2947 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/79511.cc: New test.
2950 * include/bits/stl_heap.h (__is_heap, push_heap, __adjust_heap)
2951 (pop_heap, make_heap, sort_heap, is_heap_until, is_heap): Cope with
2952 invalid instantiations using function types for _Compare argument.
2953 * testsuite/25_algorithms/make_heap/80064.cc: New test.
2956 * python/libstdcxx/v6/printers.py (find_type): Avoid gdb.Type.name
2957 for GDB 7.6 compatibility, use gdb.Type.unqualified instead.
2959 2017-03-15 Ville Voutilainen <ville.voutilainen@gmail.com>
2961 Implement LWG 2857, {variant,optional,any}::emplace should
2962 return the constructed value.
2963 * include/std/any (emplace(_Args&&...)): Change the return type and
2964 return a reference to the constructed value.
2965 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
2966 * include/std/optional (emplace(_Args&&...)): Likewise.
2967 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
2968 * include/std/variant (emplace<_Tp>(_Args&&...)): Likewise.
2969 (emplace<_Tp>(initializer_list<_Up>, _Args&&...)): Likewise.
2970 (emplace<_Np>(_Args&&...)): Likewise.
2971 (emplace<_Np>(initializer_list<_Up>, _Args&&...)): Likewise.
2972 * testsuite/20_util/any/assign/emplace.cc: Add tests for
2973 checking the return value of emplace.
2974 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust.
2975 * testsuite/20_util/optional/assignment/6.cc: Add tests for
2976 checking the return value of emplace.
2977 * testsuite/20_util/variant/run.cc: Likewise.
2979 2017-03-15 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
2982 * include/ext/pb_ds/qdetail/binary_heap_/binary_heap_.hpp
2984 (push_heap): Remove the wrong checking using is_heap.
2985 (make_heap): Remove the assertion using is_heap.
2986 * include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp
2988 (resize_for_insert_if_needed): Add PB_DS_ASSERT_VALID after
2991 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
2994 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
2996 * testsuite/ext/pb_ds/regression/priority_queues.cc: Fix copy&paste
2999 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
3001 * acinclude.m4 (GLIBCXX_CHECK_S_ISREG_OR_S_IFREG): Fix typo in
3003 * config.h.in: Regenerate.
3004 * configure: Regenerate.
3005 * doc/Makefile.in: Regenerate.
3007 2017-03-14 Jonathan Wakely <jwakely@redhat.com>
3010 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
3011 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace
3012 with a constrained template.
3013 [!_GLIBCXX_USE_CXX11_ABI]
3014 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise.
3015 * testsuite/21_strings/basic_string/cons/char/79162.cc: New test.
3016 * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test.
3018 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
3021 * include/bits/list.tcc (merge(list&&)): Use const for the size_t
3023 (merge(list&&, _StrictWeakOrdering)): Likewise.
3024 * testsuite/23_containers/list/operations/80034.cc: New.
3026 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
3028 Implement LWG 2806, Base class of bad_optional_access.
3029 * include/std/optional (bad_optional_access):
3030 Derive from std::exception.
3031 (bad_optional_access::bad_optional_access): Adjust.
3032 (bad_optional_access::what): New.
3033 (__throw_bad_optional_access(const char*)):
3034 Remove the parameter and adjust calls.
3035 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
3036 * testsuite/20_util/optional/typedefs.cc: Likewise.
3038 2017-03-12 Ville Voutilainen <ville.voutilainen@gmail.com>
3040 Implement LWG 2934, optional<const T> doesn't compare with T.
3041 * include/std/optional
3042 (operator==(const optional<_Tp>&, const optional<_Tp>&)):
3043 Turn into operator==(const optional<_Tp>&, const optional<_Up>&).
3044 (operator!=(const optional<_Tp>&, const optional<_Tp>&)):
3045 Turn into operator!=(const optional<_Tp>&, const optional<_Up>&).
3046 (operator<(const optional<_Tp>&, const optional<_Tp>&)):
3047 Turn into operator<(const optional<_Tp>&, const optional<_Up>&.
3048 (operator>(const optional<_Tp>&, const optional<_Tp>&)):
3049 Turn into operator>(const optional<_Tp>&, const optional<_Up>&.
3050 (operator<=(const optional<_Tp>&, const optional<_Tp>&)):
3051 Turn into operator<=(const optional<_Tp>&, const optional<_Up>&).
3052 (operator>=(const optional<_Tp>&, const optional<_Tp>&)):
3053 Turn into operator>=(const optional<_Tp>&, const optional<_Up>&).
3054 (operator==(const optional<_Tp>&, const _Tp&)):
3055 Turn into operator==(const optional<_Tp>&, const _Up&).
3056 (operator==(const _Tp&, const optional<_Tp>&)):
3057 Turn into operator==(const _Up&, const optional<_Tp>&).
3058 (operator!=(const optional<_Tp>&, const _Tp&)):
3059 Turn into operator!=(const optional<_Tp>&, const _Up&).
3060 (operator!=(const _Tp&, const optional<_Tp>&)):
3061 Turn into operator!=(const _Up&, const optional<_Tp>&).
3062 (operator<(const optional<_Tp>&, const _Tp&)):
3063 Turn into operator<(const optional<_Tp>&, const _Up&).
3064 (operator<(const _Tp&, const optional<_Tp>&)):
3065 Turn into operator<(const _Up&, const optional<_Tp>&).
3066 (operator>(const optional<_Tp>&, const _Tp&)):
3067 Turn into operator>(const optional<_Tp>&, const _Up&).
3068 (operator>(const _Tp&, const optional<_Tp>&)):
3069 Turn into operator>(const _Up&, const optional<_Tp>&).
3070 (operator<=(const optional<_Tp>&, const _Tp&)):
3071 Turn into operator<=(const optional<_Tp>&, const _Up&).
3072 (operator<=(const _Tp&, const optional<_Tp>&)):
3073 Turn into operator<=(const _Up&, const optional<_Tp>&).
3074 (operator>=(const optional<_Tp>&, const _Tp&)):
3075 Turn into operator>=(const optional<_Tp>&, const _Up&).
3076 (operator>=(const _Tp&, const optional<_Tp>&)):
3077 Turn into operator>=(const _Up&, const optional<_Tp>&).
3078 * testsuite/20_util/optional/relops/7.cc: New.
3080 2017-03-10 Jonathan Wakely <jwakely@redhat.com>
3082 * testsuite/17_intro/names.cc: Undefine macros that clash with
3083 identifiers in AIX system headers.
3085 * include/bits/invoke.h (__invoke): Use __invoke_result instead of
3086 result_of, and __is_nothrow_invocable instead of
3087 __is_nothrow_callable.
3088 * include/bits/shared_ptr_base.h (__shared_ptr): Use __is_invocable
3089 instead of __is_callable.
3090 * include/std/functional (invoke): use invoke_result_t instead of
3091 result_of_t and is_nothrow_invocable instead of is_nothrow_callable.
3092 (_Not_fn): Use __invoke_result instead of result_of.
3093 * include/std/type_traits (__result_of_memobj, __result_of_memfun):
3094 Remove partial specializations for reference_wrapper types.
3095 (__result_of_impl): Use __inv_unwrap to strip reference_wrapper.
3096 (__invoke_result): Define replacement for result_of and then use it to
3098 (__is_callable_impl, __is_callable, __is_nothrow_callable): Replace
3099 with __is_invocable_impl, __is_invocable, and __is_nothrow_invocable
3101 (invoke_result, invoke_result_t): Define for C++17.
3102 (is_callable, is_nothrow_callable): Replace with is_invocable,
3103 is_invocable_r, is_nothrow_invocable, and is_nothrow_invocable_r.
3104 (is_callable_v, is_nothrow_callable_v): Replace with is_invocable_v,
3105 is_invocable_r_v, is_nothrow_invocable_v, and is_nothrow_invocable_r_v.
3106 * include/std/variant (hash<variant<T...>>): Use is_nothrow_invocable_v
3107 instead of is_nothrow_callable_v.
3108 * testsuite/20_util/function_objects/invoke/59768.cc: Remove unused
3110 * testsuite/20_util/function_objects/not_fn/1.cc: Use is_invocable
3111 instead of is_callable.
3112 * testsuite/20_util/is_callable/*: Rename directory and adjust tests
3114 * testsuite/20_util/is_nothrow_callable/*: Likewise.
3115 * testsuite/20_util/optional/hash.cc: Use is_invocable_v instead of
3117 * testsuite/20_util/variant/hash.cc: Likewise.
3119 2017-03-10 George Lander <george.lander@arm.com>
3121 * acinclude.m4 (glibcxx_cv_obsolete_isnan): Define
3122 _GLIBCXX_INCLUDE_NEXT_C_HEADERS before including math.h.
3123 * configure: Regenerate.
3125 2017-03-09 Jonathan Wakely <jwakely@redhat.com>
3127 * include/std/functional (_Not_fn): Define macro to simplify
3128 repetitive function definitions.
3130 * doc/xml/manual/status_cxx2017.xml: Document std::byte support.
3131 * include/c_global/cstddef (std::byte): Define for C++17.
3132 * testsuite/18_support/byte/global_neg.cc: New test.
3133 * testsuite/18_support/byte/ops.cc: New test.
3134 * testsuite/18_support/byte/requirements.cc: New test.
3136 2017-03-05 Jonathan Wakely <jwakely@redhat.com>
3138 * doc/xml/manual/status_cxx2017.xml: Document P0156R2 status.
3139 * doc/html/*: Regenerate.
3140 * include/std/mutex (scoped_lock): Implement new C++17 template.
3141 * testsuite/30_threads/scoped_lock/cons/1.cc: New test.
3142 * testsuite/30_threads/scoped_lock/requirements/
3143 explicit_instantiation.cc: New test.
3144 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: New test.
3146 2017-03-02 Gerald Pfeifer <gerald@pfeifer.com>
3147 François Dumont <frs.dumont@gmail.com>
3148 Jonathan Wakely <jwakely@redhat.com>
3150 * doc/xml/manual/debug_mode.xml: Update and simplify note
3151 on link- and run-time coexistence.
3153 2017-03-02 Jonathan Wakely <jwakely@redhat.com>
3155 * testsuite/17_intro/headers/names.cc: Rename to ...
3156 * testsuite/17_intro/names.cc: ... here.
3159 * include/bits/hashtable_policy.h (__clp2): Use reserved names for
3160 parameters and local variables.
3161 * include/bits/ios_base.h (make_error_code, make_error_condition):
3163 * include/bits/list.tcc (list::sort): Likewise.
3164 * include/bits/mask_array.h (mask_array): Likewise.
3165 * include/bits/regex.h (regex_token_iterator): Likewise.
3166 * include/bits/slice_array.h (slice_array): Likewise.
3167 * include/bits/stl_algo.h (__sample): Likewise.
3168 * include/std/memory (undeclare_no_pointers): Likewise.
3169 * include/std/type_traits (is_callable_v, is_nothrow_callable_v):
3171 * libsupc++/exception_ptr.h (__dest_thunk): Likewise.
3172 * testsuite/17_intro/headers/names.cc: New test.
3175 * include/std/functional (bind::_Res_type_impl): Fix incorrect use of
3176 result_of that loses top-level cv-qualifiers.
3177 * testsuite/20_util/bind/79798.cc: New test.
3179 2017-03-01 Gerald Pfeifer <gerald@pfeifer.com>
3181 * doc/xml/manual/documentation_hacking.xml: Tweak link to
3184 2017-02-23 Jonathan Wakely <jwakely@redhat.com>
3186 * include/experimental/iterator: Include <iterator>.
3187 * testsuite/experimental/iterator/requirements.cc: Check for contents
3190 2017-02-19 Dinka Ranns <dinka.ranns@googlemail.com>
3192 C++17 GB50 resolution
3193 * include/std/chrono (duration::operator++()): Add
3194 _GLIBCXX17_CONSTEXPR.
3195 (duration::operator++(int)): Likewise.
3196 (duration::operator--()): Likewise.
3197 (duration::operator--(int)): Likewise.
3198 (duration::operator+=(const duration&)): Likewise.
3199 (duration::operator-=(const duration&)): Likewise.
3200 (duration::operator*=(const rep&)): Likewise.
3201 (duration::operator/=(const rep&)): Likewise.
3202 (duration::operator%=(const rep&)): Likewise.
3203 (duration::operator%=(const duration&)): Likewise.
3204 (time_point::operator+=(const duration&)): Likewise.
3205 (time_point::operator-=(const duration&)): Likewise.
3206 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: New test.
3207 * testsuite/20_util/duration/literals/range.cc: Adjust dg-error.
3208 * testsuite/20_util/time_point/arithmetic/constexpr.cc: New test.
3210 2017-02-19 Gerald Pfeifer <gerald@pfeifer.com>
3212 * doc/xml/manual/debug.xml: Adjust link to ThreadSanitizer.
3214 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
3216 * doc/xml/manual/io.xml: Update link to groups.google.com.
3217 Tweak link description.
3219 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
3221 * doc/xml/manual/profile_mode.xml: Fix link.
3223 2017-02-16 Gerald Pfeifer <gerald@pfeifer.com>
3225 * doc/xml/manual/policy_data_structures.xml: Simplify and
3226 standardize references to boost.org.
3227 * doc/xml/manual/policy_data_structures_biblio.xml: Ditto.
3228 * doc/xml/manual/shared_ptr.xml: Ditto.
3230 2017-02-16 Jonathan Wakely <jwakely@redhat.com>
3233 * src/c++11/snprintf_lite.cc (__concat_size_t): Calculate length
3234 written to buffer, not length remaining in buffer.
3236 2017-02-15 Tim Shen <timshen@google.com>
3239 * include/std/variant (operator<(), operator>(), operator<=(),
3240 operator>=(), operator==(), operator!=()): Implement P0393R3.
3241 * testsuite/20_util/variant/compile.cc: Adjust tests.
3242 * testsuite/20_util/variant/run.cc: Adjust tests.
3244 2017-02-15 Tim Shen <timshen@google.com>
3247 * include/std/variant (visit()): Forward variant types to the return
3248 type detection code.
3249 * testsuite/20_util/variant/compile.cc: Add test cases.
3251 2017-02-13 H.J. Lu <hongjiu.lu@intel.com>
3254 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
3256 2017-02-13 Jakub Jelinek <jakub@redhat.com>
3259 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
3260 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
3261 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Likewise.
3262 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
3263 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Likewise.
3264 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
3265 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Likewise.
3266 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
3267 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
3269 2017-02-13 Jonathan Wakely <jwakely@redhat.com>
3272 * include/std/future (__future_base::_Task_state::_M_run)
3273 (__future_base::_Task_state::_M_run_delayed): Use lvalue types in
3274 result_of expressions.
3275 * testsuite/30_threads/packaged_task/79486.cc: New.
3277 2017-02-11 Jonathan Wakely <jwakely@redhat.com>
3280 * include/bits/shared_ptr_base.h (__shared_ptr(_Yp*, _Deleter))
3281 (__shared_ptr(_Yp*, _Deleter, _Alloc)): Use lvalue types in
3282 __is_callable check.
3283 * testsuite/20_util/shared_ptr/cons/79467.cc: New.
3285 * include/bits/atomic_base.h: Re-indent.
3287 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
3289 * doc/xml/manual/profile_mode.xml: Update a paper reference.
3291 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
3293 * src/c++11/snprintf_lite.cc (__err): Use https for bug reporting.
3295 2017-02-08 Jonathan Wakely <jwakely@redhat.com>
3297 * doc/xml/manual/policy_data_structures.xml: Fix spelling of author's
3299 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise. Remove
3300 broken links to texts that are no longer online.
3301 * doc/xml/manual/profile_mode.xml: Update links to CGO 2009 paper and
3303 * doc/xml/manual/using.xml: Update links to memory model information.
3304 * doc/xml/manual/using_exceptions.xml: Update link to "Appendix E:
3305 Standard-Library Exception Safety".
3306 * doc/html/*: Regenerate.
3308 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
3310 * doc/xml/manual/profile_mode.xml: Unbreak link to
3311 "Optimizing Sorting with Machine Learning Algorithms".
3313 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
3315 * src/c++11/snprintf_lite.cc (__err): Update bug reporting URL.
3317 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
3319 * doc/xml/manual/abi.xml: Update link to "Sun Studio 11: C++
3322 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
3324 * doc/html/ext/lwg-active.html: Remove.
3325 * doc/html/ext/lwg-closed.html: Ditto.
3326 * doc/html/ext/lwg-defects.html: Ditto.
3328 * doc/Makefile.am (xml_extradir): Remove.
3330 (stamp-html-docbook-lwg): Remove recipe...
3331 (stamp-html-docbook-data): ...and its use here.
3332 * doc/Makefile.in: Regenerate.
3334 * doc/xml/manual/intro.xml: Shorten two paragraphs explaining
3335 the relationship to the upstream working group.
3336 Replace a local link to ../ext/lwg-active.html by the upstream one.
3337 Replace all reference to ../ext/lwg-defects.html by a new entity
3338 &DR; which refers to the upstream address.
3340 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
3342 * doc/xml/manual/status_cxx2017.xml: Fix link to N4284.
3344 2017-02-06 Jonathan Wakely <jwakely@redhat.com>
3347 * testsuite/20_util/duration/literals/range.cc: Prune extra output
3350 2017-02-06 Gerald Pfeifer <gerald@pfeifer.com>
3352 * doc/xml/manual/documentation_hacking.xml: Update URL of the
3353 DocBook Element Reference. Use that term as link description
3354 instead of "online".
3355 epubcheck has moved to GitHub.
3356 Remove obsolete link to DocBook Publishing Tools.
3358 2017-02-03 Jonathan Wakely <jwakely@redhat.com>
3361 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Restore ABI override
3362 so new ios::failure can be caught even when old ABI is the default.
3363 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
3364 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
3365 exceptions_failbit.cc: Likewise.
3366 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
3367 exceptions_failbit.cc: Likewise.
3368 * testsuite/27_io/basic_istream/extractors_other/char/
3369 exceptions_null.cc: Likewise.
3370 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
3371 exceptions_null.cc: Likewise.
3372 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
3373 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
3374 * testsuite/27_io/basic_ostream/inserters_other/char/
3375 exceptions_null.cc: Likewise.
3376 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
3377 exceptions_null.cc: Likewise.
3378 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3381 * src/c++11/Makefile.am: Add new files.
3382 * src/c++11/Makefile.in: Regenerate.
3383 * src/c++11/cow-string-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
3384 (operator<<, operator>>, getline): Move explicit instantiations to ...
3385 * src/c++11/cow-string-io-inst.cc: ... new file.
3386 * src/c++11/cow-wstring-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
3387 (operator<<, operator>>, getline): Move explicit instantiations to ...
3388 * src/c++11/cow-wstring-io-inst.cc: ... new file.
3389 * src/c++11/functexcept.cc (__throw_ios_failure, __throw_system_error)
3390 (__throw_future_error, __throw_bad_function_call):
3391 (__throw_regex_error): Move functions for C++11 exceptions to the
3392 files that define the exception types.
3393 * src/c++11/functional.cc (__throw_bad_function_call): Move here.
3394 * src/c++11/future.cc (__throw_future_error): Likewise.
3395 * src/c++11/ios.cc (__throw_ios_failure): Likewise.
3396 * src/c++11/regex.cc (__throw_regex_error): Likewise.
3397 * src/c++11/snprintf_lite.cc (__concat_size_t): Print decimal
3398 representation directly instead of calling __int_to_char.
3399 * src/c++11/sso_string.cc (__sso_string): New file for definition
3400 of __sso_string type.
3401 * src/c++11/string-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
3402 explicit instantiations of narrow string I/O functions.
3403 * src/c++11/system_error.cc (__throw_system_error): Move here.
3404 (__sso_string): Move to new file.
3405 * src/c++11/wstring-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
3406 explicit instantiations of wide string I/O functions.
3407 * src/c++98/misc-inst.cc [_GLIBCXX_USE_CXX11_ABI] (operator<<)
3408 (operator>>, getline): Remove explicit instantiations from here.
3410 2017-02-02 H.J. Lu <hongjiu.lu@intel.com>
3412 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
3414 2017-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3416 * configure.host: Separate Solaris/SPARC and x86 baselines.
3417 * config/abi/post/solaris2.10/baseline_symbols.txt: Move ...
3418 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: ... here.
3419 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Move ...
3420 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
3422 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Move ...
3423 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: ... here.
3424 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: New file.
3425 * config/abi/post/solaris2.11/baseline_symbols.txt: Move ...
3426 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: ... here.
3427 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Move ...
3428 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
3430 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Move ...
3431 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: ... here.
3432 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: New file.
3434 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
3435 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
3436 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
3437 * config/abi/post/solaris2.11/baseline_symbols.txt: Likewise.
3438 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Likewise.
3439 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Likewise.
3441 2017-02-01 Jonathan Wakely <jwakely@redhat.com>
3444 * include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
3446 (_Iter_comp_to_iter): Likewise.
3447 * testsuite/25_algorithms/search/78346.cc: New test.
3450 * config/abi/pre/gnu.ver: Remove recently added symbols.
3451 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
3452 (basic_string::_M_copy_assign): Remove.
3453 (basic_string::operator=(const basic_string&)): Don't dispatch to
3454 _M_copy_assign. If source object is small just deallocate, otherwise
3455 perform new allocation before making any changes.
3456 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
3457 (basic_string::_M_copy_assign(const basic_string&, true_type)):
3459 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
3460 Test cases where the allocators are equal or the string is small.
3461 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
3464 2017-01-30 Ville Voutilainen <ville.voutilainen@gmail.com>
3466 Implement LWG 2825, LWG 2756 breaks class template argument
3467 deduction for optional.
3468 * include/std/optional: Add a deduction guide.
3469 * testsuite/20_util/optional/cons/deduction_guide.cc: New.
3471 2017-01-27 Jonathan Wakely <jwakely@redhat.com>
3474 * config/abi/pre/gnu.ver: Add new symbols.
3475 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
3476 (basic_string::_M_copy_assign): New overloaded functions to perform
3478 (basic_string::operator=(const basic_string&)): Dispatch to
3480 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
3481 (basic_string::_M_copy_assign(const basic_string&, true_type)):
3482 Define, performing rollback on exception.
3483 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
3484 Test exception-safety guarantee.
3485 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
3487 * testsuite/util/testsuite_allocator.h (uneq_allocator::swap): Make
3490 2017-01-26 Jonathan Wakely <jwakely@redhat.com>
3493 * include/tr1/complex (conj): Remove using-declaration and restore
3494 overloads, reverting previous change.
3496 * testsuite/23_containers/list/operations/78389.cc: Fix for C++11
3498 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
3499 Mark as unsupported in C++98 mode.
3500 * testsuite/23_containers/queue/requirements/constructible.cc:
3502 * testsuite/23_containers/stack/requirements/constructible.cc:
3504 * testsuite/25_algorithms/make_heap/movable.cc: Fix for C++11 mode.
3507 * include/bits/c++config (literals::string_view_literals::__7): Add.
3508 Only declare versioned namespaces for the relevant C++ dialects.
3509 * include/experimental/bits/erase_if.h (fundamentals_v2::__detail):
3510 Add versioning macros.
3511 * include/experimental/bits/lfts_config.h:
3512 (fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add.
3513 * include/experimental/string_view (fundamentals_v2::__detail):
3514 Add versioning macros.
3515 (fundamentals_v2::__detail::__identity): Remove.
3516 (fundamentals_v2::__detail::__idt): Use common_type instead of
3517 __detail::__identity.
3518 * include/std/string_view (__detail::__identity, __detail::__idt):
3520 (literals::string_view_literals): Fix nesting of versioning macros.
3523 * libsupc++/del_opa.cc (operator delete(void*, std::align_val_t))
3524 [!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN
3525 && !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC]:
3526 Retrieve original pointer value allocated by malloc.
3527 * libsupc++/new_opa.cc [!_GLIBCXX_HAVE_ALIGNED_ALLOC
3528 && !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN
3529 && !_GLIBCXX_HAVE__ALIGNED_MALLOC] (aligned_alloc(size_t, size_t)):
3530 Define, adjusting pointer value allocated by malloc and storing for
3531 retrieval by operator delete.
3533 2017-01-26 Jakub Jelinek <jakub@redhat.com>
3535 * libsupc++/eh_atomics.h: Update copyright years.
3536 * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years.
3538 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
3542 * include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
3543 (proj(T), conj(T)): Change return types per DR 1522.
3544 * include/tr1/complex (conj): Remove overloads and use std::conj.
3545 * testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
3546 * testsuite/26_numerics/complex/dr781.cc: ... this, and update.
3547 * testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
3548 real(T) and imag(T). Allow testing for C++11 too.
3550 2017-01-24 Jonathan Wakely <jwakely@redhat.com>
3553 * include/experimental/string_view (operator==): Check sizes first.
3554 * include/std/string_view (operator==): Likewise.
3556 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
3558 * testsuite/experimental/array/make_array.cc: Restore <functional>
3561 2017-01-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
3563 * testsuite/29_atomics/atomic/69301.cc: Require atomic builtins.
3565 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
3568 * include/experimental/array (__make_array_elem): New class template
3569 and partial specialization.
3570 (__is_reference_wrapper): Move into __make_array_elem specialization.
3571 (make_array): Use __make_array_elem to determine element type and move
3572 static assertion into specialization. Qualify std::forward call.
3573 (to_array): Add exception specifiation.
3574 * testsuite/experimental/array/make_array.cc: Test argument types
3575 without a common type.
3576 * testsuite/experimental/array/neg.cc: Adjust expected error message.
3578 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
3580 * doc/xml/manual/debug.xml: code.google.com uses https now.
3582 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
3584 * doc/xml/manual/test.xml: Fix link into gccint online manual.
3586 2017-01-21 Ville Voutilainen <ville.voutilainen@gmail.com>
3588 Make poisoned hashes SFINAE away the call operator of the hash.
3589 * include/bits/functional_hash.h
3590 (__poison_hash::__enable_hash_call): New.
3591 * include/std/optional (__optional_hash_call_base): New.
3592 (hash<optional<_Tp>>): Derive from the new base,
3593 move the hash function into that base.
3594 * include/std/variant (__variant_hash_call_base_impl): New.
3595 (__variant_hash_call_base): Likewise.
3596 (hash<variant<_Types...>>): Derive from the new base,
3597 move the hash function into that base.
3598 * testsuite/20_util/optional/hash.cc: Add tests for is_callable.
3599 * testsuite/20_util/variant/hash.cc: Likewise.
3601 2017-01-20 Joe Seymour <joe.s@somniumtech.com>
3603 * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t.
3604 * configure: Regenerate.
3606 2017-01-20 Jonathan Wakely <jwakely@redhat.com>
3609 * include/bits/random.h (uniform_real_distribution::param_type)
3610 (normal_distribution::param_type, lognormal_distribution::param_type)
3611 (gamma_distribution::param_type, chi_squared_distribution::param_type)
3612 (cauchy_distribution::param_type, fisher_f_distribution::param_type)
3613 (student_t_distribution::param_type)
3614 (bernoulli_distribution::param_type, binomial_distribution::param_type)
3615 (geometric_distribution::param_type)
3616 (negative_binomial_distribution::param_type)
3617 (poisson_distribution::param_type)
3618 (exponential_distribution::param_type)
3619 (weibull_distribution::param_type)
3620 (extreme_value_distribution::param_type)
3621 (discrete_distribution::param_type)
3622 (piecewise_constant_distribution::param_type)
3623 (piecewise_linear_distribution::param_type): Define operator!=.
3624 * include/bits/uniform_int_dist.h
3625 (uniform_int_distribution::param_type): Likewise.
3626 * include/ext/random (beta_distribution::param_type)
3627 (rice_distribution::param_type, nakagami_distribution::param_type)
3628 (pareto_distribution::param_type, k_distribution::param_type)
3629 (arcsine_distribution::param_type, hoyt_distribution::param_type)
3630 (triangular_distribution::param_type)
3631 (von_mises_distribution::param_type)
3632 (hypergeometric_distribution::param_type)
3633 (logistic_distribution::param_type)
3634 (uniform_on_sphere_distribution::param_type)
3635 (uniform_inside_sphere_distribution::param_type): Likewise.
3636 * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc:
3637 Test construction with param_type.
3638 * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc:
3640 * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
3642 * testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc:
3644 * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
3646 * testsuite/26_numerics/random/extreme_value_distribution/cons/
3648 * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc:
3650 * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc:
3652 * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc:
3654 * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc:
3656 * testsuite/26_numerics/random/negative_binomial_distribution/cons/
3658 * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
3660 * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc:
3662 * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
3664 * testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc:
3666 * testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc:
3668 * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc:
3670 * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise.
3671 * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise.
3672 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
3673 * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc:
3675 * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise.
3676 * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise.
3677 * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise.
3678 * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
3679 * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise.
3680 * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise.
3681 * testsuite/ext/random/triangular_distribution/cons/parms.cc:
3683 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/
3685 * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise.
3688 * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
3689 (__allocator_traits_base::__size_type): Remove.
3690 (allocator_traits::_Ptr): New class template to detect const and void
3691 pointer types without instantiating pointer_traits::rebind
3693 (allocator_traits::_Diff): Likewise for detecting difference_type.
3694 (allocator_traits::_Size): New class template to detect size_type
3695 without instantiating make_unsigned unnecessarily.
3696 * include/bits/ptr_traits.h (pointer_traits::element_type): Use
3697 __detected_or_t instead of __detected_or_t_.
3698 * include/std/type_traits (__detected_or_t_): Remove.
3699 * testsuite/20_util/allocator_traits/members/pointers.cc: New test.
3703 * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
3704 Replace with class template using void_t.
3705 (__alloc_rebind): Define in terms of
3706 __allocator_traits_base::__rebind.
3707 (allocator_traits): Remove unconditional static_assert for
3709 * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
3710 (pointer_traits::__rebind): Replace with class template using void_t.
3711 (pointer_traits::rebind): Define in terms of __rebind.
3712 (pointer_traits): Remove unconditional static_assert for rebind.
3713 * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
3714 * testsuite/20_util/pointer_traits/rebind.cc: New test.
3717 * include/experimental/any (__any_caster): Avoid instantiating
3718 manager function for types that can't be stored in any.
3719 * include/std/any (__any_caster): Likewise.
3720 * testsuite/20_util/any/misc/any_cast.cc: Test non-copyable type.
3721 * testsuite/experimental/any/misc/any_cast.cc: Likewise.
3724 * include/bits/stl_algo.h (is_partitioned): Use increment instead of
3727 2017-01-19 Jonathan Wakely <jwakely@redhat.com>
3730 * include/bits/shared_ptr_base.h (__enable_shared_from_this_base):
3732 (__enable_shared_from_this): Declare __shared_ptr as a friend.
3733 * testsuite/ext/shared_ptr/1.cc: New test.
3736 * include/bits/stl_algo.h (is_partitioned): Don't retest the partition
3738 * testsuite/25_algorithms/is_partitioned/2.cc: New test.
3740 * doc/xml/manual/abi.xml: Fix typo.
3741 * doc/html/manual/abi.html: Likewise.
3744 * include/bits/predefined_ops.h (_Iter_less_val, _Val_less_iter): Add
3745 converting constructors from _Iter_less_iter.
3746 (_Iter_comp_val, _Val_comp_iter): Add converting constructors from
3748 (__iter_comp_val(_Iter_comp_iter<C>): Use converting constructor.
3749 (__val_comp_iter(_Iter_comp_iter<C>): Likewise.
3750 * include/bits/stl_heap.h (__is_heap_until, __push_heap, __pop_heap)
3751 (__make_heap, __sort_heap): Change _Compare parameters to references.
3752 (__is_heap, push_heap, __adjust_heap, __pop_heap, pop_heap)
3753 (__make_heap, make_heap, sort_heap, is_heap_until): Pass comparison
3754 functions as lvalues.
3755 (is_heap): Call __is_heap_until directly to avoid copying __comp.
3756 * testsuite/23_containers/priority_queue/67085.cc: Adjust test to
3757 count copies during construction with empty sequence.
3760 * include/bits/stl_heap.h (__is_heap): Use _GLIBCXX_MOVE.
3761 (__make_heap, __sort_heap): Don't use _GLIBCXX_MOVE inside loops.
3762 * testsuite/23_containers/priority_queue/67085.cc: Adjust expected
3764 * testsuite/25_algorithms/make_heap/movable.cc: New test.
3767 * include/bits/stl_heap.h (push_heap, __adjust_heap, __pop_heap)
3768 (pop_heap, __make_heap, make_heap, __sort_heap, sort_heap): Use
3769 _GLIBCXX_MOVE when passing comparison function to other functions.
3770 (is_heap_until, is_heap): Use std::move when passing comparison
3772 * testsuite/23_containers/priority_queue/67085.cc: New test.
3775 * doc/xml/manual/abi.xml (abi.versioning.history): Add markup to
3776 macro names, filenames, and literal values. Document _GLIBCXX_RELEASE.
3777 Document that the deprecated _GLIBCXX_VERSION macro was removed for
3779 * doc/html/*: Regenerate.
3780 * include/Makefile.am (_GLIBCXX_RELEASE): Set value.
3781 * include/Makefile.in: Regenerate.
3782 * include/bits/c++config (_GLIBCXX_RELEASE): Add #define.
3783 * testsuite/ext/profile/mutex_extensions_neg.cc: Use lineno of 0 in
3786 2017-01-18 Jonathan Wakely <jwakely@redhat.com>
3789 * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
3790 aligned buffer instead of default-initialized variable.
3791 * testsuite/29_atomics/atomic/69301.cc: New test.
3792 * include/experimental/memory (observer_ptr::release): Use reserved
3794 * include/ext/pointer.h (_Pointer_adapter::operator++(int))
3795 (_Pointer_adapter::operator--(int)): Likewise.
3798 * include/experimental/random (randint): Use temporary instead of
3799 thread_local static.
3801 2017-01-17 Joshua Conner <joshconner@google.com>
3803 * crossconfig.m4: Add fuchsia OS.
3804 * configure: Regenerate.
3806 2017-01-17 Jonathan Wakely <jwakely@redhat.com>
3809 * doc/xml/manual/abi.xml (abi.versioning.history): Explain why the
3810 __GLIBCXX__ macro is not useful. Remove redundant date information
3811 and link to the GCC release timeline.
3812 (abi.versioning.active): Move partial sentence into the previous
3814 * doc/html/*: Regenerate.
3817 * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
3818 of remove_reference.
3819 * testsuite/18_support/nested_exception/79114.cc: New test.
3821 2017-01-17 Jakub Jelinek <jakub@redhat.com>
3824 * configure.ac: Add GCC_BASE_VER.
3825 * fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
3826 get version from BASE-VER file.
3827 * po/Makefile.in: Regenerated.
3828 * libsupc++/Makefile.in: Regenerated.
3829 * testsuite/Makefile.in: Regenerated.
3830 * src/Makefile.in: Regenerated.
3831 * configure: Regenerated.
3832 * Makefile.in: Regenerated.
3833 * include/Makefile.in: Regenerated.
3834 * doc/Makefile.in: Regenerated.
3835 * python/Makefile.in: Regenerated.
3836 * src/c++11/Makefile.in: Regenerated.
3837 * src/c++98/Makefile.in: Regenerated.
3838 * src/filesystem/Makefile.in: Regenerated.
3840 2017-01-16 Jonathan Wakely <jwakely@redhat.com>
3843 * src/c++11/functexcept.cc: Use new ABI for std::ios_base::failure
3845 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Don't override ABI
3846 for test, so new ios::failure can be caught.
3847 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
3848 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
3849 exceptions_failbit.cc: Likewise.
3850 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
3851 exceptions_failbit.cc: Likewise.
3852 * testsuite/27_io/basic_istream/extractors_other/char/
3853 exceptions_null.cc: Likewise.
3854 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
3855 exceptions_null.cc: Likewise.
3856 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
3857 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
3858 * testsuite/27_io/basic_ostream/inserters_other/char/
3859 exceptions_null.cc: Likewise.
3860 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
3861 exceptions_null.cc: Likewise.
3862 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3865 * include/bits/locale_classes.h (locale::facet::__shim): Change from
3866 private to protected.
3867 * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
3868 make locale::facet::__shim accessible.
3870 2017-01-16 Ville Voutilainen <ville.voutilainen@gmail.com>
3873 * include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
3874 (merge(list&&, _StrictWeakOrdering)): Likewise.
3875 * testsuite/23_containers/list/operations/78389.cc: Add
3876 better test for the sizes.
3878 2017-01-14 Jonathan Wakely <jwakely@redhat.com>
3880 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
3881 Skip test when -D_GLIBCXX_PROFILE mode is included in options.
3882 * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
3883 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
3885 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
3886 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
3887 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
3888 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
3889 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
3891 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
3893 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
3895 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
3897 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
3899 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
3900 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
3901 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
3902 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
3903 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
3904 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
3905 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
3906 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
3907 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
3908 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
3909 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
3910 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
3911 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
3913 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
3916 * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
3917 retry fclose on EINTR.
3919 * include/profile/base.h: Remove unused header that leads to header
3920 cycle in C++17 mode.
3923 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
3924 Make _If_sv private.
3925 [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
3926 basic_string_view arguments.
3929 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
3930 redundant option from cxxflags.
3931 (check_effective_target_cxx11-abi): Define.
3932 * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
3934 * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
3935 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
3937 * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
3939 * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
3940 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
3942 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
3944 * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
3945 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
3947 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
3949 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
3951 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
3953 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
3955 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
3957 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
3959 * testsuite/23_containers/list/61347.cc: Likewise.
3960 * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
3961 * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
3963 2017-01-13 Ville Voutilainen <ville.voutilainen@gmail.com>
3966 * include/bits/list.tcc (merge(list&&)):
3967 Adjust list sizes if the comparator throws.
3968 (merge(list&&, _StrictWeakOrdering)): Likewise.
3969 (sort()): Splice elements back from the scratch buffers
3970 if the comparator throws.
3971 (sort(_StrictWeakOrdering)): Likewise.
3972 * testsuite/23_containers/list/operations/78389.cc: New.
3974 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
3976 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
3977 XFAIL for C++17 until node reinsertion supports fancy pointers.
3980 * testsuite/20_util/add_pointer/value.cc: Test forming function
3983 2017-01-13 Michael Brune <lucdanton@free.fr>
3986 * include/std/type_traits (__is_referenceable): Handle noexcept
3989 2017-01-12 Jonathan Wakely <jwakely@redhat.com>
3992 * include/bits/stl_queue.h (queue, priority_queue): Remove default
3993 member-initializers and define default constructors as templates with
3995 * include/bits/stl_stack.h (stack): Likewise.
3996 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
3998 * testsuite/23_containers/priority_queue/requirements/
3999 explicit_instantiation/1.cc: Test more instantiations.
4000 * testsuite/23_containers/priority_queue/requirements/
4001 explicit_instantiation/1_c++98.cc: Likewise.
4002 * testsuite/23_containers/queue/requirements/constructible.cc: New.
4003 * testsuite/23_containers/stack/requirements/constructible.cc: New.
4006 * doc/xml/manual/intro.xml: Document LWG 2781 change.
4007 * doc/html/*: Regenerate.
4008 * include/std/functional (_Function_base::_Ref_manager): Remove.
4009 (_Function_handler): Remove partial specializations for
4011 (function::target): Remove special case for const qualification.
4012 * testsuite/20_util/function/6.cc: Adjust tests for target type.
4013 * testsuite/20_util/function/7.cc: Likewise.
4014 * testsuite/20_util/function/8.cc: Likewise.
4016 2017-01-11 Jonathan Wakely <jwakely@redhat.com>
4019 * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
4020 (map::equal_range): Fix return type of heterogeneous overloads.
4021 * include/bits/stl_multimap.h (multimap::lower_bound)
4022 (multimap::upper_bound, multimap::equal_range): Likewise.
4023 * include/bits/stl_multiset.h (multiset::lower_bound)
4024 (multiset::upper_bound, multiset::equal_range): Likewise.
4025 * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
4026 (set::equal_range): Likewise.
4027 * testsuite/23_containers/map/operations/2.cc
4028 * testsuite/23_containers/multimap/operations/2.cc
4029 * testsuite/23_containers/multiset/operations/2.cc
4030 * testsuite/23_containers/set/operations/2.cc
4033 * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
4034 the heterogeneous comparison can only find one match.
4035 * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
4036 * testsuite/23_containers/map/operations/2.cc: Test count works with
4037 comparison function that just partitions rather than sorting.
4038 * testsuite/23_containers/set/operations/2.cc: Likewise.
4040 2017-01-11 Ville Voutilainen <ville.voutilainen@gmail.com>
4042 Reduce the size of variant, it doesn't need an index of
4043 type size_t internally.
4044 * include/std/variant (parse_numbers.h): New include.
4045 (__select_index): New.
4046 (_Variant_storage<false, _Types...>::_M_reset_impl): Use
4047 _index_type for comparison with variant_npos.
4048 (_Variant_storage<false, _Types...>::__index_type): New.
4049 (_Variant_storage<false, _Types...>::_M_index): Change the
4050 type from size_t to __index_type.
4051 (_Variant_storage<true, _Types...>::__index_type): New.
4052 (_Variant_storage<true, _Types...>::_M_index): Change the
4053 type from size_t to __index_type.
4054 (_Variant_base::_M_valid): Use _Storage::__index_type
4055 for comparison with variant_npos.
4056 (variant::index): Use _Base::_Storage::__index_type
4057 for comparison with variant_npos.
4058 * testsuite/20_util/variant/index_type.cc: New.
4060 2017-01-10 Jonathan Wakely <jwakely@redhat.com>
4062 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
4063 effective target selector to prevent running in C++17 mode.
4066 * include/bits/stl_queue.h (queue::c): Add default member initializer.
4067 (queue::queue()): Add constructor and define as defaulted.
4068 (queue::queue(_Sequence&&)): Remove default argument.
4069 (priority_queue::c, priority_queue::comp): Add default member
4071 (priority_queue::priority_queue()): Add constructor and define as
4073 (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
4074 Remove default argument for first parameter.
4075 * include/bits/stl_stack.h (stack::c): Add default member initializer.
4076 (stack::stack()): Add constructor and define as defaulted.
4077 (stack::stack(const _Sequence&)): Remove default argument.
4078 * testsuite/23_containers/priority_queue/requirements/
4079 explicit_instantiation/1.cc: Test explicit instantiation with
4080 non-DefaultConstructible sequence.
4081 * testsuite/23_containers/priority_queue/77528.cc: New test.
4082 * testsuite/23_containers/priority_queue/requirements/
4083 explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
4084 * testsuite/23_containers/queue/77528.cc: New test.
4085 * testsuite/23_containers/queue/requirements/explicit_instantiation/
4086 1.cc: Test explicit instantiation with non-DefaultConstructible
4088 * testsuite/23_containers/queue/requirements/explicit_instantiation/
4089 1_c++0x.cc: Replace with 1_c++98.cc.
4090 * testsuite/23_containers/stack/77528.cc: New test.
4091 * testsuite/23_containers/stack/requirements/explicit_instantiation/
4092 1.cc: Test explicit instantiation with non-DefaultConstructible
4094 * testsuite/23_containers/stack/requirements/explicit_instantiation/
4095 1_c++0x.cc: Replace with 1_c++98.cc.
4097 2017-01-10 Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
4099 * include/bits/locale_facets_nonio.tcc
4100 (time_get::_M_extract_via_format): Avoid compilation errors with
4101 non-standard struct tm.
4103 2017-01-10 François Dumont <fdumont@gcc.gnu.org>
4104 Jonathan Wakely <jwakely@redhat.com>
4106 * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
4107 (is_specialization, strip_versioned_namespace): New helpers functions
4108 to work with symbols in the versioned namespace.
4109 (Printer.add_version): Add second name using versioned namespace.
4110 (add_one_template_type_printer, add_one_type_printer): Add second
4111 type printers using versioned namespace.
4112 (register_type_printers): Add template type printer for basic_string.
4113 (build_libstdcxx_dictionary): Remove dead code.
4114 * python/libstdcxx/v6/xmethods.py: Make all matchers look for
4115 versioned namespace.
4116 * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
4118 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
4120 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
4123 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
4124 functions separately on darwin and if they're missing define
4125 _GLIBCXX_NO_C99_ROUNDING_FUNCS.
4126 * config.h.in: Regenerate.
4127 * configure: Regenerate.
4128 * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
4129 (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
4131 * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
4132 to detect correct thread_local destructors.
4133 * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
4136 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
4137 Aditya Kumar <hiraditya@msn.com>
4140 * include/bits/basic_string.tcc
4141 (basic_string::find(const CharT*, size_type, size_type)): Optimize.
4143 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
4145 * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
4146 * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
4148 * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
4149 Include <cassert> header.
4152 * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
4153 * configure: Regenerate.
4155 2017-01-06 Barrett Adair <barrettellisadair@gmail.com>
4156 Jonathan Wakely <jwakely@redhat.com>
4158 * include/std/variant (variant, swap): Replace __and_ usage with fold
4161 2017-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4164 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
4165 * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
4166 GLIBCXX_CHECK_ASSEMBLER_HWCAP.
4167 * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
4169 * aclocal.m4: Regenerate.
4170 * configure: Regenerate.
4171 * Makefile.in, doc/Makefile.in, include/Makefile.in,
4172 libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
4173 src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
4174 src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
4176 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
4178 * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
4181 * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
4182 (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
4183 (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
4184 move function objects.
4185 (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
4186 (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
4187 * testsuite/25_algorithms/sort/78991.cc: New test.
4189 2017-01-05 Jonathan Wakely <jwakely@redhat.com>
4191 * include/bits/std_function.h (function::_Signature_type): Remove.
4192 (function::function(_Functor)): Adjust.
4194 2017-01-05 Tim Shen <timshen@google.com>
4197 * include/std/variant (__gen_vtable_impl): rename __unused to
4198 __dimensions to avoid naming conflict.
4200 2017-01-04 Jonathan Wakely <jwakely@redhat.com>
4203 * config.h.in: Regenerate.
4204 * configure: Likewise.
4205 * configure.ac: Check for __cxa_thread_atexit.
4206 * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
4207 Don't define __cxa_thread_atexit if libc provides it.
4209 2017-01-04 Ville Voutilainen <ville.voutilainen@gmail.com>
4211 Implement 2801, Default-constructibility of unique_ptr.
4212 * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
4213 (unique_ptr::_DeleterConstraint): Likewise.
4214 (unique_ptr()): Constrain.
4215 (unique_ptr(pointer)): Likewise.
4216 (unique_ptr(nullptr_t)): Likewise.
4217 (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
4218 (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
4219 (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
4220 (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
4221 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
4222 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
4223 * testsuite/20_util/unique_ptr/cons/default.cc: New.
4224 * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
4226 2017-01-04 Pauli Nieminen <suokkos@gmail.com>
4227 Jonathan Wakely <jwakely@redhat.com>
4230 * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
4231 * config.h.in: Regenerate.
4232 * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
4233 (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
4234 exports for exception_ptr, nested_exception, and future conditional.
4235 [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
4236 exports for exception_ptr, nested_exception, and future conditional.
4237 * configure: Regenerate.
4238 * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
4239 * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
4240 * libsupc++/eh_atomics.h: New file for internal use only.
4241 (__eh_atomic_inc, __eh_atomic_dec): New.
4242 * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
4243 (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
4244 (rethrow_exception): Use eh_atomics.h reference counting helpers.
4245 * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
4246 * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
4247 * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
4248 * libsupc++/exception_ptr.h: Likewise.
4249 * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
4250 * libsupc++/nested_exception.cc: Remove check for
4251 ATOMIC_INT_LOCK_FREE.
4252 * libsupc++/nested_exception.h: Likewise.
4253 * src/c++11/future.cc: Likewise.
4254 * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
4255 * testsuite/18_support/nested_exception/*: Likewise.
4256 * testsuite/30_threads/async/*: Likewise.
4257 * testsuite/30_threads/future/*: Likewise.
4258 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
4259 * testsuite/30_threads/packaged_task/*: Likewise.
4260 * testsuite/30_threads/promise/*: Likewise.
4261 * testsuite/30_threads/shared_future/*: Likewise.
4263 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
4265 * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
4266 defaults to https; adjust reference.
4268 2017-01-03 Jonathan Wakely <jwakely@redhat.com>
4271 * include/std/thread (thread(const thread&&)): Add deleted
4273 * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
4275 * doc/xml/manual/spine.xml: Update copyright years.
4276 * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
4277 * doc/xml/manual/test.xml: Likewise.
4278 * doc/html/*: Regenerate.
4280 2017-01-01 Gerald Pfeifer <gerald@pfeifer.com>
4282 * doc/xml/faq.xml: Update address of C++ ABI link.
4283 * doc/xml/manual/abi.xml: Ditto.
4285 2017-01-01 Jakub Jelinek <jakub@redhat.com>
4287 Update copyright years.
4289 Copyright (C) 2017 Free Software Foundation, Inc.
4291 Copying and distribution of this file, with or without modification,
4292 are permitted in any medium without royalty provided the copyright
4293 notice and this notice are preserved.