[LLVMdev] Problem with __inline keyword

Matt Fischer mattfischer84 at gmail.com
Sat Jul 7 12:49:12 PDT 2012


Ah ok, guess I just didn't dig deep enough when reading up on this.
Thanks for the explanation.

On Fri, Jul 6, 2012 at 6:01 PM, Anton Korobeynikov
<anton at korobeynikov.info> wrote:
> Hello
>
>> I know there are some weird semantics among different compilers with
>> the inline/__inline keywords in C when you don't pair them with
>> static, but I can't imagine that this is correct.  Is there a bug
>> here, or am I missing something?
> Yes, clang is correct here, you're missing C99 inline semantics. You
> can either read C99 standard or
> http://clang.llvm.org/compatibility.html#inline
>
> --
> With best regards, Anton Korobeynikov
> Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list