Skip to content
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

[SR-8608] Native Any bridging fails with an segfault #51123

Open
compnerd opened this issue Aug 22, 2018 · 2 comments
Open

[SR-8608] Native Any bridging fails with an segfault #51123

compnerd opened this issue Aug 22, 2018 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself standard library Area: Standard library umbrella

Comments

@compnerd
Copy link
Collaborator

Previous ID SR-8608
Radar None
Original Reporter @compnerd
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Compiler, Standard Library
Labels Bug
Assignee None
Priority Medium

md5: 2437099b7388fd22cca62ab122cb5c9c

Issue Description:

@_cdecl(“f”)

func f(_: Any) {}

This currently fails on Linux since the Any object passed will require going through _bridgeAnyObjectToAny which is not available in a stdlib build without ObjC interop.

@compnerd
Copy link
Collaborator Author

@millenomi might be interesting to you 🙂

@belkadan
Copy link
Contributor

We just haven't tested @_cdecl properly at all.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

2 participants