Compilation on FreeBSD 16 which has an updated toolchain fails with these errors:
/wrkdirs/usr/ports/math/lean4/work/lean4-4.31.0/stage0/src/runtime/object.cpp:64:28: error: 'free_sized' is missing exception specification 'throw()'
64 | __attribute__((weak)) void free_sized(void *ptr, size_t) {
| ^
| throw()
/wrkdirs/usr/ports/math/lean4/work/.build/stage0/include/lean/lean.h:475:6: note: previous declaration is here
475 | void free_sized(void* ptr, size_t);
| ^
/wrkdirs/usr/ports/math/lean4/work/lean4-4.31.0/stage0/src/runtime/object.cpp:267:5: error: call to 'free_sized' is ambiguous
267 | free_sized(o, sz);
| ^~~~~~~~~~
/wrkdirs/usr/ports/math/lean4/work/.build/stage0/include/lean/lean.h:475:6: note: candidate function
475 | void free_sized(void* ptr, size_t);
| ^
/wrkdirs/usr/ports/math/lean4/work/lean4-4.31.0/stage0/src/runtime/object.cpp:64:28: note: candidate function
64 | __attribute__((weak)) void free_sized(void *ptr, size_t) {
| ^
2 errors generated.
Compilation on FreeBSD 16 which has an updated toolchain fails with these errors: