You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry for the delay.
This test program is actually undefined behavior because it let the pointers escape from the closures.
The optimizer tends to give up in case it sees "unsafe" code like this.
Also, with a recent compiler, the output for X.test is false.
Is this just an artificial test case to show the problem? Do you have a more realistic test case without undefined behavior?
Additional Detail from JIRA
md5: 4dd324f44e59e9bba4cd43da818fb481
Issue Description:
This program prints
but should print
`X` and `Y` are identical except that `Y` stores an `Any`.
The text was updated successfully, but these errors were encountered: