aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-01-20 00:44:12 +0000
committerJonathan Wakely <jwakely@redhat.com>2024-01-21 13:31:28 +0000
commita57439d61937925cec48df6166b2a805ae7054d5 (patch)
tree922370fc0d69e39a1444da53ac866e994d4fc824 /gcc
parent29f931e39f2be86b454a8264b1cd42e4ca3cdcd7 (diff)
downloadgcc-a57439d61937925cec48df6166b2a805ae7054d5.zip
gcc-a57439d61937925cec48df6166b2a805ae7054d5.tar.gz
gcc-a57439d61937925cec48df6166b2a805ae7054d5.tar.bz2
libstdc++: Fix std::format floating-point alternate forms [PR113512]
The logic for handling '#' forms was ... not good. The count of significant figures just counted digits, instead of ignoring leading zeros. And when moving the result from the stack buffer to a dynamic string the exponent could get lost in some cases. libstdc++-v3/ChangeLog: PR libstdc++/113512 * include/std/format (__formatter_fp::format): Fix logic for alternate forms. * testsuite/std/format/functions/format.cc: Check buggy cases of alternate forms with g presentation type.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions