1 2019-02-14 Jonathan Wakely <jwakely@redhat.com>
3 * doc/xml/manual/intro.xml: Document LWG 2566 status.
4 * include/bits/stl_queue.h (queue, priority_queue): Add static
5 assertions to enforce LWG 2566 requirement on value_type.
6 * include/bits/stl_stack.h (stack): Likewise.
9 * testsuite/20_util/enable_shared_from_this/89303.cc: New test.
11 * doc/xml/manual/intro.xml: Document LWG 2735 status.
12 * include/bits/std_abs.h: Add comment about LWG 2735.
13 * testsuite/26_numerics/headers/cstdlib/dr2735.cc: New test.
15 2019-02-13 Jonathan Wakely <jwakely@redhat.com>
18 * include/std/version [__cpp_impl_destroying_delete]
19 (__cpp_lib_destroying_delete): Only define for C++2a and later.
20 * libsupc++/new [__cpp_impl_destroying_delete]
21 (__cpp_lib_destroying_delete): Likewise.
22 (destroying_delete_t, destroying_delete): Likewise, but define even
23 when __cpp_impl_destroying_delete is not defined.
24 * testsuite/18_support/destroying_delete.cc: New test.
26 2019-02-11 Jonathan Wakely <jwakely@redhat.com>
29 * testsuite/17_intro/headers/c++2011/parallel_mode.cc: New test.
30 * testsuite/17_intro/headers/c++2014/parallel_mode.cc: New test.
31 * testsuite/17_intro/headers/c++2017/parallel_mode.cc: New test.
32 * testsuite/28_regex/headers/regex/parallel_mode.cc: Remove.
34 2019-02-09 Jonathan Wakely <jwakely@redhat.com>
37 * include/bits/fs_path.h (path::has_root_name)
38 (path::has_root_directory, path::has_root_path)
39 (path::has_relative_path, path::has_parent_path)
40 (path::has_filename, path::has_stem, path::has_extension)
41 (path::is_absolute, path::is_relative, path::_M_find_extension): Add
43 * src/c++17/fs_path.cc (path::has_root_name)
44 (path::has_root_directory, path::has_root_path)
45 (path::has_relative_path, path::has_parent_path)
46 (path::has_filename, path::_M_find_extension): Add noexcept.
48 2019-02-06 Jonathan Wakely <jwakely@redhat.com>
50 PR libstdc++/89102 (partial)
51 * include/std/type_traits (common_type<>): Define.
52 (common_type<T>): Derive from common_type<T, T>.
53 * testsuite/20_util/common_type/requirements/explicit_instantiation.cc:
54 Test zero-length template argument list.
55 * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc:
56 Test additional single argument cases.
57 * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc:
58 Adjust expected error.
60 2019-02-05 Jonathan Wakely <jwakely@redhat.com>
63 * include/bits/stl_queue.h (queue, priority_queue): Add deduction
65 * include/bits/stl_stack.h (stack): Likewise.
66 * testsuite/23_containers/priority_queue/deduction.cc: New test.
67 * testsuite/23_containers/queue/deduction.cc: New test.
68 * testsuite/23_containers/stack/deduction.cc: New test.
71 * include/std/type_traits (__is_convertible_helper)
72 (__is_convertible_helper<_From, _To, false>): Revert changes to
73 support is_nothrow_convertible.
74 (__is_nt_convertible_helper): New helper.
75 (is_nothrow_convertible): Use __is_nt_convertible_helper.
77 * testsuite/23_containers/vector/modifiers/push_back/49836.cc: Restore
78 use of CopyConsOnlyType, but also test DelAnyAssign for completeness.
81 * include/bits/alloc_traits.h (__is_copy_insertable_impl): Rename to
82 __is_alloc_insertable_impl. Replace single type member with two
83 members, one for each of copy and move insertable.
84 (__is_move_insertable): New trait for internal use.
85 * include/bits/stl_vector.h (vector::_S_nothrow_relocate(true_type))
86 (vector::_S_nothrow_relocate(true_type)): New functions to
87 conditionally check if __relocate_a can throw.
88 (vector::_S_use_relocate()): Dispatch to _S_nothrow_relocate based
89 on __is_move_insertable.
90 (vector::_S_do_relocate): New overloaded functions to conditionally
92 (vector::_S_relocate): New function that dispatches to _S_do_relocate
93 based on _S_use_relocate.
94 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
95 (vector::_M_default_append): Call _S_relocate instead of __relocate_a.
96 * testsuite/23_containers/vector/modifiers/push_back/89130.cc: New.
99 * include/bits/stl_uninitialized.h (__relocate_a_1): Make unused
100 parameter unnamed. Add message to static assertion.
101 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
102 (vector::_M_default_append): Use _GLIBCXX17_CONSTEXPR for if constexpr
105 2019-02-05 Marc Glisse <marc.glisse@inria.fr>
108 * include/bits/stl_uninitialized.h (__is_trivially_relocatable):
110 (__is_bitwise_relocatable): ... to this.
111 (__relocate_a_1): Adapt.
112 * include/bits/stl_deque.h (__is_trivially_relocatable): Rename...
113 (__is_bitwise_relocatable): ... to this.
115 2019-01-30 Jonathan Wakely <jwakely@redhat.com>
118 * src/c++17/fs_path.cc (path::replace_extension): Erase extension from
119 final component as well as from _M_pathname. Append the dot using
120 operator+= instead of only to _M_pathname.
121 (path::_M_find_extension): Reformat slightly.
122 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
125 2019-01-30 Ulrich Drepper <drepper@redhat.com>
127 * doc/xml/manual/status_cxx2020.xml: Update P0600 entry.
129 2019-01-29 Jonathan Wakely <jwakely@redhat.com>
131 * testsuite/26_numerics/headers/complex/synopsis.cc: Remove incorrect
132 constexpr specifiers from arg and proj.
134 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add missing exports for
135 __shared_ptr instantiations used by gcc4-compatible ABI.
137 * include/experimental/forward_list (experimental::erase): Qualify
139 * include/experimental/list (experimental::erase): Likewise.
140 * include/std/forward_list (std::erase): Likewise.
141 * include/std/list (std::erase): Likewise.
143 * testsuite/20_util/reference_wrapper/result_type.cc: Disable for
145 * testsuite/20_util/reference_wrapper/typedefs-2.cc: Likewise.
146 * testsuite/20_util/reference_wrapper/typedefs-3.cc: Likewise.
147 * testsuite/20_util/reference_wrapper/typedefs.cc: Likewise.
148 * testsuite/30_threads/async/54297.cc: Suppress nodiscard warning.
149 * testsuite/ext/array_allocator/26875.cc: Likewise.
150 * testsuite/ext/pool_allocator/allocate_chunk.cc: Likewise.
151 * testsuite/util/replacement_memory_operators.h: Likewise.
152 * testsuite/util/testsuite_allocator.h: Likewise.
154 * include/std/memory_resource (__pool_resource::_M_unpooled): Use
155 normal mode vector, even for debug mode.
156 * include/std/vector [_GLIBCXX_DEBUG] (_GLIBCXX_STD_C::pmr::vector):
157 Define alias template for normal mode vector.
159 2019-01-28 Jonathan Wakely <jwakely@redhat.com>
162 * config/locale/generic/c_locale.h (__convert_from_v)
163 [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
164 * config/os/hpux/os_defines.h: Define _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
165 * include/bits/locale_facets.tcc (num_put::_M_insert_float)
166 [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
168 2019-01-24 Jonathan Wakely <jwakely@redhat.com>
171 * include/bits/stl_vector.h (vector::__use_relocate): Replace static
172 data member with static member function _S_use_relocate().
173 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
174 (vector::_M_default_append): Use _S_use_relocate() instead of
177 * testsuite/27_io/filesystem/path/compare/strings.cc: Only compare
180 2019-01-22 Jonathan Wakely <jwakely@redhat.com>
183 * testsuite/util/testsuite_hooks.h [stderr] (VERIFY): Use fprintf to
184 write to stderr instead of using printf.
186 2019-01-21 Jakub Jelinek <jakub@redhat.com>
189 * include/bits/char_traits.h (__constant_string_p,
190 __constant_char_array_p): Use __builtin_is_constant_evaluated if
193 2019-01-20 Ulrich Drepper <drepper@redhat.com>
195 Implement C++20 P0600r1.
196 * include/backward/hash_map: Add nodiscard attribute to empty.
197 * include/backward/hash_set: Likewise.
198 * backward/hashtable.h: Likewise.
199 * include/bits/basic_string.h: Likewise.
200 * include/bits/forward_list.h: Likewise.
201 * include/bits/hashtable.h: Likewise.
202 * include/bits/regex.h: Likewise.
203 * include/bits/stl_deque.h: Likewise.
204 * include/bits/stl_list.h: Likewise.
205 * include/bits/stl_map.h: Likewise.
206 * include/bits/stl_multimap.h: Likewise.
207 * include/bits/stl_multiset.h: Likewise.
208 * include/bits/stl_queue.h: Likewise.
209 * include/bits/stl_set.h: Likewise.
210 * include/bits/stl_stack.h: Likewise.
211 * include/bits/stl_tree.h: Likewise.
212 * include/bits/stl_vector.h: Likewise.
213 * include/bits/unordered_map.h: Likewise.
214 * include/bits/unordered_set.h: Likewise.
215 * include/debug/array: Likewise.
216 * include/experimental/any: Likewise.
217 * include/experimental/bits/fs_path.h: Likewise.
218 * include/experimental/internet: Likewise.
219 * include/experimental/string_view: Likewise.
220 * include/ext/pb_ds/detail/bin_search_tree_/info_fn_imps.hpp:
222 * include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp:
224 * include/ext/pb_ds/detail/binary_heap_/info_fn_imps.hpp:
226 * include/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp:
228 * include/ext/pb_ds/detail/cc_hash_table_map_/info_fn_imps.hpp:
230 * include/ext/pb_ds/detail/cc_hash_table_map_/size_fn_imps.hpp:
232 * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp:
234 * include/ext/pb_ds/detail/gp_hash_table_map_/info_fn_imps.hpp:
236 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
237 info_fn_imps.hpp: Likewise.
238 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
239 left_child_next_sibling_heap_.hpp: Likewise.
240 * include/ext/pb_ds/detail/list_update_map_/info_fn_imps.hpp:
242 * include/ext/pb_ds/detail/list_update_map_/lu_map_.hpp:
244 * include/ext/pb_ds/detail/ov_tree_map_/info_fn_imps.hpp:
246 * include/ext/pb_ds/detail/ov_tree_map_/ov_tree_map_.hp:
248 * include/ext/pb_ds/detail/pat_trie_/info_fn_imps.hpp:
250 * include/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp:
252 * include/ext/pb_ds/detail/rc_binomial_heap_/rc.hpp:
254 * include/ext/pb_ds/detail/tree_trace_base.hpp: Likewise.
255 * include/ext/pb_ds/trie_policy.hpp: Likewise.
256 * include/ext/rope: Likewise.
257 * include/ext/slist: Likewise.
258 * include/ext/vstring.h: Likewise.
259 * include/profile/array: Likewise.
260 * include/std/array: Likewise.
261 * include/tr1/array: Likewise.
262 * include/tr1/hashtable.h: Likewise.
263 * include/tr1/regex: Likewise.
264 * include/tr2/dynamic_bitset: Likewise.
265 * include/bits/alloc_traits.h: Add nodiscard attribute to
267 * include/experimental/memory_resource: Likewise.
268 * include/ext/alloc_traits.h: Likewise.
269 * include/ext/array_allocator.h: Likewise.
270 * include/ext/bitmap_allocator.h: Likewise.
271 * include/ext/debug_allocator.h: Likewise.
272 * include/ext/extptr_allocator.h: Likewise.
273 * include/ext/mt_allocator.h: Likewise.
274 * include/ext/new_allocator.h: Likewise.
275 * include/ext/pool_allocator.h: Likewise.
276 * include/ext/throw_allocator.h: Likewise.
277 * include/std/scoped_allocator: Likewise.
278 * libsupc++/eh_alloc.cc: Likewise.
279 * include/std/future: Add nodiscard attribute to async.
280 * libsupc++/new: Add nodiscard attribute to new.
282 2019-01-18 Jonathan Wakely <jwakely@redhat.com>
287 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export new symbol.
288 * include/bits/shared_ptr.h
289 (shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...))
290 (allocate_shared): Change to use new tag type.
291 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_eq):
292 Declare new member function.
293 (_Sp_alloc_shared_tag): Define new type.
294 (_Sp_counted_ptr_inplace): Declare __shared_count<_Lp> as a friend.
295 (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Use
296 _Sp_make_shared_tag::_S_eq to check type_info.
297 (__shared_count(Ptr, Deleter),__shared_count(Ptr, Deleter, Alloc)):
298 Constrain to prevent being called with _Sp_alloc_shared_tag.
299 (__shared_count(_Sp_make_shared_tag, const _Alloc&, Args&&...)):
300 Replace constructor with ...
301 (__shared_count(Tp*&, _Sp_alloc_shared_tag<_Alloc>, Args&&...)): Use
302 reference parameter so address of the new object can be returned to
303 the caller. Obtain the allocator from the tag type.
304 (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Replace
306 (__shared_ptr(_Sp_alloc_shared_tag<Alloc>, Args&&...)): Pass _M_ptr
307 to the __shared_count constructor.
308 (__allocate_shared): Change to use new tag type.
309 * src/c++11/shared_ptr.cc (_Sp_make_shared_tag::_S_eq): Define.
311 2019-01-17 Jonathan Wakely <jwakely@redhat.com>
313 * src/c++17/fs_ops.cc
314 (equivalent(const path&, const path&, error_code&))
315 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use GetFileInformationByHandle to
316 compare files instead of relying on incomplete info returned by stat.
319 * src/c++17/fs_ops.cc (absolute(const path&, error_code&)): Do nothing
320 if the path is already absolute.
321 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize root-directory.
322 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Pass error_code to current_path.
325 * src/c++17/fs_ops.cc (canonical(const path&, error_code&))
326 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize path, to match behaviour
327 of filesystem::exists.
328 (create_directories(const path&, error_code&)): Add assertions.
329 (status(const path&, error_code&)) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]:
330 Add workaround for bug in _wstat for paths with trailing slash.
331 * testsuite/27_io/filesystem/operations/create_directories.cc: Adjust
332 for expected behaviour on mingw.
333 * testsuite/experimental/filesystem/operations/create_directories.cc:
335 * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Use
336 "TMP" instead of "TMPDIR" and clean environment before each test. Do
337 not test permissions on mingw targets.
339 2019-01-16 Jonathan Wakely <jwakely@redhat.com>
341 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add exports for fstream
342 constructors and open members taking wide strings. Fix patterns for
343 filesystem::path members to match wstring_view parameters. Add
344 exports for shared_ptr members used by directory iterators.
345 * src/c++17/fs_ops.cc (remove(const path&, error_code&)): Clear the
346 error code parameter if the file doesn't exist.
347 * src/filesystem/ops.cc (remove(const path&, error_code&)):
349 * testsuite/27_io/filesystem/operations/canonical.cc: Fix expected
350 values for mingw targets, where "/" is not an absolute path. Do not
351 test symlinks on mingw targets.
352 * testsuite/experimental/filesystem/operations/canonical.cc: Likewise.
353 * testsuite/27_io/filesystem/operations/copy.cc: Do not test symlinks
355 * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
356 * testsuite/27_io/filesystem/operations/create_directories.cc: Check
357 that each component of the path is created.
358 * testsuite/experimental/filesystem/operations/create_directories.cc:
360 * testsuite/27_io/filesystem/operations/exists.cc: Do not test
361 permissions on mingw targets.
362 * testsuite/experimental/filesystem/operations/exists.cc: Likewise.
363 * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
364 * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise.
365 * testsuite/27_io/filesystem/operations/permissions.cc: XFAIL for
367 * testsuite/experimental/filesystem/operations/permissions.cc:
369 * testsuite/27_io/filesystem/operations/remove.cc: Do not test
370 symlinks or permissions on mingw targets.
371 * testsuite/experimental/filesystem/operations/remove.cc: Likewise.
372 * testsuite/27_io/filesystem/operations/remove_all.cc: Do not test
373 symlinks on mingw targets.
374 * testsuite/experimental/filesystem/operations/remove_all.cc:
376 * testsuite/27_io/filesystem/operations/status.cc: Do not test
377 permissions on mingw targets.
378 * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Do not
379 test symlinks on mingw targets.
380 * testsuite/experimental/filesystem/operations/space.cc: Fix test
383 2019-02-14 Ulrich Drepper <drepper@redhat.com>
386 Warn about unused comparisons of shared_ptr/unique_ptr
387 * include/bits/c++config [_GLIBCXX_NODISCARD]: Define.
388 * include/bits/shared_ptr.h: Use it for operator ==, !=,
389 <, <=, >, >= for shared_ptr.
390 * include/bits/unique_ptr.h: Likewise for unique_ptr.
392 2019-01-15 Jonathan Wakely <jwakely@redhat.com>
394 * include/bits/shared_ptr_base.h (__cpp_lib_shared_ptr_arrays): Define
395 as 201611L, because P0497R0 changes are supported.
396 * include/std/version (__cpp_lib_shared_ptr_arrays): Likewise.
398 * include/bits/erase_if.h [__cplusplus > 201703L]
399 (__cpp_lib_erase_if): Only define for C++2a.
400 * include/std/iterator [__cplusplus >= 201402L && !_GLIBCXX_DEBUG]
401 (__cpp_lib_null_iterators): Define.
402 * include/std/version [__cplusplus >= 201402L && !_GLIBCXX_DEBUG]
403 (__cpp_lib_null_iterators): Define.
404 [__cpp_impl_destroying_delete] (__cpp_lib_destroying_delete): Define.
406 * doc/xml/manual/status_cxx2017.xml: Document P0032R3 and P0307R2
408 * include/bits/stl_uninitialized.h (__cpp_lib_raw_memory_algorithms):
410 * include/std/any (__cpp_lib_any): Define as 201606L, because P0032R3
411 changes are supported.
412 * include/std/optional (__cpp_lib_optional): Likewise.
413 * include/std/variant (__cpp_lib_variant): Likewise.
414 * include/std/version [!__STRICT_ANSI__]
415 (__cpp_lib_uncaught_exceptions): Define as long integer.
416 [__cplusplus >= 201703L] (__cpp_lib_any)
417 (__cpp_lib_raw_memory_algorithms, __cpp_lib_uncaught_exceptions)
418 (__cpp_lib_variant): Define for C++17.
419 [__cplusplus >= 201703L] (__cpp_lib_optional): Update value and define
421 * libsupc++/exception (__cpp_lib_uncaught_exceptions): Define as long
424 * doc/xml/manual/status_cxx2020.xml: Update P1123R0 status.
426 2019-01-12 Jonathan Wakely <jwakely@redhat.com>
430 * src/filesystem/path.cc: Fix typo. If first path is empty, show []
432 * testsuite/experimental/filesystem/filesystem_error/cons.cc: New
435 2019-01-11 Jonathan Wakely <jwakely@redhat.com>
437 * doc/xml/manual/intro.xml: Include new section.
438 * doc/xml/manual/status_cxx2017.xml: Document more
439 implementation-defined properties of the library.
440 * doc/xml/manual/status_cxx2020.xml: Document C++2a status.
441 * doc/html/*: Regenerate.
443 * include/bits/refwrap.h [__cplusplus > 201703L]
444 (_Refwrap_base_arg1, _Refwrap_base_arg2, _Reference_wrapper_base)
445 (_Reference_wrapper_base_memfun): Do not define for C++2a.
446 (reference_wrapper): Do not derive from _Reference_wrapper_base_memfun
448 (reference_wrapper::operator()): Add static assertion.
449 * testsuite/20_util/reference_wrapper/incomplete.cc: New test.
451 * include/std/chrono (duration_values::zero(), duration_values::min())
452 (duration_values::max()): Add noexcept.
453 (duration::zero(), duration::min(), duration::max()): Likewise.
454 (time_point::zero(), time_point::min(), time_point::max()): Likewise.
455 * testsuite/20_util/duration/requirements/noexcept.cc: New test.
456 * testsuite/20_util/time_point/requirements/noexcept.cc: New test.
458 * include/std/version (__cpp_lib_erase_if): Move to C++20 group.
460 2019-01-11 Jakub Jelinek <jakub@redhat.com>
462 * include/std/type_traits (__cpp_lib_is_constant_evaluated): Define.
463 * include/std/version (__cpp_lib_is_constant_evaluated): Define.
465 2019-01-11 Jonathan Wakely <jwakely@redhat.com>
468 * include/bits/functional_hash.h (hash<nullptr_t>): Define
469 specialization for C++17 (P0513R0, LWG 2817).
470 * testsuite/20_util/hash/nullptr.cc: New test.
473 * config/abi/pre/gnu.ver (GLIBCXX_3.4.6): Remove unused duplicate
474 pattern for std::basic_stringbuf::str().
476 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Correct recent changes to
477 basic_ostream::operator<< patterns.
479 2019-01-10 Jonathan Wakely <jwakely@redhat.com>
481 * testsuite/27_io/filesystem/operations/last_write_time.cc: Fix
482 test failures on targets with 32-bit time_t.
484 * include/bits/erase_if.h: Define __cpp_lib_erase_if.
485 * include/std/deque: Likewise.
486 * include/std/forward_list: Likewise.
487 * include/std/list: Likewise.
488 * include/std/string: Likewise.
489 * include/std/vector: Likewise.
490 * include/std/version: Likewise.
491 * testsuite/21_strings/basic_string/erasure.cc: Test macro.
492 * testsuite/23_containers/deque/erasure.cc: Likewise.
493 * testsuite/23_containers/forward_list/erasure.cc: Likewise.
494 * testsuite/23_containers/list/erasure.cc: Likewise.
495 * testsuite/23_containers/map/erasure.cc: Likewise.
496 * testsuite/23_containers/set/erasure.cc: Likewise.
497 * testsuite/23_containers/unordered_map/erasure.cc: Likewise.
498 * testsuite/23_containers/unordered_set/erasure.cc: Likewise.
499 * testsuite/23_containers/vector/erasure.cc: Likewise.
501 * include/experimental/internet [AI_NUMERICSERV]
502 (resolver_base::numeric_service): Define conditionally.
503 * testsuite/experimental/net/internet/resolver/base.cc: Test it
505 * testsuite/experimental/net/internet/resolver/ops/lookup.cc:
508 2019-01-10 Ville Voutilainen <ville.voutilainen@gmail.com>
509 Jonathan Wakely <jwakely@redhat.com>
512 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten patterns.
513 (GLIBCXX_3.4.26): Add new exports.
514 * include/Makefile.am: Add ostream-inst.cc. Move string-inst.cc to
515 correct list of sources.
516 * include/Makefile.in: Regenerate.
517 * include/std/ostream (operator<<(nullptr_t)): New member function.
518 * src/c++17/ostream-inst.cc: New file.
519 * testsuite/27_io/basic_ostream/inserters_other/char/lwg2221.cc: New
522 2019-01-10 Jonathan Wakely <jwakely@redhat.com>
524 * testsuite/util/testsuite_fs.h (nonexistent_path): Include name
525 of the source file containing the caller.
526 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Remove
527 directories created by test.
528 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
530 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
532 * testsuite/experimental/filesystem/iterators/
533 recursive_directory_iterator.cc: Likewise.
535 2019-01-10 Jakub Jelinek <jakub@redhat.com>
537 PR tree-optimization/88775
538 * include/bits/stl_function.h (greater<_Tp*>::operator(),
539 less<_Tp*>::operator(), greater_equal<_Tp*>::operator(),
540 less_equal<_Tp*>::operator()): Use __builtin_is_constant_evaluated
541 instead of __builtin_constant_p if available. Don't bother with
542 the pointer comparison in C++11 and earlier.
544 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
548 * include/ext/bitmap_allocator.h: Mechanically replace "can not"
551 2019-01-09 Jonathan Wakely <jwakely@redhat.com>
553 * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix expected output
554 for filesystem::path. Give variables more distinctive names.
556 * include/std/optional (_Optional_payload_base::_M_copy_assign): New
557 member function to perform non-trivial assignment.
558 (_Optional_payload_base::_M_move_assign): Likewise.
559 (_Optional_payload<T, true, false, true>::operator=)
560 (_Optional_payload<T, true, true, false>::operator=)
561 (_Optional_payload<T, true, false, false>::operator=): Call
562 _M_copy_assign and/or _M_move_assign to do non-trivial assignments.
565 * testsuite/26_numerics/complex/operators/more_constexpr.cc: Do not
566 test std::complex<long double> if long double format is IBM128.
567 * testsuite/26_numerics/complex/requirements/more_constexpr.cc:
570 2019-01-08 Jonathan Wakely <jwakely@redhat.com>
572 * testsuite/libstdc++-prettyprinters/compat.cc: Test printer support
573 for old std::unique_ptr layout.
574 * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix std::variant test
575 to become valueless. Add filesystem::path tests.
578 * include/std/optional (_Optional_payload_base): New class template
579 for common code hoisted from _Optional_payload specializations. Use
580 a template for the union, to allow a partial specialization for
581 types with non-trivial destructors. Add constructors for in-place
582 initialization to the union.
583 (_Optional_payload(bool, const _Optional_payload&)): Use _M_construct
584 to perform non-trivial copy construction, instead of relying on
585 non-standard copy elision in a delegating constructor.
586 (_Optional_payload(bool, _Optional_payload&&)): Likewise for
587 non-trivial move construction.
588 (_Optional_payload): Derive from _Optional_payload_base and use it
589 for everything except the non-trivial assignment operators, which are
591 (_Optional_payload<false, C, M>): Derive from the specialization
592 _Optional_payload<true, false, false> and add a destructor.
593 (_Optional_base_impl::_M_destruct, _Optional_base_impl::_M_reset):
594 Forward to corresponding members of _Optional_payload.
595 (_Optional_base_impl::_M_is_engaged, _Optional_base_impl::_M_get):
596 Hoist common members from _Optional_base.
597 (_Optional_base): Make all members and base class public.
598 (_Optional_base::_M_get, _Optional_base::_M_is_engaged): Move to
600 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter): Add
601 support for new std::optional layout.
602 * testsuite/libstdc++-prettyprinters/compat.cc: New test.
605 * include/bits/locale_conv.h: Use <> for includes not "".
606 * include/ext/random: Likewise.
607 * include/ext/vstring.h: Likewise.
609 2019-01-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
611 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten existing patterns.
612 (GLIBCXX_3.4.21): Likewise.
614 2019-01-08 Jonathan Wakely <jwakely@redhat.com>
617 * src/filesystem/ops.cc (last_write_time): Fix preprocessor condition
618 to match the one that controls whether utimbuf and utime are declared.
620 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
623 * include/bits/char_traits.h (char_traits::move): Do not pass null
625 * include/bits/locale_facets.h
626 (ctype<char>::widen(const char*, const char*, char*)): Do not
627 pass null pointers to memcpy.
628 (ctype<char>::narrow(const char*, const char*, char, char*)):
630 (ctype<char>::do_widen(const char*, const char*, char*)):
632 (ctype<char>::do_narrow(const char*, const char*, char, char*)):
635 * doc/xml/manual/spine.xml: Update copyright years.
636 * doc/xml/manual/status_cxx2017.xml: Adjust note about -lstdc++fs.
637 * doc/xml/manual/using.xml: Remove requirement to link with -lstdc++fs
638 for C++17 filesystem library.
639 * doc/html/*: Regenerate.
641 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for truncate.
642 * config.h.in: Regenerate.
643 * config/abi/pre/gnu.ver: Order patterns for filesystem operations
644 alphabetically and add missing entries for copy_symlink,
645 hard_link_count, rename, and resize_file.
646 * configure: Regenerate.
647 * src/c++17/fs_ops.cc (resize_file): Remove #if so posix::truncate is
648 used unconditionally.
649 * src/filesystem/ops-common.h (__gnu_posix::truncate)
650 [!_GLIBCXX_HAVE_TRUNCATE]: Provide fallback definition that only
651 supports truncating to zero length.
652 * testsuite/27_io/filesystem/operations/all.cc: New test.
653 * testsuite/27_io/filesystem/operations/resize_file.cc: New test.
655 2019-01-06 Jonathan Wakely <jwakely@redhat.com>
658 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for utime and
659 lstat and define _GLIBCXX_USE_UTIME and _GLIBCXX_USE_LSTAT.
660 * config.h.in: Regenerate.
661 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export symbols for
662 remaining std::filesystem types and functions.
663 * configure: Regenerate.
664 * src/c++17/Makefile.am: Add C++17 filesystem sources.
665 * src/c++17/Makefile.in: Regenerate.
666 * src/c++17/cow-fs_dir.cc: Move src/filesystem/cow-std-dir.cc to
667 here, and change name of included file.
668 * src/c++17/cow-fs_ops.cc: Move src/filesystem/cow-std-ops.cc to
669 here, and change name of included file.
670 * src/c++17/fs_dir.cc: Move src/filesystem/std-dir.cc to here. Change
671 path to dir-common.h.
672 * src/c++17/fs_ops.cc: Move src/filesystem/std-ops.cc to here. Change
673 path to ops-common.h. Disable -Wunused-parameter warnings.
674 (internal_file_clock): Define unconditionally.
675 [!_GLIBCXX_HAVE_SYS_STAT_H] (internal_file_clock::from_stat): Do not
677 (do_copy_file, do_space): Move definitions to ops.common.h.
678 (copy, file_size, hard_link_count, last_write_time, space): Only
679 perform operation when _GLIBCXX_HAVE_SYS_STAT_H is defined, otherwise
681 (last_write_time, read_symlink): Remove unused attributes from
683 * src/filesystem/Makefile.am: Remove C++17 filesystem sources.
684 * src/filesystem/Makefile.in: Regenerate.
685 * src/filesystem/cow-std-dir.cc: Move to src/c++17/cow-fs_dir.cc.
686 * src/filesystem/cow-std-ops.cc: Move to src/c++17/cow-fs_ops.cc.
687 * src/filesystem/std-dir.cc: Move to src/c++17/fs_dir.cc.
688 * src/filesystem/std-ops.cc: Move to src/c++17/fs_ops.cc.
689 * src/filesystem/dir-common.h [!_GLIBCXX_HAVE_DIRENT_H]: Define
690 dummy types and functions instead of using #error.
691 * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H]: Use #error.
692 * src/filesystem/ops-common.h [!_GLIBCXX_USE_LSTAT] (lstat): Define
694 [!_GLIBCXX_HAVE_UNISTD_H]: Define dummy types and functions.
695 (do_copy_file, do_space): Move definitions here from std-ops.cc.
696 * src/filesystem/ops.cc: Adjust calls to do_copy_file and do_space
697 to account for new namespace.
698 * testsuite/27_io/filesystem/directory_entry/86597.cc: Remove
699 -lstdc++fs from dg-options.
700 * testsuite/27_io/filesystem/directory_entry/lwg3171.cc: Likewise.
701 * testsuite/27_io/filesystem/file_status/1.cc: Likewise.
702 * testsuite/27_io/filesystem/filesystem_error/cons.cc: Likewise.
703 * testsuite/27_io/filesystem/filesystem_error/copy.cc: Likewise.
704 * testsuite/27_io/filesystem/iterators/directory_iterator.cc:
706 * testsuite/27_io/filesystem/iterators/pop.cc: Likewise.
707 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
709 * testsuite/27_io/filesystem/operations/absolute.cc: Likewise.
710 * testsuite/27_io/filesystem/operations/canonical.cc: Likewise.
711 * testsuite/27_io/filesystem/operations/copy.cc: Likewise.
712 * testsuite/27_io/filesystem/operations/copy_file.cc: Likewise.
713 * testsuite/27_io/filesystem/operations/create_directories.cc:
715 * testsuite/27_io/filesystem/operations/create_directory.cc: Likewise.
716 * testsuite/27_io/filesystem/operations/create_symlink.cc: Likewise.
717 * testsuite/27_io/filesystem/operations/current_path.cc: Likewise.
718 * testsuite/27_io/filesystem/operations/equivalent.cc: Likewise.
719 * testsuite/27_io/filesystem/operations/exists.cc: Likewise.
720 * testsuite/27_io/filesystem/operations/file_size.cc: Likewise.
721 * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
722 * testsuite/27_io/filesystem/operations/last_write_time.cc: Likewise.
723 * testsuite/27_io/filesystem/operations/permissions.cc: Likewise.
724 * testsuite/27_io/filesystem/operations/proximate.cc: Likewise.
725 * testsuite/27_io/filesystem/operations/read_symlink.cc: Likewise.
726 * testsuite/27_io/filesystem/operations/relative.cc: Likewise.
727 * testsuite/27_io/filesystem/operations/remove.cc: Likewise.
728 * testsuite/27_io/filesystem/operations/remove_all.cc: Likewise.
729 * testsuite/27_io/filesystem/operations/space.cc: Likewise.
730 * testsuite/27_io/filesystem/operations/status.cc: Likewise.
731 * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
732 * testsuite/27_io/filesystem/operations/temp_directory_path.cc:
734 * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Likewise.
738 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Make various patterns for
739 typeinfo and vtables less greedy.
740 (GLIBCXX_3.4.26): Export symbols for std::filesystem::path.
741 * src/c++17/Makefile.am: Add fs_path.cc and cow-fs_path.cc.
742 * src/c++17/Makefile.in: Regenerate.
743 * src/c++17/cow-fs_path.cc: Move src/filesystem/cow-std-path.cc to
744 here, and change name of included file.
745 * src/c++17/fs_path.cc: Move src/filesystem/std-path.cc to here.
746 * src/filesystem/Makefile.am: Remove std-path.cc and cow-std-path.cc
748 * src/filesystem/Makefile.in: Regenerate.
749 * src/filesystem/cow-std-path.cc: Move to src/c++17/cow-fs_path.cc.
750 * src/filesystem/std-path.cc: Move to src/c++17/fs_path.cc.
751 * testsuite/27_io/filesystem/path/append/path.cc: Remove -lstdc++fs
752 from dg-options and remove dg-require-filesystem-ts.
753 * testsuite/27_io/filesystem/path/append/source.cc: Likewise.
754 * testsuite/27_io/filesystem/path/assign/assign.cc: Likewise.
755 * testsuite/27_io/filesystem/path/assign/copy.cc: Likewise.
756 * testsuite/27_io/filesystem/path/compare/compare.cc: Likewise.
757 * testsuite/27_io/filesystem/path/compare/lwg2936.cc: Likewise.
758 * testsuite/27_io/filesystem/path/compare/path.cc: Likewise.
759 * testsuite/27_io/filesystem/path/compare/strings.cc: Likewise.
760 * testsuite/27_io/filesystem/path/concat/path.cc: Likewise.
761 * testsuite/27_io/filesystem/path/concat/strings.cc: Likewise.
762 * testsuite/27_io/filesystem/path/construct/80762.cc: Likewise.
763 * testsuite/27_io/filesystem/path/construct/copy.cc: Likewise.
764 * testsuite/27_io/filesystem/path/construct/default.cc: Likewise.
765 * testsuite/27_io/filesystem/path/construct/format.cc: Likewise.
766 * testsuite/27_io/filesystem/path/construct/locale.cc: Likewise.
767 * testsuite/27_io/filesystem/path/construct/range.cc: Likewise.
768 * testsuite/27_io/filesystem/path/construct/string_view.cc: Likewise.
769 * testsuite/27_io/filesystem/path/decompose/extension.cc: Likewise.
770 * testsuite/27_io/filesystem/path/decompose/filename.cc: Likewise.
771 * testsuite/27_io/filesystem/path/decompose/parent_path.cc: Likewise.
772 * testsuite/27_io/filesystem/path/decompose/relative_path.cc: Likewise.
773 * testsuite/27_io/filesystem/path/decompose/root_directory.cc:
775 * testsuite/27_io/filesystem/path/decompose/root_name.cc: Likewise.
776 * testsuite/27_io/filesystem/path/decompose/root_path.cc: Likewise.
777 * testsuite/27_io/filesystem/path/decompose/stem.cc: Likewise.
778 * testsuite/27_io/filesystem/path/generation/normal.cc: Likewise.
779 * testsuite/27_io/filesystem/path/generation/normal2.cc: Likewise.
780 * testsuite/27_io/filesystem/path/generation/proximate.cc: Likewise.
781 * testsuite/27_io/filesystem/path/generation/relative.cc: Likewise.
782 * testsuite/27_io/filesystem/path/generic/generic_string.cc: Likewise.
783 * testsuite/27_io/filesystem/path/itr/components.cc: Likewise.
784 * testsuite/27_io/filesystem/path/itr/traversal.cc: Likewise.
785 * testsuite/27_io/filesystem/path/modifiers/clear.cc: Likewise.
786 * testsuite/27_io/filesystem/path/modifiers/make_preferred.cc:
788 * testsuite/27_io/filesystem/path/modifiers/remove_filename.cc:
790 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
792 * testsuite/27_io/filesystem/path/modifiers/replace_filename.cc:
794 * testsuite/27_io/filesystem/path/modifiers/swap.cc: Likewise.
795 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
796 * testsuite/27_io/filesystem/path/nonmember/append.cc: Likewise.
797 * testsuite/27_io/filesystem/path/nonmember/hash_value.cc: Likewise.
798 * testsuite/27_io/filesystem/path/query/empty.cc: Likewise.
799 * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise.
800 * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise.
801 * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise.
802 * testsuite/27_io/filesystem/path/query/has_relative_path.cc: Likewise.
803 * testsuite/27_io/filesystem/path/query/has_root_directory.cc:
805 * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise.
806 * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise.
807 * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise.
808 * testsuite/27_io/filesystem/path/query/is_absolute.cc: Likewise.
809 * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise.
812 * include/std/variant (_Variant_storage<true, _Types...>::_M_valid):
813 Check is_trivially_copyable instead of is_scalar.
814 (variant::emplace<N, Args>(Args&&...)): If construction of the new
815 contained value can throw and its type is trivially copyable then
816 construct into a temporary variant and move from it, to provide the
817 strong exception safety guarantee.
818 (variant::emplace<N, U, Args>(initializer_list<U>, Args&&...)):
820 * testsuite/20_util/variant/87431.cc: New test.
821 * testsuite/20_util/variant/run.cc: Adjust test so that throwing
822 conversion causes valueless state.
825 * testsuite/17_intro/headers/c++1998/charset.cc: New test.
826 * testsuite/17_intro/headers/c++2011/charset.cc: New test.
827 * testsuite/17_intro/headers/c++2014/charset.cc: New test.
828 * testsuite/17_intro/headers/c++2017/charset.cc: New test.
829 * testsuite/17_intro/headers/c++2020/charset.cc: New test.
831 2019-01-05 Jonathan Wakely <jwakely@redhat.com>
833 * include/bits/fs_fwd.h (__file_clock): Define new clock.
834 (file_time_type): Redefine in terms of __file_clock.
835 * src/filesystem/ops-common.h (file_time): Add FIXME comment about
837 * src/filesystem/std-ops.cc (is_set(perm_options, perm_options)): Give
839 (internal_file_lock): New helper type for accessing __file_clock.
840 (do_copy_file): Use internal_file_lock to convert system time to
842 (last_write_time(const path&, error_code&)): Likewise.
843 (last_write_time(const path&, file_time_type, error_code&)): Likewise.
845 2019-01-04 Jonathan Wakely <jwakely@redhat.com>
847 * config/abi/pre/gnu.ver (GLIBCXX_3.4.21): Make patterns less greedy
848 for const member functions of std::basic_string.
849 (GLIBCXX_3.4.26): Export member functions of std::basic_string added
851 * include/bits/basic_string.h (basic_string(__sv_wrapper, const A&)):
852 Make non-standard constructor private.
853 [!_GLIBCXX_USE_CXX11_ABI] (basic_string(__sv_wrapper, const A&)):
855 * include/bits/basic_string.tcc (std::string, std::wstring): Declare
856 explicit instantiations for C++17 as well as earlier dialects.
857 * src/c++17/Makefile.am: Add new source files.
858 * src/c++17/Makefile.in: Regenerate.
859 * src/c++17/cow-string-inst.cc: New file defining explicit
860 instantiations for basic_string member functions added in C++17.
861 * src/c++17/string-inst.cc: Likewise.
863 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export allocator-extended
864 copy/move constructors for old std::basic_string.
865 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
866 (basic_string::reference, basic_string::const_reference): Define
867 as plain references for C++11 and later.
868 (basic_string::basic_string()): Put constructor body outside
869 preprocessor conditional groups.
870 (basic_string::basic_string(basic_string&&)): Move _Alloc_hider
871 instead of copying it.
872 (basic_string::basic_string(const basic_string&, const _Alloc&)):
874 (basic_string::basic_string(basic_string&&, const _Alloc&)):
876 * include/bits/fs_path.h [!_GLIBCXX_USE_CXX11_ABI]: Remove special
877 cases for old basic_string.
878 * testsuite/21_strings/basic_string/cons/char/8.cc: Test
879 allocator-extended constructors unconditionally. Add extra members to
880 allocator type when using old string ABI.
881 * testsuite/21_strings/basic_string/allocator/71964.cc: Enable test
883 * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise.
885 * testsuite/23_containers/list/61347.cc: Avoid spurious failure when
886 -fno-inline added to test flags.
888 * testsuite/21_strings/basic_string/requirements/
889 explicit_instantiation/debug.cc: Remove XFAIL for old ABI.
891 * testsuite/27_io/filesystem/filesystem_error/copy.cc: Fix static
892 assertion failures with old std::string ABI.
894 * include/bits/fs_path.h (path::_List::erase): Replace both overloads
896 (path::pop_back(), path::_M_erase_from(const_iterator)): New member
897 functions that will only erase elements at the end.
898 * src/filesystem/std-path.cc (path::_List::_Impl::pop_back()): Define.
899 (path::_List::_Impl::_M_erase_from(const_iterator)): Define.
900 (path::_List::operator=(const _List&)): Use _M_erase_from(p) instead
902 (path::_List::pop_back()): Define.
903 (path::_List::_M_erase_from(const_iterator)): Define.
904 (path::operator/=(const path&)): Use pop_back to remove last component
905 and _M_erase_from to remove multiple components.
906 (path::_M_append(basic_string_view<value_type>)): Likewise.
907 (path::operator+=(const path&)): Likewise.
908 (path::_M_concat(basic_string_view<value_type>)): Likewise.
909 (path::remove_filename()): Likewise.
910 (path::lexically_normal()): Use _List::_Impl iterators instead of
911 path::iterator. Use pop_back to remove components from the end. Clear
912 trailing filename, instead of using erase(const_iterator) to remove
913 a non-final component.
914 * testsuite/27_io/filesystem/path/generation/normal.cc: Test
916 * testsuite/27_io/filesystem/path/generation/normal2.cc: New test.
918 * src/filesystem/std-path.cc (path::operator+=(const path&)): Fix
919 incorrect treatment of empty filename after trailing slash.
920 * testsuite/27_io/filesystem/path/concat/path.cc: Test problem case.
922 * testsuite/21_strings/basic_string/modifiers/assign/char/
923 move_assign_optim.cc: Avoid spurious failure when -fno-inline added
925 * testsuite/21_strings/basic_string/modifiers/assign/wchar_t/
926 move_assign_optim.cc: Likewise.
928 2019-01-03 Jonathan Wakely <jwakely@redhat.com>
929 Jakub Jelinek <jakub@redhat.com>
932 * include/experimental/memory: Replace UTF-8 quote characters.
933 * include/std/future: Replace UTF-8 "em dash" characters.
935 2019-01-03 Jonathan Wakely <jwakely@redhat.com>
938 * include/bits/forward_list.h: Replace UTF-8 "ligature fi" character.
939 * include/debug/forward_list: Likewise.
940 * include/experimental/bits/shared_ptr.h: Remove UTF-8 "section sign"
942 * include/experimental/chrono: Likewise.
943 * include/experimental/functional: Likewise.
944 * include/experimental/ratio: Likewise.
945 * include/experimental/system_error: Likewise.
946 * include/experimental/tuple: Likewise.
947 * include/experimental/type_traits: Likewise.
948 * include/parallel/workstealing.h: Replace UTF-8 "en dash" character.
949 * include/parallel/multiseq_selection.h: Likewise.
952 * config/abi/pre/gnu.ver: Add missing exports.
953 * testsuite/22_locale/collate_byname/88681.cc: New test.
954 * testsuite/22_locale/time_get/get/char/88681.cc: New test.
955 * testsuite/22_locale/time_get/get/wchar_t/88681.cc: New test.
957 2019-01-02 Jonathan Wakely <jwakely@redhat.com>
959 * testsuite/23_containers/map/cons/deduction.cc: Test deduction from
960 initializer_list<value_type> and from input iterator ranges.
961 * testsuite/23_containers/multimap/cons/deduction.cc: Likewise.
963 * testsuite/experimental/string_view/element_access/char/empty.cc:
964 Fix year range in copyright header.
966 2019-01-02 Joel Brobecker <brobecker@adacore.com>
968 * testsuite/21_strings/basic_string_view/element_access/char/empty.cc:
969 Fix year range in copyright header.
971 2019-01-01 Jakub Jelinek <jakub@redhat.com>
973 Update copyright years.
975 Copyright (C) 2019 Free Software Foundation, Inc.
977 Copying and distribution of this file, with or without modification,
978 are permitted in any medium without royalty provided the copyright
979 notice and this notice are preserved.