Swift: Same name of the instance variable and the class variable, compiler segmentation fault.

Originator:kishikawakatsumi
Number:rdar://19363110 Date Originated:1/1/2015
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 6.1.1 (6A2008a)
Classification:Crash Reproducible:Always
 
Summary:
If define the same name of the instance variable and the class variable, the Swift compiler causes segmentation fault.

Steps to Reproduce:
Reproduction case:

class A {
    var name: String = ""
    
    class var name: String {
        get {
            return ""
        }
    }
    
}

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)

Configuration:
MacBookPro10,1, 16GB RAM

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!