-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[MSVC] CoreCLR failed to build due to error C2280 and C2088 with option /std:c++20 #85864
Comments
Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov Issue DetailsDescriptionCoreCLR failed to build with MSVC due to error C2280 and error C2088 with option /std:c++20, detailed error message as follows:
Reproduction Steps
Expected behaviorBuild successfully. Actual behavior
Regression?No response Known Workaroundsadd option /D_HAS_STREAM_INSERTION_OPERATORS_DELETED_IN_CXX20,the error will disappear. ConfigurationOS: Windows Server 2022 Other informationNo response
|
Looks like the test code is actually using mismatched types in those lines - it would have printed garbage to the output if it hit those error cases. I think those stream overloads were deleted in newer versions precisely to make it harder to accidentally do this. |
Description
CoreCLR failed to build with MSVC due to error C2280 and error C2088 with option /std:c++20, detailed error message as follows:
Reproduction Steps
Expected behavior
Build successfully.
Actual behavior
Regression?
No response
Known Workarounds
add option /D_HAS_STREAM_INSERTION_OPERATORS_DELETED_IN_CXX20,the error will disappear.
Configuration
OS: Windows Server 2022
VS: VS2022 17.5.4
.NET 8.0
Other information
No response
The text was updated successfully, but these errors were encountered: