[Bug libstdc++/105324] std::from_chars() assertion at floating_from_chars.cc:78 when parsing 1.11111111....
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri May 6 10:34:34 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105324
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Alexandre Oliva
<aoliva@gcc.gnu.org>:
https://gcc.gnu.org/g:799ff8e3e38f62632a98f8931ca291d191e677d5
commit r11-9960-g799ff8e3e38f62632a98f8931ca291d191e677d5
Author: Alexandre Oliva <oliva@adacore.com>
Date: Fri May 6 07:33:50 2022 -0300
[PR105324] libstdc++: testsuite: pr105324 requires FP from_char
The floating-point overloads of from_char are only declared if
_GLIBCXX_HAVE_USELOCALE is #defined as nonzero. That's exposed from
charconv as __cpp_lib_to_chars >= 201611L, so guard the test body with
that.
for libstdc++-v3/ChangeLog
PR c++/105324
* testsuite/20_util/from_chars/pr105324.cc: Guard test body
with conditional for floating-point overloads of from_char.
(cherry picked from commit 25389f3de489c25a6983db96428a6bf06aedc829)
More information about the Gcc-bugs
mailing list