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-4417] Compiler crashes when get value from enum specific case. #46994
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
run-time crash
Bug → crash: Swift code crashed during execution
Comments
Backtrace on master:
@gottesmm, you were going to attack pattern-matching soon anyway, right? |
(without assertions we get through compilation but then crash at run time) |
@belkadan In the next little bit. I have patches on master that are behind a flag. |
I am fixing 1 thing before I get back to it. |
AnthonyLatsis
added
the
crash
Bug: A crash, i.e., an abnormal termination of software
label
Oct 22, 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.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
run-time crash
Bug → crash: Swift code crashed during execution
Environment
Swift 3.1, Xcode 8.3, Playground
Additional Detail from JIRA
md5: f96eedb557b7078d00aa8ca0ee2987ef
relates to:
Issue Description:
1. Make a `enum` that have some case contain associated value.
2. Get associated value using `switch` via type casting to `protocol` (or associated value defined `protocol`).
3. Add other pattern into same case.
Minimum code is here.
The text was updated successfully, but these errors were encountered: