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
Windows: a user fn named like a platform API (accept) resolves to the extern #806
Windows: a user function named like a platform API (accept, the Winsock extern) resolves to the extern instead of the user's declaration, so spec_ss03_9_implicit_trait_object_coercion fails to build ("manual extern function call requires unsafe context"). §18.1: the visible user declaration wins. The other nine spec tests this issue named pass on Windows.
Original report
On native Windows x86_64 (self-host green battery, build :test → native-spec-tests), the following test/spec/*.w tests fail with exit code 1 (wrong output — not a crash). All pass on linux x86_64 and macOS arm64; they are Windows-only regressions in codegen for the associated language features.
spec_ss14_3_1_no_suspend_blocks.w — async blocks that never suspend
These are gated with //! skip-windows: (referencing this issue) so the Windows green battery passes; the gates are removed incrementally as each underlying codegen gap is root-caused and fixed. Likely clusters: win64 trait-object/vtable ABI (box_dyn / trait_object / object_safety / error_trait), win64 fat-fn / closure ABI in combinators (option_result / result_complete / sequence_traverse / error_context / collect), and async lowering (no_suspend_blocks). Each needs root-cause to the exact codegen site before its skip is lifted.
changed the title [-]Windows: spec suite tests fail (exit 1) — trait-object/combinator/error/async codegen[/-][+]Windows: a user fn named like a platform API (accept) resolves to the extern[/+]on Oct 25, 2026
Triage 2026-10-25, Windows x86_64 (win10, with.exe built from main c88f3ee): 9 of the 10 spec tests now pass on Windows. One still fails, for a reason the issue did not see: a user function named accept resolves to the Windows socket extern instead of the user's own declaration.
It passes on macOS. This is #750's class on Windows: a platform name outranks the user's visible declaration (§18.1). pre-release: any program with a function named like a Windows API name (accept, send, connect, select, …) fails to build on Windows only.
Fixed on main by 2c4c882 (#2720), merged through stack 8 whose seed-driven battery was green on its top (gate, uat and survey all green). Regression test: test/behavior/behav_806_user_fn_named_like_platform_extern.w.
Activity
Windows green battery: c_import SDK/MSVC includes + unified panic-exi…
codegen(win64): materialize dyn-trait fat pointers across the indirec…
codegen(win64): materialize dyn-trait fat pointers across the indirec…
codegen(win64): materialize dyn-trait fat pointers across the indirec…
test(windows): un-skip sealed_trait_match now that dyn-trait fat poin…
codegen(win64): carry the sret slot through async dyn-trait wrappers (#…
codegen(win64): materialize dyn-trait fat pointers across the indirec…
test(windows): un-skip sealed_trait_match now that dyn-trait fat poin…
codegen(win64): carry the sret slot through async dyn-trait wrappers (#…
codegen(win64): materialize dyn-trait fat pointers, sync + async (#806)…
codegen(win64): don't mistake a closure env slot for an sret slot (#806)
test(windows): un-skip 3 trait-object spec tests fixed on win64 (#806)
codegen(win64): closure call type must match by-value callee return (#…
test(windows): un-skip 3 #806 tests fixed by closure call-type ABI
codegen(win64): closure call type must match by-value callee return (#…
36 remaining items
codegen(win64): sret-lower dyn-trait wrappers for sync aggregate retu…
codegen(win64): indirect aggregate closure params by pointer; un-skip…
codegen(win64): sret-lower collect[String] runtime call (#806) (#822)
ci(windows): seed from clean post-#806 win64 compiler + regex smoke test
ci(windows): seed from released v0.15.1.4 asset + regex smoke test
ci(windows): seed from released v0.15.1.4 asset + regex smoke test
[-]Windows: spec suite tests fail (exit 1) — trait-object/combinator/error/async codegen[/-][+]Windows: a user fn named like a platform API (accept) resolves to the extern[/+]ehartford commentedon Oct 25, 2026
Triage 2026-10-25, Windows x86_64 (win10,
with.exebuilt from main c88f3ee): 9 of the 10 spec tests now pass on Windows. One still fails, for a reason the issue did not see: a user function namedacceptresolves to the Windows socket extern instead of the user's own declaration.It passes on macOS. This is #750's class on Windows: a platform name outranks the user's visible declaration (§18.1). pre-release: any program with a function named like a Windows API name (
accept,send,connect,select, …) fails to build on Windows only.Sema: a program's own function named like a platform extern is not ju…
Sema: a program's own function named like a platform extern is not ju…
Sema: a program's own function named like a platform extern is not ju…
ehartford commentedon Oct 26, 2026
Fixed on main by 2c4c882 (#2720), merged through stack 8 whose seed-driven battery was green on its top (gate, uat and survey all green). Regression test:
test/behavior/behav_806_user_fn_named_like_platform_extern.w.