Landing: a43cd560e438

Project / Subsystem

gcc / libstdc++

Date

2026-09-09

Author

Sammy Al Hashemi

Commit

a43cd560e4383774a7cfa5b0d4f29f7f5ec70fc1

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
libstdc++
patch_id
—
commit_hash
a43cd560e4383774a7cfa5b0d4f29f7f5ec70fc1
source_type
github
headline
libstdc++: Make make_decimalN functions inline for module support.
tldr
Decimal number creation functions in libstdc++ are now inline to enable usage with C++ modules.
author
Sammy Al Hashemi
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • libstdc++
  • • c++-modules
  • • inline
discussion_id_link
—
bugzilla_pr
—
date
2026-09-09T00:00:00.000Z

The make_decimal32, make_decimal64, and make_decimal128 functions in decimal/decimal.h were previously declared static, giving them internal linkage and preventing their use in C++ modules. By changing them to inline, these functions now have external linkage with vague-linkage semantics, allowing them to be shared across translation units and exported when consumed as header units or within module purview, resolving PR122071.