[libcxx-commits] [libcxx] [libc++] LWG2381: Inconsistency in parsing floating point numbers (PR #77948)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri May 31 03:38:20 PDT 2024
bgra8 wrote:
@mordante this patch causes strings like ".5" to no longer parse and this is most likely a bug.
Here's a small reproducer:
```
#include <sstream>
#include <cassert>
int main(int , char** ) {
std::istringstream strm(".5");
float val = 0;
strm >> val;
assert(!strm.fail());
assert(strm.eof());
assert(val == .5);
return 0;
}
```
Can you please take a look?
https://github.com/llvm/llvm-project/pull/77948
More information about the libcxx-commits
mailing list