Closed swift-ci closed 3 years ago
The original crash is resolved on master. Does this still happen for you? Would you mind sharing the original code that caused the crash for you?
In a playground (Swift 4.1), this has a fixit for the where clause
protocol P {
associatedtype T
}
enum E<F : P where F.T == E<F>> {
indirect case Roll(F.T)
}
Which then produces
protocol P {
associatedtype T
}
enum E<F : P> where F.T == E<F> {
indirect case Roll(F.T)
}
which produces the error:
Playground execution failed:
error: bugs.playground:1:28: error: generic enum 'E' references itself
enum E<F : P> where F.T == E<F> {
^
bugs.playground:1:6: note: type declared here
enum E<F : P> where F.T == E<F> {
So I guess this can be closed? This will not compile like in the original bugreport
This was resolved with better diagnostics in Swift 3.1
Environment
Xcode 7.3 beta (7D129n) Swift 2.2 Snapshot 2016-02-03 – 2.2-dev (LLVM ae2eb212e4, Clang ef4c02f431, Swift 634acb40a1)Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug, CompilerCrash | |Assignee | cbuteau123 (JIRA) | |Priority | | md5: 2ce56a9ef02fd09ba730d8fed8c48679Issue Description:
The source files compile fine on their own, but MergeSwiftModules segfaults with the following trace:
Note: Seems to be same issue as rdar://22205712 (https://openradar.appspot.com/22205712).