From: Jonathan Wakely Date: Thu, 1 Feb 2024 21:23:27 +0000 (+0000) Subject: libstdc++: Remove noexcept from std::osyncstream::operator= X-Git-Tag: basepoints/gcc-15~1400 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67f5a8c802463228da7c7bb2ab100095217560a6;p=thirdparty%2Fgcc.git 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 --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); }