Landing: 3a26070979bc

Project / Subsystem

gcc / libstdc++

Date

2026-09-09

Author

Jonathan Wakely

Commit

3a26070979bcd3f8d2594a9c08b02addd9369cde

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
libstdc++
patch_id
—
commit_hash
3a26070979bcd3f8d2594a9c08b02addd9369cde
source_type
github
headline
Make libstdc++ dynamic format string checking work with Clang.
tldr
Refactored C++ `<format>` dynamic spec checking to avoid out-of-line function template instantiation issues with Clang.
author
Jonathan Wakely
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • libstdc++
  • • format
  • • clang
  • • bugfix
discussion_id_link
—
bugzilla_pr
—
date
2026-09-09T00:00:00.000Z

A bug in Clang prevents it from compiling format string checking functions that are defined out-of-line as templates. This patch refactors basic_format_parse_context::check_dynamic_spec and related functions in libstdc++, making their definitions inline within the class body. It also simplifies argument handling by using span<_Arg_t> instead of template parameter packs, resolving the Clang compilation issue and slightly simplifying the code.