You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
natecook1000 opened this issue
Jun 15, 2018
· 4 comments
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
This seems related to SR-7729 — trying to compile this code results in a compiler crash: Assertion failed: (found->second && "type recursion not caught in Sema"), function find, file .../swift/lib/SIL/TypeLowering.cpp, line 1413.
publicstructDefaultIndex<Base: Sequence> : Comparable {
// If the next line is commented out, there's no compiler crashvarelement: Base.Element? = nilinit() {}
publicstaticfunc ==(lhs: DefaultIndex, rhs: DefaultIndex) -> Bool {
returntrue
}
publicstaticfunc < (lhs: DefaultIndex, rhs: DefaultIndex) -> Bool {
returnfalse
}
}
extensionCollectionwhereSelf.Index == DefaultIndex<Self> {
publicvarstartIndex: Index {
returnDefaultIndex()
}
publicvarendIndex: Index {
returnDefaultIndex()
}
publicsubscript(i: Index) -> Iterator.Element {
fatalError()
}
publicfuncindex(afteri: Index) -> Index {
returni
}
}
// If the following line is commented out, there's no compiler crashstructThisIsFine: Collection {}
The text was updated successfully, but these errors were encountered:
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
Additional Detail from JIRA
md5: 22ed21fd595abe203b33b302df4fbdb7
duplicates:
Issue Description:
This seems related to SR-7729 — trying to compile this code results in a compiler crash:
Assertion failed: (found->second && "type recursion not caught in Sema"), function find, file .../swift/lib/SIL/TypeLowering.cpp, line 1413.
The text was updated successfully, but these errors were encountered: