[SR-7222] Accessing Dictionary from rawValue in enum causes runtime crash in Swift 4.1. #49770
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
run-time crash
Bug → crash: Swift code crashed during execution
standard library
Area: Standard library umbrella
swift 4.1
Environment
Xcode 9.3 beta 4 Swift 4.1
Additional Detail from JIRA
md5: 8861114e1b1eac9fc303c01bd4786968
Issue Description:
This is a regression from Swift 4.0. It seems the Dictionary.init is calling rawValue most likely due to equatable. This code works fine in 4.0 and crashes in 4.1.
The text was updated successfully, but these errors were encountered: