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-9453] Crash on superclass coming after protocol composition #51916

Closed
AnthonyLatsis opened this issue Dec 10, 2018 · 3 comments
Closed

[SR-9453] Crash on superclass coming after protocol composition #51916

AnthonyLatsis opened this issue Dec 10, 2018 · 3 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

Comments

@AnthonyLatsis
Copy link
Collaborator

Previous ID SR-9453
Radar None
Original Reporter @AnthonyLatsis
Type Bug
Status Resolved
Resolution Done
Environment

Xcode 10.1 (10B61)

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

md5: 697a480eeba48447eacd5f6b8661d40f

Issue Description:

The error, however, has time to be triggered before the segfault.

protocol P {}
protocol Q {}

class A {}

final class Chat: P & Q, A {}
                  ~~~~~
@belkadan
Copy link
Contributor

Seems to be fixed in master! @slavapestov, do you know if we have a test case for this already?

@slavapestov
Copy link
Member

Looks like @hamishknight fixed it – thanks Hamish!

commit 40fada7f8241b00a78838e1e54ae4cbecea9b949
Author: Hamish Knight <hamish2knight@gmail.com>
Date:   Sun Jul 1 17:03:36 2018 +0100

    [Sema] Don't crash on a null superclass in a protocol composition when checking access

@AnthonyLatsis
Copy link
Collaborator Author

Great! I should have verified master.

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

No branches or pull requests

3 participants