Landing: bd02a048e92a

Project / Subsystem

gcc / libstdc++

Date

2026-05-26

Author

Tomasz Kamiński

Commit

bd02a048e92a778c2d3fcc011b8a88e1ac6f8183

Source

github

Perf win

No

Breaking

Yes

All attributes

project
gcc
subsystem
libstdc++
patch_id
commit_hash
bd02a048e92a778c2d3fcc011b8a88e1ac6f8183
source_type
github
headline
Libstdc++ Reverts to Dynamic Sizing for ref_view
tldr
The library now calculates the size of `ref_view` dynamically, reverting a change that made it statically sized and caused unexpected type changes.
author
Tomasz Kamiński
outcome
committed
performance_win
false
breaking_change
true
series_id
series_parts
[]
tags
  • libstdc++
  • ranges
  • ref_view
  • revert
discussion_id_link
bugzilla_pr
date
2026-05-26T00:00:00.000Z

The libstdc++ library reverted a change that made ref_view<R> statically sized, except for the introduction of ranges::__static_size. The static sizing led to unexpected changes in return types for functions like define_static_array, where the return type changed from span<const ...> to span<const ..., 10>. This behavior was deemed beyond the scope of implementation freedom and the change was reverted until P3928R0 is accepted.