warning C4242: '=': conversion from 'int' to 'char', possible loss of data
and double to long double.
Also
llvm-project\libcxx\test\std\utilities\format\format.functions\format_tests.h(121) : warning C6054: String 'begin' might not be zero-terminated.: Lines: 88, 89, 90, 91, 92, 109, 110, 121
llvm-project\libcxx\test\std\utilities\format\format.functions\format_tests.h(121) : warning C6001: Using uninitialized memory 'begin'.: Lines: 88, 89, 90, 91, 92, 109, 110, 121
llvm-project\libcxx\test\std\utilities\format\format.functions\format_tests.h(125) : warning C6001: Using uninitialized memory 'end'.: Lines: 88, 89, 90, 91, 92, 125
and -NaN is formatted like "-nan(ind)"
Also I found something else.
Currently this test fails on MSVC with
Format string answer is '{:#g}' Expected output answer is '0.' Actual output answer is '0.00000'
This is tested there: https://github.com/llvm/llvm-project/blob/486a3c4662cb052329b96537da18893d73138b64/libcxx/test/std/utilities/format/format.functions/format_tests.h#L2035
I don't know what standard says about it but libfmt agrees with MSVC: https://gcc.godbolt.org/z/vd38r5W9x
MSVC STL is wrong per
http://eel.is/c++draft/format#string.std-22
I added code to not directly use the result of std::to_chars since I know it can give the "wrong" results.
https://github.com/llvm/llvm-project/blob/main/libcxx/include/__format/formatter_floating_point.h#L582
But let's discuss this further on MSVC STL's Discord.