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-4812] swiftc crash in swift::Lowering::SILGenFunction::emitClosureValue #47389
Comments
I get the same on near-master. @slavapestov, look familiar? |
I'll take a look. |
So it crashes without the 'weak self' also. The problem is that 'bar' captures itself, via 'bar2', but 'bar' is not initialized yet when we form the reference to 'bar2'. I wonder if this should be prohibited. |
Note that this is not allowed:
|
still crashes now
for
|
Yeah, I haven't fixed this yet. |
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
Additional Detail from JIRA
md5: 989a26d4b61afd91741e0078af477b2b
is duplicated by:
swift::Lowering::SILGenFunction::emitClosureValue
with calling higher function, variable, inner functionIssue Description:
For this non-sensical program
I get
and
The text was updated successfully, but these errors were encountered: