swift compiler crash when using a nested class as a generic prameter

Originator:eanagel
Number:rdar://30540924 Date Originated:2/15/2017
Status:Open Resolved:
Product:xcode Product Version:8.2.1 (8C1002)
Classification: Reproducible:always
 
Summary:
The following code causes a SEGFAULT in the swift compiler:

class A<X> { }
class B: A<B.Nested> {
    class Nested { }
}

Steps to Reproduce:
attempt to compile the above code using the swift compiler ;)

Expected Results:
Either an error if this is not allowed for some reason (which would make me sad) or success.

Actual Results:
Compiler fails with the following message:

Command failed due to signal: Segmentation fault: 11

Version:
xcode Version 8.2.1 (8C1002)
OS/X El Capitan 10.11.6 (15G31)


Notes:


Configuration:
always

Attachments:

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!