[SR-1179] Compiler bug: initialising subclass skips to super when using Whole Module optimisation #43787
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
Environment
Whole Module optimisation
Additional Detail from JIRA
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.
The text was updated successfully, but these errors were encountered: