[Bug c++/10591] use ODR rules to make C++ objects not be TREE_PUBLIC

geoffk at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Mar 9 00:44:00 GMT 2006



------- Comment #15 from geoffk at gcc dot gnu dot org  2006-03-09 00:44 -------
Another case is when someone writes

struct a_struct __attribute__((visibility(hidden)));
void foo(a_struct &) { }

Even though "foo" is not marked hidden it should still be hidden, because it
could be overloaded in a different shared object with a parameter which has
type 'a_struct &' but is a different type.

This is especially important when 'func' is 'operator ==' or similar.


-- 


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



More information about the Gcc-bugs mailing list