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)