[Bug middle-end/23058] visibility attribute does not work for aliased symbols
jason at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Jun 20 18:21:00 GMT 2006
------- Comment #1 from jason at gcc dot gnu dot org 2006-06-20 18:20 -------
You're telling the compiler that "exported_var" has default visibility, then
defining a variable called "my_exported_var" which happens to have the same
symbol. The compiler doesn't unify multiple declarations with the same
assembler name, and I don't think it should.
You should define the same declaration that you used to declare the visibility.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23058
More information about the Gcc-bugs
mailing list