Displaying 1 result from an estimated 1 matches for "isnoaliasfn".
2017 Dec 26
3
Why is remalloc not marked as noalias?
Hello,
According to my understanding, it seems that the result of realloc will not
technically alias the original pointer. When the realloc is done in-place
the reference <http://en.cppreference.com/w/c/memory/realloc> says:
"The original pointer ptr is invalidated and any access to it is undefined
behavior (even if reallocation was in-place)."
Additionally from the C11 standard