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-11636] Accessing covariant Self
from stored property initializer in extension segfaults
#54047
Comments
@slavapestov, think this would be a good starter bug? |
@swift-ci create |
Yes, the fact that we correctly diagnose a class member but crash on an extension member suggests that this is a matter if tracking down an incorrect `isa<>` check. Definitely a good starter bug candidate. |
Comment by Ziyuan Zhao (JIRA) I'd like to fix this problem. Where should I start? @slavapestov |
The error is emitted by |
Comment by Ziyuan Zhao (JIRA) It seems that the duplicated issue SR-11689 has been fixed. Also I'v tested with the latest Swift code and it works fine. So I think this issue should be closed too. |
ninjiacoder (JIRA User) The bug is definitely still present in the latest master. @theblixguy's explanation for how to fix the problem is the correct one. Let me know if you still want to attempt this. |
Comment by Ziyuan Zhao (JIRA) @slavapestov Sure. I still want to fix it. |
ninjiacoder (JIRA User) Sorry, I took this one over on #28392 We got an unrelated bug report and I didn't see this issue already had somebody assigned... |
Comment by Ziyuan Zhao (JIRA) @CodaFi Never mind. Glad to hear that it's fixed! 🙂 |
Resolved by the merge of #28392 |
Environment
Xcode 11.1 (11A1027)
Additional Detail from JIRA
md5: 95fa6dd3261c88c421192579e14d986d
is duplicated by:
Self
in class extensionIssue Description:
This crashes the compiler
Doing the same but without the extension gives the correct (I believe) error
The text was updated successfully, but these errors were encountered: