This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/50348] -fvisibility=hidden doesn't hide stl implementation details.
- From: "vincenzo.innocente at cern dot ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 22 Sep 2011 11:49:29 +0000
- Subject: [Bug libstdc++/50348] -fvisibility=hidden doesn't hide stl implementation details.
- Auto-submitted: auto-generated
- References: <bug-50348-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50348
--- Comment #5 from vincenzo Innocente <vincenzo.innocente at cern dot ch> 2011-09-22 11:49:29 UTC ---
indeed
and in "exception" header-file is a place where visibility is correctly handled
#pragma GCC visibility push(default)
extern "C++" {
namespace std
{
}
#pragma GCC visibility pop
I would have preferred specific __attribute((visibility( "default" )))
on each exception class though (push and pop and error-prone)