-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorerror messageThis issue points out an error message that is unhelpful and should be improved.This issue points out an error message that is unhelpful and should be improved.frontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.work in progressThis pull request is not ready for review yet.This pull request is not ready for review yet.
Milestone
Description
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.
lin72h, rofrol and akhildevelopskamidev, lin72h and illfygli
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorerror messageThis issue points out an error message that is unhelpful and should be improved.This issue points out an error message that is unhelpful and should be improved.frontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.work in progressThis pull request is not ready for review yet.This pull request is not ready for review yet.