-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
bugSomething isn't workingSomething isn't workingfixedSomething works now, yay!Something works now, yay!
Description
Command-line test case
D:\Temp>type test.cpp
#include <iostream>
#include <sstream>
#include <string>
using namespace std;
int main() {
istringstream stream("9." + string(1000, '9'));
cout.precision(17);
double x;
if (stream >> x) {
cout << "actual: " << x << "\n";
} else {
cout << "actual: (failure)\n";
}
cout << "expected: 10\n";
return 0;
}D:\Temp>cl /EHsc /W4 test.cpp
用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.35.32213 版
版权所有(C) Microsoft Corporation。保留所有权利。
test.cpp
Microsoft (R) Incremental Linker Version 14.35.32213.0
Copyright (C) Microsoft Corporation. All rights reserved.
/out:test.exe
test.obj
D:\Temp>.\test
actual: 100
expected: 10
STL version
Microsoft Visual Studio Community 2022 (64 位) - Preview
版本 17.5.0 Preview 5.0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfixedSomething works now, yay!Something works now, yay!