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
swift-ci opened this issue
Mar 15, 2018
· 5 comments
Assignees
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 softwarekey pathsFeature: key paths (both native and Objective-C)
kdawgwilk (JIRA User) Can you give me more detailed instructions on how to reproduce? I checked out the RxDataSources repo from https://github.com/RxSwiftCommunity/RxDataSources.git, and built with xcodebuild -target Differentiator SWIFT_EXEC=`which swiftc` ENABLE_BITCODE=NO, and did not see the assertion failure.
@jckarter I suspect the problem is the lookupConformance() call here:
// Get the Equatable conformance from the Hashable conformance
auto subMap = hashableSig->getSubstitutionMap(
Substitution(formalTy, hashable));
auto equatable = *subMap
.lookupConformance(CanType(hashableSig->getGenericParams()[0]),
equatableProtocol);
Since we don't have a type checker anymore, if nothing previously forced the conformance, it will return an empty Optional and crash.
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 softwarekey pathsFeature: key paths (both native and Objective-C)
Environment
macOS 10.13.3
Xcode 9.3b4
Old build system
Toolchain 3/14/18 (master)
Additional Detail from JIRA
md5: a35fb9cdb2f5fd89b5326237d000d7d1
Issue Description:
Ran into this when trying to help test the new batch mode. The assertion occurred when compiling the Differentiator library we depend on
The text was updated successfully, but these errors were encountered: