swift consumes all memory when specifying a dependent type in a protocol extension

Originator:fcanas
Number:rdar://21344196 Date Originated:6/11/15
Status:Closed Resolved:19-Aug-2015 06:23 PM
Product:swift Product Version:2.0
Classification: Reproducible:
 
Summary:
swiftc appears to consume memory indefinitely when specifying a dependent type in a protocol extension. 
On a related note, if the type specification goes in the protocol itself, swift crashes.

Steps to Reproduce:
swiftc convertible.swift

or

move the `typealias` into the protocol and compile : compilation crashes.

Expected Results:
It should compile in a reasonable amount of time and memory, or provide an error.

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!