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-10040] Cross module subclass of generic superclass is missing symbol #52443

Closed
tjw opened this issue Mar 4, 2019 · 2 comments
Closed

[SR-10040] Cross module subclass of generic superclass is missing symbol #52443

tjw opened this issue Mar 4, 2019 · 2 comments
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 regression swift 5.0

Comments

@tjw
Copy link
Contributor

tjw commented Mar 4, 2019

Previous ID SR-10040
Radar rdar://problem/48702093
Original Reporter @tjw
Type Bug
Status Resolved
Resolution Duplicate

Attachment: Download

Environment

Xcode 10.2b3
macOS 10.14.3

This worked correctly in Xcode 10.1, and works in 10.2b3 when using the Debug configuration.

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

md5: c715869a4083bf59734ce37e3eff85c7

duplicates:

  • SR-9939 Undefined symbols linker error when compiling with Swift 5.0 in release mode

Issue Description:

Subclassing a generic superclass that is in a different module produces a linker error:

Undefined symbols for architecture x86_64:
  "CrossModuleGenericInit.Superclass.__allocating_init() -> CrossModuleGenericInit.Superclass<A>", referenced from:
      type metadata for DependentFramework.Subclass in Subclass.o
  • Open the attached project

  • Select the "CrossModuleGenericInit" scheme and ensure it is using the Release configuration

  • Build

  • A linker error is emitted

@AnnaZaks
Copy link
Mannequin

AnnaZaks mannequin commented Mar 8, 2019

@jckarter, Does this look familiar?

@jckarter
Copy link
Member

jckarter commented Mar 8, 2019

Sounds like https://bugs.swift.org/browse/SR-9939.

@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 regression swift 5.0
Projects
None yet
Development

No branches or pull requests

3 participants