This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/10591] use ODR rules to make C++ objects not be TREE_PUBLIC
- From: "geoffk at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Mar 2006 00:44:30 -0000
- Subject: [Bug c++/10591] use ODR rules to make C++ objects not be TREE_PUBLIC
- References: <bug-10591-102@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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