------- Additional Comments From hjl at lucon dot org 2005-02-03 00:33 ------- It is not OK. determine_visibility in C++ is called after ALL visibility push(default)/pop are processed. It has
else if (TREE_CODE (decl) == FUNCTION_DECL && DECL_DECLARED_INLINE_P (decl) && visibility_options.inlines_hidden) { DECL_VISIBILITY (decl) = VISIBILITY_HIDDEN; DECL_VISIBILITY_SPECIFIED (decl) = 1; } Here is where the problem comes from. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19664