Swift compiler causes segmentation fault

Originator:kishikawakatsumi
Number:rdar://19509304 Date Originated:18-Jan-2015
Status:Open Resolved:
Product:Developer Tools Product Version:
Classification:Crash Reproducible:Always
 
Summary:
Evaluate an enum type computed propety with a shorter dot syntax in if statement, the Swift compiler causes segmentation fault.


Steps to Reproduce:
Reproduction case:

enum Enum {
    case Foo
}

class A {
    
    var e: Enum? {
        return .Foo
    }
    
    func f() {
        if e == .Foo {
            
        }
    }
}

Expected Results:
No crash.

Actual Results:
Compiler segmentation fault

Version:
OS X 10.10.1 (14B25)

Xcode 6.1.1 (6A2008a)
Xcode 6.2 (6C86e)
Xcode 6.2 (6C107a)

Notes:


Configuration:
MacBookPro10,1, 16GB RAM

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!