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-3114] Overridden "initialize" method of NSObject-Subclass is not called in Release Mode with "Whole Module Optimization" #45702

Open
swift-ci opened this issue Nov 2, 2016 · 2 comments
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

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Nov 2, 2016

Previous ID SR-3114
Radar rdar://problem/28954946
Original Reporter Gereon (JIRA User)
Type Bug

Attachment: Download

Environment

Xcode 8.1 GM

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

md5: 65dccff72c161b2e0a1279d16443afc9

Issue Description:

A subclass of NSObject overrides the static "initialize" method. This method isn't called when compiling in Release mode with "whole module optimization" turned on. Compiling in Debug mode, or switching to "Fast, Single-file optimization" enables the call.

@belkadan
Copy link
Contributor

belkadan commented Nov 2, 2016

cc @eeckstein

@swift-ci
Copy link
Collaborator Author

Comment by Gereon Steffens (JIRA)

This bug is still present in Xcode 8.2

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
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 optimized only Flag: An issue whose reproduction requires optimized compilation
Projects
None yet
Development

No branches or pull requests

2 participants