http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35688
--- Comment #15 from Jason Merrill <jason at gcc dot gnu.org> 2013-02-11 15:44:51 UTC --- (In reply to comment #13) > I don't understand why fully declared templates like Boost's shared_ptr have a > visibility at all. I'm not sure why they would. Are you compiling with -fvisibility=hidden? If so, you need to explicitly give everything that you want to be exported the appropriate visibility. > Do I've to change my code or is this a regression or is it Boost's fault? You might wrap the #includes in #pragma GCC visibility push(default) #pragma GCC visibility pop to give the Boost library all default visibility.