From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 828BF385803F; Fri, 2 Feb 2024 10:24:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 828BF385803F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706869458; bh=7S/UcZh3wXWpZtRwWJHrc4zPtwes7UZkMCFwOTGVG1A=; h=From:To:Subject:Date:From; b=q6Ccb2eij1mlXQpgO+vC6Txpl4/Rw9fHGoonM3LW33nQajpjkHW5onSwtoafLiavH 9vpGBurg01Q1qQB7PUq3o+tOtqsDCNW4uJ0MW+CNEG59hsB0Mrx9yFo6XAVOuN/IBv 8CH4L8kX4G9SMA7KvGcOKdsd+DmvaXundabgnOtw= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r14-8739] libstdc++: Remove noexcept from std::osyncstream::operator= X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 91adf2182a245ede958f02df61a5bb184e9110ba X-Git-Newrev: 67f5a8c802463228da7c7bb2ab100095217560a6 Message-Id: <20240202102418.828BF385803F@sourceware.org> Date: Fri, 2 Feb 2024 10:24:18 +0000 (GMT) List-Id: https://gcc.gnu.org/g:67f5a8c802463228da7c7bb2ab100095217560a6 commit r14-8739-g67f5a8c802463228da7c7bb2ab100095217560a6 Author: Jonathan Wakely Date: Thu Feb 1 21:23:27 2024 +0000 libstdc++: Remove noexcept from std::osyncstream::operator= This should not be noexcept because its _M_syncbuf member has a potentially-throwing move assignment operator. The noexcept was removed by LWG 3867. libstdc++-v3/ChangeLog: * include/std/syncstream (basic_osyncstream::operator=): Remove noexcept, as per LWG 3867. Diff: --- libstdc++-v3/include/std/syncstream | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstdc++-v3/include/std/syncstream b/libstdc++-v3/include/std/syncstream index a84c93a61eee..08a901b62fd0 100644 --- a/libstdc++-v3/include/std/syncstream +++ b/libstdc++-v3/include/std/syncstream @@ -285,7 +285,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ~basic_osyncstream() = default; - basic_osyncstream& operator=(basic_osyncstream&&) noexcept = default; + basic_osyncstream& operator=(basic_osyncstream&&) = default; syncbuf_type* rdbuf() const noexcept { return const_cast(&_M_syncbuf); }