Segmentation fault on NSFetchedResultsController conforming to Swift protocol

Originator:mikexcite
Number:rdar://35110402 Date Originated:10/21/17
Status: Resolved:
Product:Core Data / Swift Product Version:9.1
Classification:Severe Bug Reproducible:Always
 
Summary:
Creating a Swift protocol with an associated type of NSFetchRequestResult:

protocol GenericFetchedResultsController {
    associatedtype Object : NSFetchRequestResult
}

Try to conform NSFetchedResultsController to that protocol with the FetchedType as associated type:

extension NSFetchedResultsController : GenericFetchedResultsController {
    typealias Object = ResultType
}

No inline error, compiler crashes with Segmentation fault: 11

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!