Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
swift-ci opened this issue May 15, 2016 · 2 comments
Assignees
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

Comments

@swift-ci
Copy link
Collaborator

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.

@slavapestov
Copy link
Member

#8314

@swift-ci
Copy link
Collaborator Author

Comment by Myke Olson (JIRA)

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the crash Bug: A crash, i.e., an abnormal termination of software label Dec 12, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants