Segmentation Faul in Swift Compiler

Originator:marcus.kida
Number:rdar://29057608 Date Originated:11/02/2016
Status:Resolved Resolved:Xcode 8.3
Product:Xcode Product Version:8.1
Classification:Crash Reproducible:Always
 
Summary:
When providing a default value for an ObjC enum using a protocol extension in Swift, the Swift compiler crashes with a segmentation fault.

Steps to Reproduce:
1. Check out sample project at https://github.com/kimar/ProtocolExtensionSwiftSegfault
2. Try to compile -> crashes using Xcode 8.1

Expected Results:
The code should either compile or show an error to the user

Actual Results:
The Swift compiler crashes

Version:
macOS 10.12.1
Version 8.1 (8B62)

Notes:


Configuration:
macOS 10.12.1
Version 8.1 (8B62)

Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!