Swift: Compiler crashes generating init for struct w/ [(T, () -> ())]

Originator:rix.rob
Number:rdar://17662010 Date Originated:14-Jul-2014 10:31 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode6-Beta3 (6A254o)
Classification:Serious Bug Reproducible:Always
 
Summary:
A parameterized struct with an array variable initialized to [] by default crashes the compiler.


Steps to Reproduce:
1. Compile this code:

struct A<T> {
	let a: [(T, () -> ())] = []
}


Expected Results:
I expected the compiler not to crash.


Actual Results:
The compiler crashed.

Regression:
Removing the `= []` works around the crash.


Notes:
N/A

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!