▲ | jcranmer 4 days ago | |||||||||||||||||||||||||
Give me an example of a program that violates pointer provenance (and only pointer provenance) that you think should be allowed under a reasonable programming model. | ||||||||||||||||||||||||||
▲ | JonChesterfield 3 days ago | parent [-] | |||||||||||||||||||||||||
This is rather woven in with type themed alias analysis which makes a hard distinction tricky. E.g realloc doesn't work under either, but the provenance issue probably only shows up under no-strict-aliasing. I like pointer tagging because I like dynamic language implementations. That tends to look like "summon a pointer from arithmetic", which will have unknown to the compiler provenance, which is where the deref without provenance is UB demon strikes. | ||||||||||||||||||||||||||
|