Add two fixes from audit of ptrTypeExpr against upstream AstGen.zig ptrType: 1. Reject `[*c]allowzero T` with a compile error matching upstream (AstGen.zig:3840-3842). C pointers always allow address zero, so the allowzero modifier is invalid on them. 2. Save source_offset/source_line/source_column before typeExpr and restore them before evaluating each trailing expression (sentinel, addrspace, align). This ensures correct debug info source locations matching upstream (AstGen.zig:3844-3846, 3859-3861, 3876-3878, 3885-3887). Issue 3 (addrspace RL using addBuiltinValue) is skipped as addBuiltinValue is not yet implemented. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
411 KiB
411 KiB