[libcxx-commits] [libcxx] [libc++] LWG2381: Inconsistency in parsing floating point numbers (PR #77948)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jan 12 09:34:34 PST 2024


================
@@ -165,10 +166,11 @@ int main(int, char**)
             f.get(cpp17_input_iterator<const char*>(str),
                   cpp17_input_iterator<const char*>(str+sizeof(str)),
                   ios, err, v);
-        assert(base(iter) == str+sizeof(str)-1);
-        assert(err == ios.goodbit);
-        assert(std::isnan(v));
+        assert(base(iter) == str);
+        assert(err == ios.failbit);
+        assert(v == 0.0l);
     }
+#if LDBL_MANT_DIG >= 64
----------------
mordante wrote:

`1.189731495357231765021264e+49321` does not fit in binary128 too.
What changed that these values no longer work on MSVC?


https://github.com/llvm/llvm-project/pull/77948


More information about the libcxx-commits mailing list