[Bug c++/26846] hidden visibility of static member in class derived from hash_map changes to default visibility

laszlo dot szakony at philips dot com gcc-bugzilla@gcc.gnu.org
Thu Apr 20 14:52:00 GMT 2006



------- Comment #3 from laszlo dot szakony at philips dot com  2006-04-20 14:52 -------
Created an attachment (id=11303)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11303&action=view)
Simple test without automake files to test visibility changes of static members

To create the binaries and run the test:
>tar -xzf simpletest.tar.gz
>cd simpletest
>./build.sh

Actually the shared libs libdlib1.so and libdlib2.so should not export any
symbols, but as you can see, both of them have the global symbol SLibC1::m_str.
But only in case of hash_map. With std::map works.


-- 

laszlo dot szakony at philips dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #11113|0                           |1
        is obsolete|                            |


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



More information about the Gcc-bugs mailing list