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-9519] #warning() in protocol crashes compiler #51971

Closed
swift-ci opened this issue Dec 14, 2018 · 4 comments
Closed

[SR-9519] #warning() in protocol crashes compiler #51971

swift-ci opened this issue Dec 14, 2018 · 4 comments
Assignees
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

@swift-ci
Copy link
Collaborator

Previous ID SR-9519
Radar None
Original Reporter tannernelson (JIRA User)
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Environment

Apple Swift version 5.0-dev (LLVM f0eaafaa71, Clang f8aee5e310, Swift b490a2a)
Target: x86_64-apple-darwin18.2.0

swift-5.0-DEVELOPMENT-SNAPSHOT-2018-12-13-a-osx

Darwin Agatha.home 18.2.0 Darwin Kernel Version 18.2.0: Fri Oct 5 19:41:49 PDT 2018; root:xnu-4903.221.2~2/RELEASE_X86_64 x86_64

Mojave 10.14.1

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

md5: ebec1232dbb4f9f6078ed3b2e00cc1fa

Issue Description:

protocol A {
    #warning("fix me")
}
protocol B {
    associatedtype A: crash.A
}

Assertion failed: (isExpectedKind && "unexpected member of protocol during TBD generation"), function visitProtocolDecl, file /Users/buildnode/jenkins/workspace/oss-swift-5.0-package-osx/swift/lib/TBDGen/TBDGen.cpp, line 488.

To recreate, run `swift build` inside of the attached SPM project.

@belkadan
Copy link
Contributor

Oops. cc @harlanhaskins

@harlanhaskins
Copy link
Collaborator

Oops indeed. Will fix this today.

@harlanhaskins
Copy link
Collaborator

Fix: #21393

@harlanhaskins
Copy link
Collaborator

tannernelson (JIRA User) This should be fixed on master and swift-5.0-branch. Can you verify with an open source toolchain? Thanks!

@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

4 participants