Skip to content

[cxx-interop] Bail instead of crashing If we cannot find a constructor decl in importNameImpl. #34429

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

Conversation

zoecarver
Copy link
Contributor

It's possible to have a "UnresolvedUsingValueDecl" with a "CXXConstructorName". If that's the case (or if there's any other unknown decl) bail instead of crashing.

…r decl in importNameImpl.

It's possible to have a "UnresolvedUsingValueDecl" with a "CXXConstructorName". If that's the case (or if there's any other unkown decl) bail instead of crashing.
@zoecarver zoecarver added the c++ interop Feature: Interoperability with C++ label Oct 25, 2020
@zoecarver
Copy link
Contributor Author

To be honest, I'm not 100% sure this is the correct patch. It might be better to just add support for all possible decls with "CXXConstructorName".

@varungandhi-apple
Copy link
Contributor

As it is, I think this looks OK, but yeah, I'm not sure about the "It might be better to just add support for all possible decls with "CXXConstructorName". If that's something that's easy to do then sure. This also works as a stop-gap solution.

@zoecarver
Copy link
Contributor Author

This also works as a stop-gap solution.

That's mostly what this is.

@zoecarver
Copy link
Contributor Author

@swift-ci please smoke test and merge.

2 similar comments
@zoecarver
Copy link
Contributor Author

@swift-ci please smoke test and merge.

@zoecarver
Copy link
Contributor Author

@swift-ci please smoke test and merge.

@zoecarver
Copy link
Contributor Author

@swift-ci please smoke test.

@zoecarver
Copy link
Contributor Author

Out of space error.

@swift-ci please test Windows platform.

@zoecarver
Copy link
Contributor Author

Still out of space.

@swift-ci please test Windows platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ interop Feature: Interoperability with C++
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants