Open PhilippMDoerner opened 1 month ago
It's a gcc 14 issue, which also blocks https://github.com/nim-lang/Nim/pull/23649
hook.onHeartbeat = cast[type hook.onHeartbeat](cacheMaintenanceEx[T])
but onHeartbeat
is of proc(env: pointer){.nimcall.}
type, it shoud be cast as the type of onHeartbeat
instead. It looks easy to solve
Given that I was playing around and noticed it: I was unable to compile any of the examples. Sporadically I tested
On nim 2.0.0, 2.0.4 and 1.6.20, all of them have various versions of compiler errors: With 1.6.20:
nim r -f --cc:clang -d:useMalloc --threads:on src/playground.nim
:With 2.0.0:
nim r -f --cc:clang -d:useMalloc src/playground.nim
Similar issues appear with the other examples I sporadically tested, leading me to assume that none of them currently work.