| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…nce index to ensure it is kept.
|
OK, I reran address sanitizer on the CUDA backend with the following options and it ran without any issues reported: protect_shadow_gap=0:replace_intrin=0:detect_stack_use_after_return=0 |
Sorry, something went wrong.
… for memory leaks.
|
I have done some more testing, see latest commit. I ran these through the leak sanitizer for all back ends and, aside from an unrelated memory leak in the random number generator engine, there are no issues. |
Sorry, something went wrong.
The copy constructors for array_proxy have been made private. This will prevent you from assigning an array proxy to an auto variable accidently. Array proxies should only be assigned to variables of type array. Assigning to an auto will now lead to a compilation error.
| Back | FazBrowse Home | New Git URL |
Arrays can now be used as an index for creating an array proxy without failure.
Description
When using an array as an index when creating an array proxy a temporary index object is created and passed to the constructor for the array proxy. However the array underlying the index was not being kept after the temporary index was destroyed, resulting in undefined behavior. This fix ensures that the array is retained until the array proxy is destroyed. Users can now use an array as an index when creating an array proxy without needing to explicitly define an index object.
Fixes: #1693
Checklist