[SR-5859] Compiler crash Illegal instruction: 4 #48429
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
regression
swift 4.0
type checker
Area → compiler: Semantic analysis
Environment
Version 9.0 beta 6 (9M214v)
Apple Swift version 4.0 (swiftlang-900.0.63.10 clang-900.0.36)
Additional Detail from JIRA
md5: 37cda8dd752a0e7e9b8531f08877df9a
Issue Description:
The following code snippet crashes the compiler with "Illegal instruction: 4" in Swift 3 mode and Swift 4 mode:
Also adding more type information doesn't fix the crash:
Both successfully compile in Swift 3.1
As a workaround, adding type hints fixes the problem:
Additional info: This bug was introduced in Xcode beta 5. In beta 4 the compiler didn't crash.
The text was updated successfully, but these errors were encountered: