[SR-4022] Compiler crash when using inlines from Foundation in another framework #46605
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
serialization
Area → compiler: Serialization & deserialization
SILSerialization
Attachment: Download
Environment
Xcode 8.3 beta 2 or beta 3
Additional Detail from JIRA
md5: 2e38afa90352057361aa20dab8a92a0c
Issue Description:
When using the Swift 3.1 compiler, attempts to use inline functions (particularly NSRange) can end up crashing the Swift compiler with something like:
Steps:
- Using Xcode 8.3 beta 2 or beta 3
- Extract the attached zip of source
- Open OmniGroup/Workspaces/OmniFrameworks.xcworkspace
- Build
- Build completes successfully
- Search for "Crashes compiler"
- Remove the
#if false
wrapper around any of the matches- Build
- Compiler crashes
This code builds fine in Xcode 8.2.1.
The text was updated successfully, but these errors were encountered: