[SR-10221] Compiler bug in Xcode 10.2 for Enums with Associated Values #52621
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
optimized only
Flag: An issue whose reproduction requires optimized compilation
regression
swift 5.0
Attachment: Download
Environment
Xcode 10.2 (10E125), Swift5 and Swift4.2
Additional Detail from JIRA
md5: 3b3b7cc3c14c36fc6bfe85aa31879bb9
Issue Description:
This code produces very odd results in release builds in Xcode 10.2 with [-O] Optimization Level. (See attached screenshot).
https://gist.github.com/ullstrm/8894f52c30e6eb858c208ebcfaf7f77c
My theory is that it has something to do with the fact that the AssociatedValue is a ObjC-enum, since it works with a custom Enum as Associated Value.
The text was updated successfully, but these errors were encountered: