-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Standard Library Modules: uniform_real_distribution
emits error C2512: 'std::_Unsigned128'
: no appropriate default constructor available
#4899
Comments
Lines 710 to 712 in 62205ab
|
uniform_real_distribution
emits error C2512: 'std::_Unsigned128'
: no appropriate default constructor available
Thanks for the report! Can we ask you to report this on VS Developer Community, at https://developercommunity.visualstudio.com/cpp/report ? The compiler team wants to track all issues there and they'd like customers to directly report issues (instead of MSVC team members). Sorry for asking you to do a bit more paperwork. |
I'll report it. By the way, when using You don't need the "experimental modules" selected in the VS Installer, and you shouldn't use the |
DevCom-10729775 "Standard Library Modules: Random number machinery emits bogus error C2512: |
Sorry for being late; I simply haven't had time until now :). Next time, I'll report it through the developer community as well. Thanks! I overlooked that the /experimental:module option is no longer needed. |
Awesome, thanks again for being an early adopter of modules! I've merged the library workarounds for VS 2022 17.12 Preview 3. However, I encountered a compiler assertion in our internal "checked" builds (that aren't active in the "retail" builds that we ship publicly). This assertion might be over-eager, but it might also indicate remaining problems that could appear with the retail compiler under more intensive usage. Please let us know if you run into any remaining weirdness. |
This seems to be happening in Visual Studio 17.12 Preview 1.0 and Preview 2.0 |
The fix should be in VS 2022 17.12 Preview 3. |
Describe the bug
It seems there was a bug introduced with the latest preview version,
std::uniform_real_distribution
doesn't work as expected under C++ Latest with experimental modules enabled.Simple Example
Expected behavior
The code should compile and run without errors as it did in previous versions
STL version
Additional context
Worked on 17.11.0 Preview 6.0
Compiler Log
The text was updated successfully, but these errors were encountered: