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-10618] Trying to get a reference to a protocol's member crashes the compiler #53018

Closed
swift-ci opened this issue May 5, 2019 · 0 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented May 5, 2019

Previous ID SR-10618
Radar None
Original Reporter benpious (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate
Environment

Apple Swift version 5.0 (swiftlang-1001.0.69.5 clang-1001.0.46.3).

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee None
Priority Medium

md5: da02a00c53502377d36661c0fb2303a6

duplicates:

  • SR-75 Referencing a protocol function crashes the compiler

Issue Description:

protocol P {
   func f()
}

let a = P.f

This currently causes the compiler to segfault.

I actually don't know if the bug is that this doesn't work, or just that it doesn't have a good error message. Using keypaths of a protocol works (most of the time), so why shouldn't this work for non-static functions?

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
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
Projects
None yet
Development

No branches or pull requests

1 participant