Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

W44.2026 · 26 Oct – 1 NovCore

Fixes

  • #15204 (merged): Pattern matching on a mutated variant field was treated as exhaustive when it was not, causing segfaults. The partiality record now propagates the downgrade correctly.
  • #15208, #15213 (merged): Two flambda miscompilations fixed. -Oclassic alias analysis produced garbage values by treating symbol fields as aliased to the symbol; float-array lifting on a dead GADT branch triggered a fatal error.
  • #15168 (merged): Scanf.unescaped now handles octal (\oNNN), uchar (\u{…}), and backslash-space escapes, matching the lexer. Fixes #14930.
  • Issues #15205, #15189 (open): Native Atomic.exchange and Atomic.compare_and_set miscompile on amd64 when the result register is spilled; regression from #14980. Fixes in progress via #15207 and #15192.

Features

  • #15167 (merged): ocamldep gains a -strict flag that exits non-zero on missing files or parse errors and produces no output on failure. Fixes #15132.
  • #15227 (open): Head shapes and constructor unboxing extends [@unboxed] to multi-constructor variant types. Includes specification and implementation documents.
  • RFC #14 (open proposal, updated 2026-10-31): Extends [@@unboxed] to eliminate the block for unary constructors with run-time-distinguishable argument types, reducing allocation and indirection.

Compatibility

  • #14602 (merged): Unix.rename and Sys.rename on Windows now succeed when the destination file is read-only, matching POSIX semantics.
  • #15219 (open): Fast path for variance checking of constrained parameters reduces compilation of the #15163 benchmark from 760 s to 3.7 s.