[Bug c++/9283] __attribute__((visibility ("hidden"))) not supported for class/struct

s_gccbugzilla at nedprod dot com gcc-bugzilla@gcc.gnu.org
Fri Feb 20 19:33:00 GMT 2004


------- Additional Comments From s_gccbugzilla at nedprod dot com  2004-02-20 19:33 -------
Can you change this line in your patch:

+   current_class_stack[current_class_depth].visibility = VISIBILITY_DEFAULT;

Make this:

+   current_class_stack[current_class_depth].visibility = 
compilation_unit_visibility;

... and then declare where the command line args are parsed a:

static enum symbol_visibility compilation_unit_visibility = VISIBILITY_DEFAULT;

This makes it easier to add the -fvisibility=X command line switches to GCC 
later on.

Cheers,
Niall


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9283



More information about the Gcc-bugs mailing list