http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59300
Bug ID: 59300 Summary: visibility computation misses some attributes in namespaces Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rafael.espindola at gmail dot com Given namespace nfoo { class foo { void f(); }; } namespace nfoo __attribute__((visibility("hidden"))) { void foo::f() {} } gcc trunk r205392 produces a symbol with default visibility. GCC normally considers the visibility of followup decls, so I was expecting hidden.