1 2017-11-16 Jonathan Wakely <jwakely@redhat.com>
3 * include/std/future (shared_future): Add noexcept to copy constructor
4 and copy-assignment operator (LWG 2799).
6 2017-11-15 Ville Voutilainen <ville.voutilainen@gmail.com>
9 * include/std/numeric (gcd): Use remove_cv_t, not remove_cv.
11 2017-11-15 Jonathan Wakely <jwakely@redhat.com>
13 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Leave
15 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
16 Check for past-the-end before dereferencing.
17 * testsuite/experimental/filesystem/iterators/
18 recursive_directory_iterator.cc: Likewise.
20 * include/bits/range_access.h (size, empty, data): Add conditional
21 noexcept to generic overloads.
23 2017-11-14 Ville Voutilainen <ville.voutilainen@gmail.com>
25 Implement LWG 2733 and LWG 2759
26 * include/experimental/numeric (gcd): Reject cv-qualified bool.
28 * include/std/numeric (gcd): Likewise.
30 * testsuite/26_numerics/gcd/gcd_neg.cc: Add tests and adjust.
31 * testsuite/26_numerics/lcm/lcm_neg.cc: Likewise.
33 2017-11-14 Jonathan Wakely <jwakely@redhat.com>
35 * include/bits/locale_conv.h (wbuffer_convert::_M_conv_get): Fix typo.
36 * testsuite/22_locale/conversions/buffer/3.cc: New test.
38 2017-11-10 Jonathan Wakely <jwakely@redhat.com>
40 * testsuite/util/testsuite_tr1.h (ThrowMoveConsClass): Use noexcept.
43 * include/std/fstream (basic_ifstream::open, basic_ofstream::open)
44 (basic_fstream::open): Fix missing return.
46 2017-11-07 Jonathan Wakely <jwakely@redhat.com>
48 * src/filesystem/ops-common.h (make_file_type) [S_ISSOCK]: Only use
49 S_ISSOCK when defined.
51 2017-11-06 François Dumont <fdumont@gcc.gnu.org>
53 * testsuite/libstdc++-prettyprinters/tr1.cc: Compile with -O0.
55 2017-11-06 Martin Liska <mliska@suse.cz>
57 * testsuite/27_io/basic_fstream/cons/char/path.cc (main):
58 Return a value for functions with non-void return type,
59 or change type to void, or add -Wno-return-type for test.
60 * testsuite/27_io/basic_ifstream/cons/char/path.cc (main):
62 * testsuite/27_io/basic_ofstream/open/char/path.cc (main):
65 2017-11-06 Paolo Carlini <paolo.carlini@oracle.com>
67 * testsuite/20_util/optional/cons/deduction.cc: Avoid -Wreturn-type
69 * testsuite/20_util/pair/cons/deduction.cc: Likewise.
70 * testsuite/20_util/pair/traits.cc: Likewise.
71 * testsuite/20_util/tuple/cons/deduction.cc: Likewise.
72 * testsuite/20_util/variant/compile.cc: Likewise.
73 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
74 * testsuite/23_containers/unordered_map/modifiers/try_emplace.cc:
77 2017-11-05 Gerald Pfeifer <gerald@pfeifer.com>
79 * doc/xml/manual/abi.xml: Move docs.oracle.com references to https.
81 2017-11-03 Jonathan Wakely <jwakely@redhat.com>
83 * include/std/type_traits (endian): Define new enumeration type.
84 * testsuite/20_util/endian/1.cc: New test.
86 * include/bits/node_handle.h (_Node_insert_return::get): Remove, as
89 2017-11-01 François Dumont <fdumont@gcc.gnu.org>
91 * python/libstdcxx/v6/printers.py (StdExpAnyPrinter.__init__): Strip
92 typename versioned namespace before the substitution.
93 (StdExpOptionalPrinter.__init__): Likewise.
94 (StdVariantPrinter.__init__): Likewise.
95 (Printer.add_version): Inject versioned namespace after std or
97 (build_libstdcxx_dictionary): Adapt add_version usages, always pass
98 namespace first and symbol second.
100 2017-11-01 Jonathan Wakely <jwakely@redhat.com>
103 * src/filesystem/std-path.cc (path::lexically_normal): Remove dot-dot
105 * testsuite/27_io/filesystem/path/generation/normal.cc: Add testcase.
106 * testsuite/util/testsuite_fs.h (compare_paths): Improve exception
109 2017-10-30 Jonathan Wakely <jwakely@redhat.com>
111 * include/Makefile.am (stamp-bits-sup): Do not create broken symlink
113 * include/Makefile.in: Regenerate.
115 * include/std/fstream (basic_ifstream, basic_ofstream, basic_fstream):
116 Remove outdated comments about calling c_str() to create a file stream
118 (basic_ofstream::basic_ofstream, basic_ofstream::open): Remove
119 redundant ios_mode::trunc bits from default arguments and comments.
121 * doc/xml/faq.xml: Adjust "What is libstdc++?" answer slightly.
123 * include/bits/hashtable_policy.h: Include <tuple>.
124 * include/std/unordered_map: Only include <bits/stl_pair.h> instead
125 of <utility> and <tuple>.
126 * include/std/unordered_set: Likewise.
128 2017-10-30 Ville Voutilainen <ville.voutilainen@gmail.com>
131 * include/debug/array (get(const array<_Tp, _Nm>&&)): New.
132 * include/std/array (get(const array<_Tp, _Nm>&&)): Likewise.
133 * include/std/tuple (get(const tuple<_Elements...>&&)): Likewise.
134 (get(const tuple<_Types...>&&)): Likewise.
135 * include/std/utility
136 (__pair_get::__const_move_get(const std::pair<_Tp1, _Tp2>&&)):
138 (get(const std::pair<_Tp1, _Tp2>&&)): Likewise.
139 (get(const pair<_Tp, _Up>&&)): Likewise.
140 (get(const pair<_Up, _Tp>&&)): Likewise.
141 * testsuite/20_util/pair/astuple/get.cc: Add tests for
143 * testsuite/20_util/pair/astuple/get_by_type.cc: Likewise.
144 * testsuite/20_util/tuple/element_access/get2.cc: Likewise.
145 * testsuite/20_util/tuple/element_access/get2_by_type.cc: Likewise.
146 * testsuite/23_containers/array/tuple_interface/get.cc: Likewise.
147 * testsuite/23_containers/array/tuple_interface/tuple_element_debug_neg.cc:
149 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
152 2017-10-27 Jonathan Wakely <jwakely@redhat.com>
154 * include/bits/node_handle.h (_Node_insert_return::get): Avoid
155 use of std::tie and std::get.
157 * include/Makefile.am: Put headers in alphabetical order.
158 * include/Makefile.in: Regenerate.
160 * include/bits/fs_dir.h (directory_iterator): Remove noexcept from
161 constructors and increment member (LWG 3013).
162 (recursive_directory_iterator): Likewise.
163 * include/bits/fs_ops.h (copy, copy_file, create_directories)
164 (is_empty, remove_all): Remove noexcept (LWG 3013 and LWG 3014).
165 * src/filesystem/std-dir.cc (directory_iterator::increment)
166 (recursive_directory_iterator::increment): Remove noexcept.
167 * src/filesystem/std-ops.cc (copy, copy_file, create_directories)
168 (is_empty, remove_all): Remove noexcept
170 * include/bits/fs_dir.h (file_status): Make default constructor
171 non-explicit (LWG 2787).
172 * testsuite/27_io/filesystem/file_status/1.cc: New test.
173 * testsuite/experimental/filesystem/file_status/1.cc: New test.
175 * include/std/fstream (basic_filebuf::_If_path): New SFINAE helper.
176 (basic_filebuf::open<Path>(const Path&, const ios_base::openmode&))
177 (basic_ifstream<Path>(const Path&, const ios_base::openmode&))
178 (basic_ifstream::open<Path>(const Path&, const ios_base::openmode&))
179 (basic_ofstream<Path>(const Path&, const ios_base::openmode&))
180 (basic_ofstream::open<Path>(const Path&, const ios_base::openmode&))
181 (basic_fstream<Path>(const Path&, const ios_base::openmode&))
182 (basic_fstream::open<Path>(const Path&, const ios_base::openmode&)):
183 New constructors and member functions.
184 * testsuite/27_io/basic_filebuf/open/char/path.cc: New test.
185 * testsuite/27_io/basic_fstream/cons/char/path.cc: New test.
186 * testsuite/27_io/basic_fstream/open/char/path.cc: New test.
187 * testsuite/27_io/basic_ifstream/cons/char/path.cc: New test.
188 * testsuite/27_io/basic_ifstream/open/char/path.cc: New test.
189 * testsuite/27_io/basic_ofstream/cons/char/path.cc: New test.
190 * testsuite/27_io/basic_ofstream/open/char/path.cc: New test.
192 * include/bits/fs_path.h (path::format): Define new enumeration type.
193 (path(string_type&&), path<Source>(const Source&))
194 (path<InputIterator>(InputIterator, InputIterator))
195 (path<Source>(const Source&, const locale&))
196 (path<InputIterator>(InputIterator, InputIterator, const locale&)):
197 Add format parameter.
198 * testsuite/27_io/filesystem/path/construct/format.cc: New test.
200 * include/bits/stl_algo.h (__find_if_not_n, generate_n): Cast to void
201 to ensure overloaded comma not used.
202 * include/bits/stl_algobase.h (__fill_n_a, equal): Likewise.
203 * include/bits/stl_uninitialized.h (__uninitialized_fill_n)
204 (__uninitialized_fill_n_a, __uninitialized_default_n_1)
205 (__uninitialized_default_n_a, __uninitialized_copy_n)
206 (__uninitialized_copy_n_pair): Likewise
207 * testsuite/20_util/specialized_algorithms/memory_management_tools/1.cc:
208 Use test iterator wrappers with overloaded comma operator.
209 * testsuite/25_algorithms/fill_n/1.cc: Likewise.
210 * testsuite/25_algorithms/generate_n/1.cc: New test.
211 * testsuite/25_algorithms/stable_partition/1.cc: New test.
212 * testsuite/util/testsuite_iterators.h (operator,): Add deleted
213 non-member comma operator with iterator wrappers as right operand.
215 2017-10-26 Ville Voutilainen <ville.voutilainen@gmail.com>
217 Deduction guides for associative containers, debug mode deduction
219 * include/bits/stl_iterator.h (__iter_key_t)
220 (__iter_val_t, __iter_to_alloc_t): New.
221 * include/bits/stl_map.h: Add deduction guides.
222 * include/bits/stl_multimap.h: Likewise.
223 * include/bits/stl_multiset.h: Likewise.
224 * include/bits/stl_set.h: Likewise.
225 * include/bits/unordered_map.h: Likewise.
226 * include/bits/unordered_set.h: Likewise.
227 * include/debug/deque: Likewise.
228 * include/debug/forward_list: Likewise.
229 * include/debug/list: Likewise.
230 * include/debug/map.h: Likewise.
231 * include/debug/multimap.h: Likewise.
232 * include/debug/multiset.h: Likewise.
233 * include/debug/set.h: Likewise.
234 * include/debug/unordered_map: Likewise.
235 * include/debug/unordered_set: Likewise.
236 * include/debug/vector: Likewise.
237 * testsuite/23_containers/map/cons/deduction.cc: New.
238 * testsuite/23_containers/multimap/cons/deduction.cc: Likewise.
239 * testsuite/23_containers/multiset/cons/deduction.cc: Likewise.
240 * testsuite/23_containers/set/cons/deduction.cc: Likewise.
241 * testsuite/23_containers/unordered_map/cons/deduction.cc: Likewise.
242 * testsuite/23_containers/unordered_multimap/cons/deduction.cc:
244 * testsuite/23_containers/unordered_multiset/cons/deduction.cc:
246 * testsuite/23_containers/unordered_set/cons/deduction.cc: Likewise.
248 2017-10-25 Jonathan Wakely <jwakely@redhat.com>
250 * doc/xml/manual/status_cxx2017.xml: Update C++17 status, and
251 information on feature-test macros.
252 * doc/html/*: Regenerate.
255 * include/std/array (tuple_size, tuple_element): Change class-key
256 from class to struct, to avoid annoying Clang warnings.
259 * src/filesystem/ops.cc (read_symlink): Handle st_size being zero.
260 * src/filesystem/std-ops.cc (read_symlink): Likewise.
261 (do_copy_file) [!NEED_DO_COPY_FILE]: Avoid multiple definitions.
263 * src/filesystem/std-path.cc (path::lexically_normal): Add missing
264 step to algorithm, for removing dot-dot elements after root-directory.
265 * testsuite/27_io/filesystem/operations/canonical.cc: Use
266 compare_paths for more exhaustive checks.
267 * testsuite/27_io/filesystem/operations/proximate.cc: Likewise.
268 * testsuite/27_io/filesystem/path/append/path.cc: Likewise.
269 * testsuite/27_io/filesystem/path/concat/path.cc: Likewise.
270 * testsuite/27_io/filesystem/path/concat/strings.cc: Fix comment.
271 * testsuite/27_io/filesystem/path/construct/locale.cc: Likewise.
272 * testsuite/27_io/filesystem/path/decompose/root_directory.cc:
274 * testsuite/27_io/filesystem/path/generation/normal.cc: Use
275 compare_paths for more exhaustive checks. Add extra testcases.
276 * testsuite/27_io/filesystem/path/generation/proximate.cc: Use
277 compare_paths for more exhaustive checks.
278 * testsuite/27_io/filesystem/path/generation/relative.cc: Likewise.
279 * testsuite/27_io/filesystem/path/generic/generic_string.cc: Remove
281 * testsuite/27_io/filesystem/path/modifiers/make_preferred.cc: Fix
283 * testsuite/27_io/filesystem/path/modifiers/remove_filename.cc: Use
284 compare_paths for more exhaustive checks.
285 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
287 * testsuite/27_io/filesystem/path/modifiers/replace_filename.cc:
289 * testsuite/util/testsuite_fs.h (compare_paths): Also compare native
293 * testsuite/27_io/filesystem/operations/permissions.cc: Fix test.
295 2017-10-24 François Dumont <fdumont@gcc.gnu.org>
297 * testsuite/lib/libstdc++.exp (check_v3_target_normal_mode): Add
299 (check_v3_target_normal_namespace): New.
300 * testsuite/lib/dg-options.exp (dg-require-normal-namespace): New.
301 * testsuite/18_support/headers/limits/synopsis.cc: Add latter.
302 * testsuite/20_util/from_chars/requirements.cc: Likewise.
303 * testsuite/20_util/headers/functional/synopsis.cc: Likewise.
304 * testsuite/20_util/headers/memory/synopsis.cc: Likewise.
305 * testsuite/20_util/headers/utility/synopsis.cc: Likewise.
306 * testsuite/20_util/to_chars/requirements.cc: Likewise.
307 * testsuite/21_strings/headers/string/synopsis.cc: Likewise.
308 * testsuite/22_locale/headers/locale/synopsis.cc: Likewise.
309 * testsuite/23_containers/headers/bitset/synopsis.cc: Likewise.
310 * testsuite/23_containers/headers/deque/synopsis.cc: Likewise.
311 * testsuite/23_containers/headers/forward_list/synopsis.cc: Likewise.
312 * testsuite/23_containers/headers/list/synopsis.cc: Likewise.
313 * testsuite/23_containers/headers/map/synopsis.cc: Likewise.
314 * testsuite/23_containers/headers/queue/synopsis.cc: Likewise.
315 * testsuite/23_containers/headers/set/synopsis.cc: Likewise.
316 * testsuite/23_containers/headers/stack/synopsis.cc: Likewise.
317 * testsuite/23_containers/headers/vector/synopsis.cc: Likewise.
318 * testsuite/23_containers/map/modifiers/erase/abi_tag.cc: Likewise.
319 * testsuite/23_containers/multimap/modifiers/erase/abi_tag.cc: Likewise.
320 * testsuite/23_containers/multiset/modifiers/erase/abi_tag.cc: Likewise.
321 * testsuite/23_containers/set/modifiers/erase/abi_tag.cc: Likewise.
322 * testsuite/24_iterators/headers/iterator/synopsis.cc: Likewise.
323 * testsuite/24_iterators/headers/iterator/synopsis_c++11.cc: Likewise.
324 * testsuite/24_iterators/headers/iterator/synopsis_c++14.cc: Likewise.
325 * testsuite/24_iterators/headers/iterator/synopsis_c++17.cc: Likewise.
326 * testsuite/26_numerics/complex/abi_tag.cc: Likewise.
327 * testsuite/26_numerics/headers/complex/synopsis.cc: Likewise.
328 * testsuite/26_numerics/headers/valarray/synopsis.cc: Likewise.
329 * testsuite/27_io/headers/fstream/synopsis.cc: Likewise.
330 * testsuite/27_io/headers/ios/synopsis.cc: Likewise.
331 * testsuite/27_io/headers/istream/synopsis.cc: Likewise.
332 * testsuite/27_io/headers/ostream/synopsis.cc: Likewise.
333 * testsuite/27_io/headers/sstream/synopsis.cc: Likewise.
334 * testsuite/27_io/headers/streambuf/synopsis.cc: Likewise.
336 2017-10-24 Jonathan Wakely <jwakely@redhat.com>
338 * config/locale/gnu/c_locale.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Ignore
339 -Wattribute-alias warnings.
340 * src/c++11/istream-inst.cc: Likewise.
341 * src/c++11/locale-inst.cc: Likewise.
342 * src/c++11/ostream-inst.cc: Likewise.
343 * src/c++11/wlocale-inst.cc: Likewise.
344 * src/c++98/hash-long-double-tr1-aux.cc: Likewise.
346 * include/bits/string_view.tcc (find_first_of, find_last_of)
347 (find_first_not_of, find_last_not_of): Add noexcept.
348 * include/std/string_view (basic_string_view(const _CharT*))
349 (basic_string_view(const _CharT*, size_type))
350 (front, back, remove_prefix, remove_suffix, find, rfind)
351 (find_first_of, find_first_not_of): Add noexcept.
352 (at(size_type), _S_compare(size_type, size_type)): Replace conditional
353 expressions with if statements.
354 (copy(_CharT*, size_type, size_type), substr(size_type, size_type)):
355 Use _M_check for length checks.
356 (compare(basic_string_view)): Reformat.
357 (_M_check(size_type, const char)): Add noexcept(false).
358 (_M_limit(size_type, size_type)): Use noexcept not _GLIBCXX_NOEXCEPT.
361 * include/experimental/string_view (operator""sv): Add noexcept.
362 * include/std/string_view (operator""sv): Likewise.
364 2017-10-23 Jonathan Wakely <jwakely@redhat.com>
366 * include/Makefile.am: Add new headers for C++17 filesystem library.
367 * include/Makefile.in: Regenerate.
368 * include/bits/fs_dir.h: New header, based on Filesystem TS code in
369 include/experimental/bits directory.
370 * include/bits/fs_fwd.h: Likewise.
371 * include/bits/fs_ops.h: Likewise.
372 * include/bits/fs_path.h: Likewise.
373 * include/experimental/bits/fs_dir.h: Rename Doxygen group.
374 * include/experimental/bits/fs_fwd.h: Likewise.
375 * include/experimental/bits/fs_ops.h: Likewise.
376 * include/experimental/bits/fs_path.h: Likewise.
377 * include/experimental/filesystem (filesystem_error::_M_gen_what):
378 Remove inline definition.
379 * include/precompiled/stdc++.h: Add <filesystem> to precompiled
381 * include/std/filesystem: New header.
382 * python/libstdcxx/v6/printers.py: Enable printer for std::filesystem
384 * src/filesystem/Makefile.am: Add new files. Compile as C++17.
385 * src/filesystem/Makefile.in: Regenerate.
386 * src/filesystem/cow-dir.cc: Update comment.
387 * src/filesystem/cow-ops.cc: Likewise.
388 * src/filesystem/cow-path.cc: Likewise.
389 * src/filesystem/cow-std-dir.cc: New file.
390 * src/filesystem/cow-std-ops.cc: New file.
391 * src/filesystem/cow-std-path.cc: New file.
392 * src/filesystem/dir-common.h (_Dir_base, get_file_type): New header
394 * src/filesystem/dir.cc (_Dir): Derive from _Dir_base.
395 (open_dir): Move to _Dir_base constructor.
396 (get_file_type): Move to dir-common.h.
397 (recurse): Move to _Dir_base::should_recurse.
398 * src/filesystem/ops-common.h: New header for common code.
399 * src/filesystem/ops.cc (is_set, make_file_type, make_file_status)
400 (is_not_found_errno, file_time, do_copy_file): Move to ops-common.h.
401 * src/filesystem/path.cc (filesystem_error::_M_gen_what): Define.
402 * src/filesystem/std-dir.cc: New file, based on Filesystem TS code.
403 * src/filesystem/std-ops.cc: Likewise.
404 * src/filesystem/std-dir.cc: Likewise.
405 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: New
407 * testsuite/27_io/filesystem/iterators/pop.cc: New test.
408 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
410 * testsuite/27_io/filesystem/operations/absolute.cc: New test.
411 * testsuite/27_io/filesystem/operations/canonical.cc: New test.
412 * testsuite/27_io/filesystem/operations/copy.cc: New test.
413 * testsuite/27_io/filesystem/operations/copy_file.cc: New test.
414 * testsuite/27_io/filesystem/operations/create_directories.cc: New
416 * testsuite/27_io/filesystem/operations/create_directory.cc: New test.
417 * testsuite/27_io/filesystem/operations/create_symlink.cc: New test.
418 * testsuite/27_io/filesystem/operations/current_path.cc: New test.
419 * testsuite/27_io/filesystem/operations/equivalent.cc: New test.
420 * testsuite/27_io/filesystem/operations/exists.cc: New test.
421 * testsuite/27_io/filesystem/operations/file_size.cc: New test.
422 * testsuite/27_io/filesystem/operations/is_empty.cc: New test.
423 * testsuite/27_io/filesystem/operations/last_write_time.cc: New test.
424 * testsuite/27_io/filesystem/operations/permissions.cc: New test.
425 * testsuite/27_io/filesystem/operations/proximate.cc: New test.
426 * testsuite/27_io/filesystem/operations/read_symlink.cc: New test.
427 * testsuite/27_io/filesystem/operations/relative.cc: New test.
428 * testsuite/27_io/filesystem/operations/remove_all.cc: New test.
429 * testsuite/27_io/filesystem/operations/space.cc: New test.
430 * testsuite/27_io/filesystem/operations/status.cc: New test.
431 * testsuite/27_io/filesystem/operations/symlink_status.cc: New test.
432 * testsuite/27_io/filesystem/operations/temp_directory_path.cc: New
434 * testsuite/27_io/filesystem/operations/weakly_canonical.cc: New test.
435 * testsuite/27_io/filesystem/path/append/path.cc: New test.
436 * testsuite/27_io/filesystem/path/assign/assign.cc: New test.
437 * testsuite/27_io/filesystem/path/assign/copy.cc: New test.
438 * testsuite/27_io/filesystem/path/compare/compare.cc: New test.
439 * testsuite/27_io/filesystem/path/compare/path.cc: New test.
440 * testsuite/27_io/filesystem/path/compare/strings.cc: New test.
441 * testsuite/27_io/filesystem/path/concat/path.cc: New test.
442 * testsuite/27_io/filesystem/path/concat/strings.cc: New test.
443 * testsuite/27_io/filesystem/path/construct/copy.cc: New test.
444 * testsuite/27_io/filesystem/path/construct/default.cc: New test.
445 * testsuite/27_io/filesystem/path/construct/locale.cc: New test.
446 * testsuite/27_io/filesystem/path/construct/range.cc: New test.
447 * testsuite/27_io/filesystem/path/construct/string_view.cc: New test.
448 * testsuite/27_io/filesystem/path/decompose/extension.cc: New test.
449 * testsuite/27_io/filesystem/path/decompose/filename.cc: New test.
450 * testsuite/27_io/filesystem/path/decompose/parent_path.cc: New test.
451 * testsuite/27_io/filesystem/path/decompose/relative_path.cc: New
453 * testsuite/27_io/filesystem/path/decompose/root_directory.cc: New
455 * testsuite/27_io/filesystem/path/decompose/root_name.cc: New test.
456 * testsuite/27_io/filesystem/path/decompose/root_path.cc: New test.
457 * testsuite/27_io/filesystem/path/decompose/stem.cc: New test.
458 * testsuite/27_io/filesystem/path/generation/normal.cc: New test.
459 * testsuite/27_io/filesystem/path/generation/proximate.cc: New test.
460 * testsuite/27_io/filesystem/path/generation/relative.cc: New test.
461 * testsuite/27_io/filesystem/path/generic/generic_string.cc: New test.
462 * testsuite/27_io/filesystem/path/itr/traversal.cc: New test.
463 * testsuite/27_io/filesystem/path/modifiers/clear.cc: New test.
464 * testsuite/27_io/filesystem/path/modifiers/make_preferred.cc: New
466 * testsuite/27_io/filesystem/path/modifiers/remove_filename.cc: New
468 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc: New
470 * testsuite/27_io/filesystem/path/modifiers/replace_filename.cc: New
472 * testsuite/27_io/filesystem/path/modifiers/swap.cc: New test.
473 * testsuite/27_io/filesystem/path/native/string.cc: New test.
474 * testsuite/27_io/filesystem/path/nonmember/hash_value.cc: New test.
475 * testsuite/27_io/filesystem/path/query/empty.cc: New test.
476 * testsuite/27_io/filesystem/path/query/has_extension.cc: New test.
477 * testsuite/27_io/filesystem/path/query/has_filename.cc: New test.
478 * testsuite/27_io/filesystem/path/query/has_parent_path.cc: New test.
479 * testsuite/27_io/filesystem/path/query/has_relative_path.cc: New
481 * testsuite/27_io/filesystem/path/query/has_root_directory.cc: New
483 * testsuite/27_io/filesystem/path/query/has_root_name.cc: New test.
484 * testsuite/27_io/filesystem/path/query/has_root_path.cc: New test.
485 * testsuite/27_io/filesystem/path/query/has_stem.cc: New test.
486 * testsuite/27_io/filesystem/path/query/is_relative.cc: New test.
487 * testsuite/experimental/filesystem/path/construct/string_view.cc:
488 Define USE_FILESYSTEM_TS.
489 * testsuite/util/testsuite_fs.h: Allow use with C++17 paths as well
493 * doc/xml/manual/intro.xml: Include new section.
494 * doc/xml/manual/status_cxxis29124.xml: New section on IS 29124
496 * include/bits/specfun.h [__STRICT_ANSI__] (hyperg, hypergf, hypergl)
497 (conf_hyperg, conf_hypergf, conf_hypergl): Don't declare.
498 * include/c_compatibility/math.h: Import special functions into
499 global namespace for C++17.
500 * testsuite/26_numerics/headers/cmath/82644.cc: New test.
501 * testsuite/26_numerics/headers/cmath/functions_global_c++17.cc: New
504 2017-10-21 Jonathan Wakely <jwakely@redhat.com>
506 * testsuite/experimental/filesystem/path/itr/traversal.cc: Do not
507 increment past-the-end iterators.
509 2017-10-20 Jonathan Wakely <jwakely@redhat.com>
511 * include/std/chrono (__cpp_lib_chrono): Update macro value to
512 indicate support for P0505R0.
513 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: Check
516 * include/c_global/cstddef: Define __cpp_lib_byte feature-test macro.
517 * testsuite/18_support/byte/requirements.cc: Check macro.
519 2017-10-19 Jonathan Wakely <jwakely@redhat.com>
521 * testsuite/experimental/filesystem/iterators/
522 recursive_directory_iterator.cc: Ensure that error_code arguments are
523 cleared when required.
524 * testsuite/experimental/filesystem/operations/create_directory.cc:
525 Remove redundant check.
526 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
527 Ensure that error_code argument is cleared when required.
529 * include/experimental/bits/fs_path.h (path::iterator++(int))
530 (path::iterator--(int)): Fix for paths with only one component.
531 * testsuite/experimental/filesystem/path/itr/traversal.cc: Test
532 post-increment and post-decrement.
534 * doc/xml/manual/status_cxx2017.xml: Update references to C++17
537 * testsuite/decimal/conversion-to-integral.cc: Use predefined macro
538 instead of non-standard glibc one.
540 2017-10-16 François Dumont <fdumont@gcc.gnu.org>
543 * include/bits/stl_bvector.h (fill): Add iterator offset check.
544 * testsuite/23_containers/vector/bool/82558.cc: New.
546 2017-10-13 Jonathan Wakely <jwakely@redhat.com>
549 * doc/xml/manual/intro.xml: Document LWG 2354 changes.
550 * include/bits/stl_map.h (map::insert(value_type&&))
551 (map::insert(const_iterator, value_type&&)): Add overload for rvalues.
552 * include/bits/stl_multimap.h (multimap::insert(value_type&&))
553 (multimap::insert(const_iterator, value_type&&)): Likewise.
554 * include/bits/unordered_map.h (unordered_map::insert(value_type&&))
555 (unordered_map::insert(const_iterator, value_type&&))
556 (unordered_multimap::insert(value_type&&))
557 (unordered_multimap::insert(const_iterator, value_type&&)): Likewise.
558 * testsuite/23_containers/map/modifiers/insert/dr2354.cc: New test.
559 * testsuite/23_containers/multimap/modifiers/insert/dr2354.cc: New
561 * testsuite/23_containers/unordered_map/insert/dr2354.cc: New test.
562 * testsuite/23_containers/unordered_multimap/insert/dr2354.cc: New
566 * include/std/mutex (call_once): Suppress clang-tidy warnings about
569 2017-10-10 Jonathan Wakely <jwakely@redhat.com>
571 * include/bits/streambuf_iterator.h (istreambuf_iterator::equal):
572 Update comment about NAD issue.
576 * include/c_compatibility/complex.h [!C++98 && __STRICT_ANSI__]: Do
577 not include C library's <complex.h>.
578 * testsuite/26_numerics/complex/c99.cc: Depend on __STRICT_ANSI__.
579 * testsuite/26_numerics/headers/complex.h/std_c++11.h: New test.
580 * testsuite/26_numerics/headers/complex.h/std_gnu++11.h: New test.
581 * testsuite/26_numerics/headers/complex.h/std_c++98.h: New test.
583 2017-10-05 Jonathan Wakely <jwakely@redhat.com>
585 * testsuite/20_util/to_chars/1.cc: Add dg-require-string-conversions.
587 2017-10-04 Petr Ovtchenkov <ptr@void-ptr.info>
588 François Dumont <fdumont@gcc.gnu.org>
590 * include/bits/streambuf_iterator.h
591 (istreambuf_iterator<>::operator*()): Do not capture iterator state
593 (istreambuf_iterator<>::operator++()): Likewise and remove _M_sbuf check.
594 (istreambuf_iterator<>::operator++(int)): Likewise.
595 (istreambuf_iterator<>::_M_get()): Remove _M_c assignment.
596 (istreambuf_iterator<>::_S_is_eof()): New.
597 (istreambuf_iterator<>::_M_at_eof()): Adapt, use latter.
598 (find(istreambuf_iterator<>, istreambuf_iterator<>, _CharT)):
599 Return an iterator with _M_c set to eof to capture streambuf state
601 (testsuite/24_iterators/istreambuf_iterator/2.cc): Add checks.
603 2017-10-03 Jakub Jelinek <jakub@redhat.com>
605 * include/std/charconv (__unsigned_least_t): Fix number of closing >s for
606 !_GLIBCXX_USE_INT128.
608 2017-10-02 Jonathan Wakely <jwakely@redhat.com>
610 * include/Makefile.am: Add new <charconv> header.
611 * include/Makefile.in: Regenerate.
612 * include/precompiled/stdc++.h: Include <charconv>.
613 * include/std/charconv: New file.
614 (to_chars_result, to_chars, from_chars_result, from_chars): Define.
615 * testsuite/20_util/from_chars/1.cc: New test.
616 * testsuite/20_util/from_chars/1_neg.cc: New test.
617 * testsuite/20_util/from_chars/2.cc: New test.
618 * testsuite/20_util/from_chars/requirements.cc: New test.
619 * testsuite/20_util/to_chars/1.cc: New test.
620 * testsuite/20_util/to_chars/1_neg.cc: New test.
621 * testsuite/20_util/to_chars/2.cc: New test.
622 * testsuite/20_util/to_chars/requirements.cc: New test.
624 2017-09-27 François Dumont <fdumont@gcc.gnu.org>
626 * testsuite/22_locale/money_get/get/char/22131.cc: Make test less
627 istreambuf_iterator implementation dependent.
628 * testsuite/22_locale/money_get/get/wchar_t/22131.cc: Likewise.
630 2017-09-25 Uros Bizjak <ubizjak@gmail.com>
633 * src/c++98/complex_io.cc (_GLIBCXX_LDBL_COMPAT): Declare alias
634 target as a C++ function with no prototype.
636 2017-09-21 Jonathan Wakely <jwakely@redhat.com>
638 * testsuite/25_algorithms/clamp/1.cc: Fix order of arguments and
639 expected results when using predicate defining reverse order.
640 * testsuite/25_algorithms/clamp/constexpr.cc: Likewise.
642 2017-09-20 Jonathan Wakely <jwakely@redhat.com>
645 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
646 (basic_string::_If_sv): Remove from the overload set when the
647 argument is derived from basic_string.
650 * include/bits/basic_string.h (basic_string::_If_sv): Remove from the
651 overload set when the argument is derived from basic_string.
652 * testsuite/21_strings/basic_string/cons/char/moveable2_c++17.cc: New
654 * testsuite/21_strings/basic_string/cons/wchar_t/moveable2_c++17.cc:
657 * testsuite/24_iterators/range_access_cpp17.cc: Fix order of dg-do
658 and dg-options directives. Fix invalid test.
661 * libsupc++/exception (uncaught_exception): Deprecate for C++17.
662 * testsuite/18_support/exception_ptr/62258.cc: Add -Wno-deprecated.
663 * testsuite/18_support/uncaught_exception/14026.cc: Likewise.
665 * include/bits/c++config (_GLIBCXX17_DEPRECATED): Define.
666 * include/bits/functional_hash.h (__hash_base::result_type)
667 (__hash_base::argument_type): Add _GLIBCXX17_DEPRECATED.
668 * include/std/optional (hash<optional<T>>::result_type)
669 (hash<optional<T>>::argument_type): Add deprecated attribute.
670 (__is_fast_hash<hash<optional<T>>>): Add partial specialization.
671 * include/std/variant (hash<variant<Types...>>::result_type)
672 (hash<variant<Types...>>::argument_type): Add deprecated attribute.
673 (__is_fast_hash<hash<variant<Types...>>>): Add partial specialization.
675 * libsupc++/exception_ptr.h (copy_exception): Remove deprecated
676 non-standard function.
679 * include/std/optional (__optional_hash_call_base): Add template
680 parameter for remove_const_t<_Tp> and use it consistently.
681 * testsuite/20_util/optional/hash.cc: Test optional<const T>.
683 2017-09-19 Jonathan Wakely <jwakely@redhat.com>
686 * include/bits/regex_executor.tcc
687 (_Backref_matcher<BidIt, regex_traits<C>>::_M_apply): Use
688 std::__equal4 instead of C++14 4-iterator overloads of std::equal.
689 * include/bits/stl_algobase.h (__equal4): New functions implementing
690 4-iterator overloads of std::equal for use in C++11.
691 (equal(It1, It1, It2, It2), equal(It1, It1, It2, It2, BinaryPred)):
692 Move function bodies to new __equal4 functions.
693 * testsuite/28_regex/simple_c++11.cc: New.
696 * include/std/type_traits (__is_invocable): Add partial specialization
697 for INVOKE<void> case and remove is_void<R> check from partial
698 specialization for INVOKE<R> case.
699 (__is_nt_invocable_impl): New helper for is_nothrow_invocable_r.
700 (is_nothrow_invocable_r): Use __is_nt_invocable_impl.
701 * testsuite/20_util/is_nothrow_invocable/value.cc: Add tests for
702 conversions that can throw or fail to convert. Use static assert
703 strings to explain negative results.
704 * testsuite/20_util/is_nothrow_invocable/value_ext.cc: Use
705 is_nothrow_constructible in is_nt_invocable_conv.
707 2017-09-18 Jonathan Wakely <jwakely@redhat.com>
710 * testsuite/20_util/duration/cons/dr1177.cc: Fix incorrect test and
711 improve static assertion messages.
713 * include/std/utility (_Itup_cat, _Make_integer_sequence): Remove.
714 (_Build_index_tuple, make_integer_sequence): Use built-in to generate
718 * include/std/type_traits (__declval): New function to deduce return
720 (__declval_protector::_delegate): Remove.
721 (declval): Use __declval instead of add_rvalue_reference and
722 __declval_protector::__delegate.
723 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error
725 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
727 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
730 2017-09-15 Jakub Jelinek <jakub@redhat.com>
732 * testsuite/libstdc++-prettyprinters/cxx17.cc: Use -std=c++17 or
733 -std=gnu++17 instead of -std=c++1z or -std=gnu++1z. Use c++17 instead
734 of c++1z and c++17_only instead of c++1z_only. Adjust expected
735 diagnostics and comments refering to 1z to 17.
736 * testsuite/30_threads/lock_guard/cons/deduction.cc: Likewise.
737 * testsuite/30_threads/scoped_lock/cons/deduction.cc: Likewise.
738 * testsuite/30_threads/scoped_lock/cons/1.cc: Likewise.
739 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: Likewise.
740 * testsuite/30_threads/scoped_lock/requirements/explicit_instantiation.cc:
742 * testsuite/30_threads/unique_lock/cons/deduction.cc: Likewise.
743 * testsuite/18_support/launder/1.cc (test02): Likewise.
744 * testsuite/18_support/launder/requirements_neg.cc: Likewise.
745 * testsuite/18_support/launder/requirements.cc: Likewise.
746 * testsuite/18_support/byte/requirements.cc: Likewise.
747 * testsuite/18_support/byte/ops.cc: Likewise.
748 * testsuite/18_support/byte/global_neg.cc: Likewise.
749 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc:
751 * testsuite/27_io/types/4.cc: Likewise.
752 * testsuite/25_algorithms/sample/81221.cc: Likewise.
753 * testsuite/25_algorithms/sample/1.cc: Likewise.
754 * testsuite/25_algorithms/sample/2.cc: Likewise.
755 * testsuite/25_algorithms/search/searcher.cc: Likewise.
756 * testsuite/28_regex/basic_regex/ctors/deduction.cc: Likewise.
757 * testsuite/experimental/filesystem/path/construct/string_view.cc:
759 * testsuite/24_iterators/range_access_cpp17.cc: Likewise.
760 * testsuite/24_iterators/container_access.cc: Likewise.
761 * testsuite/ext/pb_ds/regression/hash_map_rand.cc: Likewise.
762 * testsuite/ext/pb_ds/regression/trie_set_rand.cc: Likewise.
763 * testsuite/ext/pb_ds/regression/hash_set_rand.cc: Likewise.
764 * testsuite/ext/pb_ds/regression/list_update_set_rand.cc: Likewise.
765 * testsuite/ext/pb_ds/regression/list_update_map_rand.cc: Likewise.
766 * testsuite/ext/pb_ds/regression/priority_queue_rand.cc: Likewise.
767 * testsuite/ext/pb_ds/regression/tree_set_rand.cc: Likewise.
768 * testsuite/ext/pb_ds/regression/tree_map_rand.cc: Likewise.
769 * testsuite/ext/pb_ds/regression/trie_map_rand.cc: Likewise.
770 * testsuite/20_util/shared_ptr/casts/reinterpret.cc: Likewise.
771 * testsuite/20_util/shared_ptr/cons/deduction.cc: Likewise.
772 * testsuite/20_util/shared_ptr/cons/array.cc: Likewise.
773 * testsuite/20_util/shared_ptr/observers/array.cc (struct A): Likewise.
774 * testsuite/20_util/pair/cons/deduction.cc: Likewise.
775 * testsuite/20_util/variant/deduction.cc: Likewise.
776 * testsuite/20_util/tuple/78939.cc: Likewise.
777 * testsuite/20_util/tuple/cons/deduction.cc: Likewise.
778 * testsuite/20_util/void_t/1.cc: Likewise.
779 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: Likewise.
780 * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: Likewise.
781 * testsuite/20_util/addressof/requirements/constexpr.cc: Likewise.
782 * testsuite/20_util/weak_ptr/cons/deduction.cc: Likewise.
783 * testsuite/20_util/has_unique_object_representations/requirements/typedefs.cc:
785 * testsuite/20_util/has_unique_object_representations/requirements/explicit_instantiation.cc:
787 * testsuite/20_util/has_unique_object_representations/value.cc:
789 * testsuite/20_util/time_point/arithmetic/constexpr.cc: Likewise.
790 * testsuite/20_util/function_objects/invoke/59768.cc: Likewise.
791 * testsuite/20_util/function_objects/mem_fn/80478.cc: Likewise.
792 * testsuite/20_util/function/cons/deduction.cc: Likewise.
793 * testsuite/20_util/specialized_algorithms/memory_management_tools/destroy_neg.cc:
795 * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise.
796 * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc:
798 * testsuite/20_util/is_aggregate/value.cc: Likewise.
799 * testsuite/26_numerics/lcm/1.cc: Likewise.
800 * testsuite/26_numerics/lcm/lcm_neg.cc: Likewise.
801 * testsuite/26_numerics/gcd/1.cc: Likewise.
802 * testsuite/26_numerics/gcd/gcd_neg.cc: Likewise.
803 * testsuite/26_numerics/valarray/deduction.cc: Likewise.
804 * testsuite/26_numerics/headers/cmath/types_std_c++0x_neg.cc: Likewise.
805 * testsuite/26_numerics/headers/cmath/hypot.cc: Likewise.
806 * testsuite/23_containers/queue/members/emplace_cxx17_return.cc:
808 * testsuite/23_containers/array/cons/deduction.cc: Likewise.
809 * testsuite/23_containers/array/cons/deduction_neg.cc: Likewise.
810 * testsuite/23_containers/deque/modifiers/emplace/cxx17_return.cc:
812 * testsuite/23_containers/deque/cons/deduction.cc: Likewise.
813 * testsuite/23_containers/stack/members/emplace_cxx17_return.cc:
815 * testsuite/23_containers/list/modifiers/emplace/cxx17_return.cc:
817 * testsuite/23_containers/list/cons/deduction.cc: Likewise.
818 * testsuite/23_containers/forward_list/modifiers/emplace_cxx17_return.cc:
820 * testsuite/23_containers/forward_list/cons/deduction.cc: Likewise.
821 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Likewise.
822 * testsuite/23_containers/vector/modifiers/emplace/cxx17_return.cc:
824 * testsuite/23_containers/vector/cons/deduction.cc: Likewise.
825 * testsuite/23_containers/vector/bool/emplace_cxx17_return.cc:
827 * testsuite/21_strings/basic_string/cons/char/9.cc: Likewise.
828 * testsuite/21_strings/basic_string/cons/char/deduction.cc: Likewise.
829 * testsuite/21_strings/basic_string/cons/char/79162.cc: Likewise.
830 * testsuite/21_strings/basic_string/cons/wchar_t/9.cc: Likewise.
831 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
833 * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: Likewise.
834 * testsuite/21_strings/basic_string_view/modifiers/swap/char/1.cc:
836 * testsuite/21_strings/basic_string_view/modifiers/swap/wchar_t/1.cc:
838 * testsuite/21_strings/basic_string_view/operations/compare/char/2.cc:
840 * testsuite/21_strings/basic_string_view/operations/compare/char/70483.cc:
842 * testsuite/21_strings/basic_string_view/operations/compare/wchar_t/2.cc:
844 * testsuite/21_strings/char_traits/requirements/constexpr_functions_c++17.cc:
847 2017-09-13 Jonathan Wakely <jwakely@redhat.com>
850 * include/std/chrono (__enable_if_is_duration)
851 (__disable_if_is_duration): New alias templates to simplify SFINAE.
852 (duration_cast, floor, ceil): Use __enable_if_is_duration.
853 (duration::__is_float, duration::__is_harmonic): New alias templates
855 (duration::duration(const _Rep2&)): Use _Require, __is_float and
857 (duration::duration(const duration<_Rep2, _Period2>&)): Likewise.
858 (__common_rep_type): Remove, replace with ...
859 (__common_rep_t): New alias template.
860 (operator*, operator/, operator%): Use __common_rep_t and
861 __disable_if_is_duration.
862 (time_point::time_point(const time_point<clock, _Dur2>&)): Add missing
863 constraint from LWG DR 1177.
864 * testsuite/20_util/duration/cons/dr1177.cc: New.
865 * testsuite/20_util/duration/literals/range.cc: Update dg-error line.
866 * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise.
867 * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
868 * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
869 * testsuite/20_util/time_point/cons/81468.cc: New.
871 * doc/doxygen/mainpage.html: Fix broken URLs.
874 * doc/xml/manual/extensions.xml: Replace unstable URL.
875 * doc/html/manual/ext_demangling.html: Regenerate.
876 * libsupc++/cxxabi.h (__cxa_demangle): Fix broken URL.
878 * include/bits/allocated_ptr.h (__allocated_ptr::get): Use
880 (__allocated_ptr::_S_raw_ptr): Remove.
881 * include/bits/forward_list.h (_Fwd_list_base::_M_get_node): Use
883 * include/bits/hashtable_policy.h (_Hashtable_alloc): Likewise.
884 * include/bits/ptr_traits.h (__to_address): Define new function
886 * include/bits/shared_ptr_base.h (__shared_ptr): Use __to_address.
887 (__shared_ptr::_S_raw_ptr): Remove.
888 * include/bits/stl_vector.h [__cplusplus >= 201103L]
889 (vector::_M_data_ptr): Use __to_address.
890 [__cplusplus < 201103L] (vector::_M_data_ptr): Don't dereference
891 possibly invalid pointers.
892 * include/ext/alloc_traits.h (__alloc_traits::construct)
893 (__alloc_traits::destroy): Use __to_address.
895 2017-09-12 Jonathan Wakely <jwakely@redhat.com>
898 * include/Makefile.am: Remove <bits/c++14_warning.h>.
899 * include/Makefile.in: Regenerate.
900 * include/bits/c++14_warning.h: Remove.
901 * include/experimental/algorithm: Do not include <c++14_warning.h>.
902 * include/experimental/any: Likewise.
903 * include/experimental/array: Likewise.
904 * include/experimental/bits/erase_if.h: Likewise.
905 * include/experimental/bits/lfts_config.h: Likewise.
906 * include/experimental/bits/shared_ptr.h: Likewise.
907 * include/experimental/bits/string_view.tcc: Likewise.
908 * include/experimental/chrono: Likewise.
909 * include/experimental/deque: Likewise.
910 * include/experimental/filesystem: Do not include <c++0x_warning.h>.
911 * include/experimental/forward_list: Do not include <c++14_warning.h>.
912 * include/experimental/functional: Likewise.
913 * include/experimental/iterator: Likewise.
914 * include/experimental/list: Likewise.
915 * include/experimental/map: Likewise.
916 * include/experimental/memory: Likewise.
917 * include/experimental/numeric: Likewise.
918 * include/experimental/optional: Likewise.
919 * include/experimental/propagate_const: Likewise.
920 * include/experimental/ratio: Likewise.
921 * include/experimental/regex: Likewise.
922 * include/experimental/set: Likewise.
923 * include/experimental/string: Likewise.
924 * include/experimental/string_view: Likewise.
925 * include/experimental/system_error: Likewise.
926 * include/experimental/tuple: Likewise.
927 * include/experimental/type_traits: Likewise.
928 * include/experimental/unordered_map: Likewise.
929 * include/experimental/unordered_set: Likewise.
930 * include/experimental/vector: Likewise.
931 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error
933 * testsuite/experimental/array/neg.cc: Likewise.
934 * testsuite/experimental/propagate_const/assignment/move_neg.cc:
936 * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
937 * testsuite/experimental/propagate_const/requirements2.cc: Likewise.
938 * testsuite/experimental/propagate_const/requirements3.cc: Likewise.
939 * testsuite/experimental/propagate_const/requirements4.cc: Likewise.
940 * testsuite/experimental/propagate_const/requirements5.cc: Likewise.
943 * doc/xml/manual/status_cxx2017.xml: Update feature-test macros.
944 * doc/html/*: Regenerate.
945 * include/Makefile.am: Remove <bits/c++17_warning.h>.
946 * include/Makefile.in: Regenerate.
947 * include/bits/c++17_warning.h: Remove.
948 * include/bits/string_view.tcc: Do not include <bits/c++17_warning.h>
950 * include/std/any: Likewise.
951 (__cpp_lib_any): Define.
952 * include/std/mutex (__cpp_lib_scoped_lock): Adjust value as per new
954 * include/std/numeric (__cpp_lib_gcd_lcm): Define as per new SD-6
956 * include/std/optional: Do not include <bits/c++17_warning.h>.
957 (__cpp_lib_optional): Define.
958 * include/std/shared_mutex: Do not include <bits/c++14_warning.h>.
959 * include/std/string_view: Do not include <bits/c++17_warning.h>.
960 (__cpp_lib_string_view): Define.
961 * include/std/variant: Do not include <bits/c++17_warning.h>.
962 (__cpp_lib_variant): Define.
963 * testsuite/20_util/optional/cons/value_neg.cc: Adjust dg-error line
965 * testsuite/26_numerics/gcd/1.cc: Test for __cpp_lib_gcd_lcm.
966 * testsuite/26_numerics/gcd/gcd_neg.cc: Adjust dg-error line
968 * testsuite/26_numerics/lcm/1.cc: Test for __cpp_lib_gcd_lcm.
969 * testsuite/26_numerics/lcm/lcm_neg.cc: Adjust dg-error line
971 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: Adjust
972 expected value of __cpp_lib_scoped_lock.
975 * include/experimental/bits/string_view.tcc (basic_string_view::find)
976 (basic_string_view::rfind, basic_string_view::find_first_of)
977 (basic_string_view::find_last_of, basic_string_view::find_first_not_of)
978 (basic_string_view::find_last_not_of): Add constexpr specifier.
979 * include/experimental/string_view (basic_string_view::remove_prefix)
980 (basic_string_view::remove_suffix, basic_string_view::swap)
981 (basic_string_view::compare, basic_string_view::find)
982 (basic_string_view::rfind, basic_string_view::find_first_of)
983 (basic_string_view::find_last_of, basic_string_view::find_first_not_of)
984 (basic_string_view::find_last_not_of, operator==, operator!=)
985 (operator<, operator>, operator<=, operator>=): Likewise.
986 * testsuite/experimental/string_view/operations/compare/char/70483.cc:
989 2017-09-11 Jonathan Wakely <jwakely@redhat.com>
992 * include/bits/string_view.tcc (basic_string_view::find)
993 (basic_string_view::rfind, basic_string_view::find_first_of)
994 (basic_string_view::find_last_of, basic_string_view::find_first_not_of)
995 (basic_string_view::find_last_not_of): Add constexpr specifier.
996 * include/std/string_view (basic_string_view::operator=)
997 (basic_string_view::rbegin, basic_string_view::rend)
998 (basic_string_view::crbegin, basic_string_view::crend)
999 (basic_string_view::remove_prefix, basic_string_view::remove_suffix)
1000 (basic_string_view::swap, basic_string_view::compare)
1001 (basic_string_view::find, basic_string_view::rfind)
1002 (basic_string_view::find_first_of, basic_string_view::find_last_of)
1003 (basic_string_view::find_first_not_of)
1004 (basic_string_view::find_last_not_of, basic_string_view::_M_check)
1005 (basic_string_view::_M_limit, operator==, operator!=, operator<)
1006 (operator>, operator<=, operator>=): Likewise.
1007 * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
1008 char/1.cc: Repeat tests in constexpr context.
1009 * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
1010 wchar_t/1.cc: Likewise.
1011 * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
1012 char/1.cc: Likewise.
1013 * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
1014 wchar_t/1.cc: Likewise.
1015 * testsuite/21_strings/basic_string_view/operations/find/char/1.cc:
1017 * testsuite/21_strings/basic_string_view/operations/find/char/2.cc:
1019 * testsuite/21_strings/basic_string_view/operations/find/char/3.cc:
1021 * testsuite/21_strings/basic_string_view/operations/find/wchar_t/1.cc:
1023 * testsuite/21_strings/basic_string_view/operations/find/wchar_t/2.cc:
1025 * testsuite/21_strings/basic_string_view/operations/find/wchar_t/3.cc:
1027 * testsuite/21_strings/basic_string_view/operators/char/2.cc:
1029 * testsuite/21_strings/basic_string_view/operators/wchar_t/2.cc:
1031 * testsuite/21_strings/basic_string_view/range_access/char/1.cc: Test
1032 cbegin, cend, rbegin, rend, crbegin and crend.
1033 * testsuite/21_strings/basic_string_view/range_access/wchar_t/1.cc:
1035 * testsuite/21_strings/basic_string_view/operations/compare/char/1.cc:
1036 Remove trailing whitespace.
1037 * testsuite/21_strings/basic_string_view/operations/compare/wchar_t/
1039 * testsuite/21_strings/basic_string_view/modifiers/swap/char/1.cc:
1041 * testsuite/21_strings/basic_string_view/modifiers/swap/wchar_t/1.cc:
1043 * testsuite/21_strings/basic_string_view/operations/compare/char/2.cc:
1045 * testsuite/21_strings/basic_string_view/operations/compare/wchar_t/
1048 2017-09-11 Tim Shen <timshen@google.com>
1051 * include/bits/regex_executor.tcc: Support icase in regex_traits<...>
1052 for back reference matches.
1053 * testsuite/28_regex/regression.cc: Test case.
1055 2017-09-11 Jonathan Wakely <jwakely@redhat.com>
1057 * testsuite/21_strings/basic_string/lwg2946.cc: Adjust for
1058 compatibility with old COW std::string.
1060 2017-09-09 Gerald Pfeifer <gerald@pfeifer.com>
1062 * doc/xml/manual/allocator.xml: Adjust link for Hoard.
1063 * doc/html/manual/memory.html: Regenerate.
1065 2017-09-04 Daniel Kruegler <daniel.kruegler@gmail.com>
1068 Implement LWG 2946, LWG 2758's resolution missed further corrections
1069 * include/bits/basic_string.h (basic_string::compare): Add missing
1070 required noexcept specifications.
1071 (basic_string): Introduce internal _S_to_string_view and __sv_wrapper
1072 for implicit string_view conversion.
1073 (basic_string::basic_string): Fix explicit string_view conversion by
1074 implicit conversion using _S_to_string_view and __sv_wrapper.
1075 (basic_string): Introduce internal basic_string(__sv_wrapper, Alloc)
1077 (basic_string): Fix operator=(T) template by operator=(const T&)
1078 template for uncopyable types (PR 79162).
1079 (basic_string::operator+=, basic_string::append, basic_string::assign)
1080 (basic_string::insert, basic_string::replace, basic_string::find)
1081 (basic_string::rfind, basic_string::find_first_of)
1082 (basic_string::find_last_of, basic_string::find_first_not_of)
1083 (basic_string::find_last_not_of, basic_string::compare): Replace
1084 __sv_type argument by template const T& (LWG 2946) and correct
1085 documentation describing __sv_type argument.
1086 (basic_string::find, basic_string::rfind, basic_string::find_first_of)
1087 (basic_string::find_last_of, basic_string::find_first_not_of)
1088 (basic_string::find_last_not_of, basic_string::compare): Replace
1089 unconditional noexcept specification by conditional noexcept
1090 specification to partially balance the removal of noexcept by LWG 2946.
1091 * testsuite/21_strings/basic_string/79162.cc: New.
1092 * testsuite/21_strings/basic_string/lwg2946.cc: New.
1094 2017-08-31 Jonathan Wakely <jwakely@redhat.com>
1097 * include/ext/new_allocator.h (__gnu_cxx::new_allocator::allocate):
1098 Adjust null pointer constant to avoid warning.
1100 2017-08-24 François Dumont <fdumont@gcc.gnu.org>
1102 * include/bits/stl_list.h
1103 [!_GLIBCXX_INLINE_VERSION](_List_base<>::_S_distance): Remove.
1104 (_List_impl(_Node_alloc_type&&, _List_impl&&)): New.
1105 (_List_base(_Node_alloc_type&&, _List_base&&)): New, use latter.
1106 [!_GLIBCXX_INLINE_VERSION](_List_base(_Node_alloc_type&&,_List_base&&)):
1108 (_List_base(_Node_alloc_type&&)): New.
1109 [!_GLIBCXX_INLINE_VERSION](_List_base<>::_M_distance): Remove.
1110 [!_GLIBCXX_INLINE_VERSION](_List_base<>::_M_node_count): Remove.
1111 (list<>::_M_node_count): New.
1112 (list<>::size()): Adapt to call latter.
1113 (list<>::_S_distance(const_iterator, const_iterator)): New.
1114 (list<>::splice(iterator, list&, const_iterator, const_iterator)):
1115 Adapt to call latter.
1116 (list(list&&, const allocator_type&, true_type)): New.
1117 (list(list&&, const allocator_type&, false_type)): New.
1118 (list(list&&, const allocator_type&)): Adapt to call latters.
1120 2017-08-21 Jonathan Wakely <jwakely@redhat.com>
1123 * include/bits/stl_iterator_base_types.h (__iterator_category): Add
1124 constexpr for C++11 and later.
1125 * testsuite/24_iterators/container_access.cc: Add target selector.
1126 * testsuite/24_iterators/range_access.cc: Fix clause number in
1128 * testsuite/24_iterators/range_access_cpp14.cc: Likewise.
1129 * testsuite/24_iterators/range_access_cpp17.cc: New.
1131 2017-08-21 Richard Biener <rguenther@suse.de>
1133 * testsuite/libstdc++-prettyprinters/prettyprinters.exp: Run all
1134 tests with -flto as well if supported.
1136 2017-08-20 Martin Sebor <msebor@redhat.com>
1139 * src/c++98/compatibility.cc (_GLIBCXX_3_4_SYMVER): Declare alias
1140 target as a C++ function with no prototype.
1141 (_GLIBCXX_3_4_5_SYMVER): Ditto.
1143 2017-08-20 John David Anglin <danglin@gcc.gnu.org>
1146 * testsuite/17_intro/names.cc: Undef 'd' and 'r' on __hpux__.
1148 2017-08-18 Jonathan Wakely <jwakely@redhat.com>
1150 * include/bits/hashtable_policy.h (_ReuseOrAllocNode): Remove
1151 __value_alloc_type and __value_alloc_traits typedefs.
1152 (_ReuseOrAllocNode::operator()): Call construct and destroy on the
1154 (_Hashtable_alloc): Simplify __value_alloc_traits typedef.
1155 (_Hashtable_alloc<_NodeAlloc>::_M_allocate_node(_Args&&...)): Call
1156 construct on the node allocator.
1157 (_Hashtable_alloc<_NodeAlloc>::_M_deallocate_node(__node_type*)): Call
1158 destroy on the node allocator.
1161 * include/bits/hashtable.h (_Hashtable(_InputIterator, _InputIterator,
1162 size_type, const _H1&, const _H2&, const _Hash&, const _Equal&,
1163 const _ExtractKey&, const allocator_type&)): Let destructor do clean
1164 up if an exception is thrown.
1165 * testsuite/23_containers/unordered_map/cons/81891.cc: New.
1167 2017-08-11 Jonathan Wakely <jwakely@redhat.com>
1170 * testsuite/27_io/basic_fstream/53984.cc: Adjust test for targets
1171 that allow opening a directory as a FILE and reading from it.
1173 2017-08-09 Jonathan Wakely <jwakely@redhat.com>
1175 * include/std/type_traits (_GLIBCXX_NO_BUILTIN_HAS_UNIQ_OBJ_REP):
1176 Replace with _GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP and use
1177 __is_identifier to set it.
1179 2017-08-09 Katsuhiko Nishimra <ktns.87@gmail.com>
1181 * include/std/type_traits (_GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE): Use
1182 __is_identifier instead of __has_builtin.
1184 2017-08-09 Jonathan Wakely <jwakely@redhat.com>
1188 * config/io/basic_file_stdio.cc (sys_open(FILE*, ios_base::openmode)):
1189 Call fflush on the stream instead of calling sync() while _M_cfile is
1190 null. Restore original value of errno.
1191 * testsuite/ext/stdio_filebuf/char/79820.cc: New.
1192 * testsuite/ext/stdio_filebuf/char/81751.cc: New.
1194 2017-07-31 Marek Polacek <polacek@redhat.com>
1197 * include/bits/stl_stack.h: Fix typo.
1199 2017-07-26 Jonathan Wakely <jwakely@redhat.com>
1201 * testsuite/27_io/basic_fstream/53984.cc: Fix test.
1203 2017-07-26 Paolo Carlini <paolo.carlini@oracle.com>
1205 * testsuite/27_io/basic_fstream/53984.cc: Fix typo in dg-require
1208 2017-07-25 Jonathan Wakely <jwakely@redhat.com>
1211 * include/bits/basic_ios.h (basic_ios::_M_setstate): Adjust comment.
1212 * include/bits/istream.tcc (basic_istream::sentry): Handle exceptions
1213 during construction.
1214 * include/std/istream: Adjust comments for formatted input functions
1215 and unformatted input functions.
1216 * testsuite/27_io/basic_fstream/53984.cc: New.
1217 * testsuite/27_io/basic_istream/sentry/char/53984.cc: New.
1219 * include/bits/ios_base.h (ios_base::io_state, ios_base::open_mode)
1220 (ios_base::seek_dir): Remove for C++17.
1221 * include/std/streambuf (basic_streambuf::stossc): Remove for C++17.
1222 Add deprecated attribute for C++11 and C++14.
1223 * testsuite/27_io/types/1.cc: Don't run for C++17 and later.
1224 * testsuite/27_io/types/4.cc: New.
1226 2017-07-23 Michael Collison <michael.collison@arm.com>
1228 Add optimized implementation of mersenne twister for aarch64
1229 * config/cpu/aarch64/opt/ext/opt_random.h: New file.
1230 (__arch64_recursion): New function.
1231 (__aarch64_lsr_128): New function.
1232 (__aarch64_lsl_128): New function.
1233 (operator==): New function.
1234 (simd_fast_mersenne_twister_engine): Implement
1236 * config/cpu/aarch64/opt/bits/opt_random.h: New file.
1237 * include/ext/random: (simd_fast_mersenne_twister_engine):
1238 add _M_state private array.
1240 2017-07-23 François Dumont <fdumont@gcc.gnu.org>
1243 * include/bits/algorithmfwd.h: Reorganize versioned namespace.
1244 * include/bits/basic_string.h: Likewise.
1245 * include/bits/c++config: Likewise.
1246 * include/bits/deque.tcc: Likewise.
1247 * include/bits/forward_list.h: Likewise.
1248 * include/bits/forward_list.tcc: Likewise.
1249 * include/bits/hashtable_policy.h: Likewise.
1250 * include/bits/list.tcc: Likewise.
1251 * include/bits/move.h: Likewise.
1252 * include/bits/quoted_string.h: Likewise.
1253 * include/bits/random.h: Likewise.
1254 * include/bits/random.tcc: Likewise.
1255 * include/bits/regex.h: Likewise.
1256 * include/bits/regex.tcc: Likewise.
1257 * include/bits/regex_automaton.h: Likewise.
1258 * include/bits/regex_automaton.tcc: Likewise.
1259 * include/bits/regex_compiler.h: Likewise.
1260 * include/bits/regex_compiler.tcc: Likewise.
1261 * include/bits/regex_constants.h: Likewise.
1262 * include/bits/regex_error.h: Likewise.
1263 * include/bits/regex_executor.h: Likewise.
1264 * include/bits/regex_executor.tcc: Likewise.
1265 * include/bits/regex_scanner.h: Likewise.
1266 * include/bits/regex_scanner.tcc: Likewise.
1267 * include/bits/specfun.h: Likewise.
1268 * include/bits/stl_algo.h: Likewise.
1269 * include/bits/stl_algobase.h: Likewise.
1270 * include/bits/stl_bvector.h: Likewise.
1271 * include/bits/stl_deque.h: Likewise.
1272 * include/bits/stl_iterator.h: Likewise.
1273 * include/bits/stl_iterator_base_funcs.h: Likewise.
1274 * include/bits/stl_list.h: Likewise.
1275 * include/bits/stl_map.h: Likewise.
1276 * include/bits/stl_multimap.h: Likewise.
1277 * include/bits/stl_multiset.h: Likewise.
1278 * include/bits/stl_relops.h: Likewise.
1279 * include/bits/stl_set.h: Likewise.
1280 * include/bits/stl_vector.h: Likewise.
1281 * include/bits/uniform_int_dist.h: Likewise.
1282 * include/bits/unordered_map.h: Likewise.
1283 * include/bits/unordered_set.h: Likewise.
1284 * include/bits/vector.tcc: Likewise.
1285 * include/c_global/cmath: Likewise.
1286 * include/c_std/cmath: Likewise.
1287 * include/decimal/decimal: Likewise.
1288 * include/decimal/decimal.h: Likewise.
1289 * include/experimental/algorithm: Likewise.
1290 * include/experimental/any: Likewise.
1291 * include/experimental/array: Likewise.
1292 * include/experimental/bits/erase_if.h: Likewise.
1293 * include/experimental/bits/fs_dir.h: Likewise.
1294 * include/experimental/bits/fs_fwd.h: Likewise.
1295 * include/experimental/bits/fs_ops.h: Likewise.
1296 * include/experimental/bits/fs_path.h: Likewise.
1297 * include/experimental/bits/lfts_config.h: Likewise.
1298 * include/experimental/bits/shared_ptr.h: Likewise.
1299 * include/experimental/bits/string_view.tcc: Likewise.
1300 * include/experimental/chrono: Likewise.
1301 * include/experimental/deque: Likewise.
1302 * include/experimental/filesystem: Likewise.
1303 * include/experimental/forward_list: Likewise.
1304 * include/experimental/functional: Likewise.
1305 * include/experimental/iterator: Likewise.
1306 * include/experimental/list: Likewise.
1307 * include/experimental/map: Likewise.
1308 * include/experimental/memory: Likewise.
1309 * include/experimental/memory_resource: Likewise.
1310 * include/experimental/numeric: Likewise.
1311 * include/experimental/optional: Likewise.
1312 * include/experimental/propagate_const: Likewise.
1313 * include/experimental/random: Likewise.
1314 * include/experimental/ratio: Likewise.
1315 * include/experimental/regex: Likewise.
1316 * include/experimental/set: Likewise.
1317 * include/experimental/source_location: Likewise.
1318 * include/experimental/string: Likewise.
1319 * include/experimental/string_view: Likewise.
1320 * include/experimental/system_error: Likewise.
1321 * include/experimental/tuple: Likewise.
1322 * include/experimental/type_traits: Likewise.
1323 * include/experimental/unordered_map: Likewise.
1324 * include/experimental/unordered_set: Likewise.
1325 * include/experimental/utility: Likewise.
1326 * include/experimental/vector: Likewise.
1327 * include/ext/bitmap_allocator.h: Likewise.
1328 * include/ext/codecvt_specializations.h: Likewise.
1329 * include/ext/rope: Likewise.
1330 * include/ext/typelist.h: Likewise.
1331 * include/std/chrono: Likewise.
1332 * include/std/complex: Likewise.
1333 * include/std/functional: Likewise.
1334 * include/std/numeric: Likewise.
1335 * include/std/string_view: Likewise.
1336 * include/std/thread: Likewise.
1337 * include/std/variant: Likewise.
1338 * include/tr1/array: Likewise.
1339 * include/tr1/bessel_function.tcc: Likewise.
1340 * include/tr1/beta_function.tcc: Likewise.
1341 * include/tr1/cmath: Likewise.
1342 * include/tr1/complex: Likewise.
1343 * include/tr1/ell_integral.tcc: Likewise.
1344 * include/tr1/exp_integral.tcc: Likewise.
1345 * include/tr1/functional: Likewise.
1346 * include/tr1/functional_hash.h: Likewise.
1347 * include/tr1/gamma.tcc: Likewise.
1348 * include/tr1/hashtable.h: Likewise.
1349 * include/tr1/hashtable_policy.h: Likewise.
1350 * include/tr1/hypergeometric.tcc: Likewise.
1351 * include/tr1/legendre_function.tcc: Likewise.
1352 * include/tr1/modified_bessel_func.tcc: Likewise.
1353 * include/tr1/poly_hermite.tcc: Likewise.
1354 * include/tr1/poly_laguerre.tcc: Likewise.
1355 * include/tr1/random.h: Likewise.
1356 * include/tr1/random.tcc: Likewise.
1357 * include/tr1/regex: Likewise.
1358 * include/tr1/riemann_zeta.tcc: Likewise.
1359 * include/tr1/shared_ptr.h: Likewise.
1360 * include/tr1/special_function_util.h: Likewise.
1361 * include/tr1/tuple: Likewise.
1362 * include/tr1/type_traits: Likewise.
1363 * include/tr1/unordered_map.h: Likewise.
1364 * include/tr1/unordered_set.h: Likewise.
1365 * include/tr1/utility: Likewise.
1366 * include/tr2/bool_set: Likewise.
1367 * include/tr2/bool_set.tcc: Likewise.
1368 * include/tr2/dynamic_bitset: Likewise.
1369 * include/tr2/dynamic_bitset.tcc: Likewise.
1370 * include/tr2/ratio: Likewise.
1371 * include/tr2/type_traits: Likewise.
1372 * src/c++11/chrono.cc: Likewise.
1373 * src/c++11/compatibility-c++0x.cc: Likewise.
1374 * src/c++11/compatibility-chrono.cc: Likewise.
1375 * src/c++11/cxx11-shim_facets.cc: Likewise.
1376 * src/c++11/hashtable_c++0x.cc: Likewise.
1377 * src/c++11/placeholders.cc: Likewise.
1378 * src/c++11/thread.cc: Likewise.
1379 * src/c++98/bitmap_allocator.cc: Likewise.
1380 * src/c++98/hashtable_tr1.cc: Likewise.
1381 * src/c++98/list.cc: Likewise.
1382 * src/shared/hashtable-aux.cc: Likewise.
1383 * testsuite/20_util/duration/literals/range.cc: Adapt line number.
1384 * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise.
1385 * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
1386 * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
1387 * testsuite/20_util/forward/c_neg.cc: Likewise.
1388 * testsuite/20_util/forward/f_neg.cc: Likewise.
1389 * testsuite/26_numerics/gcd/gcd_neg.cc: Likewise.
1390 * testsuite/26_numerics/lcm/lcm_neg.cc: Likewise.
1391 * testsuite/26_numerics/random/pr60037-neg.cc: Likewise.
1392 * python/libstdcxx/v6/printers.py: Adapt.
1394 2017-07-20 Jonathan Wakely <jwakely@redhat.com>
1396 * config/allocator/malloc_allocator_base.h [__SANITIZE_ADDRESS__]
1397 (_GLIBCXX_SANITIZE_STD_ALLOCATOR): Define.
1398 * config/allocator/new_allocator_base.h [__SANITIZE_ADDRESS__]
1399 (_GLIBCXX_SANITIZE_STD_ALLOCATOR): Define.
1400 * doc/xml/manual/using.xml (_GLIBCXX_SANITIZE_VECTOR): Document macro.
1401 * include/bits/stl_vector.h [_GLIBCXX_SANITIZE_VECTOR]
1402 (_Vector_impl::_Asan, _Vector_impl::_Asan::_Reinit)
1403 (_Vector_impl::_Asan::_Grow, _GLIBCXX_ASAN_ANNOTATE_REINIT)
1404 (_GLIBCXX_ASAN_ANNOTATE_GROW, _GLIBCXX_ASAN_ANNOTATE_GREW)
1405 (_GLIBCXX_ASAN_ANNOTATE_SHRINK, _GLIBCXX_ASAN_ANNOTATE_BEFORE_DEALLOC):
1406 Define annotation helper types and macros.
1407 (vector::~vector, vector::push_back, vector::pop_back)
1408 (vector::_M_erase_at_end): Add annotations.
1409 * include/bits/vector.tcc (vector::reserve, vector::emplace_back)
1410 (vector::insert, vector::_M_erase, vector::operator=)
1411 (vector::_M_fill_assign, vector::_M_assign_aux)
1412 (vector::_M_insert_rval, vector::_M_emplace_aux)
1413 (vector::_M_insert_aux, vector::_M_realloc_insert)
1414 (vector::_M_fill_insert, vector::_M_default_append)
1415 (vector::_M_shrink_to_fit, vector::_M_range_insert): Annotate.
1417 2017-07-19 Jonathan Wakely <jwakely@redhat.com>
1420 * include/bits/vector.tcc (vector::_M_range_insert<_InputIterator>):
1421 Only insert elements one-by-one when inserting at the end.
1422 * testsuite/performance/23_containers/insert/81476.cc: New.
1424 2017-07-19 Volker Reichelt <v.reichelt@netcologne.de>
1426 * libsupc++/new (bad_array_new_length): Remove redundant
1427 semicolon after in-class member function definition.
1428 * include/bits/locale_facets.h (ctype_byname, num_put): Likewise.
1429 * include/bits/locale_facets_nonio.h (time_put_byname): Likewise.
1430 * include/bits/random.h (mersenne_twister_engine): Likewise.
1431 * include/tr1/random.h (mersenne_twister): Likewise
1432 * include/ext/random (simd_fast_mersenne_twister_engine): Likewise.
1433 * include/ext/rope (char_producer, _Rope_char_consumer,
1434 _Rope_self_destruct_ptr, _Rope_const_iterator, _Rope_iterator):
1436 * include/ext/ropeimpl.h (_Rope_flatten_char_consumer,
1437 _Rope_insert_char_consumer): Likewise.
1439 2017-07-19 Jonathan Wakely <jwakely@redhat.com>
1441 * include/bits/fstream.tcc (basic_filebuf::xsgetn)
1442 (basic_filebuf::xsputn, basic_filebuf::seekoff): Fix indentation.
1444 * testsuite/util/testsuite_iterators.h: Fix indentation.
1446 * testsuite/27_io/basic_filebuf/sgetn/char/81395.cc: Add dg-require.
1448 2017-07-18 Jonathan Wakely <jwakely@redhat.com>
1451 * include/bits/fstream.tcc (basic_filebuf::xsgetn): Don't set buffer
1452 pointers for write mode after reading.
1453 * testsuite/27_io/basic_filebuf/sgetn/char/81395.cc: New.
1455 2017-07-18 François Dumont <fdumont@gcc.gnu.org>
1457 * include/bits/stl_list.h
1458 (struct _List_node_header): New.
1459 (_List_impl()): Fix noexcept qualification.
1460 (_List_impl(_List_impl&&)): New, default.
1461 (_List_base()): Default.
1462 (_List_base(_List_base&&)): Default.
1463 (_List_base::_M_move_nodes): Adapt to use
1464 _List_node_header._M_move_nodes.
1465 (_List_base::_M_init): Likewise.
1466 (list<>()): Default.
1467 (list<>(list&&)): Default.
1468 (list<>::_M_move_assign(list&&, true_type)): Use _M_move_nodes.
1469 (__distance(_List_const_iterator<>, _List_const_iterator<>,
1470 input_iterator_tag)): Adapt.
1471 * testsuite/23_containers/list/allocator/default_init.cc: New.
1473 2017-07-15 Jonathan Wakely <jwakely@redhat.com>
1475 * include/std/mutex (scoped_lock): Reorder std::adopt_lock_t parameter
1477 * testsuite/30_threads/scoped_lock/cons/1.cc: Reorder arguments.
1478 * testsuite/30_threads/scoped_lock/cons/deduction.cc: Test deduction
1479 with std::adopt_lock_t.
1480 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: Check
1483 2017-07-14 Jason Merrill <jason@redhat.com>
1484 Jonathan Wakely <jwakely@redhat.com>
1486 * include/std/variant (variant::variant(_Tp&&)): Constrain to remove
1487 the constructor for empty variants from the candidate functions
1488 during class template argument deduction.
1489 * testsuite/20_util/variant/deduction.cc: New.
1491 2017-07-11 Jonathan Wakely <jwakely@redhat.com>
1493 * doc/xml/faq.xml: Update several old entries. Improve
1495 * doc/xml/manual/intro.xml: Add anchors to each DR.
1496 * doc/html/*: Regenerate.
1498 2017-07-10 Jonathan Wakely <jwakely@redhat.com>
1500 * testsuite/abi/pr42230.cc: Add header for std::free.
1503 * include/bits/sstream.tcc (basic_stringbuf::overflow)
1504 (basic_stringbuf::basic_stringbuf(const __string_type&, ios::mode))
1505 (basic_stringbuf::str()): Construct new strings with an allocator.
1506 * testsuite/27_io/basic_stringbuf/cons/81381.cc: New.
1509 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
1510 Declare basic_stringbuf to be a friend.
1511 * include/bits/sstream.tcc (basic_stringbuf::overflow)
1512 [_GLIBCXX_USE_CXX11_ABI]: Use unused capacity before reallocating.
1513 * include/std/sstream (basic_stringbuf::__xfer_bufptrs): Update string
1514 length to buffer length.
1515 * testsuite/27_io/basic_stringstream/assign/81338.cc: New.
1517 2017-07-06 Jonathan Wakely <jwakely@redhat.com>
1519 * testsuite/20_util/specialized_algorithms/memory_management_tools/
1521 * testsuite/22_locale/locale/cons/5.cc: Remove redundant restoration
1522 of original environment and free memory.
1524 * testsuite/abi/pr42230.cc: Free memory.
1525 * testsuite/util/testsuite_abi.cc (demangle): Return std::string
1526 instead of pointer that might need freeing.
1527 * testsuite/util/testsuite_abi.h (demangle): Likewise.
1528 * testsuite/util/testsuite_hooks.cc (verify_demangle): Free memory.
1530 * include/bits/uses_allocator.h (__use_alloc(const _Alloc&&)): Add
1531 deleted overload to prevent dangling references to rvalues.
1532 * include/experimental/memory_resource
1533 (polymorphic_allocator::construct): Do not call __use_alloc with
1536 2017-06-27 Tim Shen <timshen@google.com>
1539 * include/std/variant (variant::variant, variant::~variant,
1540 variant::operator=): Implement triviality forwarding for four
1541 special member functions.
1542 * testsuite/20_util/variant/compile.cc: Tests.
1544 2017-06-27 Jonathan Wakely <jwakely@redhat.com>
1547 * testsuite/25_algorithms/sample/81221.cc: Disable except for
1551 * include/bits/stl_algo.h (sample): Qualify with _GLIBCXX_STD_A not
1553 * testsuite/25_algorithms/sample/81221.cc: New.
1555 2017-06-22 Jonathan Wakely <jwakely@redhat.com>
1558 * include/bits/stl_bvector.h (vector<bool>::_M_initialize_value):
1559 Do not pass null pointer to memset.
1561 2017-06-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1565 * include/std/istream:
1566 (__is_convertible_to_basic_istream_test(basic_istream<_Ch, _Up>*)): New.
1567 (__do_is_convertible_to_basic_istream_impl): Likewise.
1568 (__is_convertible_to_basic_istream_impl): Likewise.
1569 (__is_convertible_to_basic_istream): Use the new base.
1570 (__rvalue_istream_type): New.
1571 (operator>>(_Istream&&, _Tp&&)): Use the new helper alias
1572 for the SFINAE check, convert to the helper alias type before
1573 doing the actual extraction.
1574 * include/std/ostream:
1575 (__is_convertible_to_basic_ostream_test(basic_ostream<_Ch, _Up>*)): New.
1576 (__do_is_convertible_to_basic_ostream_impl): Likewise.
1577 (__is_convertible_to_basic_ostream_impl): Likewise.
1578 (__is_convertible_to_basic_ostream): Use the new base.
1579 (__rvalue_ostream_type): New.
1580 (operator<<(_Ostream&&, const _Tp&)): Use the new helper alias
1581 for the SFINAE check, convert to the helper alias type before
1582 doing the actual insertion.
1583 * testsuite/27_io/rvalue_streams-2.cc: Add new tests.
1585 2017-06-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1587 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
1589 2017-06-21 Jonathan Wakely <jwakely@redhat.com>
1592 * configure: Regenerate.
1594 2017-06-20 Uros Bizjak <ubizjak@gmail.com>
1596 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
1598 2017-06-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1600 * testsuite/20_util/variant/index_type.cc: Allow for all ilp32 and
1603 2017-06-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1605 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: Regenerate.
1606 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: Likewise.
1607 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: Likewise.
1608 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: Likewise.
1609 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: Likewise.
1610 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
1612 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: Likewise.
1613 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
1616 2017-06-18 H.J. Lu <hongjiu.lu@intel.com>
1619 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
1621 2017-06-18 Andreas Schwab <schwab@linux-m68k.org>
1624 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
1626 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1628 * testsuite: Remove dg-skip-if, dg-xfail-if, dg-xfail-run-if
1631 2017-06-17 Jonathan Wakely <jwakely@redhat.com>
1634 * testsuite/23_containers/vector/bool/80893.cc: Add { target c++11 }.
1636 2017-06-16 Jonathan Wakely <jwakely@redhat.com>
1638 * include/bits/shared_ptr.h (get_deleter): Add overload matching
1640 * include/bits/shared_ptr_base.h (__shared_ptr): Declare new
1641 get_deleter overload as a friend.
1642 * testsuite/20_util/shared_ptr/misc/get_deleter.cc: New.
1644 2017-06-16 Jakub Jelinek <jakub@redhat.com>
1647 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
1648 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
1649 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
1651 2017-06-16 Jonathan Wakely <jwakely@redhat.com>
1653 * include/bits/locale_conv.h (wbuffer_convert::sync): Fix condition.
1654 * testsuite/22_locale/conversions/buffer/2.cc: New.
1657 * acinclude.m4: Bump libtool_VERSION.
1658 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
1659 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
1660 * config/abi/pre/gnu.ver: Add wstring constructor symbols to
1661 GLIBCXX_3.4.24 version and move random_device::_M_get_entropy() symbol
1662 to new GLIBCXX_3.4.25 version.
1663 * doc/xml/manual/abi.xml: Document new versions.
1664 * doc/html/*: Regenerate.
1665 * testsuite/21_strings/basic_string/cons/char/8.cc: Use base object
1666 constructors to ensure required symbols are exported.
1667 * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise.
1668 * testsuite/util/testsuite_abi.cc: Add new version.
1670 * include/bits/locale_conv.h (wbuffer_convert::_M_put): Add missing
1672 * testsuite/21_strings/basic_string_view/operations/copy/char/1.cc:
1674 * testsuite/21_strings/basic_string_view/operations/copy/wchar_t/1.cc:
1676 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc: Add
1677 missing return statements.
1678 * testsuite/23_containers/unordered_map/modifiers/insert_or_assign.cc:
1680 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
1682 * testsuite/special_functions/14_expint/pr68397.cc: Likewise.
1684 2017-06-16 François Dumont <fdumont@gcc.gnu.org>
1686 * include/bits/stl_bvector.h
1687 (__fill_bvector(_Bit_type*, unsigned int, unsigned int, bool)):
1689 (std::fill(_Bit_iterator, _Bit_iterator, bool)): Adapt.
1690 (_Bvector_impl_data): New.
1691 (_Bvector_impl): Inherits from latter.
1692 (_Bvector_impl(_Bit_alloc_type&&)): Delete.
1693 (_Bvector_impl(_Bvector_impl&&)): New, default.
1694 (_Bvector_base()): Default.
1695 (_Bvector_base(_Bvector_base&&)): Default.
1696 (_Bvector_base::_M_move_data(_Bvector_base&&)): New.
1697 (vector(vector&&, const allocator_type&)): Use latter.
1698 (vector<bool>::operator=(vector&&)): Likewise.
1699 (vector<bool>::vector()): Default.
1700 (vector<bool>::vector(vector&&)): Default.
1701 (vector<bool>::assign(_InputIterator, _InputIterator)): Use
1703 (vector<bool>::assign(initializer_list<bool>)): Likewise.
1704 (vector<bool>::_M_initialize_value(bool)): New.
1705 (vector<bool>(size_type, const bool&, const allocator_type&)): Use
1707 (vector<bool>::_M_initialize_dispatch(_Integer, _Integer, __true_type)):
1709 (vector<bool>::_M_fill_assign(size_t, bool)): Likewise.
1711 2017-06-15 François Dumont <fdumont@gcc.gnu.org>
1713 * src/c++98/tree.cc [!_GLIBCXX_INLINE_VERSION]
1714 (_Rb_tree_rotate_left, _Rb_tree_rotate_right): Delete.
1716 2017-06-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1718 * testsuite: Add dg-require-effective-target pthread to -pthread
1720 Remove explicit target lists from dg-do and dg-options.
1722 * testsuite/30_threads/async/forced_unwind.cc: Remove explit
1723 target list from dg-options.
1724 * testsuite/30_threads/packaged_task/forced_unwind.cc: Likewise.
1726 * 30_threads/shared_mutex/cons/1.cc: Likewise.
1727 Pass -pthread for all targets.
1728 * 30_threads/shared_mutex/try_lock/1.cc: Likewise.
1729 * 30_threads/shared_mutex/try_lock/2.cc: Likewise.
1730 * 30_threads/shared_mutex/unlock/1.cc: Likewise.
1732 * testsuite/30_threads/this_thread/57060.cc: Require c++11 via
1733 dg-require-effective-target.
1735 2017-06-14 Jonathan Wakely <jwakely@redhat.com>
1737 * doc/xml/manual/test.xml: Correct instructions on running tests.
1738 * testsuite/21_strings/basic_string/cons/char/deduction.cc: Adjust to
1739 pass when -D_GLIBCXX_USE_CXX11_ABI=0 added to RUNTESTFLAGS.
1740 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
1742 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Likewise.
1743 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1744 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1745 exceptions_failbit.cc: Likewise.
1746 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1747 exceptions_failbit.cc: Likewise.
1748 * testsuite/27_io/basic_istream/extractors_other/char/
1749 exceptions_null.cc: Likewise.
1750 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1751 exceptions_null.cc: Likewise.
1752 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1753 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1754 * testsuite/27_io/basic_ostream/inserters_other/char/
1755 exceptions_null.cc: Likewise.
1756 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1757 exceptions_null.cc: Likewise.
1758 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1760 2017-06-12 Pedro Alves <palves@redhat.com>
1762 * doc/xml/manual/status_cxx2017.xml: Update C++17 constexpr
1764 * doc/html/*: Regenerate.
1766 * include/bits/char_traits.h (_GLIBCXX_ALWAYS_INLINE): Define if
1767 not already defined.
1768 (__cpp_lib_constexpr_char_traits): Uncomment.
1769 (__constant_string_p, __constant_char_array_p): New.
1770 (std::char_traits<char>, std::char_traits<wchar_t>): Add
1771 _GLIBCXX17_CONSTEXPR on compare, length and find and use
1772 __constant_string_p, __constant_char_array_p and
1773 __builtin_constant_p to defer to __gnu_cxx::char_traits at compile
1776 * testsuite/21_strings/char_traits/requirements/
1777 constexpr_functions_c++17.cc: Uncomment
1778 __cpp_lib_constexpr_char_traits tests. Uncomment
1779 test_compare<char>, test_length<char>, test_find<char>,
1780 test_compare<wchar_t>, test_length<wchar_t> and test_find<wchar_t>
1781 static_assert tests.
1783 2017-06-12 François Dumont <fdumont@gcc.gnu.org>
1785 * include/bits/stl_tree.h (_Rb_tree_impl()): Restore _Node_allocator
1787 * testsuite/util/testsuite_allocator.h
1788 (__gnu_test::default_init_allocator<>) New.
1789 * testsuite/23_containers/set/allocator/default_init.cc: New.
1790 * testsuite/23_containers/map/allocator/default_init.cc: New.
1792 2017-06-12 Jonathan Wakely <jwakely@redhat.com>
1795 * src/c++11/thread.cc (execute_native_thread_routine): Remove
1796 try-block so that exceptions propagate out of the thread and terminate
1797 is called by the exception-handling runtime.
1798 (execute_native_thread_routine_compat): Likewise.
1799 * testsuite/30_threads/thread/cons/terminate.cc: New.
1801 2017-06-09 Jonathan Wakely <jwakely@redhat.com>
1803 * doc/xml/manual/intro.xml: Document LWG 2802, 2873 and 2942 changes.
1804 * include/bits/shared_ptr.h (shared_ptr): Use rvalues for deleters
1806 * include/bits/shared_ptr_base.h (_Sp_ebo_helper, _Sp_counted_deleter
1807 (_Sp_counted_deleter::_Impl, __shared_count, __shared_ptr): Likewise.
1808 * testsuite/20_util/shared_ptr/cons/lwg2802.cc: New.
1810 * include/bits/forward_list.h (forward_list): Add deduction guide.
1811 * include/bits/stl_deque.h (deque): Likewise.
1812 * include/bits/stl_list.h (list): Likewise.
1813 * include/bits/stl_vector.h (vector): Likewise.
1814 * testsuite/23_containers/deque/cons/deduction.cc: New.
1815 * testsuite/23_containers/forward_list/cons/deduction.cc: New.
1816 * testsuite/23_containers/list/cons/deduction.cc: New.
1817 * testsuite/23_containers/vector/cons/deduction.cc: New.
1819 2017-06-08 Jonathan Wakely <jwakely@redhat.com>
1822 * include/bits/std_function.h (function::function(function&&))
1823 (function::operator=(funtion&&)): Add noexcept.
1824 * testsuite/20_util/function/assign/move.cc: Check for noexcept.
1825 * testsuite/20_util/function/cons/move.cc: Likewise.
1827 2017-06-07 Jonathan Wakely <jwakely@redhat.com>
1829 * include/bits/regex.h (basic_regex): Add deduction guide from P0433.
1830 * testsuite/28_regex/basic_regex/ctors/deduction.cc: New.
1833 * include/bits/regex.h (basic_regex): Adjust call to __compile_nfa
1834 so iterator type is deduced.
1835 * include/bits/regex_compiler.h (__compile_nfa): Reorder template
1836 parameters to allow iterator type to be deduced.
1837 * testsuite/28_regex/basic_regex/ctors/basic/iter.cc: New.
1839 * include/bits/alloc_traits.h (__is_allocator, _RequireAllocator):
1840 New trait and alias for detecting Allocator-like types.
1841 * include/bits/basic_string.h (basic_string): Add deduction guide
1843 * include/ext/alloc_traits.h (__gnu_cxx::__alloc_traits): Add template
1844 parameter with default template argument that causes substitution
1845 failures for types that cannot be allocators.
1846 * testsuite/21_strings/basic_string/cons/char/deduction.cc: New.
1847 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc: New.
1849 2017-06-02 Jonathan Wakely <jwakely@redhat.com>
1852 * include/std/variant (__erased_ctor, __erased_assign, __erased_swap)
1853 (__erased_hash): Remove constexpr specifier and qualify calls to
1855 (__erased_dtor): Remove constexpr specifier and use _Destroy.
1857 2017-06-05 Jonathan Wakely <jwakely@redhat.com>
1859 * include/bits/stl_iterator_base_funcs.h
1860 (__advance<_RandomAccessIterator, _Distance>): Optimize for next/prev
1861 cases where incrementing or decrementing a single step.
1863 * include/bits/shared_ptr_base.h (__shared_ptr::owner_before)
1864 (__weak_ptr::owner_before, _Sp_owner_less::operator()): Add noexcept
1865 specifiers as per LWG 2873 and LWG 2942.
1866 * testsuite/20_util/owner_less/noexcept.cc: New.
1867 * testsuite/20_util/shared_ptr/observers/owner_before.cc: Test
1868 noexcept guarantees.
1869 * testsuite/20_util/weak_ptr/observers/owner_before.cc: Likewise.
1871 2017-06-03 Andreas Schwab <schwab@linux-m68k.org>
1873 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
1875 2017-06-03 Eric Botcazou <ebotcazou@adacore.com>
1877 * src/filesystem/dir.cc (fs::_Dir::advance): Use std::exchange.
1879 2017-06-02 Jonathan Wakely <jwakely@redhat.com>
1882 * doc/xml/manual/status_cxx2011.xml: Document to_int_type behaviour.
1883 * include/bits/char_traits.h (char_traits<char16_t>::to_int_type):
1884 Transform eof value to U+FFFD.
1885 * testsuite/21_strings/char_traits/requirements/char16_t/eof.cc: New.
1886 * testsuite/27_io/basic_streambuf/sgetc/char16_t/80624.cc: New.
1887 * testsuite/27_io/basic_streambuf/sputc/char16_t/80624.cc: New.
1889 * libsupc++/Makefile.am: Remove custom targets for files that need to
1890 be compiled as C++11 or C++14.
1891 * libsupc++/Makefile.in: Regenerate.
1892 * libsupc++/del_ops.cc: Use pragma to disable -Wsized-deallocation
1894 * libsupc++/del_opvs.cc: Likewise.
1896 2017-06-02 Richard Biener <rguenther@suse.de>
1897 Markus Eisenmann <meisenmann.lba@fh-salzburg.ac.at>
1900 * libsupc++/eh_alloc.cc (pool::free): Keep list properly
1901 sorted and add missing freelist item merging cases.
1903 2017-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1905 (GLIBCXX_CROSSCONFIG): Handle *-solaris* like *-linux* etc.
1906 Remove *-solaris* section.
1907 * configure: Regenerate.
1909 2017-05-31 Jonathan Wakely <jwakely@redhat.com>
1912 * include/bits/stl_bvector.h (vector<bool>::_M_initialize): Avoid
1913 null pointer dereference when size is zero.
1914 * testsuite/23_containers/vector/bool/80893.cc: New.
1915 * testsuite/util/testsuite_allocator.h (PointerBase::PointerBase):
1916 Add non-explicit constructor from nullptr.
1917 (PointerBase::derived() const): Add const-qualified overload.
1919 2017-05-20 Tim Shen <timshen@google.com>
1922 * include/std/variant(variant::variant): SFINAE on is_same first.
1923 * testsuite/20_util/variant/any.cc: test case.
1925 2017-05-24 Jonathan Wakely <jwakely@redhat.com>
1927 * src/c++11/random.cc (random_device::_M_getentropy): Use __CHAR_BIT__
1928 instead of fixed number of bits.
1930 2017-05-24 Andreas Schwab <schwab@suse.de>
1932 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
1933 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Likewise.
1935 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
1936 Jonathan Wakely <jwakely@redhat.com>
1939 * acinclude.m4: Bump libtool_VERSION.
1940 * config/abi/pre/gnu.ver: Create GLIBCXX_3.4.24 with new symbol.
1941 * config.h.in: Regenerate.
1942 * configure: Regenerate.
1943 * configure.ac: Add test for <linux/random.h>.
1944 * doc/xml/manual/abi.xml: Document new library version.
1945 * include/bits/random.h (random_device::entropy)
1946 [_GLIBCXX_USE_RANDOM_TR1]: Add call to new _M_getentropy member.
1947 (random_device::_M_getentropy): Declare.
1948 * src/c++11/random.cc (random_device::_M_getentropy): Define.
1949 * testsuite/util/testsuite_abi.cc: Add GLIBCXX_3.4.24 to known
1950 versions, and make it the latest version.
1952 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
1955 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Add
1956 explicit conversion to avoid signed overflow.
1958 2017-05-19 Jonathan Wakely <jwakely@redhat.com>
1961 * include/bits/stl_algo.h (search): Add new overload for C++17.
1962 * testsuite/25_algorithms/search/searcher.cc: New.
1964 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
1967 * include/std/functional (_Mem_fn_traits_base): Add specializations
1968 for noexcept member function types.
1969 * testsuite/20_util/function_objects/mem_fn/80478.cc: New test.
1971 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
1973 * doc/xml/manual/policy_data_structures.xml: Fix typo.
1974 * doc/xml/manual/test_policy_data_structures.xml: Likewise.
1975 * doc/html/*: Regenerate.
1977 * doc/xml/manual/abi.xml: Document latest library versions.
1978 * doc/xml/manual/build_hacking.xml: Document requirement to update
1979 abi.xml when bumping library versions.
1980 * doc/html/*: Regenerate.
1982 2017-05-17 Jonathan Wakely <jwakely@redhat.com>
1984 * include/bits/refwrap.h: Fix Doxygen warning.
1985 * include/bits/specfun.h: Likewise.
1986 * include/bits/std_function.h: Likewise.
1987 * include/bits/stl_algo.h (set_union, set_intersection)
1988 (set_difference, set_symmetric_difference): Add Doxygen @param tags
1989 for output iterator parameters.
1990 * include/bits/stl_iterator.h (inserter): Add Doxygen @param tag for
1992 * include/std/mutex (try_lock, lock): Change Mutex to Lockable in
1995 2017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
1997 Implement new C++ intrinsics __is_assignable and __is_constructible.
1998 * include/std/type_traits (__do_is_static_castable_impl): Remove.
1999 (__is_static_castable_impl, __is_static_castable_safe): Likewise.
2000 (__is_static_castable, __do_is_direct_constructible_impl): Likewise.
2001 (__is_direct_constructible_impl): Likewise.
2002 (__is_direct_constructible_new_safe): Likewise.
2003 (__is_base_to_derived_ref, __is_lvalue_to_rvalue_ref): Likewise.
2004 (__is_direct_constructible_ref_cast): Likewise.
2005 (__is_direct_constructible_new, __is_direct_constructible): Likewise.
2006 (__do_is_nary_constructible_impl): Likewise.
2007 (__is_nary_constructible_impl, __is_nary_constructible): Likewise.
2008 (__is_constructible_impl): Likewise.
2009 (is_constructible): Call the intrinsic.
2010 (__is_assignable_helper): Remove.
2011 (is_assignable): Call the intrinsic.
2012 (is_trivially_constructible): Likewise.
2013 (__is_trivially_copy_constructible_impl): New.
2014 (is_trivially_copy_constructible): Use it.
2015 (__is_trivially_move_constructible_impl): New.
2016 (is_trivially_move_constructible): Use it.
2017 (is_trivially_assignable): Call the intrinsic.
2018 (__is_trivially_copy_assignable_impl): New.
2019 (is_trivially_copy_assignable): Use it.
2020 (__is_trivially_move_assignable_impl): New.
2021 (is_trivially_move_assignable): Use it.
2022 (testsuite/20_util/declval/requirements/1_neg.cc): Adjust.
2023 (testsuite/20_util/is_trivially_copy_assignable/value.cc):
2025 (testsuite/20_util/is_trivially_copy_constructible/value.cc): Likewise.
2026 (testsuite/20_util/is_trivially_move_assignable/value.cc): Likewise.
2027 (testsuite/20_util/is_trivially_move_constructible/value.cc): Likewise.
2028 (testsuite/20_util/make_signed/requirements/typedefs_neg.cc): Adjust.
2029 (testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc):
2032 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
2034 * testsuite/experimental/source_location/1.cc: Change expected result
2035 for source_location::current() used in default member initializer.
2037 * doc/xml/manual/status_cxx2017.xml: Update status table.
2038 * doc/html/*: Regenerate.
2039 * include/Makefile.am: Add new header.
2040 * include/Makefile.in: Regenerate.
2041 * include/experimental/source_location: New header implementing N4519.
2042 * testsuite/experimental/source_location/1.cc: New test.
2045 * include/bits/shared_ptr_base.h [!__cpp_rtti] (type_info): Declare
2046 outside versioned namespace.
2048 * configure: Regenerate.
2050 2017-05-16 Marc Glisse <marc.glisse@inria.fr>
2052 * include/std/optional (_Optional_base::_M_get): Check precondition.
2053 * testsuite/20_util/optional/cons/value_neg.cc: Update line numbers.
2055 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
2057 * doc/xml/manual/appendix_contributing.xml: Link to test docs and
2058 note higher DejaGnu version requirement.
2059 * doc/html/*: Regenerate.
2061 * doc/xml/manual/appendix_contributing.xml: Link to the list of bad
2063 * doc/html/*: Regenerate.
2065 2017-05-15 Jonathan Wakely <jwakely@redhat.com>
2068 * include/bits/node_handle.h (_Node_insert_return): Reorder members.
2069 (tuple_size, tuple_element): Remove partial specializations.
2070 * include/bits/stl_tree.h (_Rb_tree::insert_return_type): Use
2071 const_iterator for std::set.
2072 * testsuite/23_containers/map/modifiers/extract.cc: New.
2073 * testsuite/23_containers/set/modifiers/extract.cc: New.
2074 * testsuite/23_containers/unordered_map/modifiers/extract.cc: New.
2075 * testsuite/23_containers/unordered_set/modifiers/extract.cc: New.
2077 2017-05-12 Jonathan Wakely <jwakely@redhat.com>
2080 * include/std/utility (tuple_size<cv T>): Only define partial
2081 specializations when tuple_size<T>::value is valid.
2082 * testsuite/20_util/tuple/78939.cc: New.
2083 * testsuite/20_util/tuple/cv_tuple_size_neg.cc: New.
2085 2017-05-11 François Dumont <fdumont@gcc.gnu.org>
2087 * include/bits/stl_tree.h [_GLIBCXX_INLINE_VERSION]
2088 (_Rb_tree_impl<>): Remove _Is_pod_comparator
2091 * include/debug/formatter.h [_GLIBCXX_INLINE_VERSION]
2092 (__gnu_debug::_Error_formatter::_Parameter::_M_print_field): Remove.
2093 (__gnu_debug::_Error_formatter::_Parameter::_M_print_description):
2095 (__gnu_debug::_Error_formatter::_M_format_word): Remove.
2096 (__gnu_debug::_Error_formatter::_M_print_word): Remove.
2097 (__gnu_debug::_Error_formatter::_M_print_string): Remove.
2098 (__gnu_debug::_Error_formatter::_M_get_max_length): Remove.
2099 * src/c++11/debug.cc: Adapt.
2100 * config/abi/pre/gnu-versioned-namespace.ver: Adapt.
2102 2017-05-11 Jonathan Wakely <jwakely@redhat.com>
2104 * doc/xml/manual/allocator.xml: Fix ViewCVS URLs.
2105 * doc/xml/manual/mt_allocator.xml: Likewise.
2106 * doc/html/*: Regenerate.
2109 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Define
2110 function to get unique fake std::type_info reference.
2111 (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Compare to
2112 _S_ti() fake reference.
2113 (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Share
2114 single implementation with or without RTTI enable.
2115 [!__cpp_rtti]: Pass fake reference to _M_get_deleter.
2116 * testsuite/20_util/shared_ptr/creation/alloc.cc: Change expected
2117 allocation and deallocation counts.
2118 * testsuite/20_util/shared_ptr/creation/single_allocation.cc: New.
2119 * testsuite/20_util/shared_ptr/creation/single_allocation_no_rtti.cc:
2122 2017-05-10 François Dumont <fdumont@gcc.gnu.org>
2124 Bump version namespace.
2125 * config/abi/pre/gnu-versioned-namespace.ver: Bump version namespace
2126 from __7 to __8. Bump GLIBCXX_7.0 to GLIBCXX_8.0.
2127 * acinclude.m4 (libtool_VERSION): Bump to 8:0:0.
2128 * include/bits/c++config: Adapt.
2129 * include/bits/regex.h: Adapt.
2130 * include/experimental/bits/fs_fwd.h: Adapt.
2131 * include/experimental/bits/lfts_config.h: Adapt.
2132 * include/std/variant: Adapt.
2133 * python/libstdcxx/v6/printers.py: Adapt.
2134 * testsuite/libstdc++-prettyprinters/48362.cc: Adapt.
2136 * include/bits/stl_algobase.h (std::__iter_swap<false>): Remove
2137 _GLIBCXX_MOVE usage.
2139 2017-05-09 Jason Merrill <jason@redhat.com>
2141 * testsuite/24_iterators/container_access.cc (test03): Make il3 static.
2143 2017-05-08 Jonathan Wakely <jwakely@redhat.com>
2145 * include/std/optional: Use a separate static_assert per condition.
2146 * testsuite/20_util/optional/cons/value_neg.cc: Update dg-error line
2149 * doc/xml/manual/mt_allocator.xml: Clarify deallocation behaviour.
2150 * doc/html/*: Regenerate.
2152 2017-05-02 Hugo Beauzée-Luyssen <hugo@beauzee.fr>
2155 * config/os/mingw32-w64/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
2157 2017-04-29 François Dumont <fdumont@gcc.gnu.org>
2159 * testsuite/libstdc++-prettyprinters/48362.cc: Replace a regexp-test
2162 2017-04-28 Jonathan Wakely <jwakely@redhat.com>
2165 * include/bits/stl_construct.h (_Destroy, _Destroy_n): Add static
2166 assertions to ensure type is destructible.
2167 (destroy_at, destroy, destroy_n): Move from stl_uninitialized.h.
2168 * include/bits/stl_uninitialized.h (destroy_at, destroy, destroy_n):
2169 Move to stl_construct.h.
2170 * testsuite/20_util/specialized_algorithms/memory_management_tools/
2171 destroy_neg.cc: New test.
2172 * testsuite/23_containers/vector/cons/destructible_neg.cc: New test.
2174 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
2175 superfluous "" in dg-error.
2177 2017-04-28 Tom de Vries <tom@codesourcery.com>
2179 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
2180 superfluous '{ target *-*-* }' in dg-(error|warning|message|bogus).
2182 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
2184 * include/ext/pb_ds/detail/list_update_map_/iterators_fn_imps.hpp
2185 (PB_DS_CLASS_C_DEC::end()): Remove redundant const in cast type.
2186 * testsuite/util/testsuite_rng.h (twister_rand_gen::get_prob()):
2189 2017-04-26 Jonathan Wakely <jwakely@redhat.com>
2191 * testsuite/23_containers/deque/allocator/move_assign-2.cc: Improve
2192 comment. Ensure first test works because allocator type propagates and
2193 not because is_always_equal is true.
2194 * testsuite/23_containers/vector/52591.cc: Likewise. Restore original
2195 testcase that instantiates the move-assignment operator.
2197 2017-04-24 Jonathan Wakely <jwakely@redhat.com>
2200 * include/bits/random.tcc (gamma_distribution::operator()): Fix magic
2201 number used in loop condition.
2204 * include/bits/refwrap.h (ref, cref): Qualify calls.
2205 * testsuite/20_util/reference_wrapper/80504.cc: New test.
2208 * include/experimental/optional (optional::swap): Fix exception
2211 2017-04-21 Jonathan Wakely <jwakely@redhat.com>
2214 * include/std/future (_State_baseV2::_Setter::operator()): Remove
2215 _S_check calls that are done after the pointer to the shared state is
2216 already dereferenced.
2217 (_State_baseV2::_Setter<_Res, void>): Define specialization for void
2218 as partial specialization so it can be defined within the definition
2220 (_State_baseV2::__setter): Call _S_check.
2221 (_State_baseV2::__setter(promise<void>*)): Add overload for use by
2222 promise<void>::set_value and promise<void>::set_value_at_thread_exit.
2223 (promise<T>, promise<T&>, promise<void>): Make _State a friend.
2224 (_State_baseV2::_Setter<void, void>): Remove explicit specialization.
2225 (promise<void>::set_value, promise<void>::set_value_at_thread_exit):
2226 Use new __setter overload.
2227 * testsuite/30_threads/promise/members/at_thread_exit2.cc: New test.
2228 * testsuite/30_threads/promise/members/set_exception.cc: Test
2229 promise<T&> and promise<void> specializations.
2230 * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
2231 Test for no_state error condition.
2232 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
2234 * include/backward/auto_ptr.h: Ignore deprecated warnings from use
2236 * include/bits/shared_ptr.h: Likewise.
2237 * include/bits/shared_ptr_base.h: Likewise.
2238 * include/bits/unique_ptr.h: Likewise.
2239 * libstdc++-v3/testsuite/20_util/default_delete/48631_neg.cc: Adjust
2241 * libstdc++-v3/testsuite/20_util/default_delete/void_neg.cc: Likewise.
2242 * libstdc++-v3/testsuite/20_util/unique_ptr/assign/48635_neg.cc:
2244 * libstdc++-v3/testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc:
2247 2017-04-20 Edward Smith-Rowland <3dw4rd@verizon.net>
2249 PR libstdc++/68397 std::tr1::expint fails ... long double arguments.
2250 * include/tr1/exp_integral.tcc: Increase iteration limits.
2251 * testsuite/tr1/5_numerical_facilities/special_functions/15_expint/
2252 pr68397.cc: New test.
2253 * testsuite/special_functions/14_expint/pr68397.cc: New test.
2255 2017-04-20 Jonathan Wakely <jwakely@redhat.com>
2258 * include/std/atomic [!_GLIBCXX_USE_C99_STDINT_TR1] (atomic_int8_t)
2259 (atomic_uint8_t, atomic_int16_t, atomic_uint16_t, atomic_int32_t,
2260 (atomic_uint32_t, atomic_int64_t, atomic_uint64_t)
2261 (atomic_int_least8_t, atomic_uint_least8_t, atomic_int_least16_t)
2262 (atomic_uint_least16_t, atomic_int_least32_t, atomic_uint_least32_t)
2263 (atomic_int_least64_t, atomic_uint_least64_t, atomic_int_fast8_t)
2264 (atomic_uint_fast8_t, atomic_int_fast16_t, atomic_uint_fast16_t)
2265 (atomic_int_fast32_t, atomic_uint_fast32_t, atomic_int_fast64_t)
2266 (atomic_uint_fast64_t, atomic_intmax_t, atomic_uintmax_t): Don't
2269 2017-04-19 Jonathan Wakely <jwakely@redhat.com>
2271 * doc/xml/manual/abi.xml: Rephrase one of the references to the
2273 * doc/xml/manual/test.xml: Document DejaGnu 1.5.3 requirement.
2274 * doc/html/*: Regenerate.
2276 * libsupc++/new: Update comment on #endif directive.
2279 * include/experimental/bits/fs_dir.h (directory_iterator)
2280 (recursive_directory_iterator): Remove noexcept from defaulted
2284 * include/std/type_traits (is_aggregate): Change __has_builtin checks.
2285 * libsupc++/new (launder): Likewise.
2287 2017-04-18 Jonathan Wakely <jwakely@redhat.com>
2289 * include/std/functional (default_searcher, __boyer_moore_array_base)
2290 (__is_std_equal_to, __boyer_moore_base_t, boyer_moore_searcher)
2291 (boyer_moore_horspool_searcher): Remove redundant namespace
2293 (default_searcher::operator()): Construct return value early and
2294 advance second member in-place.
2295 (boyer_moore_horspool_searcher::operator()): Increment random access
2296 iterator directly instead of using std::next.
2297 (boyer_moore_searcher::operator()): Fix return value.
2298 * testsuite/20_util/function_objects/searchers.cc: Check both parts
2301 2017-04-12 Gerald Pfeifer <gerald@pfeifer.com>
2303 * doc/xml/faq.xml: Update reference link to C++ ABI for Itanium.
2304 * doc/xml/manual/abi.xml. Ditto (thrice).
2306 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
2308 * doc/xml/manual/status_cxx2017.xml: Remove duplicate table entry.
2309 * doc/html/*: Regenerate.
2311 * testsuite/20_util/reference_wrapper/invoke.cc: Uncomment tests
2312 that no longer fail.
2314 * include/bits/ios_base.h: Correct comment.
2315 * testsuite/util/testsuite_hooks.h: Likewise.
2317 * doc/xml/manual/status_cxx2017.xml: Update C++17 status table.
2318 * doc/xml/manual/appendix_contributing.xml (contrib.organization): Add
2319 directories for debug, parallel and profile headers.
2320 * doc/html/*: Regenerate.
2322 * include/bits/char_traits.h (__gnu_cxx::char_traits): Add
2323 _GLIBCXX14_CONSTEXPR on assign, compare, find, and length.
2324 (std::char_traits<char>, std::char_traits<wchar_t>): Add
2325 _GLIBCXX17_CONSTEXPR on assign.
2326 (std::char_traits<char16_t>, std::char_traits<char32_t>): Add
2327 _GLIBCXX17_CONSTEXPR on assign, compare, find, and length.
2328 * testsuite/21_strings/char_traits/requirements/
2329 constexpr_functions_c++17.cc: New test.
2331 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
2334 * include/bits/stl_pair.h (__nonesuch_no_braces): New.
2335 (operator=(typename conditional<
2336 __and_<is_copy_assignable<_T1>,
2337 is_copy_assignable<_T2>>::value,
2338 const pair&, const __nonesuch&>::type)): Change __nonesuch
2339 to __nonesuch_no_braces.
2340 (operator=(typename conditional<
2341 __not_<__and_<is_copy_assignable<_T1>,
2342 is_copy_assignable<_T2>>>::value,
2343 const pair&, const __nonesuch&>::type)): Likewise.
2344 (operator=(typename conditional<
2345 __and_<is_move_assignable<_T1>,
2346 is_move_assignable<_T2>>::value,
2347 pair&&, __nonesuch&&>::type)): Likewise.
2348 * testsuite/20_util/pair/79141.cc: New.
2350 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
2352 Implement std::is_aggregate.
2353 * include/std/type_traits (is_aggregate, is_aggregate_v): New.
2354 * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc:
2356 * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise.
2357 * testsuite/20_util/is_aggregate/value.cc: Likewise.
2359 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
2361 Adjust optional's pretty printer for LWG 2900.
2362 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter.__init__):
2363 Look at the nested payload in case of non-experimental optional.
2365 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
2367 Implement LWG 2900, The copy and move constructors
2368 of optional are not constexpr.
2369 * include/std/optional (_Optional_payload): New.
2370 (_Optional_base): Remove the bool parameter.
2371 (_Optional_base<_Tp, false>): Remove.
2372 (_Optional_base()): Adjust.
2373 (_Optional_base(nullopt_t)): Likewise.
2374 (_Optional_base(in_place_t, _Args&&...)): Likewise.
2375 (_Optional_base(in_place_t, initializer_list<_Up>, _Args&&...)):
2377 (_Optional_base(const _Optional_base&)): Likewise.
2378 (_Optional_base(_Optional_base&&)): Likewise.
2379 (operator=(const _Optional_base&)): Likewise.
2380 (operator=(_Optional_base&&)): Likewise.
2381 (~_Optional_base()): Remove.
2382 (_M_is_engaged()): Adjust.
2383 (_M_get()): Likewise.
2384 (_M_construct(_Args&&...)): Likewise.
2385 (_M_destruct()): Likewise.
2386 (_M_reset()): Likewise.
2387 (_Optional_base::_Empty_byte): Remove.
2388 (_Optional_base::_M_empty): Remove.
2389 (_Optional_base::_M_payload): Adjust.
2390 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
2391 * testsuite/20_util/optional/constexpr/cons/value.cc: Add tests.
2393 2017-03-28 Jonathan Wakely <jwakely@redhat.com>
2396 * include/bits/random.tcc (generate_canonical): Use std::nextafter
2397 or numeric_limits::epsilon() to reduce out-of-range values.
2398 * testsuite/26_numerics/random/uniform_real_distribution/operators/
2399 64351.cc: Verify complexity requirement is met.
2401 * doc/xml/manual/abi.xml: Add xml:id anchor.
2402 * doc/xml/manual/using.xml (manual.intro.using.macros): Document
2403 _GLIBCXX_RELEASE. Link to new anchor for __GLIBCXX__ notes.
2404 (concurrency.io.structure): Add markup.
2405 * doc/html/*: Regenerate.
2408 * include/bits/shared_ptr_base.h
2409 (__shared_ptr::_M_enable_shared_from_this_with): Change parameters to
2410 non-const and then use remove_cv to get unqualified type.
2411 * testsuite/20_util/enable_shared_from_this/members/const.cc: Don't
2412 cast away constness on object created const.
2413 * testsuite/20_util/shared_ptr/cons/80229.cc: New test.
2415 2017-03-26 Markus Trippelsdorf <markus@trippelsdorf.de>
2418 * include/bits/stl_tree.h:
2419 (_Rb_tree_header::_M_move_data(_Rb_tree_header&)): Also save _M_color.
2421 2017-03-23 Jonathan Wakely <jwakely@redhat.com>
2423 * testsuite/23_containers/array/tuple_interface/
2424 tuple_element_debug_neg.cc: Adjust dg-error.
2425 * testsuite/23_containers/list/operations/78389.cc: Fix less-than to
2426 define a valid strict weak ordering.
2427 * testsuite/23_containers/priority_queue/67085.cc: Disable test for
2428 Debug Mode, due to debug checks making extra copies of predicate.
2429 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
2432 * doc/xml/faq.xml: Add link.
2433 * doc/xml/manual/backwards_compatibility.xml: Remove outdated
2434 information on pre-ISO headers. Replace broken link to C++ FAQ Lite.
2435 * doc/xml/manual/io.xml: Update broken link.
2436 * doc/html/*: Regenerate.
2438 2017-03-23 Daniel Kruegler <daniel.kruegler@gmail.com>
2440 Implement LWG 2686, Why is std::hash specialized for error_code,
2441 but not error_condition?
2442 * include/std/system_error (hash<error_condition>): Define for C++17.
2443 * testsuite/20_util/hash/operators/size_t.cc (hash<error_condition>):
2444 Instantiate test for error_condition.
2445 * testsuite/20_util/hash/requirements/explicit_instantiation.cc
2446 (hash<error_condition>): Instantiate hash<error_condition>.
2448 * include/bits/c++config (_GLIBCXX17_INLINE): Define.
2449 * include/bits/regex_constants.h (All std::regex_constants constants):
2450 Add _GLIBCXX17_INLINE as per P0607R0.
2451 * include/bits/std_mutex.h (defer_lock, try_to_lock, adopt_lock):
2453 * include/bits/stl_pair.h (piecewise_construct): Likewise.
2454 * include/bits/uses_allocator.h (allocator_arg, uses_allocator_v)
2455 (__is_uses_allocator_constructible_v)
2456 (__is_nothrow_uses_allocator_constructible_v): Likewise.
2457 * include/std/chrono (treat_as_floating_point_v): Likewise.
2458 * include/std/functional (is_bind_expression_v, is_placeholder_v):
2460 * include/std/optional (nullopt): Likewise.
2461 * include/std/ratio (ratio_equal_v, ratio_not_equal_v, ratio_less_v)
2462 ratio_less_equal_v, ratio_greater_v, ratio_greater_equal_v): Likewise.
2463 * include/std/system_error (is_error_code_enum_v)
2464 (is_error_condition_enum_v): Likewise.
2465 * include/std/tuple (tuple_size_v, ignore): Likewise.
2466 (ignore): Declare ignore constexpr as per LWG 2773, declare assignment
2467 constexpr as per LWG 2933.
2468 * include/std/type_traits (All variable templates): Add
2469 _GLIBCXX17_INLINE as per P0607R0.
2470 * include/std/variant (variant_size_v, variant_npos, __index_of_v)
2471 (__tuple_count_v, __exactly_once): Likewise.
2472 * testsuite/18_support/headers/new/synopsis.cc
2473 (hardware_destructive_interference_size)
2474 (hardware_constructive_interference_size): Likewise for commented-out
2476 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Add new
2477 test function for constexpr std::ignore (LWG 2773).
2478 * testsuite/20_util/tuple/creation_functions/constexpr_cpp14.cc: New
2481 2017-03-22 Jonathan Wakely <jwakely@redhat.com>
2483 * include/bits/shared_ptr.h (shared_ptr, weak_ptr): Add deduction
2485 * include/bits/std_function.h (function): Likewise.
2486 * include/bits/stl_pair.h (pair): Likewise.
2487 * include/debug/array (__gnu_debug::array): Likewise.
2488 * include/std/array (array): Likewise.
2489 * include/std/functional (make_default_searcher)
2490 (make_boyer_moore_searcher, make_boyer_moore_horspool_searcher):
2491 Remove generator functions.
2492 * include/std/tuple (tuple): Add deduction guides.
2493 * include/std/valarray (valarray): Likewise.
2494 * testsuite/20_util/function_objects/searchers.cc: Adjust to use
2495 class template argument deduction instead of generator functions.
2496 * testsuite/20_util/function/cons/deduction.cc: New test.
2497 * testsuite/20_util/optional/cons/deduction_guide.cc: Rename to ...
2498 * testsuite/20_util/optional/cons/deduction.cc: ... here.
2499 * testsuite/20_util/pair/cons/deduction.cc: New test.
2500 * testsuite/20_util/shared_ptr/cons/deduction.cc: New test.
2501 * testsuite/20_util/tuple/cons/deduction.cc: New test.
2502 * testsuite/20_util/tuple/element_access/get_neg.cc: Adjust dg-error.
2503 * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: New test.
2504 * testsuite/20_util/weak_ptr/cons/deduction.cc: New test.
2505 * testsuite/23_containers/array/cons/deduction.cc: New test.
2506 * testsuite/23_containers/array/cons/deduction_neg.cc: New test.
2507 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
2509 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise.
2510 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
2512 * testsuite/26_numerics/valarray/deduction.cc: New test.
2513 * testsuite/30_threads/lock_guard/cons/deduction.cc: New test.
2514 * testsuite/30_threads/scoped_lock/cons/deduction.cc: New test.
2515 * testsuite/30_threads/unique_lock/cons/deduction.cc: New test.
2517 2017-03-20 François Dumont <fdumont@gcc.gnu.org>
2519 * include/bits/stl_deque.h (deque): Access allocator value_type only if
2520 concept checks are enabled.
2521 * include/bits/stl_stack.h (stack): Likewise.
2522 * include/bits/stl_vector.h (vector): Likewise.
2523 * include/bits/stl_list.h (list): Likewise and check
2524 _SGIAssignableConcept only in C++03.
2525 * include/bits/stl_map.h (map): Likewise.
2526 * include/bits/stl_set.h (set): Likewise.
2527 * include/bits/stl_multimap.h (multimap): Likewise.
2528 * include/bits/stl_multiset.h (multiset): Likewise.
2529 * include/bits/stl_queue.h (queue, priority_queue): Likewise.
2531 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
2533 * doc/xml/manual/appendix_contributing.xml: Convert link to
2535 Update link to the C++ standard at ansi.org.
2537 * doc/xml/faq.xml: Remove information redundant with the above;
2538 instead add a reference.
2540 2017-03-17 Jonathan Wakely <jwakely@redhat.com>
2542 * src/c++11/codecvt.cc (range): Add non-type template parameter and
2543 define oerloaded operators for reading and writing code units.
2544 (range<Elem, false>): Define partial specialization for accessing
2545 wide characters in potentially unaligned byte ranges.
2546 (ucs2_span(const char16_t*, const char16_t*, ...))
2547 (ucs4_span(const char16_t*, const char16_t*, ...)): Change parameters
2548 to range<const char16_t, false> in order to avoid unaligned reads.
2549 (__codecvt_utf16_base<char16_t>::do_out)
2550 (__codecvt_utf16_base<char32_t>::do_out)
2551 (__codecvt_utf16_base<wchar_t>::do_out): Use range specialization for
2552 unaligned data to avoid unaligned writes.
2553 (__codecvt_utf16_base<char16_t>::do_in)
2554 (__codecvt_utf16_base<char32_t>::do_in)
2555 (__codecvt_utf16_base<wchar_t>::do_in): Likewise for writes. Return
2556 error if there are unprocessable trailing bytes.
2557 (__codecvt_utf16_base<char16_t>::do_length)
2558 (__codecvt_utf16_base<char32_t>::do_length)
2559 (__codecvt_utf16_base<wchar_t>::do_length): Pass arguments of type
2560 range<const char16_t, false> to span functions.
2561 * testsuite/22_locale/codecvt/codecvt_utf16/misaligned.cc: New test.
2563 2017-03-16 Jonathan Wakely <jwakely@redhat.com>
2566 * src/c++11/codecvt.cc (to_integer(codecvt_mode)): Fix target type.
2569 * src/c++11/codecvt.cc (__codecvt_utf16_base<wchar_t>::do_out)
2570 (__codecvt_utf16_base<wchar_t>::do_in): Convert char arguments to
2571 char16_t to work with UTF-16 instead of UTF-8.
2572 * testsuite/22_locale/codecvt/codecvt_utf16/80041.cc: New test.
2574 * src/c++11/codecvt.cc (codecvt<char16_t, char, mbstate_t>)
2575 (codecvt<char32_t, char, mbstate_t>, __codecvt_utf8_base<char16_t>)
2576 (__codecvt_utf8_base<char32_t>, __codecvt_utf8_base<wchar_t>)
2577 (__codecvt_utf16_base<char16_t>, __codecvt_utf16_base<char32_t>)
2578 (__codecvt_utf16_base<wchar_t>, __codecvt_utf8_utf16_base<char16_t>)
2579 (__codecvt_utf8_utf16_base<char32_t>)
2580 (__codecvt_utf8_utf16_base<wchar_t>): Fix do_encoding() and
2581 do_max_length() return values.
2582 * testsuite/22_locale/codecvt/codecvt_utf16/members.cc: New test.
2583 * testsuite/22_locale/codecvt/codecvt_utf8/members.cc: New test.
2584 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/members.cc: New test.
2587 * include/bits/locale_conv.h (__do_str_codecvt): Set __count on
2589 * src/c++11/codecvt.cc (operator&=, operator|=, operator~): Overloads
2590 for manipulating codecvt_mode values.
2591 (read_utf16_bom): Compare input to BOM constants instead of integral
2592 constants that depend on endianness. Take mode parameter by
2593 reference and adjust it, to distinguish between no BOM present and
2594 UTF-16BE BOM present.
2595 (ucs4_in, ucs2_span, ucs4_span): Adjust calls to read_utf16_bom.
2596 (surrogates): New enumeration type.
2597 (utf16_in, utf16_out): Add surrogates parameter to choose between
2598 UTF-16 and UCS2 behaviour.
2599 (utf16_span, ucs2_span): Use std::min not std::max.
2600 (ucs2_out): Use std::min not std::max. Disallow surrogate pairs.
2601 (ucs2_in): Likewise. Adjust calls to read_utf16_bom.
2602 * testsuite/22_locale/codecvt/codecvt_utf16/79980.cc: New test.
2603 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: New test.
2606 * src/c++11/codecvt.cc (write_utf16_code_point): Don't write 0xffff
2607 as a surrogate pair.
2608 (__codecvt_utf8_utf16_base<char32_t>::do_in): Use native endianness
2609 for internal representation.
2610 (__codecvt_utf8_utf16_base<wchar_t>::do_in): Likewise.
2611 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/79511.cc: New test.
2614 * include/bits/stl_heap.h (__is_heap, push_heap, __adjust_heap)
2615 (pop_heap, make_heap, sort_heap, is_heap_until, is_heap): Cope with
2616 invalid instantiations using function types for _Compare argument.
2617 * testsuite/25_algorithms/make_heap/80064.cc: New test.
2620 * python/libstdcxx/v6/printers.py (find_type): Avoid gdb.Type.name
2621 for GDB 7.6 compatibility, use gdb.Type.unqualified instead.
2623 2017-03-15 Ville Voutilainen <ville.voutilainen@gmail.com>
2625 Implement LWG 2857, {variant,optional,any}::emplace should
2626 return the constructed value.
2627 * include/std/any (emplace(_Args&&...)): Change the return type and
2628 return a reference to the constructed value.
2629 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
2630 * include/std/optional (emplace(_Args&&...)): Likewise.
2631 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
2632 * include/std/variant (emplace<_Tp>(_Args&&...)): Likewise.
2633 (emplace<_Tp>(initializer_list<_Up>, _Args&&...)): Likewise.
2634 (emplace<_Np>(_Args&&...)): Likewise.
2635 (emplace<_Np>(initializer_list<_Up>, _Args&&...)): Likewise.
2636 * testsuite/20_util/any/assign/emplace.cc: Add tests for
2637 checking the return value of emplace.
2638 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust.
2639 * testsuite/20_util/optional/assignment/6.cc: Add tests for
2640 checking the return value of emplace.
2641 * testsuite/20_util/variant/run.cc: Likewise.
2643 2017-03-15 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
2646 * include/ext/pb_ds/qdetail/binary_heap_/binary_heap_.hpp
2648 (push_heap): Remove the wrong checking using is_heap.
2649 (make_heap): Remove the assertion using is_heap.
2650 * include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp
2652 (resize_for_insert_if_needed): Add PB_DS_ASSERT_VALID after
2655 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
2658 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
2660 * testsuite/ext/pb_ds/regression/priority_queues.cc: Fix copy&paste
2663 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
2665 * acinclude.m4 (GLIBCXX_CHECK_S_ISREG_OR_S_IFREG): Fix typo in
2667 * config.h.in: Regenerate.
2668 * configure: Regenerate.
2669 * doc/Makefile.in: Regenerate.
2671 2017-03-14 Jonathan Wakely <jwakely@redhat.com>
2674 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
2675 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace
2676 with a constrained template.
2677 [!_GLIBCXX_USE_CXX11_ABI]
2678 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise.
2679 * testsuite/21_strings/basic_string/cons/char/79162.cc: New test.
2680 * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test.
2682 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
2685 * include/bits/list.tcc (merge(list&&)): Use const for the size_t
2687 (merge(list&&, _StrictWeakOrdering)): Likewise.
2688 * testsuite/23_containers/list/operations/80034.cc: New.
2690 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
2692 Implement LWG 2806, Base class of bad_optional_access.
2693 * include/std/optional (bad_optional_access):
2694 Derive from std::exception.
2695 (bad_optional_access::bad_optional_access): Adjust.
2696 (bad_optional_access::what): New.
2697 (__throw_bad_optional_access(const char*)):
2698 Remove the parameter and adjust calls.
2699 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
2700 * testsuite/20_util/optional/typedefs.cc: Likewise.
2702 2017-03-12 Ville Voutilainen <ville.voutilainen@gmail.com>
2704 Implement LWG 2934, optional<const T> doesn't compare with T.
2705 * include/std/optional
2706 (operator==(const optional<_Tp>&, const optional<_Tp>&)):
2707 Turn into operator==(const optional<_Tp>&, const optional<_Up>&).
2708 (operator!=(const optional<_Tp>&, const optional<_Tp>&)):
2709 Turn into operator!=(const optional<_Tp>&, const optional<_Up>&).
2710 (operator<(const optional<_Tp>&, const optional<_Tp>&)):
2711 Turn into operator<(const optional<_Tp>&, const optional<_Up>&.
2712 (operator>(const optional<_Tp>&, const optional<_Tp>&)):
2713 Turn into operator>(const optional<_Tp>&, const optional<_Up>&.
2714 (operator<=(const optional<_Tp>&, const optional<_Tp>&)):
2715 Turn into operator<=(const optional<_Tp>&, const optional<_Up>&).
2716 (operator>=(const optional<_Tp>&, const optional<_Tp>&)):
2717 Turn into operator>=(const optional<_Tp>&, const optional<_Up>&).
2718 (operator==(const optional<_Tp>&, const _Tp&)):
2719 Turn into operator==(const optional<_Tp>&, const _Up&).
2720 (operator==(const _Tp&, const optional<_Tp>&)):
2721 Turn into operator==(const _Up&, const optional<_Tp>&).
2722 (operator!=(const optional<_Tp>&, const _Tp&)):
2723 Turn into operator!=(const optional<_Tp>&, const _Up&).
2724 (operator!=(const _Tp&, const optional<_Tp>&)):
2725 Turn into operator!=(const _Up&, const optional<_Tp>&).
2726 (operator<(const optional<_Tp>&, const _Tp&)):
2727 Turn into operator<(const optional<_Tp>&, const _Up&).
2728 (operator<(const _Tp&, const optional<_Tp>&)):
2729 Turn into operator<(const _Up&, const optional<_Tp>&).
2730 (operator>(const optional<_Tp>&, const _Tp&)):
2731 Turn into operator>(const optional<_Tp>&, const _Up&).
2732 (operator>(const _Tp&, const optional<_Tp>&)):
2733 Turn into operator>(const _Up&, const optional<_Tp>&).
2734 (operator<=(const optional<_Tp>&, const _Tp&)):
2735 Turn into operator<=(const optional<_Tp>&, const _Up&).
2736 (operator<=(const _Tp&, const optional<_Tp>&)):
2737 Turn into operator<=(const _Up&, const optional<_Tp>&).
2738 (operator>=(const optional<_Tp>&, const _Tp&)):
2739 Turn into operator>=(const optional<_Tp>&, const _Up&).
2740 (operator>=(const _Tp&, const optional<_Tp>&)):
2741 Turn into operator>=(const _Up&, const optional<_Tp>&).
2742 * testsuite/20_util/optional/relops/7.cc: New.
2744 2017-03-10 Jonathan Wakely <jwakely@redhat.com>
2746 * testsuite/17_intro/names.cc: Undefine macros that clash with
2747 identifiers in AIX system headers.
2749 * include/bits/invoke.h (__invoke): Use __invoke_result instead of
2750 result_of, and __is_nothrow_invocable instead of
2751 __is_nothrow_callable.
2752 * include/bits/shared_ptr_base.h (__shared_ptr): Use __is_invocable
2753 instead of __is_callable.
2754 * include/std/functional (invoke): use invoke_result_t instead of
2755 result_of_t and is_nothrow_invocable instead of is_nothrow_callable.
2756 (_Not_fn): Use __invoke_result instead of result_of.
2757 * include/std/type_traits (__result_of_memobj, __result_of_memfun):
2758 Remove partial specializations for reference_wrapper types.
2759 (__result_of_impl): Use __inv_unwrap to strip reference_wrapper.
2760 (__invoke_result): Define replacement for result_of and then use it to
2762 (__is_callable_impl, __is_callable, __is_nothrow_callable): Replace
2763 with __is_invocable_impl, __is_invocable, and __is_nothrow_invocable
2765 (invoke_result, invoke_result_t): Define for C++17.
2766 (is_callable, is_nothrow_callable): Replace with is_invocable,
2767 is_invocable_r, is_nothrow_invocable, and is_nothrow_invocable_r.
2768 (is_callable_v, is_nothrow_callable_v): Replace with is_invocable_v,
2769 is_invocable_r_v, is_nothrow_invocable_v, and is_nothrow_invocable_r_v.
2770 * include/std/variant (hash<variant<T...>>): Use is_nothrow_invocable_v
2771 instead of is_nothrow_callable_v.
2772 * testsuite/20_util/function_objects/invoke/59768.cc: Remove unused
2774 * testsuite/20_util/function_objects/not_fn/1.cc: Use is_invocable
2775 instead of is_callable.
2776 * testsuite/20_util/is_callable/*: Rename directory and adjust tests
2778 * testsuite/20_util/is_nothrow_callable/*: Likewise.
2779 * testsuite/20_util/optional/hash.cc: Use is_invocable_v instead of
2781 * testsuite/20_util/variant/hash.cc: Likewise.
2783 2017-03-10 George Lander <george.lander@arm.com>
2785 * acinclude.m4 (glibcxx_cv_obsolete_isnan): Define
2786 _GLIBCXX_INCLUDE_NEXT_C_HEADERS before including math.h.
2787 * configure: Regenerate.
2789 2017-03-09 Jonathan Wakely <jwakely@redhat.com>
2791 * include/std/functional (_Not_fn): Define macro to simplify
2792 repetitive function definitions.
2794 * doc/xml/manual/status_cxx2017.xml: Document std::byte support.
2795 * include/c_global/cstddef (std::byte): Define for C++17.
2796 * testsuite/18_support/byte/global_neg.cc: New test.
2797 * testsuite/18_support/byte/ops.cc: New test.
2798 * testsuite/18_support/byte/requirements.cc: New test.
2800 2017-03-05 Jonathan Wakely <jwakely@redhat.com>
2802 * doc/xml/manual/status_cxx2017.xml: Document P0156R2 status.
2803 * doc/html/*: Regenerate.
2804 * include/std/mutex (scoped_lock): Implement new C++17 template.
2805 * testsuite/30_threads/scoped_lock/cons/1.cc: New test.
2806 * testsuite/30_threads/scoped_lock/requirements/
2807 explicit_instantiation.cc: New test.
2808 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: New test.
2810 2017-03-02 Gerald Pfeifer <gerald@pfeifer.com>
2811 François Dumont <frs.dumont@gmail.com>
2812 Jonathan Wakely <jwakely@redhat.com>
2814 * doc/xml/manual/debug_mode.xml: Update and simplify note
2815 on link- and run-time coexistence.
2817 2017-03-02 Jonathan Wakely <jwakely@redhat.com>
2819 * testsuite/17_intro/headers/names.cc: Rename to ...
2820 * testsuite/17_intro/names.cc: ... here.
2823 * include/bits/hashtable_policy.h (__clp2): Use reserved names for
2824 parameters and local variables.
2825 * include/bits/ios_base.h (make_error_code, make_error_condition):
2827 * include/bits/list.tcc (list::sort): Likewise.
2828 * include/bits/mask_array.h (mask_array): Likewise.
2829 * include/bits/regex.h (regex_token_iterator): Likewise.
2830 * include/bits/slice_array.h (slice_array): Likewise.
2831 * include/bits/stl_algo.h (__sample): Likewise.
2832 * include/std/memory (undeclare_no_pointers): Likewise.
2833 * include/std/type_traits (is_callable_v, is_nothrow_callable_v):
2835 * libsupc++/exception_ptr.h (__dest_thunk): Likewise.
2836 * testsuite/17_intro/headers/names.cc: New test.
2839 * include/std/functional (bind::_Res_type_impl): Fix incorrect use of
2840 result_of that loses top-level cv-qualifiers.
2841 * testsuite/20_util/bind/79798.cc: New test.
2843 2017-03-01 Gerald Pfeifer <gerald@pfeifer.com>
2845 * doc/xml/manual/documentation_hacking.xml: Tweak link to
2848 2017-02-23 Jonathan Wakely <jwakely@redhat.com>
2850 * include/experimental/iterator: Include <iterator>.
2851 * testsuite/experimental/iterator/requirements.cc: Check for contents
2854 2017-02-19 Dinka Ranns <dinka.ranns@googlemail.com>
2856 C++17 GB50 resolution
2857 * include/std/chrono (duration::operator++()): Add
2858 _GLIBCXX17_CONSTEXPR.
2859 (duration::operator++(int)): Likewise.
2860 (duration::operator--()): Likewise.
2861 (duration::operator--(int)): Likewise.
2862 (duration::operator+=(const duration&)): Likewise.
2863 (duration::operator-=(const duration&)): Likewise.
2864 (duration::operator*=(const rep&)): Likewise.
2865 (duration::operator/=(const rep&)): Likewise.
2866 (duration::operator%=(const rep&)): Likewise.
2867 (duration::operator%=(const duration&)): Likewise.
2868 (time_point::operator+=(const duration&)): Likewise.
2869 (time_point::operator-=(const duration&)): Likewise.
2870 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: New test.
2871 * testsuite/20_util/duration/literals/range.cc: Adjust dg-error.
2872 * testsuite/20_util/time_point/arithmetic/constexpr.cc: New test.
2874 2017-02-19 Gerald Pfeifer <gerald@pfeifer.com>
2876 * doc/xml/manual/debug.xml: Adjust link to ThreadSanitizer.
2878 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
2880 * doc/xml/manual/io.xml: Update link to groups.google.com.
2881 Tweak link description.
2883 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
2885 * doc/xml/manual/profile_mode.xml: Fix link.
2887 2017-02-16 Gerald Pfeifer <gerald@pfeifer.com>
2889 * doc/xml/manual/policy_data_structures.xml: Simplify and
2890 standardize references to boost.org.
2891 * doc/xml/manual/policy_data_structures_biblio.xml: Ditto.
2892 * doc/xml/manual/shared_ptr.xml: Ditto.
2894 2017-02-16 Jonathan Wakely <jwakely@redhat.com>
2897 * src/c++11/snprintf_lite.cc (__concat_size_t): Calculate length
2898 written to buffer, not length remaining in buffer.
2900 2017-02-15 Tim Shen <timshen@google.com>
2903 * include/std/variant (operator<(), operator>(), operator<=(),
2904 operator>=(), operator==(), operator!=()): Implement P0393R3.
2905 * testsuite/20_util/variant/compile.cc: Adjust tests.
2906 * testsuite/20_util/variant/run.cc: Adjust tests.
2908 2017-02-15 Tim Shen <timshen@google.com>
2911 * include/std/variant (visit()): Forward variant types to the return
2912 type detection code.
2913 * testsuite/20_util/variant/compile.cc: Add test cases.
2915 2017-02-13 H.J. Lu <hongjiu.lu@intel.com>
2918 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
2920 2017-02-13 Jakub Jelinek <jakub@redhat.com>
2923 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
2924 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
2925 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Likewise.
2926 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
2927 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Likewise.
2928 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
2929 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Likewise.
2930 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
2931 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
2933 2017-02-13 Jonathan Wakely <jwakely@redhat.com>
2936 * include/std/future (__future_base::_Task_state::_M_run)
2937 (__future_base::_Task_state::_M_run_delayed): Use lvalue types in
2938 result_of expressions.
2939 * testsuite/30_threads/packaged_task/79486.cc: New.
2941 2017-02-11 Jonathan Wakely <jwakely@redhat.com>
2944 * include/bits/shared_ptr_base.h (__shared_ptr(_Yp*, _Deleter))
2945 (__shared_ptr(_Yp*, _Deleter, _Alloc)): Use lvalue types in
2946 __is_callable check.
2947 * testsuite/20_util/shared_ptr/cons/79467.cc: New.
2949 * include/bits/atomic_base.h: Re-indent.
2951 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
2953 * doc/xml/manual/profile_mode.xml: Update a paper reference.
2955 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
2957 * src/c++11/snprintf_lite.cc (__err): Use https for bug reporting.
2959 2017-02-08 Jonathan Wakely <jwakely@redhat.com>
2961 * doc/xml/manual/policy_data_structures.xml: Fix spelling of author's
2963 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise. Remove
2964 broken links to texts that are no longer online.
2965 * doc/xml/manual/profile_mode.xml: Update links to CGO 2009 paper and
2967 * doc/xml/manual/using.xml: Update links to memory model information.
2968 * doc/xml/manual/using_exceptions.xml: Update link to "Appendix E:
2969 Standard-Library Exception Safety".
2970 * doc/html/*: Regenerate.
2972 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
2974 * doc/xml/manual/profile_mode.xml: Unbreak link to
2975 "Optimizing Sorting with Machine Learning Algorithms".
2977 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
2979 * src/c++11/snprintf_lite.cc (__err): Update bug reporting URL.
2981 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
2983 * doc/xml/manual/abi.xml: Update link to "Sun Studio 11: C++
2986 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
2988 * doc/html/ext/lwg-active.html: Remove.
2989 * doc/html/ext/lwg-closed.html: Ditto.
2990 * doc/html/ext/lwg-defects.html: Ditto.
2992 * doc/Makefile.am (xml_extradir): Remove.
2994 (stamp-html-docbook-lwg): Remove recipe...
2995 (stamp-html-docbook-data): ...and its use here.
2996 * doc/Makefile.in: Regenerate.
2998 * doc/xml/manual/intro.xml: Shorten two paragraphs explaining
2999 the relationship to the upstream working group.
3000 Replace a local link to ../ext/lwg-active.html by the upstream one.
3001 Replace all reference to ../ext/lwg-defects.html by a new entity
3002 &DR; which refers to the upstream address.
3004 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
3006 * doc/xml/manual/status_cxx2017.xml: Fix link to N4284.
3008 2017-02-06 Jonathan Wakely <jwakely@redhat.com>
3011 * testsuite/20_util/duration/literals/range.cc: Prune extra output
3014 2017-02-06 Gerald Pfeifer <gerald@pfeifer.com>
3016 * doc/xml/manual/documentation_hacking.xml: Update URL of the
3017 DocBook Element Reference. Use that term as link description
3018 instead of "online".
3019 epubcheck has moved to GitHub.
3020 Remove obsolete link to DocBook Publishing Tools.
3022 2017-02-03 Jonathan Wakely <jwakely@redhat.com>
3025 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Restore ABI override
3026 so new ios::failure can be caught even when old ABI is the default.
3027 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
3028 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
3029 exceptions_failbit.cc: Likewise.
3030 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
3031 exceptions_failbit.cc: Likewise.
3032 * testsuite/27_io/basic_istream/extractors_other/char/
3033 exceptions_null.cc: Likewise.
3034 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
3035 exceptions_null.cc: Likewise.
3036 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
3037 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
3038 * testsuite/27_io/basic_ostream/inserters_other/char/
3039 exceptions_null.cc: Likewise.
3040 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
3041 exceptions_null.cc: Likewise.
3042 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3045 * src/c++11/Makefile.am: Add new files.
3046 * src/c++11/Makefile.in: Regenerate.
3047 * src/c++11/cow-string-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
3048 (operator<<, operator>>, getline): Move explicit instantiations to ...
3049 * src/c++11/cow-string-io-inst.cc: ... new file.
3050 * src/c++11/cow-wstring-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
3051 (operator<<, operator>>, getline): Move explicit instantiations to ...
3052 * src/c++11/cow-wstring-io-inst.cc: ... new file.
3053 * src/c++11/functexcept.cc (__throw_ios_failure, __throw_system_error)
3054 (__throw_future_error, __throw_bad_function_call):
3055 (__throw_regex_error): Move functions for C++11 exceptions to the
3056 files that define the exception types.
3057 * src/c++11/functional.cc (__throw_bad_function_call): Move here.
3058 * src/c++11/future.cc (__throw_future_error): Likewise.
3059 * src/c++11/ios.cc (__throw_ios_failure): Likewise.
3060 * src/c++11/regex.cc (__throw_regex_error): Likewise.
3061 * src/c++11/snprintf_lite.cc (__concat_size_t): Print decimal
3062 representation directly instead of calling __int_to_char.
3063 * src/c++11/sso_string.cc (__sso_string): New file for definition
3064 of __sso_string type.
3065 * src/c++11/string-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
3066 explicit instantiations of narrow string I/O functions.
3067 * src/c++11/system_error.cc (__throw_system_error): Move here.
3068 (__sso_string): Move to new file.
3069 * src/c++11/wstring-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
3070 explicit instantiations of wide string I/O functions.
3071 * src/c++98/misc-inst.cc [_GLIBCXX_USE_CXX11_ABI] (operator<<)
3072 (operator>>, getline): Remove explicit instantiations from here.
3074 2017-02-02 H.J. Lu <hongjiu.lu@intel.com>
3076 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
3078 2017-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3080 * configure.host: Separate Solaris/SPARC and x86 baselines.
3081 * config/abi/post/solaris2.10/baseline_symbols.txt: Move ...
3082 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: ... here.
3083 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Move ...
3084 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
3086 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Move ...
3087 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: ... here.
3088 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: New file.
3089 * config/abi/post/solaris2.11/baseline_symbols.txt: Move ...
3090 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: ... here.
3091 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Move ...
3092 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
3094 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Move ...
3095 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: ... here.
3096 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: New file.
3098 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
3099 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
3100 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
3101 * config/abi/post/solaris2.11/baseline_symbols.txt: Likewise.
3102 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Likewise.
3103 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Likewise.
3105 2017-02-01 Jonathan Wakely <jwakely@redhat.com>
3108 * include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
3110 (_Iter_comp_to_iter): Likewise.
3111 * testsuite/25_algorithms/search/78346.cc: New test.
3114 * config/abi/pre/gnu.ver: Remove recently added symbols.
3115 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
3116 (basic_string::_M_copy_assign): Remove.
3117 (basic_string::operator=(const basic_string&)): Don't dispatch to
3118 _M_copy_assign. If source object is small just deallocate, otherwise
3119 perform new allocation before making any changes.
3120 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
3121 (basic_string::_M_copy_assign(const basic_string&, true_type)):
3123 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
3124 Test cases where the allocators are equal or the string is small.
3125 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
3128 2017-01-30 Ville Voutilainen <ville.voutilainen@gmail.com>
3130 Implement LWG 2825, LWG 2756 breaks class template argument
3131 deduction for optional.
3132 * include/std/optional: Add a deduction guide.
3133 * testsuite/20_util/optional/cons/deduction_guide.cc: New.
3135 2017-01-27 Jonathan Wakely <jwakely@redhat.com>
3138 * config/abi/pre/gnu.ver: Add new symbols.
3139 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
3140 (basic_string::_M_copy_assign): New overloaded functions to perform
3142 (basic_string::operator=(const basic_string&)): Dispatch to
3144 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
3145 (basic_string::_M_copy_assign(const basic_string&, true_type)):
3146 Define, performing rollback on exception.
3147 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
3148 Test exception-safety guarantee.
3149 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
3151 * testsuite/util/testsuite_allocator.h (uneq_allocator::swap): Make
3154 2017-01-26 Jonathan Wakely <jwakely@redhat.com>
3157 * include/tr1/complex (conj): Remove using-declaration and restore
3158 overloads, reverting previous change.
3160 * testsuite/23_containers/list/operations/78389.cc: Fix for C++11
3162 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
3163 Mark as unsupported in C++98 mode.
3164 * testsuite/23_containers/queue/requirements/constructible.cc:
3166 * testsuite/23_containers/stack/requirements/constructible.cc:
3168 * testsuite/25_algorithms/make_heap/movable.cc: Fix for C++11 mode.
3171 * include/bits/c++config (literals::string_view_literals::__7): Add.
3172 Only declare versioned namespaces for the relevant C++ dialects.
3173 * include/experimental/bits/erase_if.h (fundamentals_v2::__detail):
3174 Add versioning macros.
3175 * include/experimental/bits/lfts_config.h:
3176 (fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add.
3177 * include/experimental/string_view (fundamentals_v2::__detail):
3178 Add versioning macros.
3179 (fundamentals_v2::__detail::__identity): Remove.
3180 (fundamentals_v2::__detail::__idt): Use common_type instead of
3181 __detail::__identity.
3182 * include/std/string_view (__detail::__identity, __detail::__idt):
3184 (literals::string_view_literals): Fix nesting of versioning macros.
3187 * libsupc++/del_opa.cc (operator delete(void*, std::align_val_t))
3188 [!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN
3189 && !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC]:
3190 Retrieve original pointer value allocated by malloc.
3191 * libsupc++/new_opa.cc [!_GLIBCXX_HAVE_ALIGNED_ALLOC
3192 && !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN
3193 && !_GLIBCXX_HAVE__ALIGNED_MALLOC] (aligned_alloc(size_t, size_t)):
3194 Define, adjusting pointer value allocated by malloc and storing for
3195 retrieval by operator delete.
3197 2017-01-26 Jakub Jelinek <jakub@redhat.com>
3199 * libsupc++/eh_atomics.h: Update copyright years.
3200 * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years.
3202 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
3206 * include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
3207 (proj(T), conj(T)): Change return types per DR 1522.
3208 * include/tr1/complex (conj): Remove overloads and use std::conj.
3209 * testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
3210 * testsuite/26_numerics/complex/dr781.cc: ... this, and update.
3211 * testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
3212 real(T) and imag(T). Allow testing for C++11 too.
3214 2017-01-24 Jonathan Wakely <jwakely@redhat.com>
3217 * include/experimental/string_view (operator==): Check sizes first.
3218 * include/std/string_view (operator==): Likewise.
3220 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
3222 * testsuite/experimental/array/make_array.cc: Restore <functional>
3225 2017-01-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
3227 * testsuite/29_atomics/atomic/69301.cc: Require atomic builtins.
3229 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
3232 * include/experimental/array (__make_array_elem): New class template
3233 and partial specialization.
3234 (__is_reference_wrapper): Move into __make_array_elem specialization.
3235 (make_array): Use __make_array_elem to determine element type and move
3236 static assertion into specialization. Qualify std::forward call.
3237 (to_array): Add exception specifiation.
3238 * testsuite/experimental/array/make_array.cc: Test argument types
3239 without a common type.
3240 * testsuite/experimental/array/neg.cc: Adjust expected error message.
3242 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
3244 * doc/xml/manual/debug.xml: code.google.com uses https now.
3246 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
3248 * doc/xml/manual/test.xml: Fix link into gccint online manual.
3250 2017-01-21 Ville Voutilainen <ville.voutilainen@gmail.com>
3252 Make poisoned hashes SFINAE away the call operator of the hash.
3253 * include/bits/functional_hash.h
3254 (__poison_hash::__enable_hash_call): New.
3255 * include/std/optional (__optional_hash_call_base): New.
3256 (hash<optional<_Tp>>): Derive from the new base,
3257 move the hash function into that base.
3258 * include/std/variant (__variant_hash_call_base_impl): New.
3259 (__variant_hash_call_base): Likewise.
3260 (hash<variant<_Types...>>): Derive from the new base,
3261 move the hash function into that base.
3262 * testsuite/20_util/optional/hash.cc: Add tests for is_callable.
3263 * testsuite/20_util/variant/hash.cc: Likewise.
3265 2017-01-20 Joe Seymour <joe.s@somniumtech.com>
3267 * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t.
3268 * configure: Regenerate.
3270 2017-01-20 Jonathan Wakely <jwakely@redhat.com>
3273 * include/bits/random.h (uniform_real_distribution::param_type)
3274 (normal_distribution::param_type, lognormal_distribution::param_type)
3275 (gamma_distribution::param_type, chi_squared_distribution::param_type)
3276 (cauchy_distribution::param_type, fisher_f_distribution::param_type)
3277 (student_t_distribution::param_type)
3278 (bernoulli_distribution::param_type, binomial_distribution::param_type)
3279 (geometric_distribution::param_type)
3280 (negative_binomial_distribution::param_type)
3281 (poisson_distribution::param_type)
3282 (exponential_distribution::param_type)
3283 (weibull_distribution::param_type)
3284 (extreme_value_distribution::param_type)
3285 (discrete_distribution::param_type)
3286 (piecewise_constant_distribution::param_type)
3287 (piecewise_linear_distribution::param_type): Define operator!=.
3288 * include/bits/uniform_int_dist.h
3289 (uniform_int_distribution::param_type): Likewise.
3290 * include/ext/random (beta_distribution::param_type)
3291 (rice_distribution::param_type, nakagami_distribution::param_type)
3292 (pareto_distribution::param_type, k_distribution::param_type)
3293 (arcsine_distribution::param_type, hoyt_distribution::param_type)
3294 (triangular_distribution::param_type)
3295 (von_mises_distribution::param_type)
3296 (hypergeometric_distribution::param_type)
3297 (logistic_distribution::param_type)
3298 (uniform_on_sphere_distribution::param_type)
3299 (uniform_inside_sphere_distribution::param_type): Likewise.
3300 * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc:
3301 Test construction with param_type.
3302 * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc:
3304 * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
3306 * testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc:
3308 * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
3310 * testsuite/26_numerics/random/extreme_value_distribution/cons/
3312 * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc:
3314 * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc:
3316 * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc:
3318 * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc:
3320 * testsuite/26_numerics/random/negative_binomial_distribution/cons/
3322 * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
3324 * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc:
3326 * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
3328 * testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc:
3330 * testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc:
3332 * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc:
3334 * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise.
3335 * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise.
3336 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
3337 * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc:
3339 * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise.
3340 * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise.
3341 * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise.
3342 * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
3343 * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise.
3344 * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise.
3345 * testsuite/ext/random/triangular_distribution/cons/parms.cc:
3347 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/
3349 * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise.
3352 * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
3353 (__allocator_traits_base::__size_type): Remove.
3354 (allocator_traits::_Ptr): New class template to detect const and void
3355 pointer types without instantiating pointer_traits::rebind
3357 (allocator_traits::_Diff): Likewise for detecting difference_type.
3358 (allocator_traits::_Size): New class template to detect size_type
3359 without instantiating make_unsigned unnecessarily.
3360 * include/bits/ptr_traits.h (pointer_traits::element_type): Use
3361 __detected_or_t instead of __detected_or_t_.
3362 * include/std/type_traits (__detected_or_t_): Remove.
3363 * testsuite/20_util/allocator_traits/members/pointers.cc: New test.
3367 * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
3368 Replace with class template using void_t.
3369 (__alloc_rebind): Define in terms of
3370 __allocator_traits_base::__rebind.
3371 (allocator_traits): Remove unconditional static_assert for
3373 * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
3374 (pointer_traits::__rebind): Replace with class template using void_t.
3375 (pointer_traits::rebind): Define in terms of __rebind.
3376 (pointer_traits): Remove unconditional static_assert for rebind.
3377 * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
3378 * testsuite/20_util/pointer_traits/rebind.cc: New test.
3381 * include/experimental/any (__any_caster): Avoid instantiating
3382 manager function for types that can't be stored in any.
3383 * include/std/any (__any_caster): Likewise.
3384 * testsuite/20_util/any/misc/any_cast.cc: Test non-copyable type.
3385 * testsuite/experimental/any/misc/any_cast.cc: Likewise.
3388 * include/bits/stl_algo.h (is_partitioned): Use increment instead of
3391 2017-01-19 Jonathan Wakely <jwakely@redhat.com>
3394 * include/bits/shared_ptr_base.h (__enable_shared_from_this_base):
3396 (__enable_shared_from_this): Declare __shared_ptr as a friend.
3397 * testsuite/ext/shared_ptr/1.cc: New test.
3400 * include/bits/stl_algo.h (is_partitioned): Don't retest the partition
3402 * testsuite/25_algorithms/is_partitioned/2.cc: New test.
3404 * doc/xml/manual/abi.xml: Fix typo.
3405 * doc/html/manual/abi.html: Likewise.
3408 * include/bits/predefined_ops.h (_Iter_less_val, _Val_less_iter): Add
3409 converting constructors from _Iter_less_iter.
3410 (_Iter_comp_val, _Val_comp_iter): Add converting constructors from
3412 (__iter_comp_val(_Iter_comp_iter<C>): Use converting constructor.
3413 (__val_comp_iter(_Iter_comp_iter<C>): Likewise.
3414 * include/bits/stl_heap.h (__is_heap_until, __push_heap, __pop_heap)
3415 (__make_heap, __sort_heap): Change _Compare parameters to references.
3416 (__is_heap, push_heap, __adjust_heap, __pop_heap, pop_heap)
3417 (__make_heap, make_heap, sort_heap, is_heap_until): Pass comparison
3418 functions as lvalues.
3419 (is_heap): Call __is_heap_until directly to avoid copying __comp.
3420 * testsuite/23_containers/priority_queue/67085.cc: Adjust test to
3421 count copies during construction with empty sequence.
3424 * include/bits/stl_heap.h (__is_heap): Use _GLIBCXX_MOVE.
3425 (__make_heap, __sort_heap): Don't use _GLIBCXX_MOVE inside loops.
3426 * testsuite/23_containers/priority_queue/67085.cc: Adjust expected
3428 * testsuite/25_algorithms/make_heap/movable.cc: New test.
3431 * include/bits/stl_heap.h (push_heap, __adjust_heap, __pop_heap)
3432 (pop_heap, __make_heap, make_heap, __sort_heap, sort_heap): Use
3433 _GLIBCXX_MOVE when passing comparison function to other functions.
3434 (is_heap_until, is_heap): Use std::move when passing comparison
3436 * testsuite/23_containers/priority_queue/67085.cc: New test.
3439 * doc/xml/manual/abi.xml (abi.versioning.history): Add markup to
3440 macro names, filenames, and literal values. Document _GLIBCXX_RELEASE.
3441 Document that the deprecated _GLIBCXX_VERSION macro was removed for
3443 * doc/html/*: Regenerate.
3444 * include/Makefile.am (_GLIBCXX_RELEASE): Set value.
3445 * include/Makefile.in: Regenerate.
3446 * include/bits/c++config (_GLIBCXX_RELEASE): Add #define.
3447 * testsuite/ext/profile/mutex_extensions_neg.cc: Use lineno of 0 in
3450 2017-01-18 Jonathan Wakely <jwakely@redhat.com>
3453 * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
3454 aligned buffer instead of default-initialized variable.
3455 * testsuite/29_atomics/atomic/69301.cc: New test.
3456 * include/experimental/memory (observer_ptr::release): Use reserved
3458 * include/ext/pointer.h (_Pointer_adapter::operator++(int))
3459 (_Pointer_adapter::operator--(int)): Likewise.
3462 * include/experimental/random (randint): Use temporary instead of
3463 thread_local static.
3465 2017-01-17 Joshua Conner <joshconner@google.com>
3467 * crossconfig.m4: Add fuchsia OS.
3468 * configure: Regenerate.
3470 2017-01-17 Jonathan Wakely <jwakely@redhat.com>
3473 * doc/xml/manual/abi.xml (abi.versioning.history): Explain why the
3474 __GLIBCXX__ macro is not useful. Remove redundant date information
3475 and link to the GCC release timeline.
3476 (abi.versioning.active): Move partial sentence into the previous
3478 * doc/html/*: Regenerate.
3481 * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
3482 of remove_reference.
3483 * testsuite/18_support/nested_exception/79114.cc: New test.
3485 2017-01-17 Jakub Jelinek <jakub@redhat.com>
3488 * configure.ac: Add GCC_BASE_VER.
3489 * fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
3490 get version from BASE-VER file.
3491 * po/Makefile.in: Regenerated.
3492 * libsupc++/Makefile.in: Regenerated.
3493 * testsuite/Makefile.in: Regenerated.
3494 * src/Makefile.in: Regenerated.
3495 * configure: Regenerated.
3496 * Makefile.in: Regenerated.
3497 * include/Makefile.in: Regenerated.
3498 * doc/Makefile.in: Regenerated.
3499 * python/Makefile.in: Regenerated.
3500 * src/c++11/Makefile.in: Regenerated.
3501 * src/c++98/Makefile.in: Regenerated.
3502 * src/filesystem/Makefile.in: Regenerated.
3504 2017-01-16 Jonathan Wakely <jwakely@redhat.com>
3507 * src/c++11/functexcept.cc: Use new ABI for std::ios_base::failure
3509 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Don't override ABI
3510 for test, so new ios::failure can be caught.
3511 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
3512 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
3513 exceptions_failbit.cc: Likewise.
3514 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
3515 exceptions_failbit.cc: Likewise.
3516 * testsuite/27_io/basic_istream/extractors_other/char/
3517 exceptions_null.cc: Likewise.
3518 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
3519 exceptions_null.cc: Likewise.
3520 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
3521 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
3522 * testsuite/27_io/basic_ostream/inserters_other/char/
3523 exceptions_null.cc: Likewise.
3524 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
3525 exceptions_null.cc: Likewise.
3526 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3529 * include/bits/locale_classes.h (locale::facet::__shim): Change from
3530 private to protected.
3531 * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
3532 make locale::facet::__shim accessible.
3534 2017-01-16 Ville Voutilainen <ville.voutilainen@gmail.com>
3537 * include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
3538 (merge(list&&, _StrictWeakOrdering)): Likewise.
3539 * testsuite/23_containers/list/operations/78389.cc: Add
3540 better test for the sizes.
3542 2017-01-14 Jonathan Wakely <jwakely@redhat.com>
3544 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
3545 Skip test when -D_GLIBCXX_PROFILE mode is included in options.
3546 * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
3547 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
3549 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
3550 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
3551 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
3552 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
3553 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
3555 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
3557 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
3559 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
3561 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
3563 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
3564 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
3565 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
3566 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
3567 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
3568 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
3569 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
3570 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
3571 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
3572 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
3573 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
3574 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
3575 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
3577 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
3580 * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
3581 retry fclose on EINTR.
3583 * include/profile/base.h: Remove unused header that leads to header
3584 cycle in C++17 mode.
3587 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
3588 Make _If_sv private.
3589 [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
3590 basic_string_view arguments.
3593 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
3594 redundant option from cxxflags.
3595 (check_effective_target_cxx11-abi): Define.
3596 * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
3598 * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
3599 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
3601 * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
3603 * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
3604 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
3606 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
3608 * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
3609 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
3611 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
3613 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
3615 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
3617 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
3619 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
3621 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
3623 * testsuite/23_containers/list/61347.cc: Likewise.
3624 * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
3625 * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
3627 2017-01-13 Ville Voutilainen <ville.voutilainen@gmail.com>
3630 * include/bits/list.tcc (merge(list&&)):
3631 Adjust list sizes if the comparator throws.
3632 (merge(list&&, _StrictWeakOrdering)): Likewise.
3633 (sort()): Splice elements back from the scratch buffers
3634 if the comparator throws.
3635 (sort(_StrictWeakOrdering)): Likewise.
3636 * testsuite/23_containers/list/operations/78389.cc: New.
3638 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
3640 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
3641 XFAIL for C++17 until node reinsertion supports fancy pointers.
3644 * testsuite/20_util/add_pointer/value.cc: Test forming function
3647 2017-01-13 Michael Brune <lucdanton@free.fr>
3650 * include/std/type_traits (__is_referenceable): Handle noexcept
3653 2017-01-12 Jonathan Wakely <jwakely@redhat.com>
3656 * include/bits/stl_queue.h (queue, priority_queue): Remove default
3657 member-initializers and define default constructors as templates with
3659 * include/bits/stl_stack.h (stack): Likewise.
3660 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
3662 * testsuite/23_containers/priority_queue/requirements/
3663 explicit_instantiation/1.cc: Test more instantiations.
3664 * testsuite/23_containers/priority_queue/requirements/
3665 explicit_instantiation/1_c++98.cc: Likewise.
3666 * testsuite/23_containers/queue/requirements/constructible.cc: New.
3667 * testsuite/23_containers/stack/requirements/constructible.cc: New.
3670 * doc/xml/manual/intro.xml: Document LWG 2781 change.
3671 * doc/html/*: Regenerate.
3672 * include/std/functional (_Function_base::_Ref_manager): Remove.
3673 (_Function_handler): Remove partial specializations for
3675 (function::target): Remove special case for const qualification.
3676 * testsuite/20_util/function/6.cc: Adjust tests for target type.
3677 * testsuite/20_util/function/7.cc: Likewise.
3678 * testsuite/20_util/function/8.cc: Likewise.
3680 2017-01-11 Jonathan Wakely <jwakely@redhat.com>
3683 * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
3684 (map::equal_range): Fix return type of heterogeneous overloads.
3685 * include/bits/stl_multimap.h (multimap::lower_bound)
3686 (multimap::upper_bound, multimap::equal_range): Likewise.
3687 * include/bits/stl_multiset.h (multiset::lower_bound)
3688 (multiset::upper_bound, multiset::equal_range): Likewise.
3689 * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
3690 (set::equal_range): Likewise.
3691 * testsuite/23_containers/map/operations/2.cc
3692 * testsuite/23_containers/multimap/operations/2.cc
3693 * testsuite/23_containers/multiset/operations/2.cc
3694 * testsuite/23_containers/set/operations/2.cc
3697 * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
3698 the heterogeneous comparison can only find one match.
3699 * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
3700 * testsuite/23_containers/map/operations/2.cc: Test count works with
3701 comparison function that just partitions rather than sorting.
3702 * testsuite/23_containers/set/operations/2.cc: Likewise.
3704 2017-01-11 Ville Voutilainen <ville.voutilainen@gmail.com>
3706 Reduce the size of variant, it doesn't need an index of
3707 type size_t internally.
3708 * include/std/variant (parse_numbers.h): New include.
3709 (__select_index): New.
3710 (_Variant_storage<false, _Types...>::_M_reset_impl): Use
3711 _index_type for comparison with variant_npos.
3712 (_Variant_storage<false, _Types...>::__index_type): New.
3713 (_Variant_storage<false, _Types...>::_M_index): Change the
3714 type from size_t to __index_type.
3715 (_Variant_storage<true, _Types...>::__index_type): New.
3716 (_Variant_storage<true, _Types...>::_M_index): Change the
3717 type from size_t to __index_type.
3718 (_Variant_base::_M_valid): Use _Storage::__index_type
3719 for comparison with variant_npos.
3720 (variant::index): Use _Base::_Storage::__index_type
3721 for comparison with variant_npos.
3722 * testsuite/20_util/variant/index_type.cc: New.
3724 2017-01-10 Jonathan Wakely <jwakely@redhat.com>
3726 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
3727 effective target selector to prevent running in C++17 mode.
3730 * include/bits/stl_queue.h (queue::c): Add default member initializer.
3731 (queue::queue()): Add constructor and define as defaulted.
3732 (queue::queue(_Sequence&&)): Remove default argument.
3733 (priority_queue::c, priority_queue::comp): Add default member
3735 (priority_queue::priority_queue()): Add constructor and define as
3737 (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
3738 Remove default argument for first parameter.
3739 * include/bits/stl_stack.h (stack::c): Add default member initializer.
3740 (stack::stack()): Add constructor and define as defaulted.
3741 (stack::stack(const _Sequence&)): Remove default argument.
3742 * testsuite/23_containers/priority_queue/requirements/
3743 explicit_instantiation/1.cc: Test explicit instantiation with
3744 non-DefaultConstructible sequence.
3745 * testsuite/23_containers/priority_queue/77528.cc: New test.
3746 * testsuite/23_containers/priority_queue/requirements/
3747 explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
3748 * testsuite/23_containers/queue/77528.cc: New test.
3749 * testsuite/23_containers/queue/requirements/explicit_instantiation/
3750 1.cc: Test explicit instantiation with non-DefaultConstructible
3752 * testsuite/23_containers/queue/requirements/explicit_instantiation/
3753 1_c++0x.cc: Replace with 1_c++98.cc.
3754 * testsuite/23_containers/stack/77528.cc: New test.
3755 * testsuite/23_containers/stack/requirements/explicit_instantiation/
3756 1.cc: Test explicit instantiation with non-DefaultConstructible
3758 * testsuite/23_containers/stack/requirements/explicit_instantiation/
3759 1_c++0x.cc: Replace with 1_c++98.cc.
3761 2017-01-10 Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
3763 * include/bits/locale_facets_nonio.tcc
3764 (time_get::_M_extract_via_format): Avoid compilation errors with
3765 non-standard struct tm.
3767 2017-01-10 François Dumont <fdumont@gcc.gnu.org>
3768 Jonathan Wakely <jwakely@redhat.com>
3770 * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
3771 (is_specialization, strip_versioned_namespace): New helpers functions
3772 to work with symbols in the versioned namespace.
3773 (Printer.add_version): Add second name using versioned namespace.
3774 (add_one_template_type_printer, add_one_type_printer): Add second
3775 type printers using versioned namespace.
3776 (register_type_printers): Add template type printer for basic_string.
3777 (build_libstdcxx_dictionary): Remove dead code.
3778 * python/libstdcxx/v6/xmethods.py: Make all matchers look for
3779 versioned namespace.
3780 * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
3782 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
3784 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
3787 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
3788 functions separately on darwin and if they're missing define
3789 _GLIBCXX_NO_C99_ROUNDING_FUNCS.
3790 * config.h.in: Regenerate.
3791 * configure: Regenerate.
3792 * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
3793 (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
3795 * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
3796 to detect correct thread_local destructors.
3797 * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
3800 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
3801 Aditya Kumar <hiraditya@msn.com>
3804 * include/bits/basic_string.tcc
3805 (basic_string::find(const CharT*, size_type, size_type)): Optimize.
3807 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
3809 * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
3810 * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
3812 * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
3813 Include <cassert> header.
3816 * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
3817 * configure: Regenerate.
3819 2017-01-06 Barrett Adair <barrettellisadair@gmail.com>
3820 Jonathan Wakely <jwakely@redhat.com>
3822 * include/std/variant (variant, swap): Replace __and_ usage with fold
3825 2017-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3828 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
3829 * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
3830 GLIBCXX_CHECK_ASSEMBLER_HWCAP.
3831 * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
3833 * aclocal.m4: Regenerate.
3834 * configure: Regenerate.
3835 * Makefile.in, doc/Makefile.in, include/Makefile.in,
3836 libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
3837 src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
3838 src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
3840 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
3842 * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
3845 * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
3846 (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
3847 (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
3848 move function objects.
3849 (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
3850 (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
3851 * testsuite/25_algorithms/sort/78991.cc: New test.
3853 2017-01-05 Jonathan Wakely <jwakely@redhat.com>
3855 * include/bits/std_function.h (function::_Signature_type): Remove.
3856 (function::function(_Functor)): Adjust.
3858 2017-01-05 Tim Shen <timshen@google.com>
3861 * include/std/variant (__gen_vtable_impl): rename __unused to
3862 __dimensions to avoid naming conflict.
3864 2017-01-04 Jonathan Wakely <jwakely@redhat.com>
3867 * config.h.in: Regenerate.
3868 * configure: Likewise.
3869 * configure.ac: Check for __cxa_thread_atexit.
3870 * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
3871 Don't define __cxa_thread_atexit if libc provides it.
3873 2017-01-04 Ville Voutilainen <ville.voutilainen@gmail.com>
3875 Implement 2801, Default-constructibility of unique_ptr.
3876 * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
3877 (unique_ptr::_DeleterConstraint): Likewise.
3878 (unique_ptr()): Constrain.
3879 (unique_ptr(pointer)): Likewise.
3880 (unique_ptr(nullptr_t)): Likewise.
3881 (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
3882 (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
3883 (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
3884 (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
3885 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
3886 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
3887 * testsuite/20_util/unique_ptr/cons/default.cc: New.
3888 * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
3890 2017-01-04 Pauli Nieminen <suokkos@gmail.com>
3891 Jonathan Wakely <jwakely@redhat.com>
3894 * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
3895 * config.h.in: Regenerate.
3896 * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
3897 (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
3898 exports for exception_ptr, nested_exception, and future conditional.
3899 [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
3900 exports for exception_ptr, nested_exception, and future conditional.
3901 * configure: Regenerate.
3902 * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
3903 * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
3904 * libsupc++/eh_atomics.h: New file for internal use only.
3905 (__eh_atomic_inc, __eh_atomic_dec): New.
3906 * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
3907 (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
3908 (rethrow_exception): Use eh_atomics.h reference counting helpers.
3909 * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
3910 * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
3911 * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
3912 * libsupc++/exception_ptr.h: Likewise.
3913 * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
3914 * libsupc++/nested_exception.cc: Remove check for
3915 ATOMIC_INT_LOCK_FREE.
3916 * libsupc++/nested_exception.h: Likewise.
3917 * src/c++11/future.cc: Likewise.
3918 * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
3919 * testsuite/18_support/nested_exception/*: Likewise.
3920 * testsuite/30_threads/async/*: Likewise.
3921 * testsuite/30_threads/future/*: Likewise.
3922 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
3923 * testsuite/30_threads/packaged_task/*: Likewise.
3924 * testsuite/30_threads/promise/*: Likewise.
3925 * testsuite/30_threads/shared_future/*: Likewise.
3927 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
3929 * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
3930 defaults to https; adjust reference.
3932 2017-01-03 Jonathan Wakely <jwakely@redhat.com>
3935 * include/std/thread (thread(const thread&&)): Add deleted
3937 * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
3939 * doc/xml/manual/spine.xml: Update copyright years.
3940 * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
3941 * doc/xml/manual/test.xml: Likewise.
3942 * doc/html/*: Regenerate.
3944 2017-01-01 Gerald Pfeifer <gerald@pfeifer.com>
3946 * doc/xml/faq.xml: Update address of C++ ABI link.
3947 * doc/xml/manual/abi.xml: Ditto.
3949 2017-01-01 Jakub Jelinek <jakub@redhat.com>
3951 Update copyright years.
3953 Copyright (C) 2017 Free Software Foundation, Inc.
3955 Copying and distribution of this file, with or without modification,
3956 are permitted in any medium without royalty provided the copyright
3957 notice and this notice are preserved.