Swift 2b3: Assigning empty tuple with destructuring syntax crashes swiftc

Originator:rix.rob
Number:rdar://21783549 Date Originated:11-Jul-2015 07:39 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-beta (7A152u)
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
See below.

Steps to Reproduce:
1. This code:
var (a, b) = ()

Expected Results:
should not crash swiftc

Actual Results:
but totally does:
Assertion failed: (Index < Length && "Invalid index!"), function operator[], file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-700.0.45/src/llvm/include/llvm/ADT/ArrayRef.h, line 188.

Regression:
Workaround: “it hurts when I do this” “don’t do that”

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!