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
Sema: "internal error: conflicting contextual join decisions for one expression" in std/collections/sorted_vec.w when the importing program also imports from std.libc #2000
Repro: test/complexity/stdlib.w as on main (ac522dc) plus one line, use std.libc.libc_stdin (any std.libc item; use std.libc.cpu_time_ns on wave-build too), after use std.time. Then with check on it:
error: internal error: conflicting contextual join decisions for one expression
--> <embedded-std>/std/collections/sorted_vec.w:72:9
72 | if found < 0: None else: Some(found as i32)
error: missing return
--> <embedded-std>/std/collections/sorted_vec.w:67:9
Reproduced with the installed with v0.15.3.0 and with the release compiler of ac522dc + wave-build, so it predates both. The file without the import checks ok.
Not sufficient on its own: a minimal program with the same import and a SortedVec[i32] insert/len checks ok, so something else the harness instantiates is part of the trigger; not yet reduced (with reduce over the harness with --contains "conflicting contextual join" is the next step).
Expected: importing an unrelated std module never changes how another std module's body types (§18.1; D70); and an internal error is never a user-facing outcome.
Workaround used: test/complexity/stdlib.w declares the with_libc_cpu_time_ns seam itself instead of use std.libc.cpu_time_ns (#1998); the fix removes it.
Activity
stdlib-complexity times CPU, not the wall: std.libc cpu_time_ns over …
Sema: a generic instance is found by identity, never by the memo's ab…
stdlib-complexity times CPU, not the wall: std.libc cpu_time_ns over …
Sema: a generic instance is found by identity, never by the memo's ab…
stdlib-complexity times CPU, not the wall: std.libc cpu_time_ns over …
Sema: a generic instance is found by identity, never by the memo's ab…
Build store, runner, corpora, deps discovery, generic-instance identi…
ehartford commentedon Oct 3, 2026
Fixed on main in 6572eab (PR #2008; seed-driven battery GREEN on e0f5510, tree identical to main).