Swift Compiler Crashes when generic class inherits from NSObject and conforms to NSObjectProtocol in class extension
Originator: | Benjamin.Encz | ||
Number: | rdar://19889552 | Date Originated: | 19-Feb-2015 09:57 AM |
Status: | Closed | Resolved: | 07/18/2015 |
Product: | Xcode (Swift Compiler) | Product Version: | Version 6.1.1 (6A2008a), Version 6.3 (6D520o) |
Classification: | Serious Bug | Reproducible: | Always |
The Swift Compiler crashes with a segmentation fault when generic class inherits from NSObject and conforms to NSObjectProtocol in class extension. This can be easily reproduced with a minimalistic example: public class D<T>: NSObject {} extension D: NSObjectProtocol {} The code above causes the following segmentation fault: Segmentation Fault: While emitting IR for source file ... ArrayDataSource.swift
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!