[Bug libstdc++/126731] `std::format("{}", std::float16_t)` does not agree with `std::to_chars`

tkaminsk at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Aug 21 06:08:45 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126731

Tomasz Kamiński <tkaminsk at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |16.3

--- Comment #3 from Tomasz Kamiński <tkaminsk at gcc dot gnu.org> ---
Fixed for both trunk (17) and 16.3. Patch cannot be back-ported further due
dependency on r16-616-g9c9a7316adb996, and removing the formatter
specializations without that change, will lead to inconsistent behavior between
calling std::format with (b)float16_t as argument and
formatter<(b)float16_t>::format.


More information about the Gcc-bugs mailing list