------- 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