]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: case-sensitivity in hexfloat std::from_chars [PR105441]
authorPatrick Palka <ppalka@redhat.com>
Mon, 2 May 2022 11:00:48 +0000 (07:00 -0400)
committerPatrick Palka <ppalka@redhat.com>
Mon, 2 May 2022 11:00:48 +0000 (07:00 -0400)
commit576f975cabb0fd9843de152a2d247d486a967b08
tree72fc12a9bf8d8f05879bffe288acbeed7a0a9c30
parent02f03c5c826d0cb7c32398af0c4282921e6e072a
libstdc++: case-sensitivity in hexfloat std::from_chars [PR105441]

The hexfloat parser for binary32/64 added in r12-6645-gcc3bf3404e4b1c
overlooked that the exponent part can also begin with an uppercase 'P'.

PR libstdc++/105441

libstdc++-v3/ChangeLog:

* src/c++17/floating_from_chars.cc (__floating_from_chars_hex):
Also accept 'P' as the start of the exponent.
* testsuite/20_util/from_chars/7.cc: Add corresponding testcase.
libstdc++-v3/src/c++17/floating_from_chars.cc
libstdc++-v3/testsuite/20_util/from_chars/7.cc