Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

W05.2026 · 26 Jan – 1 Febocaml/ocaml

Fixes

OCaml compiler (trunk): fixes a miscompilation in string read/write operations where incorrect Cmm machtypes allowed derived pointers to remain live across a GC, causing obscure crashes. Backported to 5.4 and 5.5. #14010

OCaml compiler (trunk): open fix for a soundness bug where a polymorphic pattern like ([ bad ] : 'a. 'a list) passes a raw Tpoly to the exhaustiveness checker, causing a segfault. #14480, issue #14434

OCaml runtime (trunk): open fix for a multidomain minor-GC bug where promoting an infix pointer could expose an uninitialized major-heap block to another domain, causing SEGVs. Marked for backport to 5.5. #14495

Features

OCaml stdlib (proposal): open PR adding Lazy.Mutexed, a mutex-protected lazy thunk safe for concurrent forcing across domains or threads. Naming under active discussion; the module intentionally signals its domain-level blocking limitation. #14393

ocamllex (proposal): open PR adding an exhaustiveness warning that reports a nonmatching input example when a rule can fail, with a suggested fix for the empty-string and eof cases. #14448

OCaml language (proposal): open PR implementing modular explicits (fun (M : S) -> ...), allowing a module parameter's name to appear in the return type. A major extension of first-class modules for higher-kinded abstraction. #13275

Compatibility and Releases

OCaml C headers: merged changes suppress -Wpedantic / -Wc99-extensions warnings in bigarray.h under strict C++ mode via CAML_flexible_array_member_start/_end macros, and add a CI test that compiles all public headers in C++ with SARIF diagnostics. #14496, #14421, #14498

ocamltest: merged not <action>; negation syntax (e.g. not windows;), removed the legacy **** tree syntax and its translation layer, and added an ocamltest; action for testing ocamltest scripts themselves. #14502, #14499, #13317