Safety of calling C function from @inlinable Swift function


Is it (supposed to be) safe to call a C function from a Swift 5 function marked @inlinable? I ask because I'm getting occasional, various and puzzling fatal errors within C functions I call from an @inlinable function. When I comment-out the @inlinable attribute, the errors go away. The documentation on @inlinable in the language manual does not explicitly address this use case.


That shouldn’t happen. It’s a bug. Report it:

Ok. Thanks for the clarification. I will work on a reproducible test case for a bug report. The code that's breaking now is in a private code base.