Open rikivillalba opened 1 month ago
I would normally call this a bug & say "stop playing with fire" :)
But just yesterday #4890 shows how we can probably fix this pretty easily by checking if x
's own address is among the return values & inducing copy()
automatically if so.
This is somewhat related to #4877
Since it is an obvious corner case, I'm not sure if it qualifies as bug or such situations must be managed with
copy()
.