[cfe-dev] clang symbol visibility question

Jean-Daniel Dupas devlists at shadowlab.org
Mon Oct 25 08:42:19 PDT 2010


Le 25 oct. 2010 à 17:23, Rafael Espíndola a écrit :

>> And so the question:
>> 
>> Is this a bug in clang++, or am I doing something wrong with visibility. And if I'm doing something wrong, what should I do instead.
> 
> It looks like you found an interesting bug in clang's handling of
> visibility in C++. I reduce the test a bit:
> 
> 
> struct AudioTimeStamp { int field; };
> void  __attribute__((visibility("default"))) Foo  (struct
> AudioTimeStamp *timeStamp) { }
> 
> 
> Compile it as C++ code and you get a hidden function. Compile it as C
> and you get one with default visibility. Both gcc and g++ will produce
> a function with default visibility.
> 
> Would you mind adding this to bugzilla?
> 

Done: 

http://llvm.org/bugs/show_bug.cgi?id=8457


-- Jean-Daniel








More information about the cfe-dev mailing list