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-1179] Compiler bug: initialising subclass skips to super when using Whole Module optimisation #43787

Closed
swift-ci opened this issue Apr 7, 2016 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. cant repro Resolution → bug: Cannot reproduce due to incomplete or inaccessible test case compiler The Swift compiler in itself inheritance Feature → type declarations → class: Subclassing and inheritance of class members unexpected behavior Bug: Unexpected behavior or incorrect output whole module optimization only Flag: An issue whose reproduction requires whole module optimization

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Apr 7, 2016

Previous ID SR-1179
Radar None
Original Reporter timwindsorbrown (JIRA User)
Type Bug
Environment

Whole Module optimisation

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, Miscompile, OptimizedOnly
Assignee None
Priority Medium

md5: c2c39cc40e2d6cf403c4fc4ca19d6ecc

relates to:

Issue Description:

When running with Whole Module Optimisation, a subclassed object is initialized as it's parent. I've only seen it happen once, but I created a project to demonstrate it.

https://github.com/TimMumsnet/TestChatApp.git

If you run the project on release configuration, a crash will occur because of the bug.

@rudkx
Copy link
Member

rudkx commented Apr 20, 2016

I believe this is fixed in the 7.3.1 beta that was posted.

Tim - can you check to confirm?

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added cant repro Resolution → bug: Cannot reproduce due to incomplete or inaccessible test case whole module optimization only Flag: An issue whose reproduction requires whole module optimization labels Nov 10, 2022
@AnthonyLatsis
Copy link
Collaborator

Closing because the issue is very old and the reproduction is no longer accessible.

@AnthonyLatsis AnthonyLatsis closed this as not planned Won't fix, can't repro, duplicate, stale Nov 10, 2022
@AnthonyLatsis AnthonyLatsis added the inheritance Feature → type declarations → class: Subclassing and inheritance of class members label Nov 10, 2022
@AnthonyLatsis AnthonyLatsis added unexpected behavior Bug: Unexpected behavior or incorrect output and removed optimized only Flag: An issue whose reproduction requires optimized compilation labels Jan 19, 2024
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. cant repro Resolution → bug: Cannot reproduce due to incomplete or inaccessible test case compiler The Swift compiler in itself inheritance Feature → type declarations → class: Subclassing and inheritance of class members unexpected behavior Bug: Unexpected behavior or incorrect output whole module optimization only Flag: An issue whose reproduction requires whole module optimization
Projects
None yet
Development

No branches or pull requests

3 participants