From: Jonathan Wakely Date: Thu, 19 Nov 2020 22:32:54 +0000 (+0000) Subject: libstdc++: Fix compilation error with clang-8 [PR 97876] X-Git-Tag: releases/gcc-10.3.0~608 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a186d72afd6cfb13efd4a0ec82049d79892334fd;p=thirdparty%2Fgcc.git libstdc++: Fix compilation error with clang-8 [PR 97876] This fixes a compilation error with clang-8 and earlier. This change is only on the gcc-10 branch, not master, because the 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. --- diff --git a/libstdc++-v3/include/std/stop_token b/libstdc++-v3/include/std/stop_token index 76709dd59ebd..80f50ea83ca9 100644 --- a/libstdc++-v3/include/std/stop_token +++ b/libstdc++-v3/include/std/stop_token @@ -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