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-9698] Compiler crashes in switch with multiple binds and fallthroughs #52138
Comments
On master:
@slavapestov, @gottesmm, something to fix while updating SILGenPattern for ownership? |
SILGenPattern was already updated for ownership. It doesn't sound like we regressed here, no? |
Yeah, sorry, I just meant it as a "while you're in the area". (And maybe that's not relevant.) |
@gottesmm, was this fixed by your recent reworking? |
It should be fixed... yes. |
I just tried with 5.0. Fails with 5.0 with a dominance error. Using the swift-DEVELOPMENT-SNAPSHOT-2019-04-06-a.xctoolchain snapshot, this compiles correctly. stjernegard (JIRA User) Can you try this with one of the latest master snapshots just to verify on your side? Here is a direct link: |
Comment by Danni Stjernegård (JIRA) I can confirm it works correctly on the current development snapshot |
Attachment: Download
Environment
Apple Swift version 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1)
Target: x86_64-apple-darwin18.2.0
Additional Detail from JIRA
md5: a3f450f10f218d52c27124e8ac2b16b9
is duplicated by:
Issue Description:
A crashing Swift project is attached as a zip file together with the output from
swift build
. The problematic code looks like this:Simpler versions of the switch with fewer cases are possible and will work as expected.
The text was updated successfully, but these errors were encountered: