[SR-2745] Simple Swift 3.0 UIView subclass crashes compiler when archiving #45349
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
crash
Bug: A crash, i.e., an abnormal termination of software
optimized only
Flag: An issue whose reproduction requires optimized compilation
Attachment: Download
Environment
Xcode 8.0 on macOS 10.12 (16A319) on a MacBook Pro. The selected hardware device is my iPhone 5S running iOS 10.0.1 (14A403).
Additional Detail from JIRA
md5: 245c8d6adad0c69fac2ac1917c108c23
Issue Description:
The following simple Swift 3.0 subclass of a UIView crashes the compiler when archiving:
Steps to Reproduce:
Expected Results:
I expect the code to compile.
Actual Results
I get this compilation error:
If I comment out the class declaration above, I can create a build archive.
I can build and run the app on my device, but when I archive it I get this crash.
The text was updated successfully, but these errors were encountered: