Compiling Swift Code Hang/Memory Hog Bug

Originator:nicolasgomollon
Number:rdar://17264572 Date Originated:10-Jun-2014 11:04 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode Version 6.0 (6A215l)
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
Declaring a Swift Dictionary containing multiple objects of different types makes Xcode choke and hog all available memory (the 'swift' process) when Building a project. Xcode still hogs memory even when not Building (Xcode status says 'Indexing…').

Explicitly declaring the Dictionary by specifying the contents of the Dictionary's values appears to solve the issue.

Steps to Reproduce:
Please try Building the attached "TerribleBug.swift" file, containing annotated code that demonstrates the bug.

Expected Results:


Actual Results:


Version:
Xcode Version 6.0 (6A215l)

Notes:


Configuration:
N/A

Attachments:
http://cl.ly/Vzrb

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!