]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/ChangeLog
2019-02-26 Harald Anlauf <anlauf@gmx.de>
[thirdparty/gcc.git] / libstdc++-v3 / ChangeLog
CommitLineData
c9f61a64 12019-02-24 Jonathan Wakely <jwakely@redhat.com>
2
3 PR libstdc++/89416
4 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Make
5 copy and move members public.
6
61e2d6f7 72019-02-23 Jonathan Wakely <jwakely@redhat.com>
8
87798f3f 9 * include/std/type_traits (__underlying_type_impl): New helper to
10 make underlying_type SFINAE-friendly.
11 (underlying_type): Derive from __underlying_type_impl.
12 * testsuite/20_util/underlying_type/requirements/typedefs-3.cc: New
13 test.
14
61e2d6f7 15 PR libstdc++/89446
16 * include/bits/char_traits.h (__constant_char_array): Check index is
17 in range before dereferencing.
18 (char_traits<char>::compare, char_traits<char>::find)
19 (char_traits<char8_t>::compare, char_traits<char8_t>::find): Return
20 immediately if n is zero.
21 (char_traits<wchar_t>::compare, char_traits<wchar_t>::find): Likewise.
22 Remove workarounds for PR 67026.
23 * testsuite/21_strings/basic_string_view/operators/char/89446.cc:
24 New test.
25 * testsuite/21_strings/basic_string_view/operators/wchar_t/89446.cc:
26 New test.
27
90a443b3 282019-02-22 Eric Botcazou <ebotcazou@adacore.com>
29
30 * config/abi/post/sparc64-linux-gnu/baseline_symbols.txt: Adjust.
31 * config/abi/post/sparc64-linux-gnu/32/baseline_symbols.txt: Likewise.
32
98485ce3 332019-02-22 Jakub Jelinek <jakub@redhat.com>
34
35 PR libstdc++/89402
36 * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Change return
37 type to std::size_t and argument to type to long double.
38
26b4fc38 392019-02-22 Eric Botcazou <ebotcazou@adacore.com>
40
41 * configure.host (abi_baseline_pair): Adjust for SPARC64/Linux.
42 * config/abi/post/sparc64-linux-gnu: New directory.
43 * config/abi/post/sparc64-linux-gnu/baseline_symbols.txt: New file.
44 * config/abi/post/sparc64-linux-gnu/32: New directory.
45 * config/abi/post/sparc64-linux-gnu/32/baseline_symbols.txt: New file.
46
4f847a8e 472019-02-21 Jonathan Wakely <jwakely@redhat.com>
48
49 * testsuite/29_atomics/headers/atomic/types_std_c++20.cc: New test.
50 * testsuite/29_atomics/headers/atomic/types_std_c++20_neg.cc: New
51 test.
52
aad651b3 532019-02-22 Tom Honermann <tom@honermann.net>
54
55 * python/libstdcxx/v6/printers.py (register_type_printers): Add type
56 printers for u8string and u8string_view.
57
c783b3cc 582019-02-22 Tom Honermann <tom@honermann.net>
59
60 * testsuite/18_support/byte/ops.cc: Validate
61 std::to_integer<char8_t>, std::to_integer<char16_t>, and
62 std::to_integer<char32_t>.
63 * testsuite/18_support/numeric_limits/dr559.cc: Validate
64 std::numeric_limits<char8_t>.
65 * testsuite/18_support/numeric_limits/lowest.cc: Validate
66 std::numeric_limits<char8_t>::lowest().
67 * testsuite/18_support/numeric_limits/max_digits10.cc: Validate
68 std::numeric_limits<char8_t>::max_digits10.
69 * testsuite/18_support/type_info/fundamental.cc: Validate
70 typeinfo for char8_t.
71 * testsuite/20_util/from_chars/1_c++20_neg.cc: New test, validating
72 std::from_chars with char8_t.
73 * testsuite/20_util/hash/requirements/explicit_instantiation.cc:
74 Validate explicit instantiation of std::hash<char8_t>.
75 * testsuite/20_util/is_integral/value.cc: Validate
76 std::is_integral<char8_t>.
77 * testsuite/20_util/make_signed/requirements/typedefs-4.cc:
78 Validate std::make_signed<char8_t>.
79 * testsuite/21_strings/basic_string/cons/char/deduction.cc:
80 Validate u8string construction from char8_t sources.
81 * testsuite/21_strings/basic_string/types/pmr_typedefs.cc: Validate
82 std::pmr::u8string.
83 * testsuite/21_strings/basic_string_view/operations/compare/
84 char/70483.cc: Validate substr operations on u8string_view.
85 * testsuite/21_strings/basic_string_view/typedefs.cc: Validate that
86 the u8string_view typedef is defined.
87 * testsuite/21_strings/char_traits/requirements/
88 constexpr_functions.cc: Validate char_traits<char8_t> constexpr
89 member functions.
90 * testsuite/21_strings/char_traits/requirements/
91 constexpr_functions_c++17.cc: Validate char_traits<char8_t> C++17
92 constexpr member functions.
93 * testsuite/21_strings/headers/string/types_std_c++0x.cc: Validate
94 that the u8string typedef is defined.
95 * testsuite/22_locale/locale/cons/unicode.cc: Validate the presence
96 of the std::codecvt<char16_t, char8_t, std::mbstate_t> and
97 std::codecvt<char32_t, char8_t, std::mbstate_t> facets.
98 * testsuite/29_atomics/atomic/cons/assign_neg.cc: Update line
99 numbers.
100 * testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise.
101 * testsuite/29_atomics/atomic_integral/cons/assign_neg.cc:
102 Likewise.
103 * testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Likewise.
104 * testsuite/29_atomics/atomic_integral/is_always_lock_free.cc:
105 Validate std::atomic<char8_t>::is_always_lock_free
106 * testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc:
107 Update line numbers.
108 * testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc:
109 Likewise.
110 * testsuite/29_atomics/atomic_integral/operators/increment_neg.cc:
111 Likewise.
112 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_string.cc:
113 Validate std::experimental::pmr::u8string.
114 * testsuite/experimental/string_view/typedefs.cc: Validate that the
115 u8string_view typedef is defined.
116 * testsuite/util/testsuite_common_types.h: Add char8_t, char16_t and
117 char32_t to the typelists.
118
ef96a935 1192019-02-22 Tom Honermann <tom@honermann.net>
120
121 * include/ext/typelist.h: Constrain a partial specialization of
122 typelist::detail::append_ to only match chain<T1,T2>.
123
d373b606 1242019-02-21 Jonathan Wakely <jwakely@redhat.com>
125
126 PR libstdc++/89416
127 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Replace
128 class template with class. Replace move and copy member types with
129 member alias templates, so they are only instantiated when needed.
130 (__is_copy_insertable, __is_move_insertable): Adjust base class.
131 * testsuite/23_containers/vector/modifiers/push_back/89130.cc: Enable
132 test for C++11/14/17 as well.
133 * testsuite/23_containers/vector/modifiers/push_back/89416.cc: New
134 test.
135
25395ee8 1362019-02-20 Jakub Jelinek <jakub@redhat.com>
137
138 PR libstdc++/89402
139 * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Add
140 _GLIBCXX_PURE to the alias declaration.
141
affcb65b 1422019-02-19 Jonathan Wakely <jwakely@redhat.com>
143
144 * testsuite/21_strings/basic_string/literals/types.cc
145 [_GLIBCXX_USE_CHAR8_T]: Adjust expected string type for u8 literal.
146 * testsuite/21_strings/basic_string/literals/values.cc
147 [_GLIBCXX_USE_CHAR8_T]: Likewise.
148 * testsuite/22_locale/codecvt/char16_t.cc: Adjust for u8 literals
149 potentially having different type.
150 * testsuite/22_locale/codecvt/char32_t.cc: Likewise.
151 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: Cast u8 literal
152 to char.
153 * testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc: Likewise.
154 * testsuite/22_locale/codecvt/utf8.cc: Likewise.
155 * testsuite/22_locale/conversions/string/2.cc: Remove u8 prefix from
156 string literals only using basic character set.
157 * testsuite/22_locale/conversions/string/3.cc: Likewise. Cast other
158 u8 literals to char.
159 * testsuite/29_atomics/headers/atomic/macros.cc [_GLIBCXX_USE_CHAR8_T]:
160 Test ATOMIC_CHAR8_T_LOCK_FREE.
161 Add missing #error to ATOMIC_CHAR16_T_LOCK_FREE test.
162 * testsuite/29_atomics/headers/atomic/types_std_c++0x.cc
163 [_GLIBCXX_USE_CHAR8_T]: Check for std::atomic_char8_t.
164 * testsuite/experimental/string_view/literals/types.cc
165 [_GLIBCXX_USE_CHAR8_T]: Adjust expected string_view type for u8
166 literal.
167 * testsuite/experimental/string_view/literals/values.cc
168 [_GLIBCXX_USE_CHAR8_T]: Likewise.
169
4acc5060 1702019-02-19 Tom Honermann <tom@honermann.net>
171
172 * testsuite/18_support/numeric_limits/char8_t.cc: New test cloned
173 from char16_32_t.cc; validates numeric_limits<char8_t>.
174 * testsuite/21_strings/basic_string/literals/types-char8_t.cc: New
175 test cloned from types.cc; validates operator""s for char8_t
176 returns u8string.
177 * testsuite/21_strings/basic_string/literals/values-char8_t.cc: New
178 test cloned from values.cc; validates construction and comparison
179 of u8string values.
180 * testsuite/21_strings/basic_string/requirements/
181 /explicit_instantiation/char8_t/1.cc: New test cloned from
182 char16_t/1.cc; validates explicit instantiation of
183 basic_string<char8_t>.
184 * testsuite/21_strings/basic_string_view/literals/types-char8_t.cc:
185 New test cloned from types.cc; validates operator""sv for char8_t
186 returns u8string_view.
187 * testsuite/21_strings/basic_string_view/literals/
188 values-char8_t.cc: New test cloned from values.cc; validates
189 construction and comparison of u8string_view values.
190 * testsuite/21_strings/basic_string_view/requirements/
191 explicit_instantiation/char8_t/1.cc: New test cloned from
192 char16_t/1.cc; validates explicit instantiation of
193 basic_string_view<char8_t>.
194 * testsuite/21_strings/char_traits/requirements/char8_t/65049.cc:
195 New test cloned from char16_t/65049.cc; validates that
196 char_traits<char8_t> is not vulnerable to the concerns in PR65049.
197 * testsuite/21_strings/char_traits/requirements/char8_t/
198 typedefs.cc: New test cloned from char16_t/typedefs.cc; validates
199 that char_traits<char8_t> member typedefs are present and correct.
200 * testsuite/21_strings/char_traits/requirements/
201 explicit_instantiation/char8_t/1.cc: New test cloned from
202 char16_t/1.cc; validates explicit instantiation of
203 char_traits<char8_t>.
204 * testsuite/22_locale/codecvt/char16_t-char8_t.cc: New test cloned
205 from char16_t.cc: validates
206 codecvt<char16_t, char8_t, mbstate_t>.
207 * testsuite/22_locale/codecvt/char32_t-char8_t.cc: New test cloned
208 from char32_t.cc: validates
209 codecvt<char32_t, char8_t, mbstate_t>.
210 * testsuite/22_locale/codecvt/utf8-char8_t.cc: New test cloned from
211 utf8.cc; validates codecvt<char16_t, char8_t, std::mbstate_t> and
212 codecvt<char32_t, char8_t, std::mbstate_t>.
213 * testsuite/27_io/filesystem/path/native/string-char8_t.cc: New
214 test cloned from string.cc; validates filesystem::path construction
215 from char8_t input.
216 * testsuite/experimental/feat-char8_t.cc: New test; validates that
217 the __cpp_lib_char8_t feature test macro is defined with the
218 correct value.
219 * testsuite/experimental/filesystem/path/native/string-char8_t.cc:
220 New test cloned from string.cc; validates filesystem::path
221 construction from char8_t input.
222 * testsuite/experimental/string_view/literals/types-char8_t.cc: New
223 test cloned from types.cc; validates operator""sv for char8_t
224 returns u8string_view.
225 * testsuite/experimental/string_view/literals/values-char8_t.cc:
226 New test cloned from values.cc; validates construction and
227 comparison of u8string_view values.
228 * testsuite/experimental/string_view/requirements/
229 explicit_instantiation/char8_t/1.cc: New test cloned from
230 char16_t/1.cc; validates explicit instantiation of
231 basic_string_view<char8_t>.
232 * testsuite/ext/char8_t/atomic-1.cc: New test; validates that
233 ATOMIC_CHAR8_T_LOCK_FREE is not defined if char8_t support is not
234 enabled.
235
25694c85 2362019-02-19 Tom Honermann <tom@honermann.net>
237
238 P0482R5 char8_t: Standard library support
239 * config/abi/pre/gnu-versioned-namespace.ver (CXXABI_2.0): Add
240 typeinfo symbols for char8_t.
241 * config/abi/pre/gnu.ver: Add CXXABI_1.3.12.
242 (GLIBCXX_3.4.26): Add symbols for specializations of
243 numeric_limits and codecvt that involve char8_t.
244 (CXXABI_1.3.12): Add typeinfo symbols for char8_t.
245 * include/bits/atomic_base.h: Add atomic_char8_t.
246 * include/bits/basic_string.h: Add std::hash<u8string> and
247 operator""s(const char8_t*, size_t).
248 * include/bits/c++config: Define _GLIBCXX_USE_CHAR8_T and
249 __cpp_lib_char8_t.
250 * include/bits/char_traits.h: Add char_traits<char8_t>.
251 * include/bits/codecvt.h: Add
252 codecvt<char16_t, char8_t, mbstate_t>,
253 codecvt<char32_t, char8_t, mbstate_t>,
254 codecvt_byname<char16_t, char8_t, mbstate_t>, and
255 codecvt_byname<char32_t, char8_t, mbstate_t>.
256 * include/bits/cpp_type_traits.h: Add __is_integer<char8_t> to
257 recognize char8_t as an integral type.
258 * include/bits/fs_path.h: (path::__is_encoded_char): Recognize
259 char8_t.
260 (path::u8string): Return std::u8string when char8_t support is
261 enabled.
262 (path::generic_u8string): Likewise.
263 (path::_S_convert): Handle conversion from char8_t input.
264 (path::_S_str_convert): Likewise.
265 * include/bits/functional_hash.h: Add hash<char8_t>.
266 * include/bits/locale_conv.h (__str_codecvt_out): Add overloads for
267 char8_t.
268 * include/bits/locale_facets.h (_GLIBCXX_NUM_UNICODE_FACETS): Bump
269 for new char8_t specializations.
270 * include/bits/localefwd.h: Add missing declarations of
271 codecvt<char16_t, char, mbstate_t> and
272 codecvt<char32_t, char, mbstate_t>. Add char8_t declarations
273 codecvt<char16_t, char8_t, mbstate_t> and
274 codecvt<char32_t, char8_t, mbstate_t>.
275 * include/bits/postypes.h: Add u8streampos
276 * include/bits/stringfwd.h: Add declarations of
277 char_traits<char8_t> and u8string.
278 * include/c_global/cstddef: Add __byte_operand<char8_t>.
279 * include/experimental/bits/fs_path.h (path::__is_encoded_char):
280 Recognize char8_t.
281 (path::u8string): Return std::u8string when char8_t support is
282 enabled.
283 (path::generic_u8string): Likewise.
284 (path::_S_convert): Handle conversion from char8_t input.
285 (path::_S_str_convert): Likewise.
286 * include/experimental/string: Add u8string.
287 * include/experimental/string_view: Add u8string_view,
288 hash<experimental::u8string_view>, and
289 operator""sv(const char8_t*, size_t).
290 * include/std/atomic: Add atomic<char8_t> and atomic_char8_t.
291 * include/std/charconv (__is_int_to_chars_type): Recognize char8_t
292 as a character type.
293 * include/std/limits: Add numeric_limits<char8_t>.
294 * include/std/string_view: Add u8string_view,
295 hash<experimental::u8string_view>, and
296 operator""sv(const char8_t*, size_t).
297 * include/std/type_traits: Add __is_integral_helper<char8_t>,
298 __make_unsigned<char8_t>, and __make_signed<char8_t>.
299 * libsupc++/atomic_lockfree_defines.h: Define
300 ATOMIC_CHAR8_T_LOCK_FREE.
301 * src/c++11/Makefile.am: Compile with -fchar8_t when compiling
302 codecvt.cc and limits.cc so that char8_t specializations of
303 numeric_limits and codecvt and emitted.
304 * src/c++11/Makefile.in: Likewise.
305 * src/c++11/codecvt.cc: Define members of
306 codecvt<char16_t, char8_t, mbstate_t>,
307 codecvt<char32_t, char8_t, mbstate_t>,
308 codecvt_byname<char16_t, char8_t, mbstate_t>, and
309 codecvt_byname<char32_t, char8_t, mbstate_t>.
310 * src/c++11/limits.cc: Define members of
311 numeric_limits<char8_t>.
312 * src/c++98/Makefile.am: Compile with -fchar8_t when compiling
313 locale_init.cc and localename.cc.
314 * src/c++98/Makefile.in: Likewise.
315 * src/c++98/locale_init.cc: Add initialization for the
316 codecvt<char16_t, char8_t, mbstate_t> and
317 codecvt<char32_t, char8_t, mbstate_t> facets.
318 * src/c++98/localename.cc: Likewise.
319 * testsuite/util/testsuite_abi.cc: Validate ABI bump.
320
140615bb 3212019-02-18 Wilco Dijkstra <wdijkstr@arm.com>
322
323 * 27_io/filesystem/operations/all.cc: Add dg-require-filesystem-ts.
324 * 27_io/filesystem/operations/resize_file.cc: Likewise.
325 * 27_io/filesystem/path/generation/normal2.cc: Likewise.
326
c677a9d7 3272019-02-14 Jonathan Wakely <jwakely@redhat.com>
328
1bbfe9f8 329 * doc/xml/manual/status_cxx2020.xml: Update P0887R1 status.
330 * doc/html/*: Regenerate.
331
b24f00b1 332 * doc/xml/manual/status_cxx2017.xml: Add P0063R3 to status table.
333 * doc/html/*: Regenerate.
334
a3d1baa9 335 * doc/xml/manual/intro.xml: Document LWG 2586 status.
336 * include/bits/uses_allocator.h (__uses_alloc): Use const lvalue
337 allocator type in is_constructible checks.
338 * testsuite/20_util/scoped_allocator/69293_neg.cc: Adjust dg-error.
339 * testsuite/20_util/scoped_allocator/dr2586.cc: New test.
340 * testsuite/20_util/tuple/cons/allocators.cc: Add test using
341 problematic type from LWG 2586 discussion.
342 * testsuite/20_util/uses_allocator/69293_neg.cc: Adjust dg-error.
343 * testsuite/20_util/uses_allocator/cons_neg.cc: Likewise.
344
99d130bf 345 * configure.ac: Check for C11 timespec_get function.
346 * crossconfig.m4 (freebsd, linux, gnu, cygwin, solaris, netbsd)
347 (openbsd): Likewise
348 * config.h.in: Regenerate.
349 * configure: Regenerate.
350 * include/c_global/ctime (timespec, timespec_get): Add to namespace
351 std for C++17 and up.
352
48772ec3 353 * doc/xml/manual/intro.xml: Document LWG 2537 status.
354 * include/bits/stl_queue.h
355 (priority_queue(const Compare&, const Container&, const Alloc&))
356 (priority_queue(const Compare&, Container&&, const Alloc&)): Call
357 make_heap.
358 * testsuite/23_containers/priority_queue/dr2537.cc: New test.
359
ee32dd64 360 * doc/xml/manual/intro.xml: Document LWG 2566 status.
361 * include/bits/stl_queue.h (queue, priority_queue): Add static
362 assertions to enforce LWG 2566 requirement on value_type.
363 * include/bits/stl_stack.h (stack): Likewise.
364
9724de38 365 PR middle-end/89303
366 * testsuite/20_util/enable_shared_from_this/89303.cc: New test.
367
c677a9d7 368 * doc/xml/manual/intro.xml: Document LWG 2735 status.
369 * include/bits/std_abs.h: Add comment about LWG 2735.
370 * testsuite/26_numerics/headers/cstdlib/dr2735.cc: New test.
371
4194f872 3722019-02-13 Jonathan Wakely <jwakely@redhat.com>
373
374 PR libstdc++/89345
375 * include/std/version [__cpp_impl_destroying_delete]
376 (__cpp_lib_destroying_delete): Only define for C++2a and later.
377 * libsupc++/new [__cpp_impl_destroying_delete]
378 (__cpp_lib_destroying_delete): Likewise.
379 (destroying_delete_t, destroying_delete): Likewise, but define even
380 when __cpp_impl_destroying_delete is not defined.
381 * testsuite/18_support/destroying_delete.cc: New test.
382
aaacaee2 3832019-02-11 Jonathan Wakely <jwakely@redhat.com>
384
385 PR libstdc++/89023
386 * testsuite/17_intro/headers/c++2011/parallel_mode.cc: New test.
387 * testsuite/17_intro/headers/c++2014/parallel_mode.cc: New test.
388 * testsuite/17_intro/headers/c++2017/parallel_mode.cc: New test.
389 * testsuite/28_regex/headers/regex/parallel_mode.cc: Remove.
390
5256b0dd 3912019-02-09 Jonathan Wakely <jwakely@redhat.com>
392
393 PR libstdc++/71044
394 * include/bits/fs_path.h (path::has_root_name)
395 (path::has_root_directory, path::has_root_path)
396 (path::has_relative_path, path::has_parent_path)
397 (path::has_filename, path::has_stem, path::has_extension)
398 (path::is_absolute, path::is_relative, path::_M_find_extension): Add
399 noexcept.
400 * src/c++17/fs_path.cc (path::has_root_name)
401 (path::has_root_directory, path::has_root_path)
402 (path::has_relative_path, path::has_parent_path)
403 (path::has_filename, path::_M_find_extension): Add noexcept.
404
e32f625e 4052019-02-06 Jonathan Wakely <jwakely@redhat.com>
406
407 PR libstdc++/89102 (partial)
408 * include/std/type_traits (common_type<>): Define.
409 (common_type<T>): Derive from common_type<T, T>.
410 * testsuite/20_util/common_type/requirements/explicit_instantiation.cc:
411 Test zero-length template argument list.
412 * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc:
413 Test additional single argument cases.
414 * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc:
415 Adjust expected error.
416
b03489db 4172019-02-05 Jonathan Wakely <jwakely@redhat.com>
418
e89e4fec 419 PR libstdc++/89128
420 * include/bits/stl_queue.h (queue, priority_queue): Add deduction
421 guides.
422 * include/bits/stl_stack.h (stack): Likewise.
423 * testsuite/23_containers/priority_queue/deduction.cc: New test.
424 * testsuite/23_containers/queue/deduction.cc: New test.
425 * testsuite/23_containers/stack/deduction.cc: New test.
426
b640dd11 427 PR libstdc++/89194
428 * include/std/type_traits (__is_convertible_helper)
429 (__is_convertible_helper<_From, _To, false>): Revert changes to
430 support is_nothrow_convertible.
431 (__is_nt_convertible_helper): New helper.
432 (is_nothrow_convertible): Use __is_nt_convertible_helper.
433
74c88c5f 434 * testsuite/23_containers/vector/modifiers/push_back/49836.cc: Restore
435 use of CopyConsOnlyType, but also test DelAnyAssign for completeness.
436
eca5e8d4 437 PR libstdc++/89130
438 * include/bits/alloc_traits.h (__is_copy_insertable_impl): Rename to
439 __is_alloc_insertable_impl. Replace single type member with two
440 members, one for each of copy and move insertable.
441 (__is_move_insertable): New trait for internal use.
442 * include/bits/stl_vector.h (vector::_S_nothrow_relocate(true_type))
443 (vector::_S_nothrow_relocate(true_type)): New functions to
444 conditionally check if __relocate_a can throw.
445 (vector::_S_use_relocate()): Dispatch to _S_nothrow_relocate based
446 on __is_move_insertable.
447 (vector::_S_do_relocate): New overloaded functions to conditionally
448 call __relocate_a.
449 (vector::_S_relocate): New function that dispatches to _S_do_relocate
450 based on _S_use_relocate.
451 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
452 (vector::_M_default_append): Call _S_relocate instead of __relocate_a.
453 * testsuite/23_containers/vector/modifiers/push_back/89130.cc: New.
454
b03489db 455 PR libstdc++/89090
456 * include/bits/stl_uninitialized.h (__relocate_a_1): Make unused
457 parameter unnamed. Add message to static assertion.
458 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
459 (vector::_M_default_append): Use _GLIBCXX17_CONSTEXPR for if constexpr
460 in C++11 code.
461
71625a15 4622019-02-05 Marc Glisse <marc.glisse@inria.fr>
463
464 PR libstdc++/87106
465 * include/bits/stl_uninitialized.h (__is_trivially_relocatable):
466 Rename...
467 (__is_bitwise_relocatable): ... to this.
468 (__relocate_a_1): Adapt.
469 * include/bits/stl_deque.h (__is_trivially_relocatable): Rename...
470 (__is_bitwise_relocatable): ... to this.
471
e7b22e58 4722019-01-30 Jonathan Wakely <jwakely@redhat.com>
473
474 PR libstdc++/89117
475 * src/c++17/fs_path.cc (path::replace_extension): Erase extension from
476 final component as well as from _M_pathname. Append the dot using
477 operator+= instead of only to _M_pathname.
478 (path::_M_find_extension): Reformat slightly.
479 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
480 Add more test cases.
481
dae923a7 4822019-01-30 Ulrich Drepper <drepper@redhat.com>
483
484 * doc/xml/manual/status_cxx2020.xml: Update P0600 entry.
485
710397ad 4862019-01-29 Jonathan Wakely <jwakely@redhat.com>
487
5efc4356 488 * testsuite/26_numerics/headers/complex/synopsis.cc: Remove incorrect
489 constexpr specifiers from arg and proj.
490
5f15e718 491 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add missing exports for
492 __shared_ptr instantiations used by gcc4-compatible ABI.
493
307e86fc 494 * include/experimental/forward_list (experimental::erase): Qualify
495 call to erase_if.
496 * include/experimental/list (experimental::erase): Likewise.
497 * include/std/forward_list (std::erase): Likewise.
498 * include/std/list (std::erase): Likewise.
499
38129d1a 500 * testsuite/20_util/reference_wrapper/result_type.cc: Disable for
501 C++2a.
502 * testsuite/20_util/reference_wrapper/typedefs-2.cc: Likewise.
503 * testsuite/20_util/reference_wrapper/typedefs-3.cc: Likewise.
504 * testsuite/20_util/reference_wrapper/typedefs.cc: Likewise.
505 * testsuite/30_threads/async/54297.cc: Suppress nodiscard warning.
506 * testsuite/ext/array_allocator/26875.cc: Likewise.
507 * testsuite/ext/pool_allocator/allocate_chunk.cc: Likewise.
508 * testsuite/util/replacement_memory_operators.h: Likewise.
509 * testsuite/util/testsuite_allocator.h: Likewise.
510
710397ad 511 * include/std/memory_resource (__pool_resource::_M_unpooled): Use
512 normal mode vector, even for debug mode.
513 * include/std/vector [_GLIBCXX_DEBUG] (_GLIBCXX_STD_C::pmr::vector):
514 Define alias template for normal mode vector.
515
70f71249 5162019-01-28 Jonathan Wakely <jwakely@redhat.com>
517
518 PR libstdc++/68737
519 * config/locale/generic/c_locale.h (__convert_from_v)
520 [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
521 * config/os/hpux/os_defines.h: Define _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
522 * include/bits/locale_facets.tcc (num_put::_M_insert_float)
523 [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
524
f1074115 5252019-01-24 Jonathan Wakely <jwakely@redhat.com>
526
4bc4fd90 527 PR libstdc++/88840
528 * include/bits/stl_vector.h (vector::__use_relocate): Replace static
529 data member with static member function _S_use_relocate().
530 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
531 (vector::_M_default_append): Use _S_use_relocate() instead of
532 __use_relocate.
533
f1074115 534 * testsuite/27_io/filesystem/path/compare/strings.cc: Only compare
535 sign of results.
536
1c4657a3 5372019-01-22 Jonathan Wakely <jwakely@redhat.com>
538
539 PR libstdc++/88740
540 * testsuite/util/testsuite_hooks.h [stderr] (VERIFY): Use fprintf to
541 write to stderr instead of using printf.
542
dafe8c59 5432019-01-21 Jakub Jelinek <jakub@redhat.com>
544
545 PR libstdc++/86590
546 * include/bits/char_traits.h (__constant_string_p,
547 __constant_char_array_p): Use __builtin_is_constant_evaluated if
548 available.
549
eaf966f3 5502019-01-20 Ulrich Drepper <drepper@redhat.com>
551
552 Implement C++20 P0600r1.
553 * include/backward/hash_map: Add nodiscard attribute to empty.
554 * include/backward/hash_set: Likewise.
555 * backward/hashtable.h: Likewise.
556 * include/bits/basic_string.h: Likewise.
557 * include/bits/forward_list.h: Likewise.
558 * include/bits/hashtable.h: Likewise.
559 * include/bits/regex.h: Likewise.
560 * include/bits/stl_deque.h: Likewise.
561 * include/bits/stl_list.h: Likewise.
562 * include/bits/stl_map.h: Likewise.
563 * include/bits/stl_multimap.h: Likewise.
564 * include/bits/stl_multiset.h: Likewise.
565 * include/bits/stl_queue.h: Likewise.
566 * include/bits/stl_set.h: Likewise.
567 * include/bits/stl_stack.h: Likewise.
568 * include/bits/stl_tree.h: Likewise.
569 * include/bits/stl_vector.h: Likewise.
570 * include/bits/unordered_map.h: Likewise.
571 * include/bits/unordered_set.h: Likewise.
572 * include/debug/array: Likewise.
573 * include/experimental/any: Likewise.
574 * include/experimental/bits/fs_path.h: Likewise.
575 * include/experimental/internet: Likewise.
576 * include/experimental/string_view: Likewise.
577 * include/ext/pb_ds/detail/bin_search_tree_/info_fn_imps.hpp:
578 Likewise.
579 * include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp:
580 Likewise.
581 * include/ext/pb_ds/detail/binary_heap_/info_fn_imps.hpp:
582 Likewise.
583 * include/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp:
584 Likewise.
585 * include/ext/pb_ds/detail/cc_hash_table_map_/info_fn_imps.hpp:
586 Likewise.
587 * include/ext/pb_ds/detail/cc_hash_table_map_/size_fn_imps.hpp:
588 Likewise.
589 * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp:
590 Likewise.
591 * include/ext/pb_ds/detail/gp_hash_table_map_/info_fn_imps.hpp:
592 Likewise.
593 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
594 info_fn_imps.hpp: Likewise.
595 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
596 left_child_next_sibling_heap_.hpp: Likewise.
597 * include/ext/pb_ds/detail/list_update_map_/info_fn_imps.hpp:
598 Likewise.
599 * include/ext/pb_ds/detail/list_update_map_/lu_map_.hpp:
600 Likewise.
601 * include/ext/pb_ds/detail/ov_tree_map_/info_fn_imps.hpp:
602 Likewise.
603 * include/ext/pb_ds/detail/ov_tree_map_/ov_tree_map_.hp:
604 Likewise.
605 * include/ext/pb_ds/detail/pat_trie_/info_fn_imps.hpp:
606 Likewise.
607 * include/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp:
608 Likewise.
609 * include/ext/pb_ds/detail/rc_binomial_heap_/rc.hpp:
610 Likewise.
611 * include/ext/pb_ds/detail/tree_trace_base.hpp: Likewise.
612 * include/ext/pb_ds/trie_policy.hpp: Likewise.
613 * include/ext/rope: Likewise.
614 * include/ext/slist: Likewise.
615 * include/ext/vstring.h: Likewise.
616 * include/profile/array: Likewise.
617 * include/std/array: Likewise.
618 * include/tr1/array: Likewise.
619 * include/tr1/hashtable.h: Likewise.
620 * include/tr1/regex: Likewise.
621 * include/tr2/dynamic_bitset: Likewise.
622 * include/bits/alloc_traits.h: Add nodiscard attribute to
623 allocate.
624 * include/experimental/memory_resource: Likewise.
625 * include/ext/alloc_traits.h: Likewise.
626 * include/ext/array_allocator.h: Likewise.
627 * include/ext/bitmap_allocator.h: Likewise.
628 * include/ext/debug_allocator.h: Likewise.
629 * include/ext/extptr_allocator.h: Likewise.
630 * include/ext/mt_allocator.h: Likewise.
631 * include/ext/new_allocator.h: Likewise.
632 * include/ext/pool_allocator.h: Likewise.
633 * include/ext/throw_allocator.h: Likewise.
634 * include/std/scoped_allocator: Likewise.
635 * libsupc++/eh_alloc.cc: Likewise.
636 * include/std/future: Add nodiscard attribute to async.
637 * libsupc++/new: Add nodiscard attribute to new.
638
3c1c2a8c 6392019-01-18 Jonathan Wakely <jwakely@redhat.com>
640
641 PR libstdc++/87514
642 PR libstdc++/87520
643 PR libstdc++/88782
644 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export new symbol.
645 * include/bits/shared_ptr.h
646 (shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...))
647 (allocate_shared): Change to use new tag type.
648 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_eq):
649 Declare new member function.
650 (_Sp_alloc_shared_tag): Define new type.
651 (_Sp_counted_ptr_inplace): Declare __shared_count<_Lp> as a friend.
652 (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Use
653 _Sp_make_shared_tag::_S_eq to check type_info.
654 (__shared_count(Ptr, Deleter),__shared_count(Ptr, Deleter, Alloc)):
655 Constrain to prevent being called with _Sp_alloc_shared_tag.
656 (__shared_count(_Sp_make_shared_tag, const _Alloc&, Args&&...)):
657 Replace constructor with ...
658 (__shared_count(Tp*&, _Sp_alloc_shared_tag<_Alloc>, Args&&...)): Use
659 reference parameter so address of the new object can be returned to
660 the caller. Obtain the allocator from the tag type.
661 (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Replace
662 constructor with ...
663 (__shared_ptr(_Sp_alloc_shared_tag<Alloc>, Args&&...)): Pass _M_ptr
664 to the __shared_count constructor.
665 (__allocate_shared): Change to use new tag type.
666 * src/c++11/shared_ptr.cc (_Sp_make_shared_tag::_S_eq): Define.
667
21a962b2 6682019-01-17 Jonathan Wakely <jwakely@redhat.com>
669
464ac146 670 * src/c++17/fs_ops.cc
671 (equivalent(const path&, const path&, error_code&))
672 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use GetFileInformationByHandle to
673 compare files instead of relying on incomplete info returned by stat.
674
2987a93d 675 PR libstdc++/88884
676 * src/c++17/fs_ops.cc (absolute(const path&, error_code&)): Do nothing
677 if the path is already absolute.
678 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize root-directory.
679 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Pass error_code to current_path.
680
21a962b2 681 PR libstdc++/88881
682 * src/c++17/fs_ops.cc (canonical(const path&, error_code&))
683 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize path, to match behaviour
684 of filesystem::exists.
685 (create_directories(const path&, error_code&)): Add assertions.
686 (status(const path&, error_code&)) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]:
687 Add workaround for bug in _wstat for paths with trailing slash.
688 * testsuite/27_io/filesystem/operations/create_directories.cc: Adjust
689 for expected behaviour on mingw.
690 * testsuite/experimental/filesystem/operations/create_directories.cc:
691 Likewise.
692 * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Use
693 "TMP" instead of "TMPDIR" and clean environment before each test. Do
694 not test permissions on mingw targets.
695
93478c9f 6962019-01-16 Jonathan Wakely <jwakely@redhat.com>
697
698 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add exports for fstream
699 constructors and open members taking wide strings. Fix patterns for
700 filesystem::path members to match wstring_view parameters. Add
701 exports for shared_ptr members used by directory iterators.
702 * src/c++17/fs_ops.cc (remove(const path&, error_code&)): Clear the
703 error code parameter if the file doesn't exist.
704 * src/filesystem/ops.cc (remove(const path&, error_code&)):
705 Likewise.
706 * testsuite/27_io/filesystem/operations/canonical.cc: Fix expected
707 values for mingw targets, where "/" is not an absolute path. Do not
708 test symlinks on mingw targets.
709 * testsuite/experimental/filesystem/operations/canonical.cc: Likewise.
710 * testsuite/27_io/filesystem/operations/copy.cc: Do not test symlinks
711 on mingw targets.
712 * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
713 * testsuite/27_io/filesystem/operations/create_directories.cc: Check
714 that each component of the path is created.
715 * testsuite/experimental/filesystem/operations/create_directories.cc:
716 Likewise.
717 * testsuite/27_io/filesystem/operations/exists.cc: Do not test
718 permissions on mingw targets.
719 * testsuite/experimental/filesystem/operations/exists.cc: Likewise.
720 * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
721 * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise.
722 * testsuite/27_io/filesystem/operations/permissions.cc: XFAIL for
723 mingw targets.
724 * testsuite/experimental/filesystem/operations/permissions.cc:
725 Likewise.
726 * testsuite/27_io/filesystem/operations/remove.cc: Do not test
727 symlinks or permissions on mingw targets.
728 * testsuite/experimental/filesystem/operations/remove.cc: Likewise.
729 * testsuite/27_io/filesystem/operations/remove_all.cc: Do not test
730 symlinks on mingw targets.
731 * testsuite/experimental/filesystem/operations/remove_all.cc:
732 Likewise.
733 * testsuite/27_io/filesystem/operations/status.cc: Do not test
734 permissions on mingw targets.
735 * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Do not
736 test symlinks on mingw targets.
737 * testsuite/experimental/filesystem/operations/space.cc: Fix test
738 for mingw targets.
739
af93b844 7402019-02-14 Ulrich Drepper <drepper@redhat.com>
741
742 PR libstdc++/88738
743 Warn about unused comparisons of shared_ptr/unique_ptr
744 * include/bits/c++config [_GLIBCXX_NODISCARD]: Define.
745 * include/bits/shared_ptr.h: Use it for operator ==, !=,
746 <, <=, >, >= for shared_ptr.
747 * include/bits/unique_ptr.h: Likewise for unique_ptr.
748
8793c0de 7492019-01-15 Jonathan Wakely <jwakely@redhat.com>
750
afa61572 751 * include/bits/shared_ptr_base.h (__cpp_lib_shared_ptr_arrays): Define
752 as 201611L, because P0497R0 changes are supported.
753 * include/std/version (__cpp_lib_shared_ptr_arrays): Likewise.
754
feb89906 755 * include/bits/erase_if.h [__cplusplus > 201703L]
756 (__cpp_lib_erase_if): Only define for C++2a.
757 * include/std/iterator [__cplusplus >= 201402L && !_GLIBCXX_DEBUG]
758 (__cpp_lib_null_iterators): Define.
759 * include/std/version [__cplusplus >= 201402L && !_GLIBCXX_DEBUG]
760 (__cpp_lib_null_iterators): Define.
761 [__cpp_impl_destroying_delete] (__cpp_lib_destroying_delete): Define.
762
d253bcb1 763 * doc/xml/manual/status_cxx2017.xml: Document P0032R3 and P0307R2
764 status.
765 * include/bits/stl_uninitialized.h (__cpp_lib_raw_memory_algorithms):
766 Define.
767 * include/std/any (__cpp_lib_any): Define as 201606L, because P0032R3
768 changes are supported.
769 * include/std/optional (__cpp_lib_optional): Likewise.
770 * include/std/variant (__cpp_lib_variant): Likewise.
771 * include/std/version [!__STRICT_ANSI__]
772 (__cpp_lib_uncaught_exceptions): Define as long integer.
773 [__cplusplus >= 201703L] (__cpp_lib_any)
774 (__cpp_lib_raw_memory_algorithms, __cpp_lib_uncaught_exceptions)
775 (__cpp_lib_variant): Define for C++17.
776 [__cplusplus >= 201703L] (__cpp_lib_optional): Update value and define
777 as long integer.
778 * libsupc++/exception (__cpp_lib_uncaught_exceptions): Define as long
779 integer.
780
8793c0de 781 * doc/xml/manual/status_cxx2020.xml: Update P1123R0 status.
782
a8cd4b2b 7832019-01-12 Jonathan Wakely <jwakely@redhat.com>
784
785 PR libstdc++/88811
786 PR libstdc++/83306
787 * src/filesystem/path.cc: Fix typo. If first path is empty, show []
788 before second path.
789 * testsuite/experimental/filesystem/filesystem_error/cons.cc: New
790 test.
791
a5b1332c 7922019-01-11 Jonathan Wakely <jwakely@redhat.com>
793
656ac8b7 794 * doc/xml/manual/intro.xml: Include new section.
795 * doc/xml/manual/status_cxx2017.xml: Document more
796 implementation-defined properties of the library.
797 * doc/xml/manual/status_cxx2020.xml: Document C++2a status.
798 * doc/html/*: Regenerate.
799
f5480b8c 800 * include/bits/refwrap.h [__cplusplus > 201703L]
801 (_Refwrap_base_arg1, _Refwrap_base_arg2, _Reference_wrapper_base)
802 (_Reference_wrapper_base_memfun): Do not define for C++2a.
803 (reference_wrapper): Do not derive from _Reference_wrapper_base_memfun
804 for C++2a.
805 (reference_wrapper::operator()): Add static assertion.
806 * testsuite/20_util/reference_wrapper/incomplete.cc: New test.
807
36496c4d 808 * include/std/chrono (duration_values::zero(), duration_values::min())
809 (duration_values::max()): Add noexcept.
810 (duration::zero(), duration::min(), duration::max()): Likewise.
811 (time_point::zero(), time_point::min(), time_point::max()): Likewise.
812 * testsuite/20_util/duration/requirements/noexcept.cc: New test.
813 * testsuite/20_util/time_point/requirements/noexcept.cc: New test.
814
a5b1332c 815 * include/std/version (__cpp_lib_erase_if): Move to C++20 group.
816
d9de68bc 8172019-01-11 Jakub Jelinek <jakub@redhat.com>
818
819 * include/std/type_traits (__cpp_lib_is_constant_evaluated): Define.
820 * include/std/version (__cpp_lib_is_constant_evaluated): Define.
821
beb370cb 8222019-01-11 Jonathan Wakely <jwakely@redhat.com>
823
1d628fd4 824 PR libstdc++/88802
825 * include/bits/functional_hash.h (hash<nullptr_t>): Define
826 specialization for C++17 (P0513R0, LWG 2817).
827 * testsuite/20_util/hash/nullptr.cc: New test.
828
a18b3766 829 PR libstdc++/88125
830 * config/abi/pre/gnu.ver (GLIBCXX_3.4.6): Remove unused duplicate
831 pattern for std::basic_stringbuf::str().
832
beb370cb 833 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Correct recent changes to
834 basic_ostream::operator<< patterns.
835
cbbb35ec 8362019-01-10 Jonathan Wakely <jwakely@redhat.com>
837
1715824b 838 * testsuite/27_io/filesystem/operations/last_write_time.cc: Fix
839 test failures on targets with 32-bit time_t.
840
f5529091 841 * include/bits/erase_if.h: Define __cpp_lib_erase_if.
842 * include/std/deque: Likewise.
843 * include/std/forward_list: Likewise.
844 * include/std/list: Likewise.
845 * include/std/string: Likewise.
846 * include/std/vector: Likewise.
847 * include/std/version: Likewise.
848 * testsuite/21_strings/basic_string/erasure.cc: Test macro.
849 * testsuite/23_containers/deque/erasure.cc: Likewise.
850 * testsuite/23_containers/forward_list/erasure.cc: Likewise.
851 * testsuite/23_containers/list/erasure.cc: Likewise.
852 * testsuite/23_containers/map/erasure.cc: Likewise.
853 * testsuite/23_containers/set/erasure.cc: Likewise.
854 * testsuite/23_containers/unordered_map/erasure.cc: Likewise.
855 * testsuite/23_containers/unordered_set/erasure.cc: Likewise.
856 * testsuite/23_containers/vector/erasure.cc: Likewise.
857
cbbb35ec 858 * include/experimental/internet [AI_NUMERICSERV]
859 (resolver_base::numeric_service): Define conditionally.
860 * testsuite/experimental/net/internet/resolver/base.cc: Test it
861 conditionally.
862 * testsuite/experimental/net/internet/resolver/ops/lookup.cc:
863 Likewise.
864
ac9a8436 8652019-01-10 Ville Voutilainen <ville.voutilainen@gmail.com>
866 Jonathan Wakely <jwakely@redhat.com>
867
868 Implement LWG 2221
869 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten patterns.
870 (GLIBCXX_3.4.26): Add new exports.
871 * include/Makefile.am: Add ostream-inst.cc. Move string-inst.cc to
872 correct list of sources.
873 * include/Makefile.in: Regenerate.
874 * include/std/ostream (operator<<(nullptr_t)): New member function.
875 * src/c++17/ostream-inst.cc: New file.
876 * testsuite/27_io/basic_ostream/inserters_other/char/lwg2221.cc: New
877 test.
878
5f027941 8792019-01-10 Jonathan Wakely <jwakely@redhat.com>
880
881 * testsuite/util/testsuite_fs.h (nonexistent_path): Include name
882 of the source file containing the caller.
883 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Remove
884 directories created by test.
885 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
886 Likewise.
887 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
888 Likewise.
889 * testsuite/experimental/filesystem/iterators/
890 recursive_directory_iterator.cc: Likewise.
891
3273d2e6 8922019-01-10 Jakub Jelinek <jakub@redhat.com>
893
894 PR tree-optimization/88775
895 * include/bits/stl_function.h (greater<_Tp*>::operator(),
896 less<_Tp*>::operator(), greater_equal<_Tp*>::operator(),
897 less_equal<_Tp*>::operator()): Use __builtin_is_constant_evaluated
898 instead of __builtin_constant_p if available. Don't bother with
899 the pointer comparison in C++11 and earlier.
900
f4d3c071 9012019-01-09 Sandra Loosemore <sandra@codesourcery.com>
902
903 PR other/16615
904
905 * include/ext/bitmap_allocator.h: Mechanically replace "can not"
906 with "cannot".
907
8eba10af 9082019-01-09 Jonathan Wakely <jwakely@redhat.com>
909
6a6ade9f 910 * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix expected output
911 for filesystem::path. Give variables more distinctive names.
912
41cda271 913 * include/std/optional (_Optional_payload_base::_M_copy_assign): New
914 member function to perform non-trivial assignment.
915 (_Optional_payload_base::_M_move_assign): Likewise.
916 (_Optional_payload<T, true, false, true>::operator=)
917 (_Optional_payload<T, true, true, false>::operator=)
918 (_Optional_payload<T, true, false, false>::operator=): Call
919 _M_copy_assign and/or _M_move_assign to do non-trivial assignments.
920
8eba10af 921 PR libstdc++/88204
922 * testsuite/26_numerics/complex/operators/more_constexpr.cc: Do not
923 test std::complex<long double> if long double format is IBM128.
924 * testsuite/26_numerics/complex/requirements/more_constexpr.cc:
925 Likewise.
926
64a50f48 9272019-01-08 Jonathan Wakely <jwakely@redhat.com>
928
73f3ad16 929 * testsuite/libstdc++-prettyprinters/compat.cc: Test printer support
930 for old std::unique_ptr layout.
931 * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix std::variant test
932 to become valueless. Add filesystem::path tests.
933
58e897da 934 PR libstdc++/87855
935 * include/std/optional (_Optional_payload_base): New class template
936 for common code hoisted from _Optional_payload specializations. Use
937 a template for the union, to allow a partial specialization for
938 types with non-trivial destructors. Add constructors for in-place
939 initialization to the union.
940 (_Optional_payload(bool, const _Optional_payload&)): Use _M_construct
941 to perform non-trivial copy construction, instead of relying on
942 non-standard copy elision in a delegating constructor.
943 (_Optional_payload(bool, _Optional_payload&&)): Likewise for
944 non-trivial move construction.
945 (_Optional_payload): Derive from _Optional_payload_base and use it
946 for everything except the non-trivial assignment operators, which are
947 defined as needed.
948 (_Optional_payload<false, C, M>): Derive from the specialization
949 _Optional_payload<true, false, false> and add a destructor.
950 (_Optional_base_impl::_M_destruct, _Optional_base_impl::_M_reset):
951 Forward to corresponding members of _Optional_payload.
952 (_Optional_base_impl::_M_is_engaged, _Optional_base_impl::_M_get):
953 Hoist common members from _Optional_base.
954 (_Optional_base): Make all members and base class public.
955 (_Optional_base::_M_get, _Optional_base::_M_is_engaged): Move to
956 _Optional_base_impl.
957 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter): Add
958 support for new std::optional layout.
959 * testsuite/libstdc++-prettyprinters/compat.cc: New test.
960
64a50f48 961 PR libstdc++/88066
962 * include/bits/locale_conv.h: Use <> for includes not "".
963 * include/ext/random: Likewise.
964 * include/ext/vstring.h: Likewise.
965
95b40931 9662019-01-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
967
968 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten existing patterns.
969 (GLIBCXX_3.4.21): Likewise.
970
fa00ec77 9712019-01-08 Jonathan Wakely <jwakely@redhat.com>
972
973 PR libstdc++/88749
974 * src/filesystem/ops.cc (last_write_time): Fix preprocessor condition
975 to match the one that controls whether utimbuf and utime are declared.
976
3f304b2d 9772019-01-07 Jonathan Wakely <jwakely@redhat.com>
978
fc6ac813 979 PR libstdc++/87787
980 * include/bits/char_traits.h (char_traits::move): Do not pass null
981 pointers to memmove.
982 * include/bits/locale_facets.h
983 (ctype<char>::widen(const char*, const char*, char*)): Do not
984 pass null pointers to memcpy.
985 (ctype<char>::narrow(const char*, const char*, char, char*)):
986 Likewise.
987 (ctype<char>::do_widen(const char*, const char*, char*)):
988 Likewise.
989 (ctype<char>::do_narrow(const char*, const char*, char, char*)):
990 Likewise.
991
bbc66c45 992 * doc/xml/manual/spine.xml: Update copyright years.
993 * doc/xml/manual/status_cxx2017.xml: Adjust note about -lstdc++fs.
994 * doc/xml/manual/using.xml: Remove requirement to link with -lstdc++fs
995 for C++17 filesystem library.
996 * doc/html/*: Regenerate.
997
3f304b2d 998 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for truncate.
999 * config.h.in: Regenerate.
1000 * config/abi/pre/gnu.ver: Order patterns for filesystem operations
1001 alphabetically and add missing entries for copy_symlink,
1002 hard_link_count, rename, and resize_file.
1003 * configure: Regenerate.
1004 * src/c++17/fs_ops.cc (resize_file): Remove #if so posix::truncate is
1005 used unconditionally.
1006 * src/filesystem/ops-common.h (__gnu_posix::truncate)
1007 [!_GLIBCXX_HAVE_TRUNCATE]: Provide fallback definition that only
1008 supports truncating to zero length.
1009 * testsuite/27_io/filesystem/operations/all.cc: New test.
1010 * testsuite/27_io/filesystem/operations/resize_file.cc: New test.
1011
0ebb0980 10122019-01-06 Jonathan Wakely <jwakely@redhat.com>
1013
3935f409 1014 PR libstdc++/86756
1015 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for utime and
1016 lstat and define _GLIBCXX_USE_UTIME and _GLIBCXX_USE_LSTAT.
1017 * config.h.in: Regenerate.
1018 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export symbols for
1019 remaining std::filesystem types and functions.
1020 * configure: Regenerate.
1021 * src/c++17/Makefile.am: Add C++17 filesystem sources.
1022 * src/c++17/Makefile.in: Regenerate.
1023 * src/c++17/cow-fs_dir.cc: Move src/filesystem/cow-std-dir.cc to
1024 here, and change name of included file.
1025 * src/c++17/cow-fs_ops.cc: Move src/filesystem/cow-std-ops.cc to
1026 here, and change name of included file.
1027 * src/c++17/fs_dir.cc: Move src/filesystem/std-dir.cc to here. Change
1028 path to dir-common.h.
1029 * src/c++17/fs_ops.cc: Move src/filesystem/std-ops.cc to here. Change
1030 path to ops-common.h. Disable -Wunused-parameter warnings.
1031 (internal_file_clock): Define unconditionally.
1032 [!_GLIBCXX_HAVE_SYS_STAT_H] (internal_file_clock::from_stat): Do not
1033 define.
1034 (do_copy_file, do_space): Move definitions to ops.common.h.
1035 (copy, file_size, hard_link_count, last_write_time, space): Only
1036 perform operation when _GLIBCXX_HAVE_SYS_STAT_H is defined, otherwise
1037 report an error.
1038 (last_write_time, read_symlink): Remove unused attributes from
1039 parameters.
1040 * src/filesystem/Makefile.am: Remove C++17 filesystem sources.
1041 * src/filesystem/Makefile.in: Regenerate.
1042 * src/filesystem/cow-std-dir.cc: Move to src/c++17/cow-fs_dir.cc.
1043 * src/filesystem/cow-std-ops.cc: Move to src/c++17/cow-fs_ops.cc.
1044 * src/filesystem/std-dir.cc: Move to src/c++17/fs_dir.cc.
1045 * src/filesystem/std-ops.cc: Move to src/c++17/fs_ops.cc.
1046 * src/filesystem/dir-common.h [!_GLIBCXX_HAVE_DIRENT_H]: Define
1047 dummy types and functions instead of using #error.
1048 * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H]: Use #error.
1049 * src/filesystem/ops-common.h [!_GLIBCXX_USE_LSTAT] (lstat): Define
1050 in terms of stat.
1051 [!_GLIBCXX_HAVE_UNISTD_H]: Define dummy types and functions.
1052 (do_copy_file, do_space): Move definitions here from std-ops.cc.
1053 * src/filesystem/ops.cc: Adjust calls to do_copy_file and do_space
1054 to account for new namespace.
1055 * testsuite/27_io/filesystem/directory_entry/86597.cc: Remove
1056 -lstdc++fs from dg-options.
1057 * testsuite/27_io/filesystem/directory_entry/lwg3171.cc: Likewise.
1058 * testsuite/27_io/filesystem/file_status/1.cc: Likewise.
1059 * testsuite/27_io/filesystem/filesystem_error/cons.cc: Likewise.
1060 * testsuite/27_io/filesystem/filesystem_error/copy.cc: Likewise.
1061 * testsuite/27_io/filesystem/iterators/directory_iterator.cc:
1062 Likewise.
1063 * testsuite/27_io/filesystem/iterators/pop.cc: Likewise.
1064 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
1065 Likewise.
1066 * testsuite/27_io/filesystem/operations/absolute.cc: Likewise.
1067 * testsuite/27_io/filesystem/operations/canonical.cc: Likewise.
1068 * testsuite/27_io/filesystem/operations/copy.cc: Likewise.
1069 * testsuite/27_io/filesystem/operations/copy_file.cc: Likewise.
1070 * testsuite/27_io/filesystem/operations/create_directories.cc:
1071 Likewise.
1072 * testsuite/27_io/filesystem/operations/create_directory.cc: Likewise.
1073 * testsuite/27_io/filesystem/operations/create_symlink.cc: Likewise.
1074 * testsuite/27_io/filesystem/operations/current_path.cc: Likewise.
1075 * testsuite/27_io/filesystem/operations/equivalent.cc: Likewise.
1076 * testsuite/27_io/filesystem/operations/exists.cc: Likewise.
1077 * testsuite/27_io/filesystem/operations/file_size.cc: Likewise.
1078 * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
1079 * testsuite/27_io/filesystem/operations/last_write_time.cc: Likewise.
1080 * testsuite/27_io/filesystem/operations/permissions.cc: Likewise.
1081 * testsuite/27_io/filesystem/operations/proximate.cc: Likewise.
1082 * testsuite/27_io/filesystem/operations/read_symlink.cc: Likewise.
1083 * testsuite/27_io/filesystem/operations/relative.cc: Likewise.
1084 * testsuite/27_io/filesystem/operations/remove.cc: Likewise.
1085 * testsuite/27_io/filesystem/operations/remove_all.cc: Likewise.
1086 * testsuite/27_io/filesystem/operations/space.cc: Likewise.
1087 * testsuite/27_io/filesystem/operations/status.cc: Likewise.
1088 * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
1089 * testsuite/27_io/filesystem/operations/temp_directory_path.cc:
1090 Likewise.
1091 * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Likewise.
1092
1093
c6e37a9f 1094 PR libstdc++/86756
1095 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Make various patterns for
1096 typeinfo and vtables less greedy.
1097 (GLIBCXX_3.4.26): Export symbols for std::filesystem::path.
1098 * src/c++17/Makefile.am: Add fs_path.cc and cow-fs_path.cc.
1099 * src/c++17/Makefile.in: Regenerate.
1100 * src/c++17/cow-fs_path.cc: Move src/filesystem/cow-std-path.cc to
1101 here, and change name of included file.
1102 * src/c++17/fs_path.cc: Move src/filesystem/std-path.cc to here.
1103 * src/filesystem/Makefile.am: Remove std-path.cc and cow-std-path.cc
1104 from sources.
1105 * src/filesystem/Makefile.in: Regenerate.
1106 * src/filesystem/cow-std-path.cc: Move to src/c++17/cow-fs_path.cc.
1107 * src/filesystem/std-path.cc: Move to src/c++17/fs_path.cc.
1108 * testsuite/27_io/filesystem/path/append/path.cc: Remove -lstdc++fs
1109 from dg-options and remove dg-require-filesystem-ts.
1110 * testsuite/27_io/filesystem/path/append/source.cc: Likewise.
1111 * testsuite/27_io/filesystem/path/assign/assign.cc: Likewise.
1112 * testsuite/27_io/filesystem/path/assign/copy.cc: Likewise.
1113 * testsuite/27_io/filesystem/path/compare/compare.cc: Likewise.
1114 * testsuite/27_io/filesystem/path/compare/lwg2936.cc: Likewise.
1115 * testsuite/27_io/filesystem/path/compare/path.cc: Likewise.
1116 * testsuite/27_io/filesystem/path/compare/strings.cc: Likewise.
1117 * testsuite/27_io/filesystem/path/concat/path.cc: Likewise.
1118 * testsuite/27_io/filesystem/path/concat/strings.cc: Likewise.
1119 * testsuite/27_io/filesystem/path/construct/80762.cc: Likewise.
1120 * testsuite/27_io/filesystem/path/construct/copy.cc: Likewise.
1121 * testsuite/27_io/filesystem/path/construct/default.cc: Likewise.
1122 * testsuite/27_io/filesystem/path/construct/format.cc: Likewise.
1123 * testsuite/27_io/filesystem/path/construct/locale.cc: Likewise.
1124 * testsuite/27_io/filesystem/path/construct/range.cc: Likewise.
1125 * testsuite/27_io/filesystem/path/construct/string_view.cc: Likewise.
1126 * testsuite/27_io/filesystem/path/decompose/extension.cc: Likewise.
1127 * testsuite/27_io/filesystem/path/decompose/filename.cc: Likewise.
1128 * testsuite/27_io/filesystem/path/decompose/parent_path.cc: Likewise.
1129 * testsuite/27_io/filesystem/path/decompose/relative_path.cc: Likewise.
1130 * testsuite/27_io/filesystem/path/decompose/root_directory.cc:
1131 Likewise.
1132 * testsuite/27_io/filesystem/path/decompose/root_name.cc: Likewise.
1133 * testsuite/27_io/filesystem/path/decompose/root_path.cc: Likewise.
1134 * testsuite/27_io/filesystem/path/decompose/stem.cc: Likewise.
1135 * testsuite/27_io/filesystem/path/generation/normal.cc: Likewise.
1136 * testsuite/27_io/filesystem/path/generation/normal2.cc: Likewise.
1137 * testsuite/27_io/filesystem/path/generation/proximate.cc: Likewise.
1138 * testsuite/27_io/filesystem/path/generation/relative.cc: Likewise.
1139 * testsuite/27_io/filesystem/path/generic/generic_string.cc: Likewise.
1140 * testsuite/27_io/filesystem/path/itr/components.cc: Likewise.
1141 * testsuite/27_io/filesystem/path/itr/traversal.cc: Likewise.
1142 * testsuite/27_io/filesystem/path/modifiers/clear.cc: Likewise.
1143 * testsuite/27_io/filesystem/path/modifiers/make_preferred.cc:
1144 Likewise.
1145 * testsuite/27_io/filesystem/path/modifiers/remove_filename.cc:
1146 Likewise.
1147 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
1148 Likewise.
1149 * testsuite/27_io/filesystem/path/modifiers/replace_filename.cc:
1150 Likewise.
1151 * testsuite/27_io/filesystem/path/modifiers/swap.cc: Likewise.
1152 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
1153 * testsuite/27_io/filesystem/path/nonmember/append.cc: Likewise.
1154 * testsuite/27_io/filesystem/path/nonmember/hash_value.cc: Likewise.
1155 * testsuite/27_io/filesystem/path/query/empty.cc: Likewise.
1156 * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise.
1157 * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise.
1158 * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise.
1159 * testsuite/27_io/filesystem/path/query/has_relative_path.cc: Likewise.
1160 * testsuite/27_io/filesystem/path/query/has_root_directory.cc:
1161 Likewise.
1162 * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise.
1163 * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise.
1164 * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise.
1165 * testsuite/27_io/filesystem/path/query/is_absolute.cc: Likewise.
1166 * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise.
1167
8815ac91 1168 PR libstdc++/87431
1169 * include/std/variant (_Variant_storage<true, _Types...>::_M_valid):
1170 Check is_trivially_copyable instead of is_scalar.
1171 (variant::emplace<N, Args>(Args&&...)): If construction of the new
1172 contained value can throw and its type is trivially copyable then
1173 construct into a temporary variant and move from it, to provide the
1174 strong exception safety guarantee.
1175 (variant::emplace<N, U, Args>(initializer_list<U>, Args&&...)):
1176 Likewise.
1177 * testsuite/20_util/variant/87431.cc: New test.
1178 * testsuite/20_util/variant/run.cc: Adjust test so that throwing
1179 conversion causes valueless state.
1180
0ebb0980 1181 PR libstdc++/88607
1182 * testsuite/17_intro/headers/c++1998/charset.cc: New test.
1183 * testsuite/17_intro/headers/c++2011/charset.cc: New test.
1184 * testsuite/17_intro/headers/c++2014/charset.cc: New test.
1185 * testsuite/17_intro/headers/c++2017/charset.cc: New test.
1186 * testsuite/17_intro/headers/c++2020/charset.cc: New test.
1187
adc6beee 11882019-01-05 Jonathan Wakely <jwakely@redhat.com>
1189
1190 * include/bits/fs_fwd.h (__file_clock): Define new clock.
1191 (file_time_type): Redefine in terms of __file_clock.
1192 * src/filesystem/ops-common.h (file_time): Add FIXME comment about
1193 overflow.
1194 * src/filesystem/std-ops.cc (is_set(perm_options, perm_options)): Give
1195 internal linkage.
1196 (internal_file_lock): New helper type for accessing __file_clock.
1197 (do_copy_file): Use internal_file_lock to convert system time to
1198 file_time_type.
1199 (last_write_time(const path&, error_code&)): Likewise.
1200 (last_write_time(const path&, file_time_type, error_code&)): Likewise.
1201
6b4a77f2 12022019-01-04 Jonathan Wakely <jwakely@redhat.com>
1203
98185b9f 1204 * config/abi/pre/gnu.ver (GLIBCXX_3.4.21): Make patterns less greedy
1205 for const member functions of std::basic_string.
1206 (GLIBCXX_3.4.26): Export member functions of std::basic_string added
1207 in C++17.
1208 * include/bits/basic_string.h (basic_string(__sv_wrapper, const A&)):
1209 Make non-standard constructor private.
1210 [!_GLIBCXX_USE_CXX11_ABI] (basic_string(__sv_wrapper, const A&)):
1211 Likewise.
1212 * include/bits/basic_string.tcc (std::string, std::wstring): Declare
1213 explicit instantiations for C++17 as well as earlier dialects.
1214 * src/c++17/Makefile.am: Add new source files.
1215 * src/c++17/Makefile.in: Regenerate.
1216 * src/c++17/cow-string-inst.cc: New file defining explicit
1217 instantiations for basic_string member functions added in C++17.
1218 * src/c++17/string-inst.cc: Likewise.
1219
859e6fed 1220 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export allocator-extended
1221 copy/move constructors for old std::basic_string.
1222 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
1223 (basic_string::reference, basic_string::const_reference): Define
1224 as plain references for C++11 and later.
1225 (basic_string::basic_string()): Put constructor body outside
1226 preprocessor conditional groups.
1227 (basic_string::basic_string(basic_string&&)): Move _Alloc_hider
1228 instead of copying it.
1229 (basic_string::basic_string(const basic_string&, const _Alloc&)):
1230 Define.
1231 (basic_string::basic_string(basic_string&&, const _Alloc&)):
1232 Define.
1233 * include/bits/fs_path.h [!_GLIBCXX_USE_CXX11_ABI]: Remove special
1234 cases for old basic_string.
1235 * testsuite/21_strings/basic_string/cons/char/8.cc: Test
1236 allocator-extended constructors unconditionally. Add extra members to
1237 allocator type when using old string ABI.
1238 * testsuite/21_strings/basic_string/allocator/71964.cc: Enable test
1239 for old string ABI.
1240 * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise.
1241
e13f6a7f 1242 * testsuite/23_containers/list/61347.cc: Avoid spurious failure when
1243 -fno-inline added to test flags.
1244
a18fccd0 1245 * testsuite/21_strings/basic_string/requirements/
1246 explicit_instantiation/debug.cc: Remove XFAIL for old ABI.
1247
7f77ca07 1248 * testsuite/27_io/filesystem/filesystem_error/copy.cc: Fix static
1249 assertion failures with old std::string ABI.
1250
9346fb0e 1251 * include/bits/fs_path.h (path::_List::erase): Replace both overloads
1252 with ...
1253 (path::pop_back(), path::_M_erase_from(const_iterator)): New member
1254 functions that will only erase elements at the end.
1255 * src/filesystem/std-path.cc (path::_List::_Impl::pop_back()): Define.
1256 (path::_List::_Impl::_M_erase_from(const_iterator)): Define.
1257 (path::_List::operator=(const _List&)): Use _M_erase_from(p) instead
1258 of erase(p, end()).
1259 (path::_List::pop_back()): Define.
1260 (path::_List::_M_erase_from(const_iterator)): Define.
1261 (path::operator/=(const path&)): Use pop_back to remove last component
1262 and _M_erase_from to remove multiple components.
1263 (path::_M_append(basic_string_view<value_type>)): Likewise.
1264 (path::operator+=(const path&)): Likewise.
1265 (path::_M_concat(basic_string_view<value_type>)): Likewise.
1266 (path::remove_filename()): Likewise.
1267 (path::lexically_normal()): Use _List::_Impl iterators instead of
1268 path::iterator. Use pop_back to remove components from the end. Clear
1269 trailing filename, instead of using erase(const_iterator) to remove
1270 a non-final component.
1271 * testsuite/27_io/filesystem/path/generation/normal.cc: Test
1272 additional cases.
1273 * testsuite/27_io/filesystem/path/generation/normal2.cc: New test.
1274
24230cab 1275 * src/filesystem/std-path.cc (path::operator+=(const path&)): Fix
1276 incorrect treatment of empty filename after trailing slash.
1277 * testsuite/27_io/filesystem/path/concat/path.cc: Test problem case.
1278
6b4a77f2 1279 * testsuite/21_strings/basic_string/modifiers/assign/char/
1280 move_assign_optim.cc: Avoid spurious failure when -fno-inline added
1281 to test flags.
1282 * testsuite/21_strings/basic_string/modifiers/assign/wchar_t/
1283 move_assign_optim.cc: Likewise.
1284
02df5941 12852019-01-03 Jonathan Wakely <jwakely@redhat.com>
1286 Jakub Jelinek <jakub@redhat.com>
1287
1288 PR libstdc++/88607
1289 * include/experimental/memory: Replace UTF-8 quote characters.
1290 * include/std/future: Replace UTF-8 "em dash" characters.
1291
f8ad40d8 12922019-01-03 Jonathan Wakely <jwakely@redhat.com>
1293
9013258b 1294 PR libstdc++/88607
1295 * include/bits/forward_list.h: Replace UTF-8 "ligature fi" character.
1296 * include/debug/forward_list: Likewise.
1297 * include/experimental/bits/shared_ptr.h: Remove UTF-8 "section sign"
1298 character.
1299 * include/experimental/chrono: Likewise.
1300 * include/experimental/functional: Likewise.
1301 * include/experimental/ratio: Likewise.
1302 * include/experimental/system_error: Likewise.
1303 * include/experimental/tuple: Likewise.
1304 * include/experimental/type_traits: Likewise.
1305 * include/parallel/workstealing.h: Replace UTF-8 "en dash" character.
1306 * include/parallel/multiseq_selection.h: Likewise.
1307
f8ad40d8 1308 PR libstdc++/88681
1309 * config/abi/pre/gnu.ver: Add missing exports.
1310 * testsuite/22_locale/collate_byname/88681.cc: New test.
1311 * testsuite/22_locale/time_get/get/char/88681.cc: New test.
1312 * testsuite/22_locale/time_get/get/wchar_t/88681.cc: New test.
1313
138292f4 13142019-01-02 Jonathan Wakely <jwakely@redhat.com>
1315
553d41a8 1316 * testsuite/23_containers/map/cons/deduction.cc: Test deduction from
1317 initializer_list<value_type> and from input iterator ranges.
1318 * testsuite/23_containers/multimap/cons/deduction.cc: Likewise.
1319
138292f4 1320 * testsuite/experimental/string_view/element_access/char/empty.cc:
1321 Fix year range in copyright header.
1322
963c0125 13232019-01-02 Joel Brobecker <brobecker@adacore.com>
1324
1325 * testsuite/21_strings/basic_string_view/element_access/char/empty.cc:
1326 Fix year range in copyright header.
1327
fbd26352 13282019-01-01 Jakub Jelinek <jakub@redhat.com>
d353bf18 1329
1330 Update copyright years.
fb96fbb3 1331\f
fbd26352 1332Copyright (C) 2019 Free Software Foundation, Inc.
fb96fbb3 1333
1334Copying and distribution of this file, with or without modification,
1335are permitted in any medium without royalty provided the copyright
1336notice and this notice are preserved.