Maybe the same as issue 39622?
In fact, in this case (my examples), I don't consider this to be a bug, because here I clearly specify multiple function inline calls.
FPC [git main] x64 eats up all my RAM (as a result, it crashes or gives an error; I tested it yesterday, but I can't remember, and I don't want to repeat it—everything started to slow down a lot, and some programs crashed due to lack of memory).
These examples also affect Delphi12.1CE, but there the compiler is 32-bit and eats up 4 gigabytes of memory - it just crashes with an error about insufficient memory.
In FPC [git main] & 3.2.2, another interesting error occurs in the last example - the compiler reports a lack of registers. Which is very strange to me... I can't explain it, what registers are missing and why? Maybe someone knows? Perhaps I would consider this error a candidate for an issue.