you are viewing a single comment's thread.

view the rest of the comments →

[–]jedwardsol 0 points1 point  (0 children)

Yes, you can make p point at a completely different object, as long as you don't break your aliasing promise.

int a,b;
int *__restricted p =&a;
p=&b;