Landing: 83f056802116

Project / Subsystem

gcc / libstdc++

Date

2026-05-14

Author

Tomasz Kamiński

Commit

83f056802116d09136d2f32d1accfe5a53a85a74

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
libstdc++
patch_id
commit_hash
83f056802116d09136d2f32d1accfe5a53a85a74
source_type
github
headline
libstdc++: Include range_access.h from <valarray> for C++11 and later.
tldr
The `<valarray>` header now includes `<bits/ranges_access.h>` for C++11 and later, providing `begin`/`end` support for valarrays.
author
Tomasz Kamiński
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • libstdc++
  • valarray
  • ranges
discussion_id_link
bugzilla_pr
date
2026-05-14T00:00:00.000Z

The <valarray> header in libstdc++ now includes <bits/ranges_access.h> when compiling for C++11 or later. This change enables the use of range-based for loops and the std::begin and std::end functions with std::valarray. This brings std::valarray in line with other container-like types that have been updated to support range access as a defect report against C++11.