aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-03-13 21:19:54 +0000
committerJonathan Wakely <jwakely@redhat.com>2024-03-14 16:58:15 +0000
commitf89cfdb2f2e9b4fe517b1e00511c4d70a7014cbc (patch)
tree67f1c557476d23df6e42eaa80f009ba6ae43cc8f /gcc/expr.cc
parentdf483ebd24689a3bebfae2089637a00eca0e5a12 (diff)
downloadgcc-f89cfdb2f2e9b4fe517b1e00511c4d70a7014cbc.zip
gcc-f89cfdb2f2e9b4fe517b1e00511c4d70a7014cbc.tar.gz
gcc-f89cfdb2f2e9b4fe517b1e00511c4d70a7014cbc.tar.bz2
libstdc++: Fix std::format("{}", negative_integer) [PR114325]
The fast path for "{}" format strings has a bug for negative integers where the length passed to std::to_chars is too long. libstdc++-v3/ChangeLog: PR libstdc++/114325 * include/std/format (_Scanner::_M_scan): Pass correct length to __to_chars_10_impl. * testsuite/std/format/functions/format.cc: Check negative integers with empty format-spec.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions