Skip to content

What are the guarantees over ZST pointers #503

Closed
@celinval

Description

@celinval

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.

  1. Does a ZST pointer have provenance?
  2. Does ZST pointer identity hold?
  3. If it point to a ZST field in a structure, will it always be inbounds?
  4. 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?
  5. Should a ZST pointer comparison take provenance into account or just the address?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions