Landing: c8e065ed3911

Project / Subsystem

gcc / libstdc++

Date

2026-08-24

Author

Jonathan Wakely

Commit

c8e065ed391115f763af09004f593a3db1fa5514

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
libstdc++
patch_id
—
commit_hash
c8e065ed391115f763af09004f593a3db1fa5514
source_type
github
headline
libstdc++: Fix output stream spanbuf openmode
tldr
Ensures `basic_ospanstream` correctly opens its internal span buffer for output.
author
Jonathan Wakely
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • libstdc++
  • • bugfix
  • • streams
discussion_id_link
—
bugzilla_pr
—
date
2026-08-24T00:00:00.000Z

A copy-paste error in the basic_ospanstream constructor for libstdc++ caused it to incorrectly initialize its basic_spanbuf. This commit corrects the openmode parameter, ensuring the span buffer is properly opened for output operations, and includes a new test case to verify the fix.