Closed
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.