[Bug libstdc++/127006] ospanstream forces istream on ctor

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Aug 24 11:28:10 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127006

--- Comment #2 from GCC 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:c8e065ed391115f763af09004f593a3db1fa5514

commit r17-3587-gc8e065ed391115f763af09004f593a3db1fa5514
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Mon Aug 24 11:21:49 2026 +0100

    libstdc++: Fix openmode for ospanstream's spanbuf [PR127006]

    The basic_ospanstream constructor is supposed to ensure that the
    basic_spanbuf is opened for output. I made a copy & paste error from the
    basic_ispanstream constructor.

    libstdc++-v3/ChangeLog:

            PR libstdc++/127006
            * include/std/spanstream (basic_ospanstream(span, openmode)):
            Add correct openmode value to parameter.
            * testsuite/27_io/spanstream/127006.cc: New test.


More information about the Gcc-bugs mailing list