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
Sep 14, 2018
· 2 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
@objcclassMyObjCObject1:NSObject,MyObjCProtocol{}@objcclassMyObjCObject2:NSObject,MyObjCProtocol{}// Compiler crash:letproducesSegfault=MyObjCController(set:[MyObjCObject1(),MyObjCObject2()])// MyObjCController initializer is defined in ObjC:// - (instancetype)initWithSet:(NSSet<id<MyObjCProtocol>> *)selectedObjects// mapped to swift: init(set selectedObjects: Set<AnyHashable>)
An example project is attached.
The text was updated successfully, but these errors were encountered:
Unhandled coercion
UNREACHABLE executed at /Volumes/Data/swift-public/swift/lib/Sema/CSApply.cpp:6925!
1. While type-checking declaration 0x7f81dfe2f8a8 at /Users/jrose/Downloads/Segfault11Example/SegmentationFaultExample/SegfaultingSwift.swift:24:1
2. While type-checking expression at [/Users/jrose/Downloads/Segfault11Example/SegmentationFaultExample/SegfaultingSwift.swift:24:24 - line:24:62] RangeText="MyObjCController(set: [myObj1, myObj2])"
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
Attachment: Download
Environment
Xcode 10 GM, Swift 4, Swift 4.2
Additional Detail from JIRA
md5: 1e58ba560df7d4fb0d63d2bf82937816
Issue Description:
This code causes a Segmentation Fault 11
An example project is attached.
The text was updated successfully, but these errors were encountered: