[SR-12329] Swift compiler seg faults when a Self property is used as a default value #54760
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
type checker
Area → compiler: Semantic analysis
Environment
Swift 5.1, Xcode 11.3.1
Additional Detail from JIRA
md5: 187daa7f378004eb444485a4bcc20711
Issue Description:
Swift compiler seg faults when a method in a class uses a Self property or method as a default value.
This crash occurs for a class, whether or not it is
final
. It does not occur for a struct.It occurs whether
someProperty
is astatic var
,class var
,static func
, orclass func
.It does not occur when
someProperty
is referenced asSomeType.someProperty
or simply assomeProperty
.Also submitted to Feedback Assistant as FB7616689.
The text was updated successfully, but these errors were encountered: