diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2020-04-23 15:36:29 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2020-04-23 16:27:29 +0100 |
commit | dcf69ac5448fd6a16137cfe9fe6deadd0ec0243d (patch) | |
tree | 0cf76eaa017030c8ef79324f06e6fcc391f43d6c /libstdc++-v3 | |
parent | f7e4641afba7c348a7e7c8655e537a953c416bb3 (diff) |
coroutines, libstdc++-v3: Update to n4861 C++20 DIS.
Update the inline namespace to __n4861.
Add '__cpp_lib_coroutine' defined to 201902L per n4861.
libstdc++-v3/ChangeLog:
2020-04-23 Iain Sandoe <iain@sandoe.co.uk>
* include/std/coroutine: Update the inline namespace to __n4861.
Add the __cpp_lib_coroutine define, set to 201902L.
* include/std/version: Add __cpp_lib_coroutine, set to 201902L.
gcc/testsuite/ChangeLog:
2020-04-23 Iain Sandoe <iain@sandoe.co.uk>
* g++.dg/coroutines/coro-bad-alloc-00-bad-op-new.C: Adjust for
changed inline namespace.
* g++.dg/coroutines/coro-bad-alloc-01-bad-op-del.C: Likewise.
* g++.dg/coroutines/coro-bad-alloc-02-no-op-new-nt.C: Likewise
* g++.dg/coroutines/coro.h: Likewise
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/include/std/coroutine | 9 | ||||
-rw-r--r-- | libstdc++-v3/include/std/version | 3 |
3 files changed, 15 insertions, 3 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index fb0c1acd268..b5dc52c66d2 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2020-04-23 Iain Sandoe <iain@sandoe.co.uk> + + * include/std/coroutine: Update the inline namespace to __n4861. + Add the __cpp_lib_coroutine define, set to 201902L. + * include/std/version: Add __cpp_lib_coroutine, set to 201902L. + 2020-04-22 Jonathan Wakely <jwakely@redhat.com> * include/std/execution (__cpp_lib_execution): Define to indicate diff --git a/libstdc++-v3/include/std/coroutine b/libstdc++-v3/include/std/coroutine index 2e45c451450..4fa1355c0ca 100644 --- a/libstdc++-v3/include/std/coroutine +++ b/libstdc++-v3/include/std/coroutine @@ -52,10 +52,13 @@ namespace std _GLIBCXX_VISIBILITY (default) { - _GLIBCXX_BEGIN_NAMESPACE_VERSION +_GLIBCXX_BEGIN_NAMESPACE_VERSION #if __cpp_impl_coroutine - inline namespace __n4835 { + +#define __cpp_lib_coroutine 201902L + + inline namespace __n4861 { // 17.12.2 coroutine traits /// [coroutine.traits] @@ -277,7 +280,7 @@ namespace std _GLIBCXX_VISIBILITY (default) void await_resume() {} }; - } // namespace __n4835 + } // namespace __n4861 #else #error "the coroutine header requires -fcoroutines" diff --git a/libstdc++-v3/include/std/version b/libstdc++-v3/include/std/version index 3024f1caf8b..d06d60c9106 100644 --- a/libstdc++-v3/include/std/version +++ b/libstdc++-v3/include/std/version @@ -69,6 +69,9 @@ #if __cplusplus >= 201402L // c++14 +#if __cpp_impl_coroutine +# define __cpp_lib_coroutine 201902L +#endif #define __cpp_lib_integral_constant_callable 201304 #define __cpp_lib_is_final 201402L #define __cpp_lib_transformation_trait_aliases 201304 |