This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21405] Template inlines have global visibility
- From: "mike at navi dot cx" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 May 2005 12:38:39 -0000
- Subject: [Bug c++/21405] Template inlines have global visibility
- References: <20050505214934.21405.mike@navi.cx>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mike at navi dot cx 2005-05-08 12:38 -------
http://gcc.gnu.org/onlinedocs/libstdc++/abi.html
See the "testing multi-abi binaries" section at the bottom:
<quote>
A "C" application, dynamically linked to two shared libraries, liba, libb. The
dependent library liba is C++ shared library compiled with gcc-3.3.x, and uses
io, exceptions, locale, etc. The dependent library libb is a C++ shared library
compiled with gcc-3.4.x, and also uses io, exceptions, locale, etc.
[ ... snip ... ]
This resulting binary, when executed, will be able to safely use code from both
liba, and the dependent libstdc++.so.6, and libb, with the dependent libstdc++.so.5.
</quote>
A C++ program linked indirectly (via a C library) against another C++ library is
exactly the same scenario. This is the whole point of symbol versioning.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21405