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-13062] Using Typealias + Generics leads to an EXC_BAD_ACCESS crash #55508

Open
swift-ci opened this issue Jun 23, 2020 · 0 comments
Open
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-13062
Radar None
Original Reporter AKhilik (JIRA User)
Type Bug
Additional Detail from JIRA
Votes 0
Component/s
Labels Bug
Assignee None
Priority Medium

md5: f51dcd8dca6e6fbd3947e42192a82c9a

Issue Description:

During migration from Xcode 11.2.1 to 11.4.1 we noticed that the following usage of typealiases and generics started to lead to an EXC_BAD_ACCESS crash:

Obj-c code:

  • ObjcClass

  • ObjcProtocol

Swift code:

typealias SomeType = ObjcClass & ObjcProtocol
class TestClass<T: SomeType> {

}

// An attempt to initialize TestClass with SomeType:
_ = TestClass<SomeType>() // EXC_BAD_ACCESS
 

I simplified this example as much as I could. This crash also is possible to reproduce with Xcode 11.5 and 11.6-beta

@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.
Projects
None yet
Development

No branches or pull requests

1 participant