]> gcc.gnu.org Git - 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:08:28 +0000 (07:08 -0400)
commit4a6d7da796e456115bbac92e056123f095a3780c
treec99de910dbf3117ba5f3fc9c830dd007fc0f5777
parent1f27cd15b3fb815b6b586aaad007e58edae71468
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.

(cherry picked from commit 576f975cabb0fd9843de152a2d247d486a967b08)
libstdc++-v3/src/c++17/floating_from_chars.cc
libstdc++-v3/testsuite/20_util/from_chars/7.cc
This page took 0.060831 seconds and 6 git commands to generate.