[Bug 295767] The C++ feature std::from_chars (with float value) is missing

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 01 Jun 2026 14:59:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295767

Mark Millard <marklmi26-fbsd@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marklmi26-fbsd@yahoo.com

--- Comment #1 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
Why do you keep reporting upstream llvm issues as FreeBSD issues?

The from_chars support is documented by llvm to be incomplete
in all releases of llvm libc++ so far. (See later below.)

As in multiple past reports by you for such contexts, if the
partial implementation is sufficient for the context that you
want it for, use:

-fexperimental-library

to enable the partial support. I do this in some software that
I have that uses to_chars.

You could have checked the below yourself instead of requiring
others to do such for you.


https://libcxx.llvm.org/Status/Cxx17.html reports:

QUOTE
P0067R5
Elementary string conversions, revision 5
2016-11 (Issaquah)
Partial
#99940
For integer types, std::(to|from)_chars has been available
since v7; for float and double, std::to_chars since v14 and
std::from_chars since v20. Support is complete except for
long double.
END QUOTE

Also, because of the incomplete status, the feature test
macro __cpp_lib_to_chars is still not defined by libc++ . (There is none that
mentions from_chars separately: this one covers both.)

-- 
You are receiving this mail because:
You are the assignee for the bug.