Closed swift-ci closed 2 years ago
Here's a small reproducer which doesn't depend on UIKIt, etc:
class C {}
protocol P where Self: C {
static func bar() throws -> Self
}
extension P where Self: C {
static func bar() throws -> Self {
fatalError()
}
}
extension C: P {}
One way to work around the crash is to get rid of the P where Self: C
extension and put the implementation directly in the C: P
extension instead.
Looks like this is fixed on master. kerrmarin (JIRA User) Could you verify using the latest trunk snapshot from swift.org?
Comment by Kerr Marin Miller (JIRA)
Can't reproduce any longer
Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug, CompilerCrash, IRGen | |Assignee | None | |Priority | Medium | md5: 326a8b155e9973d739a0209db6a23700Issue Description:
I have a protocol that allows view controllers to be instantiated from storyboards. It reads like this:
It produces a segfault: