On Mon, Jan 17, 2022 at 5:49 AM Jonathan Wakely <jwak...@redhat.com> wrote: > > > > On Sun, 16 Jan 2022 at 18:12, Patrick Palka via Libstdc++ > <libstd...@gcc.gnu.org> wrote: >> >> This makes fast_float handle the situation where std::from_chars is >> specified to return result_out_of_range, i.e. when the parsed value >> is outside the representable range of the floating-point type. >> >> This adjusts fast_float's behavior in case of over/underflow: instead of >> returning errc{} and setting value to +-0 or +-infinity, return >> result_out_of_range and don't modify value, as per [charconv.from.chars]/1. >> >> libstdc++-v3/ChangeLog: >> >> * src/c++17/fast_float/LOCAL_PATCHES: Update. >> * src/c++17/fast_float/fast_float.h (from_chars_advanced): In >> case of over/underflow, return errc::result_out_of_range and don't >> modify 'value'. >> > > Typo in the commit summary line "conformnace". > > OK for trunk. > > Please report this as an issue to the upstream project, if you didn't already > (and if they haven't documented this as an intentional deviation from the > standard).
This behavior difference isn't documented AFAICT, so I reported the issue upstream at https://github.com/fastfloat/fast_float/issues/120