]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix compilation error with clang-8 [PR 97876]
authorJonathan Wakely <jwakely@redhat.com>
Thu, 19 Nov 2020 22:32:54 +0000 (22:32 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 20 Nov 2020 13:29:04 +0000 (13:29 +0000)
This fixes a compilation error with clang-8 and earlier. This change is
only on the gcc-10 branch, not master, because the <stop_token> header
is included indirectly in more places on the branch than on master.

PR libstdc++/97876
* include/std/stop_token (_Stop_state_t): Define default
constructor as user-provided not defaulted.

libstdc++-v3/include/std/stop_token

index 76709dd59ebdfa3337501e24db69100d8c5267e5..80f50ea83ca962bd516daf2f229726b13dfcb1ce 100644 (file)
@@ -166,7 +166,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       __gthread_t _M_requester;
 #endif
 
-      _Stop_state_t() = default;
+      _Stop_state_t() noexcept { }
 
       bool
       _M_stop_possible() noexcept