[SR-5499] Incorrect dynamic dispatch behaviour for nested class overridden across modules when using whole module optimization. #48071
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
optimized only
Flag: An issue whose reproduction requires optimized compilation
Environment
Xcode Version 8.3.3 (8E3004b) , iOS 10.3, Swift 3, OSX 10.12.4
Additional Detail from JIRA
md5: bd63de410776fc65e4aff1aa55871271
is duplicated by:
Issue Description:
Suppose in an external module we have these defs:
And then in the main module we have this:
Then if run with a release build config, we get "no name".
It should be zorg
We can make it print "zorg" using any of the following changes:
Turn off "whole module optimization" for the external module.
Make Qux a non-nested type by moving it out of Woof.
Put all the code in the same module.
The text was updated successfully, but these errors were encountered: