-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Random data on formatting integers with Clang with Microsoft CodeGen #519
Comments
The problem occurs because of And similar for the 64-bit version. |
Also, I'm concerned about the intrinsic being used by default with some compilers. I'm not sure if all current CPUs actually support it. |
Thanks for the bug report and the PR. As I commented on the PR, a simple workaround is to conditionally compile
I would expect compilers provide a fallback implementation in the runtime. |
Fixed in 569c5bd. |
Put simply, when I write this:
I get:
The characters seem to be random, varying every time I run the program.
I have ostreams included, if that matters.
Compiler: Visual Studio 2017 - Clang with Microsoft CodeGen (v141_clang_c2)
The text was updated successfully, but these errors were encountered: