-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[cxx-interop] Check the presence of copy constructor correctly #73297
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
Conversation
@swift-ci please test |
@swift-ci please test source compatibility |
@swift-ci please test macOS |
@swift-ci please test |
c490814
to
aaa9b18
Compare
@swift-ci please test |
@swift-ci please test source compatibility |
@swift-ci please build toolchain macOS |
aaa9b18
to
bacfc4f
Compare
@swift-ci please test |
@swift-ci please build toolchain macOS |
@swift-ci please test Linux |
@swift-ci please build toolchain macOS |
bacfc4f
to
d67c2e5
Compare
@swift-ci please test Linux |
5 similar comments
@swift-ci please test Linux |
@swift-ci please test Linux |
@swift-ci please test Linux |
@swift-ci please test Linux |
@swift-ci please test Linux |
@swift-ci please test Linux |
4 similar comments
@swift-ci please test Linux |
@swift-ci please test Linux |
@swift-ci please test Linux |
@swift-ci please test Linux |
@swift-ci please test Linux |
@swift-ci please build toolchain Ubuntu 22.04 |
4fef9b1
to
3f160a6
Compare
@swift-ci please build toolchain Ubuntu 22.04 |
@swift-ci please test Linux |
@swift-ci please build toolchain Ubuntu 22.04 |
@swift-ci please test Linux |
5cdf941
to
3f160a6
Compare
@swift-ci please build toolchain Ubuntu 22.04 |
@swift-ci please test Linux |
3f160a6
to
1c5eacd
Compare
@swift-ci please build toolchain Ubuntu 22.04 |
@swift-ci please test Linux |
This removes a longstanding workaround in the import logic for C++ structs: Swift assumed that if a C++ struct has no copy constructor that is explicitly deleted, then the struct is copyable. This is not actually correct. This replaces the workaround with a proper check for the presence of a C++ copy constructor. rdar://136838485
1c5eacd
to
fbbec48
Compare
@swift-ci please test |
@swift-ci please build toolchain Ubuntu 22.04 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This removes a longstanding workaround in the import logic for C++ structs:
Swift assumed that if a C++ struct has no copy constructor that is explicitly deleted, then the struct is copyable. This is not actually correct. This replaces the workaround with a proper check for the presence of a C++ copy constructor.
rdar://136838485