Skip to content

Conversation

Xazax-hun
Copy link
Contributor

We can refer to these types in resilient interfaces when compiled in ObjC interop mode.

@Xazax-hun Xazax-hun added the c++ interop Feature: Interoperability with C++ label Sep 1, 2025
@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test

Copy link
Contributor

@egorzhdan egorzhdan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think for function types, we would want to check whether that the parameter types and the return type are fragile.

We can refer to these types in resilient interfaces when compiled in ObjC
interop mode.
@Xazax-hun Xazax-hun force-pushed the func-ptr-is-not-fragile branch from 1d8b10b to ff6679d Compare September 1, 2025 14:06
@Xazax-hun
Copy link
Contributor Author

we would want to check whether that the parameter types and the return type are fragile.

Good point, done.

@swift-ci please smoke test

@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test Linux

@Xazax-hun Xazax-hun enabled auto-merge September 1, 2025 15:54
@Xazax-hun Xazax-hun merged commit 1b856e1 into swiftlang:main Sep 1, 2025
3 checks passed
Xazax-hun added a commit to Xazax-hun/swift that referenced this pull request Sep 3, 2025
Explanationion: Function pointer types wee always considered fragile in
C++ mode, this manifested as a regression when interfacing with glibc.
Issues: rdar://159184118
Original PRs: swiftlang#84040
Risk: Low, this only removes a spurious error for library evolution.
Testing: Added a compiler test.
Reviewers: @egorzhdan
Xazax-hun added a commit to Xazax-hun/swift that referenced this pull request Sep 9, 2025
Explanationion: Function pointer types wee always considered fragile in C++ mode,
this manifested as a regression when interfacing with glibc.
Issues: rdar://159184118
Original PRs: swiftlang#84040
Risk: Low, this only removes a spurious error for library evolution.
Testing: Added a compiler test.
Reviewers: @egorzhdan
xtremekforever pushed a commit to xtremekforever/swift that referenced this pull request Sep 14, 2025
Explanationion: Function pointer types wee always considered fragile in C++ mode,
this manifested as a regression when interfacing with glibc.
Issues: rdar://159184118
Original PRs: swiftlang#84040
Risk: Low, this only removes a spurious error for library evolution.
Testing: Added a compiler test.
Reviewers: @egorzhdan
xtremekforever pushed a commit to xtremekforever/swift that referenced this pull request Sep 14, 2025
Explanationion: Function pointer types wee always considered fragile in C++ mode,
this manifested as a regression when interfacing with glibc.
Issues: rdar://159184118
Original PRs: swiftlang#84040
Risk: Low, this only removes a spurious error for library evolution.
Testing: Added a compiler test.
Reviewers: @egorzhdan
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.

2 participants