[cfe-dev] clang, -fvisibility=hidden, static class method
Allan Odgaard
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:
http://llvm.org/bugs/show_bug.cgi?id=10113
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
100% effective…
¹ Using #pragma GCC visibility push(…) / pop.
More information about the cfe-dev
mailing list