minElement crash

Originator:konstantin.koval1
Number:rdar://17915184 Date Originated:05-Aug-2014
Status:Closed Resolved:10-Aug-2015
Product:Swift Product Version:
Classification: Reproducible:
 
Summary:
app crashes when calling minElement with empty range

 let empty = [Int]()
 let min = minElement(empty)

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!