2 ms·
> That seems basically impossible to fulfill ... Any sort of pointer arithmetics in the presence of restrict pointers seems like a giant footgun. As far as I
by masklinn 5y ago
> That seems basically impossible to fulfill ...
Any sort of pointer arithmetics in the presence of restrict pointers seems like a giant footgun.
As far as I can read the standard, it does not forbid aliasing `restrict` pointer as long as these pointers are not used to access anything. Here y2 aliases with x, but at no point is anything accessed through y2 (whether reading or writing). So it I feel like it respects the letter of the law.