Open swift-ci opened 6 years ago
With assertions:
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])"
Weirdly and somewhat worryingly, adding an explicit as Set<AnyHashable>
makes the crash go away for me. At least there's a workaround!
@swift-ci create
Attachment: Download
Environment
Xcode 10 GM, Swift 4, Swift 4.2Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug, CompilerCrash | |Assignee | None | |Priority | Medium | md5: 1e58ba560df7d4fb0d63d2bf82937816Issue Description:
This code causes a Segmentation Fault 11
An example project is attached.