Skip to content

[SR-1529] Compiler crash - overriding an optional property with non-optional can crash the compiler #44138

@swift-ci

Description

@swift-ci
Previous ID SR-1529
Radar rdar://problem/32254285
Original Reporter mkbrandt (JIRA User)
Type Bug
Status Closed
Resolution Done

Attachment: Download

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, CompilerCrash
Assignee @slavapestov
Priority Medium

md5: 3ea915b13d3b06d53f136fd589d81506

is duplicated by:

  • SR-1980 Emit multiple vtable entries for overrides that change calling convention

Issue Description:

See enclosed project:

The property "rect" is declared optional in one file, and non-optional in an override in a subclass. This causes the compiler to crash. I realize this is not legal, but it took me a while to track it down since the compiler crashes before showing the error.

Metadata

Metadata

Assignees

Labels

bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of software

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions