Inlining failed: function body can be overwritten at link time
It wasn't my intention to answer this myself, but I accidentally found the answer a few minutes after I had posted.
The reason for this (cryptic) error message was that the function was not marked as inline
, only __attribute((always_inline))
.