From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 3E316384B824; Fri, 20 Nov 2020 13:49:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3E316384B824 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r10-9056] libstdc++: Fix compilation error with clang-8 [PR 97876] X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/releases/gcc-10 X-Git-Oldrev: b11cbbbb74b0e357652a1f1f0d937455310a6389 X-Git-Newrev: a186d72afd6cfb13efd4a0ec82049d79892334fd Message-Id: <20201120134911.3E316384B824@sourceware.org> Date: Fri, 20 Nov 2020 13:49:11 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Nov 2020 13:49:11 -0000 https://gcc.gnu.org/g:a186d72afd6cfb13efd4a0ec82049d79892334fd commit r10-9056-ga186d72afd6cfb13efd4a0ec82049d79892334fd Author: Jonathan Wakely Date: Thu Nov 19 22:32:54 2020 +0000 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: --- libstdc++-v3/include/std/stop_token | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstdc++-v3/include/std/stop_token b/libstdc++-v3/include/std/stop_token index 76709dd59eb..80f50ea83ca 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