-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
"shares memory with another argument" error from reinterpret
ed view
#29545
Comments
tkf
added a commit
to tkf/julia
that referenced
this issue
Oct 6, 2018
While figuring out that |
Yes, I agree. I just dug into the direction I was interested in. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Executing
throws:
I found that I can workaround it by
unsafe_wrap
:But is there a less unsafe way to do it?
Note that a similar code using only
view
works:so I suppose aliasing analysis can be done for
reinterpret
edview
? If there is no safe way to do it, does it makes sense to add such feature?The text was updated successfully, but these errors were encountered: