You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
D91 (§17.5) regressed on the release compiler: comptime match Target.os is "runtime value is not available at comptime" (#2124 implemented it, #2248 closed) #2949
Conformance audit 2026-11-02. §17.5 (D91): Target.os and Target.arch are compile-time constants; a per-target value is an exhaustive comptime match. The spec's own example (§17.5, pub const EAGAIN: i32 = comptime match Target.os: …) does not compile on the installed compiler (main 038c50c), with or without use std.sysinfo, in let or pub const form:
#2248 ("stage1 and the release compiler resolve a bare Target differently") is closed, but the release compiler shows exactly its symptom. Needs a behavior fixture that runs under the release compiler (the lane :test runs), not only under stage1.
Three-way check. Both compiler generations refuse bare Target.os without use std.os.Target: stage1 says "requires an explicit import; add: use std.os.Target" (the §18.1 gate), the release compiler said "runtime value is not available at comptime" because its unit never parsed std.os (std is served as interfaces), so the comptime evaluator found no declaration at all. The spec example omits the import because §18.1 tier 5 (D29, #752) resolves a unique std name without one; that tier is not active. So: the example is right under the spec, the compiler lacks #752, and the release message was wrong.
Done on stack #3008 (layer facade-error-header-hint): the comptime read of a name the unit never saw names the import gate when the gate knows the module, and otherwise says the name is undeclared here and needs its import, so both generations agree. The conformance row stays open on this issue until #752 lands; test/behavior/behav_d91_target_constants.w (with the import) pins the constants on both compilers.
Activity
ehartford commentedon Nov 3, 2026
Three-way check. Both compiler generations refuse bare
Target.oswithoutuse std.os.Target: stage1 says "requires an explicit import; add: use std.os.Target" (the §18.1 gate), the release compiler said "runtime value is not available at comptime" because its unit never parsed std.os (std is served as interfaces), so the comptime evaluator found no declaration at all. The spec example omits the import because §18.1 tier 5 (D29, #752) resolves a unique std name without one; that tier is not active. So: the example is right under the spec, the compiler lacks #752, and the release message was wrong.Done on stack #3008 (layer facade-error-header-hint): the comptime read of a name the unit never saw names the import gate when the gate knows the module, and otherwise says the name is undeclared here and needs its import, so both generations agree. The conformance row stays open on this issue until #752 lands;
test/behavior/behav_d91_target_constants.w(with the import) pins the constants on both compilers.Two conformance diagnostics: the facade-wide error clause's place, an…
#2950: the compiler's admissions: two comptime gaps closed, the rest …
Spec changelog: the NON-COMPLIANT sentences of fourteen entries whose…
#3016, #3032, #2946, #2976, #2949, #3051, #3005, #3001, #3017, #2521:…
ehartford commentedon Nov 7, 2026
Fixed in #3056 (merged as afbdbb1).
§17.5: the Target example imports std.os.Target; sysinfo is the host;…