public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/104032] New: Cannot move-assign a spanstream
@ 2022-01-14 16:20 ensadc at mailnesia dot com
2022-01-15 9:44 ` [Bug libstdc++/104032] " redi at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: ensadc at mailnesia dot com @ 2022-01-14 16:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104032
Bug ID: 104032
Summary: Cannot move-assign a spanstream
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: ensadc at mailnesia dot com
Target Milestone: ---
https://godbolt.org/z/GxdYrYYrj
====
#include <spanstream>
int main() {
std::ispanstream a(""), b("");
a = std::move(b);
}
====
In file included from <source>:1:
/opt/compiler-explorer/gcc-trunk-20220114/include/c++/12.0.0/spanstream: In
instantiation of 'std::basic_spanbuf<_CharT, _Traits>&
std::basic_spanbuf<_CharT, _Traits>::operator=(std::basic_spanbuf<_CharT,
_Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]':
/opt/compiler-explorer/gcc-trunk-20220114/include/c++/12.0.0/spanstream:258:24:
required from here
/opt/compiler-explorer/gcc-trunk-20220114/include/c++/12.0.0/spanstream:89:7:
error: base operand of '->' has non-pointer type 'std::basic_spanbuf<char>'
89 | basic_spanbuf(std::move(__rhs))->swap(*this);
| ^~~~~~~~~~~~~
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/104032] Cannot move-assign a spanstream
2022-01-14 16:20 [Bug libstdc++/104032] New: Cannot move-assign a spanstream ensadc at mailnesia dot com
@ 2022-01-15 9:44 ` redi at gcc dot gnu.org
2022-01-23 22:49 ` cvs-commit at gcc dot gnu.org
2022-01-23 22:54 ` redi at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2022-01-15 9:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104032
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2022-01-15
Status|UNCONFIRMED |ASSIGNED
Target Milestone|--- |12.0
Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/104032] Cannot move-assign a spanstream
2022-01-14 16:20 [Bug libstdc++/104032] New: Cannot move-assign a spanstream ensadc at mailnesia dot com
2022-01-15 9:44 ` [Bug libstdc++/104032] " redi at gcc dot gnu.org
@ 2022-01-23 22:49 ` cvs-commit at gcc dot gnu.org
2022-01-23 22:54 ` redi at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-01-23 22:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104032
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:
https://gcc.gnu.org/g:51631875a2fa0af62ebda7484ac48368e1805dff
commit r12-6829-g51631875a2fa0af62ebda7484ac48368e1805dff
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Sun Jan 23 21:55:57 2022 +0000
libstdc++: Fix std::spanstream move assignment [PR104032]
libstdc++-v3/ChangeLog:
PR libstdc++/104032
* include/std/spanstream (basic_spanbuf(basic_spanbuf&&)): Use
mem-initializer for _M_buf.
(basic_spanbuf::Operator=(basic_spanbuf&&)): Fix ill-formed
member access.
* testsuite/27_io/spanstream/2.cc: New test.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/104032] Cannot move-assign a spanstream
2022-01-14 16:20 [Bug libstdc++/104032] New: Cannot move-assign a spanstream ensadc at mailnesia dot com
2022-01-15 9:44 ` [Bug libstdc++/104032] " redi at gcc dot gnu.org
2022-01-23 22:49 ` cvs-commit at gcc dot gnu.org
@ 2022-01-23 22:54 ` redi at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2022-01-23 22:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104032
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed, thanks for the report.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-01-23 22:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-14 16:20 [Bug libstdc++/104032] New: Cannot move-assign a spanstream ensadc at mailnesia dot com
2022-01-15 9:44 ` [Bug libstdc++/104032] " redi at gcc dot gnu.org
2022-01-23 22:49 ` cvs-commit at gcc dot gnu.org
2022-01-23 22:54 ` redi at gcc dot gnu.org
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).