Nested array hangs Swift

Originator:robnapier
Number:rdar://17916262 Date Originated:05-Aug-2014 10:45 AM
Status: Resolved:
Product:Swift Product Version:6beta5
Classification: Reproducible:
 
The following will hang Swift (in the REPL or in a workspace):

let nested = [[1,1], 2, [3, [5, 8]]]

---

A likely-related compiler crash:

  1> let n1:[Any] = [1,1]
n1: [Any] = 2 values {
  [0] = 1
  [1] = 1
}
  2> let n2:[Any] = [1, n1]
n2: [Any] = 2 values {
  [0] = 1
  [1] =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!