[cfe-dev] clang, -fvisibility=hidden, static class method
691D2C6C-B023-46A5-B1D7-ACCBA4713A87 at uuid-mail.com
Thu Jul 28 01:39:40 PDT 2011
On 26 Jul 2011, at 23:13, John McCall wrote:
> > [...]
> There have been a lot of visibility fixes in the last year; please
> try again with a relatively recent clang.
I am still having this visiblity issue:
This is with clang from svn updated yesterday.
The only workaround I have been able to find is to not use
-fvisibility=hidden for libraries which export template instantations
— this workaround causes some linker warnings related to different
visiblity of internal stdlib symbols which I think are wrong, becaue
even if I ensure all headers are included with same visibility¹ the
warnings persist, but given how I can’t use the visibility pragma to
export the explicit templates, I have a feeling that this pragma isn’t
¹ Using #pragma GCC visibility push(…) / pop.
More information about the cfe-dev