[PATCH gcc-15 0/1] libstdc++: avoid bf16 literal in format arg normalization

Jakit Liang jakitliang@gmail.com
Sat Sep 5 21:08:48 GMT 2026


This patch updates std::basic_format_arg::_S_to_arg_type in <format>
on the gcc-15 branch to avoid a bfloat16 literal-based type check.

It replaces decltype(0.0bf16) with __gnu_cxx::__bfloat16_t while
preserving existing behavior by keeping normalization to float.

Tested on x86_64-linux-gnu.

Jakit Liang (1):
  libstdc++: avoid bf16 literal in format arg normalization

 libstdc++-v3/include/std/format | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.47.3



More information about the Libstdc++ mailing list