Skip to content

Comptime dereference bugs tracking issue #19452

Closed
@mlugg

Description

@mlugg

The Sema logic for accessing pointers at comptime is incredibly flawed and riddled with bugs. Recent changes in the frontend have exposed more of these bugs, such as those encountered in #19092.

I am actively working on a rewrite of this logic which will hopefully fix all of these issues, but in the meantime, workarounds are necessary.

This issue serves to track these bugs. Feel free to share workarounds here, and please link any PRs/commits - in the Zig project or otherwise - which work around the issue. When my rewrite is complete, I will test it on everything linked here to ensure there are no failing edge cases.

Resolution of this issue should likely block 0.12.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behaviorerror messageThis issue points out an error message that is unhelpful and should be improved.frontendTokenization, parsing, AstGen, Sema, and Liveness.work in progressThis pull request is not ready for review yet.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions