-
-
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
SharedArray(Void, 1) errors #17047
Comments
The size of the required shmem segment is calculated by multiplying the size of the element type with the size of the array. The issue is We should probably not allow shared arrays of type |
Note, all other singleton immutables also have this property too (and throw the same errors). For generic programming it would be nice to have this work, although special casing is not the end of the world. But for sure, a better error message. |
Yes, for zero sized types, we shouldn't actually create and map any segment but just have local arrays of the requested type. Should work. |
Thanks! Could this be back-ported? |
Marking it for back-porting though I don't know if are going to have a 0.4.7 anytime soon. |
Marking it on the PR. |
SharedArray(Void, 1)
errors on 0.5:and 0.4:
The text was updated successfully, but these errors were encountered: