Landing: bb591391ec98

Project / Subsystem

gcc / libstdc++

Date

2026-09-09

Author

Steven Sudit

Commit

bb591391ec98a280bb706c20029bbeada87304d0

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
libstdc++
patch_id
—
commit_hash
bb591391ec98a280bb706c20029bbeada87304d0
source_type
github
headline
libstdc++: Make __valid_types_for_check_dynamic_spec static
tldr
Fixes C++26 formatting compilation errors on Clang/EDG by making a helper function static.
author
Steven Sudit
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • c++26
  • • compilation
discussion_id_link
—
bugzilla_pr
—
date
2026-09-09T00:00:00.000Z

A static_assert within basic_format_parse_context::check_dynamic_spec failed to compile with Clang and EDG in C++26 mode due to an implicit this pointer use. This commit makes the helper function __valid_types_for_check_dynamic_spec static, as it does not use any non-static members. This change resolves the compilation issue for formatters calling check_dynamic_spec with various template arguments.