Hi, we've been trying to understand what's the correct way to model ZST pointers. What is UB and what has well defined behavior.
- Does a ZST pointer have provenance?
- Does ZST pointer identity hold?
- If it point to a ZST field in a structure, will it always be inbounds?
- Will the address of a static ZST always fall in the memory section of statics? Will the address of a local ZST always point to a location in the stack frame?
- Should a ZST pointer comparison take provenance into account or just the address?
Thanks!
Hi, we've been trying to understand what's the correct way to model ZST pointers. What is UB and what has well defined behavior.
Thanks!