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
CK_FN constant evaluation warns and returns undef when the function is missing (silent fallback) #1859
src/CodegenDispatch.w, the ConstKind.CK_FN branch of the constant evaluator: when a function constant's symbol is in neither fn_values nor the LLVM module it prints warning: [ck-fn] NOT FOUND sym=... name=... and returns wl_get_undef(...) — an undefined function value that compiles and misbehaves at run time.
Expected
A named BUG (sema_phase_bug) with the symbol: a function constant with no function is a compiler defect, never an undef.
Why filed, not fixed in the D65 batch
Turning it into an abort could break any program that reaches it today harmlessly (an unused reference), and the corpora that would show that are the coordinator's battery, not an agent's. Needs one battery with the BUG in place; grep the corpus logs for [ck-fn] NOT FOUND first.
Fixed on main by 792351b (stack #2007, battery green on 0f13a62). CK_FN constant evaluation with no function is a named BUG (sema_phase_bug), never undef.
Activity
CK_FN constant evaluation: a function constant with no function is a …
A generic function used as a callable value is instantiated at the ex…
Sema/MIR: CK_FN loud on a missing fn (#1859); atomics default SeqCst (#…
ehartford commentedon Oct 3, 2026
Fixed on main by 792351b (stack #2007, battery green on 0f13a62). CK_FN constant evaluation with no function is a named BUG (sema_phase_bug), never undef.