public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-10144] libstdc++: Remove noexcept from std::osyncstream::operator=
@ 2024-02-08 21:28 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2024-02-08 21:28 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:cc5bf5a8bbcf7775d5e224a7cb7e5bd179ccf784

commit r12-10144-gcc5bf5a8bbcf7775d5e224a7cb7e5bd179ccf784
Author: Jonathan Wakely <jwakely@redhat.com>
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.
    
    (cherry picked from commit 67f5a8c802463228da7c7bb2ab100095217560a6)

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 7a4f731ddd91..7da740d1609b 100644
--- a/libstdc++-v3/include/std/syncstream
+++ b/libstdc++-v3/include/std/syncstream
@@ -284,7 +284,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<syncbuf_type*>(&_M_syncbuf); }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-08 21:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-08 21:28 [gcc r12-10144] libstdc++: Remove noexcept from std::osyncstream::operator= Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).