Xcode 7.0 (7A120f): [Swift] Appending to array of tuple causes compiler to crash

Originator:janoschhildebrand
Number:rdar://21290822 Date Originated:09-Jun-2015
Status:Closed Resolved:
Product:Developer Tools Product Version:Xcode 7.0 (7A120f)
Classification:Serious Bug Reproducible:Always
 
Summary:
The following examples crash the Swift compiler:

var array: [(Int, Int)] = []

var int_var = 1
// Crash
array.append(int_var, 1)


import Foundation

var arrayWithCFString: [(CFString, Int, Double)] = []
// Crash
arrayWithCFString.append("Test", 1, 1.0)


An example project and crash report are attached.

Steps to Reproduce:
Download and build the attached project

Expected Results:
The project should compile succesfully

Actual Results:
Compilation fails

Version:
Xcode 7.0 (7A120f)
Apple Swift version 2.0 (swiftlang-700.0.38.1 clang-700.0.53)

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!