Skip to content

Basic: add a workaround for VS2019 #65308

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

Merged
merged 1 commit into from
May 11, 2023
Merged

Conversation

compnerd
Copy link
Member

When building with MSVC, we seem to be hitting a crash in the compiler. The crash seems to originate from the use of the member_constructible predicate being used in the std::enable_if. Use a local variable instead to avoid this issue. This problem is already resolved in VS2022, and hopefully we will be switching to that soon.

When building with MSVC, we seem to be hitting a crash in the compiler.
The crash seems to originate from the use of the `member_constructible`
predicate being used in the `std::enable_if`.  Use a local variable
instead to avoid this issue.  This problem is already resolved in
VS2022, and hopefully we will be switching to that soon.
@compnerd compnerd requested a review from a team as a code owner April 20, 2023 00:49
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@swift-ci please test macOS platform

@compnerd
Copy link
Member Author

CC: @airspeedswift @DougGregor @tkremenek

This is needed to repair the CI builds for 5.8 (which get triggered on backports). This is simply a syntactic workaround to prevent a crash in MSVC, NFCI.

@airspeedswift
Copy link
Member

Hi @compnerd – is this a pick of a PR on main, or it this specific to this branch only, and not needed in other releases?

@airspeedswift
Copy link
Member

Whenever we cherry pick something it's always important to link to the original PR if there is one (or explain why there isn't). Especially if that's where the code review happened.

@compnerd
Copy link
Member Author

@airspeedswift this is not a cherry-pick. We have only hit the MSVC failure on this branch, and so I am limiting the workaround for the compiler to this branch. There is already some work to migrate to VS2022 which will obviate the need for this, but I don't think that we want to change the compilers at this point for the 5.8 release.

@compnerd
Copy link
Member Author

compnerd commented May 2, 2023

@airspeedswift ping? We should get this resolved so that we are in a state where we could ship a 5.8 release if we needed.

@compnerd compnerd merged commit 76f4aac into swiftlang:release/5.8 May 11, 2023
@compnerd compnerd deleted the 58-cl-cxx branch May 11, 2023 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants